:root {
  --navy: #0f172a; --navy2: #0f1b4c; --blue: #2563eb; --blue7: #1d4ed8; --blue4: #3b82f6; --sky: #eff6ff;
  --cyan: #00c0e8; --neon: #00e5ff; --ink: #0f172a; --muted: #64748b; --faint: #94a3b8; --line: #e2e8f0; --bg: #f8fafc;
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: #e2e8f0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
svg:where(:not(.leaflet-zoom-animated)) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.app { position: relative; max-width: 430px; min-height: 100%; margin: 0 auto; background: var(--bg); overflow: hidden; box-shadow: 0 0 40px rgba(15,23,42,.12); }
.screen { min-height: 100vh; min-height: 100dvh; position: relative; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; } }

/* ---------- Splash ---------- */
.splash { display: grid; place-items: center; background: radial-gradient(ellipse 90% 60% at 50% 46%, #0a1a33 0%, #050c18 55%, #03080f 100%); color: #fff; overflow: hidden; }
.splash-glow { position: absolute; width: 120%; aspect-ratio: 1; left: -10%; top: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 60%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .6; } }
.splash-center { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -6vh; }
/* camera: slow dolly-out over the whole logo */
.brand { position: relative; width: min(92vw, 385px); aspect-ratio: 2120 / 742; animation: dolly 2.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dolly { from { transform: scale(1.22); } }
.brand-letters, .brand-x { position: absolute; inset: 0; perspective: 700px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
/* letters C-L-O-V-E-R flip up one by one (silver) */
.ltr { clip-path: inset(0 var(--r) 0 var(--l)); transform-origin: var(--cx) 62%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); animation: ltrIn .55s cubic-bezier(.2,.9,.25,1.15) calc(.55s + var(--i) * .11s) both; }
@keyframes ltrIn { from { opacity: 0; transform: translateY(22%) rotateX(-100deg) scale(.85); } 45% { opacity: 1; } }
.brand-silver { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 28% 0 0); background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(150,164,186,.85) 58%, rgba(214,222,234,.4) 72%, rgba(120,134,158,.9) 100%); mix-blend-mode: multiply; -webkit-mask: url(/logo.png) center / 100% 100% no-repeat; mask: url(/logo.png) center / 100% 100% no-repeat; animation: fadeIn .6s ease 1.2s both; }
@keyframes fadeIn { from { opacity: 0; } }
/* four blue X shards fly in spinning and lock together */
.brand-x { animation: xGlow 2.6s ease-in-out 2.1s infinite; }
.xs { clip-path: var(--clip); transform-origin: 83.16% 49.33%; animation: shardIn 1s cubic-bezier(.16,1,.3,1) calc(var(--k) * .06s) both; }
@keyframes shardIn { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rz)) rotateY(140deg) scale(.55); } 25% { opacity: 1; } }
@keyframes xGlow { 50% { filter: drop-shadow(0 0 10px rgba(96,165,250,.9)) drop-shadow(0 0 22px rgba(37,99,235,.6)); } }
/* flash when the X locks */
.x-flare { position: absolute; left: 83.16%; top: 49.33%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, #fff 0, #bdf3ff 9%, rgba(0,229,255,.55) 24%, rgba(37,99,235,.22) 45%, transparent 68%); animation: flare 1.5s cubic-bezier(.2,.8,.2,1) 1s both; }
@keyframes flare { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); } 22% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); } 100% { opacity: .38; transform: translate(-50%, -50%) scale(.72); } }
.brand-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: overlay; -webkit-mask: url(/logo.png) center / 100% 100% no-repeat; mask: url(/logo.png) center / 100% 100% no-repeat; animation: shine 2.2s ease-in-out 1.55s infinite; }
@keyframes shine { 0% { background-position: 150% 0; } 55%, 100% { background-position: -60% 0; } }
.tag { margin: -18px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.75); animation: up .7s cubic-bezier(.16,1,.3,1) 1.7s both; }
@keyframes up { from { opacity: 0; transform: translateY(15px); } }
.splash { cursor: pointer; }
.splash-foot { position: absolute; bottom: calc(40px + var(--safe-b)); left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.3); letter-spacing: .08em; animation: up .7s ease 1.9s both; }

/* ---------- Auth ---------- */
.auth { padding: calc(56px + var(--safe-t)) 28px calc(28px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-logo { width: 255px; height: auto; aspect-ratio: 2120 / 742; margin: 6px 0 -8px; }
.auth h1 { margin: 0; font-size: 24px; font-weight: 800; background: linear-gradient(92deg, #1e3a8a 0%, #2563eb 48%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #2563eb; padding: .14em .04em .06em; margin-top: -.14em; margin-bottom: -.06em; }
.auth .sub { margin: 8px 0 30px; font-size: 14px; color: var(--muted); }
.auth form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--faint); transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--blue4); box-shadow: 0 0 0 4px rgba(59,130,246,.12); color: var(--blue); }
.field.bad { border-color: #ef4444; }
.field svg { width: 20px; height: 20px; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.field input::placeholder { color: var(--faint); }
.eye { color: var(--faint); padding: 6px; margin-right: -6px; }
.eye svg { width: 20px; height: 20px; }
.btn { position: relative; height: 56px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(90deg, #0d268c, #1a4dbf 50%, #3373e5); box-shadow: 0 8px 20px rgba(37,99,235,.28); overflow: hidden; transition: transform .1s, filter .15s; margin-top: 8px; }
.btn:active { transform: scale(.98); }
.btn:disabled { filter: saturate(.5) brightness(1.1); cursor: wait; }
.btn:disabled span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible, .field:focus-within, a:focus-visible, button:focus-visible { outline: none; }
a:focus-visible, button:focus-visible { box-shadow: 0 0 0 3px rgba(59,130,246,.45); border-radius: 8px; }
.forgot { align-self: flex-end; margin: -6px 2px -4px 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.err { margin: 0; min-height: 0; font-size: 13px; color: #dc2626; text-align: left; }
.err:empty { display: none; }
.hint { margin: -4px 0 0; font-size: 12px; color: var(--faint); text-align: left; }
.consent { display: flex; gap: 10px; align-items: center; text-align: left; font-size: 11px; line-height: 1.55; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.switch { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.switch a { font-weight: 700; color: var(--ink); }
.help { margin: auto 0 0; padding-top: 32px; font-size: 12px; color: var(--faint); }
.back { position: absolute; left: 20px; top: calc(40px + var(--safe-t)); padding: 8px; color: var(--ink); }

/* ---------- Home ---------- */
.home { padding: calc(8px + var(--safe-t)) 20px calc(110px + var(--safe-b)); }
.h-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 16px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; }
.who strong { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.avatar.big { width: 64px; height: 64px; font-size: 24px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cyan); background: #fff; display: grid; place-items: center; flex: none; }
.bell svg { width: 20px; height: 20px; }
.bell i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 1.5px solid #fff; }

.hero-wrap { position: relative; isolation: isolate; }
.hero { position: relative; height: 252px; border-radius: 24px; padding: 14px 20px; color: #fff; background: linear-gradient(90deg, #0f172a, #2563eb); box-shadow: 0 12px 24px rgba(15,23,42,.15); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 220px; height: 220px; left: 40px; top: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.18), transparent 65%); }
/* living background: tiny clovers drifting up + neon light running around the card edge */
.hero-fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.hero-fx .mc { position: absolute; left: var(--x); top: 100%; width: var(--s); height: var(--s); fill: #bfe9ff; opacity: 0; animation: drift var(--d) linear var(--dl) infinite; }
@keyframes drift { 0% { transform: translateY(10px) rotate(0deg); opacity: 0; } 12% { opacity: var(--o); } 50% { transform: translate(14px, -140px) rotate(120deg); } 88% { opacity: var(--o); } 100% { transform: translate(-6px, -290px) rotate(240deg); opacity: 0; } }
@property --edge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero-wrap::before, .hero-wrap::after { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 258px; border-radius: 27px; background: conic-gradient(from var(--edge), transparent 0 62%, rgba(0,229,255,.2) 70%, #00e5ff 80%, #9ee8ff 83%, rgba(96,165,250,.6) 88%, transparent 94%); animation: edge 6s linear infinite; pointer-events: none; }
.hero-wrap::after { filter: blur(12px); opacity: .85; z-index: -1; }
@keyframes edge { to { --edge: 360deg; } }
.hero-wrap > .hero { z-index: 1; }
.hero-wrap > .mascot { z-index: 2; }
/* film grain on the dark cards: fine noise, softly flickering like film */
.hero::after, .slide::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px 160px; mix-blend-mode: overlay; opacity: .2; animation: grain 1.2s steps(6) infinite; }
.slide { position: relative; overflow: hidden; }
.slide > * { position: relative; z-index: 1; }
@keyframes grain { 0% { background-position: 0 0; } 17% { background-position: -37px 21px; } 33% { background-position: 52px -14px; } 50% { background-position: -18px -46px; } 67% { background-position: 29px 58px; } 83% { background-position: -61px 7px; } 100% { background-position: 0 0; } }
.hero-title { position: relative; display: flex; align-items: center; gap: 6px; }
.hero-title b { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
/* X-VISOR: brushed-silver lettering with a light sweep every few seconds; the star twinkles as it passes */
.hero-title b { color: #fff; background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.6) 43%, #ffffff 48%, #c8f6ff 52%, rgba(125,211,252,.6) 57%, transparent 64%), linear-gradient(180deg, #f3f7fc 0%, #c9d6e7 48%, #9fb2cc 62%, #dfe8f4 100%); background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 6px rgba(125,211,252,.28)); animation: titleShine 4.2s ease-in-out 2s infinite; }
@keyframes titleShine { 0% { background-position: 160% 0, 0 0; } 42%, 100% { background-position: -70% 0, 0 0; } }
.hero-title .star { animation: twinkle 4.2s ease-in-out 2s infinite; filter: drop-shadow(0 0 3px rgba(189,243,255,.8)); }
@keyframes twinkle { 0%, 34%, 54%, 100% { transform: scale(1) rotate(0); } 43% { transform: scale(1.55) rotate(72deg); filter: drop-shadow(0 0 6px #bdf3ff) drop-shadow(0 0 10px #00e5ff); } }
.star { width: 11px; height: 11px; fill: #fff; stroke: none; }
/* both lines centred on the ring (ring centre = 62px + 134px / 2) */
.hero-sub { position: absolute; left: 129px; top: 50px; transform: translateX(-50%); margin: 0; font-size: 12px; white-space: nowrap; z-index: 1; }
.hero-next { white-space: nowrap; position: absolute; left: 129px; transform: translateX(-50%); bottom: 12px; z-index: 1; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.hero-next svg { width: 18px; height: 18px; stroke: #fff; }
.ring { position: absolute; left: 62px; top: 76px; width: 134px; height: 134px; }
.ring svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: rgba(255,255,255,.1); }
.ring .bar { stroke: url(#rg); stroke-linecap: round; stroke-dasharray: 351.86; stroke-dashoffset: 351.86; }
.ring .glow { stroke: #00e5ff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 351.86; stroke-dashoffset: 351.86; opacity: .55; filter: blur(7px); animation: neon 2.4s ease-in-out infinite; }
.ring .cap { fill: #e0fbff; stroke: none; filter: drop-shadow(0 0 6px #00e5ff) drop-shadow(0 0 12px #00e5ff); opacity: 0; }
@keyframes neon { 50% { opacity: .95; stroke-width: 18; } }
/* liquid inside the ring: level = score, two waves drifting opposite ways + rising bubbles */
.ring svg.water { position: absolute; inset: 0; transform: none; }
.ring .water path { stroke: none; }
.ring .water .w1 { fill: url(#wg); animation: waveL 3.2s linear infinite; }
.ring .water .w2 { fill: #7dd3fc; opacity: .28; animation: waveR 5.5s linear infinite; }
.ring .water .bub { fill: rgba(255,255,255,.7); stroke: none; opacity: 0; animation: bub 3.4s ease-in infinite; }
.ring .water .b2 { animation-duration: 4.2s; animation-delay: 1.2s; }
.ring .water .b3 { animation-duration: 2.8s; animation-delay: 2s; }
.ring .water .edge { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
@keyframes waveL { to { transform: translateX(-140px); } }
@keyframes waveR { from { transform: translateX(-140px); } to { transform: translateX(0); } }
@keyframes bub { 0% { transform: translateY(90px); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(6px); opacity: 0; } }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num b { font-size: 46px; font-weight: 800; line-height: 1; text-shadow: 0 0 12px rgba(0,229,255,.55), 0 4px 8px rgba(0,229,255,.2); font-variant-numeric: tabular-nums; }
.ring-num small { margin-top: 4px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(8,30,80,.45); }
.mascot { position: absolute; right: 10px; top: -8px; width: auto; height: 248px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); animation: bob 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* ---------- menu grid: glassy tiles + duotone gradient icons, each with its own tap animation ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; margin: 26px 0 8px; }
.gi { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; touch-action: manipulation; }
.gi .tile { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #ffffff 0%, #eef5ff 55%, #e2eeff 100%); border: 1px solid rgba(37,99,235,.10); box-shadow: 0 8px 18px -6px rgba(37,99,235,.28), inset 0 1px 0 #fff, inset 0 -6px 12px rgba(56,189,248,.10); transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; }
.gi .tile::before { content: ""; position: absolute; left: 10px; right: 10px; top: 3px; height: 42%; border-radius: 999px 999px 40px 40px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.gi .ic { position: relative; width: 32px; height: 32px; fill: none; stroke: url(#ig); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.gi .ic .d { fill: rgba(59,130,246,.16); stroke: none; }
.gi .ic .dot { fill: url(#ig); stroke: none; }
.gi .ic * { transform-box: fill-box; transform-origin: center; }
.gi .gl { color: var(--ink); }
.gi .rp { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.55), rgba(0,229,255,0) 70%); transform: scale(0); animation: rp .6s ease-out forwards; pointer-events: none; }
@keyframes rp { to { transform: scale(12); opacity: 0; } }
.gi.press .tile { transform: scale(.9); }
.gi.go .tile { box-shadow: 0 0 0 2px rgba(0,229,255,.35), 0 10px 22px -6px rgba(0,160,255,.5), inset 0 1px 0 #fff; }
/* News: image pops, text lines write in */
.gi-news.go .a-img { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.gi-news .a-line { stroke-dasharray: 14; }
.gi-news.go .a-line { animation: write .55s ease-out; }
/* Pre-Order: bag hops, handle lifts, sparkle */
.gi-bag.go .ic { animation: hop .55s cubic-bezier(.3,1.5,.5,1); }
.gi-bag.go .a-handle { animation: lift .55s ease; }
.gi-bag .a-spark { opacity: 0; }
.gi-bag.go .a-spark { animation: spark .6s ease-out; }
/* E-Learning: cap is tossed and spins */
.gi-cap.go .a-cap { animation: toss .7s cubic-bezier(.3,1.2,.5,1); }
.gi-cap.go .a-tassel { animation: swing .7s ease; transform-origin: top; }
/* Exam: tick re-draws */
.gi-exam .a-check { stroke-dasharray: 16; }
.gi-exam.go .a-check { animation: write .5s .1s ease-out backwards; }
.gi-exam.go .clip { animation: pop .4s ease; }
/* Game: pad wiggles, buttons flash */
.gi-game.go .a-pad { animation: wiggle .5s ease; }
.gi-game.go .a-btn { animation: flash .5s steps(2) 2; }
.gi-game.go .b2 { animation-delay: .12s; }
/* Video: play pulses, REC blinks */
.gi-video .a-rec { fill: #ef4444; stroke: none; }
.gi-video.go .a-play { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.gi-video.go .a-rec { animation: blink .6s steps(2) 2; }
/* All services: tiles pop in turn, the diamond tile spins, sparkle */
.gi-all .a-dia { fill: url(#ig); }
.gi-all.go .a-s { animation: pop .45s cubic-bezier(.3,1.6,.5,1) backwards; }
.gi-all.go .s2 { animation-delay: .07s; }
.gi-all.go .s3 { animation-delay: .14s; }
.gi-all.go .a-dia { animation: diaSpin .6s cubic-bezier(.3,1.3,.5,1); }
.gi-all .a-spk { opacity: 0; }
.gi-all.go .a-spk { animation: spark .6s .15s ease-out; }
@keyframes diaSpin { 60% { transform: rotate(135deg) scale(1.15); } 100% { transform: rotate(90deg); } }
/* Help: bubble wobbles, ? bounces */
.gi-help.go .a-bubble { animation: wobble .5s ease; }
.gi-help.go .a-q { animation: hop .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes write { from { stroke-dashoffset: 16; } }
@keyframes hop { 30% { transform: translateY(-5px) scale(1.06); } 60% { transform: translateY(1px) scale(.98, 1.02); } }
@keyframes lift { 35% { transform: translateY(-3px) scaleY(1.15); } }
@keyframes spark { 0% { opacity: 0; transform: scale(.3) rotate(0); } 40% { opacity: 1; transform: scale(1.3) rotate(45deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }
@keyframes toss { 35% { transform: translateY(-9px) rotate(-18deg); } 70% { transform: translateY(1px) rotate(4deg); } }
@keyframes swing { 30% { transform: rotate(25deg); } 60% { transform: rotate(-15deg); } }
@keyframes wiggle { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes flash { 50% { fill: #00e5ff; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wobble { 25% { transform: rotate(-7deg) scale(1.04); } 55% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } }

.promo { margin-top: 18px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 20px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 86% 30%, rgba(0,229,255,.45), transparent 26%), radial-gradient(circle at 76% 85%, rgba(96,165,250,.5), transparent 30%), linear-gradient(90deg, #0f172a, #2563eb); }
.slide h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: .03em; background: linear-gradient(92deg, #60a5fa 0%, #38bdf8 50%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.slide > div { min-width: 0; }
.slide p { margin: 0 0 0 14px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide small { display: block; margin: 4px 0 0 14px; font-size: 9px; color: #a3a3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* glass date tile */
.date { position: relative; overflow: hidden; width: 82px; height: 79px; flex: none; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(255,255,255,.26), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.38); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -10px 20px rgba(0,229,255,.12), 0 10px 24px rgba(3,10,30,.35); }
.date::before { content: ""; position: absolute; left: -30%; top: -60%; width: 90%; height: 120%; background: linear-gradient(120deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%); transform: rotate(-18deg); pointer-events: none; }
.date small { position: relative; font-size: 12px; font-weight: 600; margin: 0; color: #cdefff; }
.date b { position: relative; font-size: 42px; font-weight: 800; line-height: 1; text-shadow: 0 0 14px rgba(0,229,255,.45), 0 4px 8px rgba(0,0,0,.2); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #cbd5e1; transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--blue); }

.recent { margin-top: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; background: linear-gradient(92deg, #1e3a8a 0%, #2563eb 48%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #2563eb; padding: .14em .04em .06em; margin-top: -.14em; margin-bottom: -.06em; }
.sec-head button { font-size: 13px; font-weight: 600; color: var(--blue); }
.recent ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.recent li { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 14px 0 11px; background: #fff; border: 1px solid var(--cyan); border-radius: 16px; }
.recent .ico { width: 40px; height: 40px; border-radius: 20px; background: #e0f0ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.recent .ico svg { width: 20px; height: 20px; }
.recent li div { flex: 1; min-width: 0; }
.recent strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.recent li > b { font-size: 14px; color: var(--blue); white-space: nowrap; }
.demo-note { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--faint); }

/* curved-notch tab bar: white bar with a notch + floating bubble that slides to the active tab */
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; height: calc(72px + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 20; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tb-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; stroke: none; filter: drop-shadow(0 -4px 14px rgba(15,23,42,.08)); pointer-events: none; }
.tb-bg .tb-bar { fill: #fff; }
.tb-bg .tb-hollow { fill: url(#tbg); }
.tb-bubble { position: absolute; left: 0; top: -26px; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); transform: translateX(var(--bx, 0px)); transition: transform .42s cubic-bezier(.34,1.35,.5,1); pointer-events: none; }
.tb-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #00e5ff; box-shadow: 0 0 12px #00e5ff, inset 0 0 10px rgba(0,229,255,.6); opacity: 0; }
.tabbar .tab { position: relative; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 15px; gap: 5px; font-size: 10px; font-weight: 500; color: var(--muted); }
.tabbar .ti { width: 26px; height: 26px; display: grid; place-items: center; transition: transform .42s cubic-bezier(.34,1.35,.5,1), color .2s; }
.tabbar .ti svg { width: 24px; height: 24px; }
.tabbar .tl { transition: color .2s, font-weight .2s; white-space: nowrap; }
/* active: icon lifts into the bubble, label turns bold + dark */
.tabbar .tab.on { color: var(--ink); }
.tabbar .tab.on .tl { font-weight: 700; }
.tabbar .tab.on .ti { transform: translateY(-25px) scale(1.25); color: var(--blue); }
.tabbar .tab.on .ti svg:not(.clv) { fill: rgba(59,130,246,.22); }
.tabbar .clover .clv { width: 26px; height: 26px; overflow: visible; }
.tabbar .clover.on .ti { transform: translateY(-25px) scale(1.5); }
/* CloverX wordmark instead of a text label (logo.png has ~26% empty space top/bottom, trimmed with negative margins) */
.tabbar .tl-logo { display: block; height: 24px; width: auto; margin: -6px 0 -7px; opacity: .72; transition: opacity .2s, transform .2s; }
.tabbar .clover.on .tl-logo { opacity: 1; transform: scale(1.06); }
/* clover tap: neon spin + ring on the bubble */
.tb-bubble.zap { animation: cloverFlash .55s ease-out; }
.tb-bubble.zap::after { animation: ring .55s cubic-bezier(.2,.7,.3,1); }
.tabbar .clover.zap .clv { animation: clvSpin .45s cubic-bezier(.1,.9,.3,1); }
.tabbar .clover.zap .lf { animation: bloom .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes cloverFlash { 25% { box-shadow: 0 0 18px 4px rgba(0,229,255,.75), 0 0 38px 10px rgba(0,160,255,.35); } }
@keyframes ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.85); } }
@keyframes clvSpin { 0% { transform: scale(1) rotate(0deg); filter: none; } 25% { transform: scale(1.14) rotate(200deg); filter: drop-shadow(0 0 5px #00e5ff) drop-shadow(0 0 12px rgba(0,229,255,.8)); } 100% { transform: scale(1) rotate(360deg); filter: none; } }
@keyframes bloom { 30% { transform: translate(calc(var(--tx) * .6), calc(var(--ty) * .6)); } }

.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: 100%; max-width: 430px; background: #fff; border-radius: 24px 24px 0 0; padding: 26px 24px calc(24px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rise .25s cubic-bezier(.16,1,.3,1); }
@keyframes rise { from { transform: translateY(100%); } }
.sheet-card strong { margin-top: 8px; font-size: 17px; }
.sheet-card small { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.sheet-card .btn { width: 100%; }
.link { margin-top: 10px; padding: 8px 16px; color: var(--muted); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 24px rgba(15,23,42,.3); white-space: nowrap; animation: fade .2s ease; }

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

/* ---------- Pre-Order page ---------- */
.recent li.tap { cursor: pointer; transition: transform .15s; }
.recent li.tap:active { transform: scale(.98); }
.po { background: var(--bg); padding-bottom: calc(28px + var(--safe-b)); --c: #d6c1a3; }
.po-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(248,250,252,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.po-top h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 800; }
.po-back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.08); color: var(--ink); }
.po-back svg { width: 20px; height: 20px; }
.po-badge { font-size: 11px; font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 999px; background: linear-gradient(90deg, #1d4ed8, #06b6d4); }

.po-stage { position: relative; height: 330px; margin: 4px 16px 0; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 34%, #fff) 0%, color-mix(in srgb, var(--c) 12%, #f1f5f9) 58%, #e8eef6 100%); transition: background .6s ease; touch-action: pan-y; cursor: grab; }
.po-stage:active { cursor: grabbing; }
.po-glow { position: absolute; left: 50%; top: 44%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%); filter: blur(6px); opacity: .7; transition: background .6s; animation: poBreath 4s ease-in-out infinite; }
@keyframes poBreath { 50% { transform: scale(1.08); opacity: .5; } }
.po-view { position: absolute; left: 50%; top: 26px; width: 230px; height: 250px; margin-left: -115px; perspective: 700px; }
.po-spin { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)); animation: poFloat 4s ease-in-out infinite; }
@keyframes poFloat { 50% { translate: 0 -8px; } }
.po-spin.flourish { animation: poFlourish .8s cubic-bezier(.3,1.2,.4,1), poFloat 4s ease-in-out infinite; }
@keyframes poFlourish { 0% { transform: rotateY(0) scale(.92); } 60% { transform: rotateY(340deg) scale(1.04); } 100% { transform: rotateY(360deg) scale(1); } }
.po-img, .po-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(15,23,42,.22)); user-select: none; -webkit-user-drag: none; }
.po-ph rect { stroke: none; }
.po-ph .ph-pod { fill: color-mix(in srgb, var(--c) 82%, #000); transition: fill .5s; }
.po-ph stop { transition: stop-color .5s; }
.po-img.swap, .po-ph.swap { animation: poSwap .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes poSwap { 0% { opacity: .2; transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }
.po-floor { position: absolute; left: 50%; bottom: 44px; width: 150px; height: 18px; margin-left: -75px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,23,42,.22), transparent); animation: poShadow 4s ease-in-out infinite; }
@keyframes poShadow { 50% { transform: scale(.86); opacity: .7; } }
.po-hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.po-hint svg { width: 15px; height: 15px; animation: poHint 2.4s ease-in-out infinite; }
@keyframes poHint { 50% { transform: rotate(-40deg); } }
.po-tag { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.7); }

.po-body { padding: 18px 20px 0; }
.po-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.po-name { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; }
.po-head small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.po-price { font-size: 22px; font-weight: 800; white-space: nowrap; background: linear-gradient(92deg, #1e3a8a, #2563eb 50%, #06b6d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.po-colors { margin-top: 18px; }
.po-colors p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.po-colors p b { color: var(--ink); display: inline-block; }
.po-colors p b.swap { animation: up .35s ease; }
.sw { display: flex; gap: 14px; }
.sw button { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--s); box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), inset 0 3px 6px rgba(255,255,255,.35), 0 3px 8px rgba(15,23,42,.18); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.sw button::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.sw button[aria-checked="true"] { transform: scale(1.08); }
.sw button[aria-checked="true"]::after { opacity: 1; transform: scale(1); }
.sw button:active { transform: scale(.9); }

.po-ship { margin-top: 20px; padding: 16px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(0,229,255,.28), transparent 40%), linear-gradient(135deg, #0f172a, #1e3a8a 60%, #2563eb); box-shadow: 0 12px 26px -10px rgba(30,58,138,.55); position: relative; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; align-items: baseline; }
.ps-head strong { font-size: 15px; }
.ps-head small { font-size: 12px; color: #bfdbfe; }
.ps-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cu { text-align: center; padding: 8px 0 6px; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); }
.cu b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(0,229,255,.45); }
.cu b.tick { animation: cuTick .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes cuTick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cu small { font-size: 10px; color: #bfdbfe; }
.ps-track { position: relative; margin-top: 18px; padding-top: 30px; }
.ps-road { position: relative; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 10px, transparent 10px 18px); }
.ps-track.driving .ps-road { animation: road .4s linear infinite; }
@keyframes road { to { background-position: -18px 0; } }
.ps-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #60a5fa); box-shadow: 0 0 10px rgba(0,229,255,.7); transition: width 1.8s cubic-bezier(.3,.9,.3,1); }
.ps-truck { position: absolute; top: 0; left: 0; width: 42px; height: 28px; margin-left: -21px; transition: left 1.8s cubic-bezier(.3,.9,.3,1); animation: truckBob .5s ease-in-out infinite; }
.ps-truck svg { width: 100%; height: 100%; }
.ps-truck .tk-body { fill: #fff; } .ps-truck .tk-cab { fill: #38bdf8; }
.ps-track.driving .wh { animation: wheel .35s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes truckBob { 50% { transform: translateY(-1.5px); } }
.ps-steps { position: relative; list-style: none; margin: 10px 0 0; padding: 0; height: 36px; }
.ps-steps li { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #93c5fd; white-space: nowrap; }
.ps-steps li::before { content: ""; width: 10px; height: 10px; margin-top: -19px; border-radius: 50%; background: #1e3a8a; border: 2px solid #60a5fa; }
.ps-steps li.done { color: #e0f2fe; }
.ps-steps li.done::before { background: #22d3ee; border-color: #cffafe; box-shadow: 0 0 8px #22d3ee; }
.ps-steps li.now { color: #fff; font-weight: 700; }
.ps-steps li.now::before { background: #fff; border-color: #22d3ee; animation: nowPulse 1.4s ease-out infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); } 100% { box-shadow: 0 0 0 9px rgba(34,211,238,0); } }
.ps-steps li:first-child { transform: none; align-items: flex-start; }
.ps-steps li:first-child::before { margin-left: 0; }
.ps-steps li:last-child { transform: translateX(-100%); align-items: flex-end; }
.po-cta { width: 100%; margin-top: 14px; }

/* ---------- E-xam: X-VISOR registration ---------- */
.ex { --exb: #1f6fdc; background: var(--bg); padding-bottom: calc(96px + var(--safe-b)); }
.ex-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(14px + var(--safe-t)) 16px 8px; background: #f8fafc; box-shadow: 0 1px 0 rgba(15,23,42,.06); }
.ex-step .ex-in, .ex-step .ex-sel, .ex-step .ex-ta, .ex-step .ag-chips, .ex-step .ag-pad { scroll-margin-top: 110px; }
.ex-back { width: 36px; height: 36px; margin-left: -6px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.ex-back:active { background: #e2e8f0; }
.ex-top h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ex-reg, .ex-status { padding: 0 20px; }
.ex-sub { margin: -2px 0 14px; font-size: 14px; color: var(--muted); }
.ex-prog { margin: 6px 0 22px; }
.ex-prog-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ex-prog-t b { font-size: 14px; font-weight: 700; color: var(--exb); }
.ex-prog-t span { font-size: 12px; color: var(--muted); }
.ex-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ex-bars i { height: 4px; border-radius: 4px; background: #e2e8f0; overflow: hidden; position: relative; }
.ex-bars i::after { content: ""; position: absolute; inset: 0; background: var(--exb); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.3,.8,.3,1); }
.ex-bars i.on::after { transform: none; }
.ex-step { animation: exIn .35s cubic-bezier(.2,.8,.3,1) both; }
.ex-step.back { animation-name: exBackIn; }
@keyframes exIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes exBackIn { from { opacity: 0; transform: translateX(-22px); } }
.ex h3 { margin: 22px 0 12px; font-size: 15px; font-weight: 700; }
.ex-step h3:first-child { margin-top: 0; }
.ex-h3-gap { margin-top: 30px !important; }
.ex-lbl { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.ex-step h3 + .ex-lbl { margin-top: 0; }
.ex-in, .ex-sel, .ex-ta { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--faint); transition: border-color .15s, box-shadow .15s; }
.ex-in:focus-within, .ex-sel:focus-within, .ex-ta:focus { border-color: var(--blue4); box-shadow: 0 0 0 4px rgba(59,130,246,.12); outline: 0; }
.ex-in:focus-within, .ex-sel:focus-within { color: var(--exb); }
.ex-in.bad, .ex-sel.bad, .ex-ta.bad { border-color: #ef4444; }
.ex-in svg { width: 20px; height: 20px; }
.ex-in input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.ex-in input:read-only { color: var(--muted); }
.ex-in:has(input:read-only) { background: #f1f5f9; }
.ex-in input::placeholder, .ex-ta::placeholder { color: var(--faint); }
.ex-ta { display: block; width: 100%; padding: 14px 16px; min-height: 92px; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; }
.ex-sel { position: relative; padding: 0; }
.ex-sel select { flex: 1; height: 50px; padding: 0 44px 0 16px; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.ex-sel select:invalid, .ex-sel select.ph { color: var(--faint); }
.ex-sel svg { position: absolute; right: 16px; pointer-events: none; color: var(--muted); width: 20px; height: 20px; }
.ex-other { margin-top: 8px; }
.ex-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ex-err { margin: 6px 0 0; font-size: 12.5px; color: #dc2626; }
.ex-err:empty { display: none; }
.ex-chk { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; }
.ex-chk input, .ex-agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--exb); flex: none; }
/* exam mode cards */
.ex-modes { display: flex; flex-direction: column; gap: 12px; }
.ex-mode { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .1s; }
.ex-mode:active { transform: scale(.985); }
.ex-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ex-mode:has(input:checked) { border-color: var(--exb); box-shadow: 0 6px 18px rgba(31,111,220,.12); }
.ex-mode:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(59,130,246,.25); }
.ex-mode .mi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: var(--muted); transition: background .2s, color .2s; }
.ex-mode:has(input:checked) .mi { background: #eaf2fe; color: var(--exb); }
.ex-mode .mi svg { width: 20px; height: 20px; }
.ex-mode .mt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ex-mode .mt b { font-size: 15px; font-weight: 700; }
.ex-mode .mt small { font-size: 12.5px; color: var(--muted); }
.ex-mode em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--exb); }
.ex-total { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 18px; border-radius: 14px; background: #eff5fe; }
.ex-total span { font-size: 14px; font-weight: 600; }
.ex-total b { font-size: 20px; font-weight: 700; color: var(--exb); }
/* cards */
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.ex-item { display: flex; justify-content: space-between; align-items: center; }
.ex-item b { display: block; font-size: 15px; font-weight: 700; }
.ex-item small { font-size: 12.5px; color: var(--muted); }
.ex-item strong { font-size: 18px; font-weight: 700; }
.ex-bank { padding: 16px 18px; }
.bk-row { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e8f7ee; color: #138a43; }
.bk-ic svg { width: 20px; height: 20px; }
.bk-row b { display: block; font-size: 15px; font-weight: 700; }
.bk-row small { font-size: 12.5px; color: var(--muted); }
.bk-acc { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 12px; }
.bk-acc small { display: block; font-size: 11.5px; color: var(--faint); }
.bk-acc b { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.bk-copy { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: #eaf2fe; color: var(--exb); font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s; }
.bk-copy svg { width: 16px; height: 16px; }
.bk-copy.ok { background: #e8f7ee; color: #138a43; }
/* upload boxes */
.ex-up { display: block; margin-top: 12px; border: 1.5px dashed #7fa8ea; border-radius: 14px; background: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.ex-up:active { background: #f5f9ff; }
.ex-up.bad { border-color: #ef4444; }
.ex-up.has { border-style: solid; border-color: var(--line); }
.up-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--exb); }
.up-empty svg { width: 26px; height: 26px; margin-bottom: 4px; }
.up-empty b { font-size: 15px; font-weight: 700; }
.up-empty small { font-size: 12px; color: var(--muted); }
.up-done { display: flex; align-items: center; gap: 14px; padding: 12px; }
.up-done img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #f1f5f9; flex: none; }
.up-done > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-done b { font-size: 14px; font-weight: 700; color: #138a43; }
.up-done b::before { content: "✓ "; }
.up-done small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-done em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--exb); }
/* summary */
.ex-sum { padding: 16px 18px; }
.sum-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sum-h b { font-size: 15px; font-weight: 700; }
.sum-h button { font-size: 14px; font-weight: 700; color: var(--exb); padding: 4px 2px; }
.ex-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; margin: 12px 0 0; font-size: 14px; }
.ex-sum dt { color: var(--muted); }
.ex-sum dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.ex-sum dd.sum-fee { font-size: 16px; font-weight: 700; color: var(--exb); }
.ex-agree { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: 12.5px; line-height: 1.6; color: #334155; cursor: pointer; }
.ex-agree input { margin-top: 2px; }
/* sticky footer button */
.ex-foot { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 10; padding: 12px 20px calc(14px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.ex-next { width: 100%; height: 54px; border-radius: 12px; background: var(--exb); color: #fff; font-size: 16px; font-weight: 700; transition: transform .1s, background .2s, color .2s; }
.ex-next:active { transform: scale(.985); }
.ex-next:disabled { background: #e2e8f0; color: var(--faint); cursor: not-allowed; transform: none; }
.ex-next.busy { cursor: wait; }
.ex-next.busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
/* status */
.st-hero { text-align: center; padding: 18px 8px 22px; }
.st-ic { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e8f7ee; color: #16a34a; animation: stPop .5s cubic-bezier(.3,1.6,.5,1) both; }
.st-ic svg { width: 34px; height: 34px; stroke-width: 2.6; }
.st-ic.wait { background: #fff7e6; color: #d97706; }
@keyframes stPop { from { transform: scale(.4); opacity: 0; } }
.st-hero h3 { margin: 0 0 6px !important; font-size: 19px !important; }
.st-hero p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.st-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e8f7ee; color: #138a43; }
.st-badge.wait { background: #fff7e6; color: #b45309; }
/* UX layer: keep phrases together, live ID check, member-email card, coach chips, radio dots, slip scan, success burst */
.ex-agree span, .ex-note, .ex-trust, .st-hero p { text-wrap-style: pretty; }
.nw, .ex-agree .nw { white-space: nowrap; }
.ex-mode { gap: 12px; padding: 16px 14px; }
.ex-mode .mt { min-width: 0; }
.ex-mode .mt b { white-space: nowrap; font-size: 14.5px; }
.ok-ic { color: #16a34a; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ex-in.ok { border-color: #86d8a4; }
.ex-in.ok .ok-ic { opacity: 1; transform: none; }
p.ex-lbl { margin-bottom: 4px; }
.ex-note-top { margin: 0 0 10px; }
.ex-same { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ex-same input { position: absolute; opacity: 0; pointer-events: none; }
.ex-same:has(input:checked) { border-color: var(--exb); background: #f5f9ff; }
.ex-same:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(59,130,246,.25); }
.sm-box { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 2px solid #cbd5e1; color: #fff; transition: background .2s, border-color .2s; }
.sm-box svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ex-same:has(input:checked) .sm-box { background: var(--exb); border-color: var(--exb); }
.ex-same:has(input:checked) .sm-box svg { opacity: 1; transform: none; }
.sm-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-t b { font-size: 14px; font-weight: 600; }
.sm-t small { font-size: 13px; font-weight: 600; color: var(--exb); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-same:not(:has(input:checked)) .sm-t small { color: var(--faint); font-weight: 500; text-decoration: line-through; }
.ex-email { margin-top: 10px; animation: exDrop .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes exDrop { from { opacity: 0; transform: translateY(-6px); } }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chips button { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: #334155; transition: background .2s, border-color .2s, color .2s, transform .1s; }
.ex-chips button:active { transform: scale(.96); }
.ex-chips button[aria-checked=true] { background: var(--exb); border-color: var(--exb); color: #fff; box-shadow: 0 4px 12px rgba(31,111,220,.25); }
.ex-chips.bad button { border-color: #fca5a5; }
.ex-mode.off { cursor: not-allowed; background: #f8fafc; }
.ex-mode.off .mt b, .ex-mode.off em { color: #94a3b8; }
.ex-mode.off .mt small { color: #b45309; }
.ex-mode.off:active { transform: none; }
.ex-mode .rd { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #cbd5e1; transition: border .2s; }
.ex-mode:has(input:checked) .rd { border: 6px solid var(--exb); }
.ex-trust { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.ex-trust svg { width: 16px; height: 16px; margin-top: 1px; color: #16a34a; }
.ex-verify { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(15,23,42,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: in .2s ease both; }
.vf-card { width: min(300px, 82vw); padding: 24px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(15,23,42,.3); }
.vf-slip { position: relative; width: 110px; height: 150px; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; background: #f1f5f9; box-shadow: inset 0 0 0 1px var(--line); }
.vf-slip img { width: 100%; height: 100%; object-fit: cover; }
.vf-scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(0,229,255,.45) 80%, #00e5ff); box-shadow: 0 2px 12px #00e5ff; animation: vfScan 1.3s ease-in-out infinite alternate; }
@keyframes vfScan { to { transform: translateY(114px); } }
.vf-card b { display: block; margin-bottom: 4px; font-size: 16px; }
.vf-card small { font-size: 12.5px; color: var(--muted); }
.st-hero { position: relative; }
.st-burst { position: absolute; left: 50%; top: 54px; width: 0; height: 0; pointer-events: none; }
.st-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; opacity: 0; background: var(--exb); }
.st-burst i:nth-child(3n+1) { background: #22c55e; } .st-burst i:nth-child(3n+2) { background: #00c0e8; border-radius: 50%; }
.st-burst i:nth-child(1) { --a: 0deg; } .st-burst i:nth-child(2) { --a: 36deg; } .st-burst i:nth-child(3) { --a: 72deg; } .st-burst i:nth-child(4) { --a: 108deg; } .st-burst i:nth-child(5) { --a: 144deg; }
.st-burst i:nth-child(6) { --a: 180deg; } .st-burst i:nth-child(7) { --a: 216deg; } .st-burst i:nth-child(8) { --a: 252deg; } .st-burst i:nth-child(9) { --a: 288deg; } .st-burst i:nth-child(10) { --a: 324deg; }
.st-burst.go i { animation: burst .9s cubic-bezier(.1,.8,.3,1) .15s forwards; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-80px) rotate(160deg) scale(.5); } }
/* exam rounds */
.ex-rounds { display: flex; flex-direction: column; gap: 10px; }
.rc { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, transform .1s; }
.rc:active { transform: scale(.985); }
.rc[aria-checked=true] { border-color: var(--exb); box-shadow: 0 6px 18px rgba(31,111,220,.12); }
.rc:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.rc-d { width: 48px; height: 52px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #f1f5f9; color: var(--ink); transition: background .2s, color .2s; }
.rc[aria-checked=true] .rc-d { background: var(--exb); color: #fff; }
.rc-d b { font-size: 19px; line-height: 1.1; }
.rc-d small { font-size: 11px; font-weight: 600; }
.rc-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-t b { font-size: 14.5px; }
.rc-t small { font-size: 12.5px; color: var(--muted); }
.rc-s { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: #138a43; background: #e8f7ee; }
.rc-s.low { color: #b45309; background: #fff7e6; }
.rc-s.full { color: var(--muted); background: #f1f5f9; }
.ex-rounds.bad .rc { border-color: #fca5a5; }
.ex-empty { margin: 0; padding: 18px; text-align: center; font-size: 13px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
/* ---------- exam flourishes: glowing progress clover, animated mode icons, clover confetti, pass, countdown, timeline ---------- */
.ex-bars { position: relative; }
.ex-clv { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; transform: translate(-50%, -50%); transition: left .55s cubic-bezier(.3,.8,.3,1); filter: drop-shadow(0 0 4px rgba(0,229,255,.9)) drop-shadow(0 0 10px rgba(31,111,220,.6)); pointer-events: none; }
.ex-clv svg { width: 100%; height: 100%; display: block; fill: var(--exb); stroke: none; animation: clvGlow 2.2s ease-in-out infinite; }
.ex-clv.hop svg { animation: clvHop .6s cubic-bezier(.3,1.4,.5,1), clvGlow 2.2s ease-in-out .6s infinite; }
@keyframes clvHop { 0% { transform: rotate(-120deg) scale(.5); } 60% { transform: rotate(18deg) scale(1.25); } 100% { transform: none; } }
@keyframes clvGlow { 50% { fill: #00c0e8; } }
.mi-pin { position: relative; }
.mi-pin::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 10px; height: 3px; margin-left: -5px; border-radius: 50%; background: rgba(31,111,220,.3); transform: scale(0); }
.ex-mode:has(input:checked) .mi-pin svg { animation: pinDrop .65s cubic-bezier(.3,1.6,.5,1); }
.ex-mode:has(input:checked) .mi-pin::after { animation: pinShadow .65s ease-out forwards; }
@keyframes pinDrop { 0% { transform: translateY(-10px) scale(.8); opacity: .3; } 60% { transform: translateY(1px) scale(1.06, .94); opacity: 1; } }
@keyframes pinShadow { 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.ex-mode:has(input:checked) .mi-mon .scr { animation: monOn .8s ease-out forwards; }
.ex-mode:has(input:checked) .mi-mon svg { animation: monPop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes monOn { 0% { fill: rgba(31,111,220,0); } 30% { fill: rgba(0,229,255,.6); } 100% { fill: rgba(31,111,220,.18); } }
@keyframes monPop { 50% { transform: scale(1.15); } }
.ex-soon { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 13px; font-weight: 700; color: var(--exb); animation: exDrop .3s ease both; }
.ex-soon svg { width: 16px; height: 16px; }
.st-burst i { width: 13px; height: 13px; left: -6px; top: -6px; border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg transform='rotate(45 10 10)'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Ccircle cx='14' cy='6' r='4.6'/%3E%3Ccircle cx='6' cy='14' r='4.6'/%3E%3Ccircle cx='14' cy='14' r='4.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg transform='rotate(45 10 10)'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Ccircle cx='14' cy='6' r='4.6'/%3E%3Ccircle cx='6' cy='14' r='4.6'/%3E%3Ccircle cx='14' cy='14' r='4.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.st-burst i:nth-child(1) { --a: 0deg; } .st-burst i:nth-child(2) { --a: 26deg; } .st-burst i:nth-child(3) { --a: 51deg; } .st-burst i:nth-child(4) { --a: 77deg; } .st-burst i:nth-child(5) { --a: 103deg; } .st-burst i:nth-child(6) { --a: 129deg; } .st-burst i:nth-child(7) { --a: 154deg; } .st-burst i:nth-child(8) { --a: 180deg; } .st-burst i:nth-child(9) { --a: 206deg; } .st-burst i:nth-child(10) { --a: 231deg; } .st-burst i:nth-child(11) { --a: 257deg; } .st-burst i:nth-child(12) { --a: 283deg; } .st-burst i:nth-child(13) { --a: 309deg; } .st-burst i:nth-child(14) { --a: 334deg; }
.st-rain { position: fixed; left: 50%; top: 0; width: 100%; max-width: 430px; height: 0; transform: translateX(-50%); pointer-events: none; z-index: 30; }
.st-rain i { position: absolute; top: -24px; width: 14px; height: 14px; opacity: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg transform='rotate(45 10 10)'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Ccircle cx='14' cy='6' r='4.6'/%3E%3Ccircle cx='6' cy='14' r='4.6'/%3E%3Ccircle cx='14' cy='14' r='4.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg transform='rotate(45 10 10)'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Ccircle cx='14' cy='6' r='4.6'/%3E%3Ccircle cx='6' cy='14' r='4.6'/%3E%3Ccircle cx='14' cy='14' r='4.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.st-rain.go i { animation: cloverRain 2.6s cubic-bezier(.3,.6,.4,1) var(--dl) forwards; }
@keyframes cloverRain { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), 92vh) rotate(var(--rt)); } }
.st-rain i:nth-child(1) { left: 4%; --dl: 0.66s; --dx: -10px; --rt: 533deg; background: #22c55e; }
.st-rain i:nth-child(2) { left: 8%; --dl: 0.05s; --dx: 8px; --rt: 248deg; background: #00c0e8; }
.st-rain i:nth-child(3) { left: 16%; --dl: 0.41s; --dx: 56px; --rt: 459deg; background: #16a34a; }
.st-rain i:nth-child(4) { left: 21%; --dl: 0.03s; --dx: -5px; --rt: 414deg; background: #60a5fa; }
.st-rain i:nth-child(5) { left: 26%; --dl: 0.17s; --dx: 10px; --rt: 417deg; background: #1f6fdc; }
.st-rain i:nth-child(6) { left: 32%; --dl: 0.58s; --dx: -45px; --rt: 314deg; background: #22c55e; }
.st-rain i:nth-child(7) { left: 42%; --dl: 0.66s; --dx: 13px; --rt: 499deg; background: #00c0e8; }
.st-rain i:nth-child(8) { left: 47%; --dl: 0.03s; --dx: -32px; --rt: 223deg; background: #16a34a; }
.st-rain i:nth-child(9) { left: 54%; --dl: 0.60s; --dx: -23px; --rt: 414deg; background: #60a5fa; }
.st-rain i:nth-child(10) { left: 57%; --dl: 0.38s; --dx: 13px; --rt: 357deg; background: #1f6fdc; }
.st-rain i:nth-child(11) { left: 66%; --dl: 0.57s; --dx: -37px; --rt: 252deg; background: #22c55e; }
.st-rain i:nth-child(12) { left: 72%; --dl: 0.40s; --dx: -36px; --rt: 390deg; background: #00c0e8; }
.st-rain i:nth-child(13) { left: 74%; --dl: 0.38s; --dx: -52px; --rt: 488deg; background: #16a34a; }
.st-rain i:nth-child(14) { left: 80%; --dl: 0.43s; --dx: 3px; --rt: 548deg; background: #60a5fa; }
.st-rain i:nth-child(15) { left: 90%; --dl: 0.30s; --dx: -20px; --rt: 438deg; background: #1f6fdc; }
.st-rain i:nth-child(16) { left: 96%; --dl: 0.65s; --dx: -14px; --rt: 353deg; background: #22c55e; }
.tk { position: relative; margin-top: 4px; border-radius: 20px; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(59,130,246,.9) 0%, transparent 55%), linear-gradient(145deg, #0d268c, #1a4dbf 55%, #1f6fdc); box-shadow: 0 16px 36px rgba(13,38,140,.3); }
.tk::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); background-size: 250% 100%; animation: tkShine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes tkShine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -60% 0; } }
.tk-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; }
.tk-brand { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; }
.tk-brand svg { width: 18px; height: 18px; fill: #7dd3fc; stroke: none; }
.tk-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(34,197,94,.2); color: #bbf7d0; box-shadow: inset 0 0 0 1px rgba(187,247,208,.4); }
.tk-badge.wait { background: rgba(251,191,36,.18); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(253,230,138,.4); }
.tk-kicker { margin: 14px 20px 2px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.65); }
.tk-name { margin: 0 20px; font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px 18px; }
.tk-grid small { display: block; font-size: 11px; color: rgba(255,255,255,.6); }
.tk-grid b { font-size: 14px; font-weight: 700; }
.tk-wide { grid-column: 1 / -1; }
.tk-cut { position: relative; height: 0; margin: 0 18px; border-top: 2px dashed rgba(255,255,255,.3); }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.tk-cut::before { left: -32px; }
.tk-cut::after { right: -32px; }
.tk-bot { display: flex; align-items: center; gap: 16px; padding: 18px 20px 20px; }
.tk-qr { width: 96px; height: 96px; flex: none; display: grid; place-items: center; padding: 8px; border-radius: 12px; background: #fff; }
.tk-qr img { width: 100%; height: 100%; display: block; }
.tk.pending .tk-qr { background: repeating-conic-gradient(#cbd5e1 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.qr-lock { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,23,42,.78); color: #fff; }
.qr-lock svg { width: 20px; height: 20px; }
.tk-code { min-width: 0; }
.tk-code small { display: block; font-size: 11px; color: rgba(255,255,255,.6); }
.tk-code b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tk-code em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.78); }
.st-save { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--exb); }
.st-save svg { width: 18px; height: 18px; }
.st-count, .st-tlc { margin-top: 12px; }
.sc-t { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.sc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-row div { padding: 10px 0 8px; border-radius: 12px; background: #f1f5f9; text-align: center; }
.sc-row b { display: block; font-size: 22px; font-weight: 800; color: var(--exb); font-variant-numeric: tabular-nums; }
.sc-row small { font-size: 11.5px; color: var(--muted); }
.sc-cal { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 12px; border-radius: 12px; background: #eaf2fe; color: var(--exb); font-size: 14px; font-weight: 700; text-decoration: none; }
.sc-cal svg { width: 18px; height: 18px; }
.st-tl { list-style: none; margin: 0; padding: 0; }
.st-tl li { position: relative; padding: 0 0 16px 30px; }
.st-tl li:last-child { padding-bottom: 0; }
.st-tl li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.st-tl li:last-child::before { display: none; }
.st-tl li.done::before { background: #22c55e; }
.st-tl .dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.st-tl li.done .dot { background: #22c55e; border-color: #22c55e; }
.st-tl li.done .dot::after { content: ""; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.st-tl li.now .dot { border-color: var(--exb); animation: tlPulse 1.6s ease-in-out infinite; }
.st-tl li.now .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--exb); }
@keyframes tlPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(31,111,220,.16); } 50% { box-shadow: 0 0 0 8px rgba(31,111,220,.05); } }
.st-tl b { display: block; font-size: 14px; }
.st-tl small { font-size: 12.5px; color: var(--muted); }
.st-tl li.todo b { color: var(--faint); }
/* ---------- exam: ID scan, postcode address, instant slip check, push reminders ---------- */
.ex-scan { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 18px; padding: 14px 16px; text-align: left; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0d268c, #1f6fdc 60%, #00b4e0); box-shadow: 0 10px 24px rgba(31,111,220,.25); transition: transform .1s; }
.ex-scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); animation: scanSweep 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes scanSweep { 60%, 100% { left: 110%; } }
.ex-scan:active { transform: scale(.985); }
.sc-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); }
.sc-ic svg { width: 22px; height: 22px; }
.sc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-tx b { font-size: 15px; }
.sc-tx small { font-size: 12px; color: rgba(255,255,255,.82); }
.sc-go { width: 18px; height: 18px; opacity: .85; }
.vf-card-id { width: 210px; height: 132px; }
.ocr-note { margin: 10px 0 0; font-size: 11.5px; color: var(--faint); }
.ex-zip { display: grid; grid-template-columns: 38% 1fr; gap: 10px; margin-top: 10px; }
.ex-zip-in input { letter-spacing: .06em; }
.ex-area.loading { opacity: .55; }
.ex-area select:disabled { color: var(--faint); }
.ex-addr-full { margin: 8px 2px 0; font-size: 13px; font-weight: 600; color: var(--exb); }
.filled { animation: filled 1.6s ease-out; }
@keyframes filled { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.7); border-color: #00c0e8; } 100% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } }
.up-chk { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; animation: exDrop .3s ease both; }
.up-chk b { font-size: 13.5px; }
.up-chk.busy { flex-direction: row; align-items: center; gap: 8px; background: #f1f5f9; color: var(--muted); }
.up-chk .sp { width: 14px; height: 14px; flex: none; border: 2px solid #cbd5e1; border-top-color: var(--exb); border-radius: 50%; animation: spin .7s linear infinite; }
.up-chk.ok { background: #e8f7ee; color: #166534; }
.up-chk.ok b::before { content: "✓ "; }
.up-chk.bad { background: #fef2f2; color: #b91c1c; }
.up-chk.wait { background: #fff7e6; color: #92400e; }
.st-push { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sp-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #eaf2fe; color: var(--exb); }
.sp-ic svg { width: 20px; height: 20px; }
.st-push.on .sp-ic { background: #e8f7ee; color: #16a34a; animation: bell 1.2s ease-in-out 1; }
@keyframes bell { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.sp-tx { flex: 1; min-width: 0; }
.sp-tx b { display: block; font-size: 14px; }
.sp-tx small { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sp-btn { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--exb); color: #fff; font-size: 13.5px; font-weight: 700; }
.st-push.on .sp-btn { background: #eaf2fe; color: var(--exb); }
.sp-btn:disabled { opacity: .6; }
/* ---------- exam: venue, prep guide, checklist, certified badge, share card ---------- */
.st-place, .st-guide { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: inherit; text-decoration: none; }
.pl-ic, .gd-play { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.pl-ic { background: #fef2f2; color: #dc2626; }
.pl-ic svg, .gd-play svg { width: 20px; height: 20px; }
.pl-tx, .gd-tx { flex: 1; min-width: 0; }
.pl-tx b, .gd-tx b { display: block; font-size: 14px; }
.pl-tx small, .gd-tx small { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pl-go { flex: none; height: 36px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--exb); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.gd-play { background: #fee2e2; color: #dc2626; }
.gd-play svg { fill: currentColor; stroke: none; }
.gd-go { width: 18px; height: 18px; color: var(--faint); }
.st-guide:active, .st-place:active { transform: scale(.99); }
.st-check { margin-top: 12px; }
.ck-count { float: right; font-size: 12.5px; font-weight: 700; color: var(--exb); }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list li + li { border-top: 1px solid var(--line); }
.ck-list label { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; cursor: pointer; }
.ck-list input { position: absolute; opacity: 0; pointer-events: none; }
.ck-box { width: 22px; height: 22px; flex: none; display: grid; place-items: center; margin-top: 1px; border-radius: 7px; border: 2px solid #cbd5e1; color: #fff; transition: background .2s, border-color .2s; }
.ck-box svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ck-list li.on .ck-box { background: #22c55e; border-color: #22c55e; }
.ck-list li.on .ck-box svg { opacity: 1; transform: none; }
.ck-t { font-size: 13.5px; line-height: 1.55; }
.ck-list li.on .ck-t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100,116,139,.5); }
.ck-list li.later .ck-t { color: var(--muted); }
.ck-sub { margin: -4px 0 6px; font-size: 12.5px; font-weight: 700; color: #b45309; }
.ck-list li.ck-group { padding: 12px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--exb); }
.ck-list li.ck-group + li { border-top: 0; }
.ck-t em { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; color: #b45309; background: #fff7e6; text-decoration: none; }
.cert { position: relative; overflow: hidden; margin-top: 4px; padding: 26px 20px 22px; border-radius: 20px; text-align: center; color: #fff; background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(150deg, #0d268c, #1a4dbf 60%, #00b4e0); box-shadow: 0 16px 36px rgba(13,38,140,.3); }
.cert::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255,255,255,.07) 0 10deg, transparent 10deg 30deg); animation: rays 20s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.ct-medal { position: relative; width: 92px; height: 92px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #7a4d00; background: radial-gradient(circle at 35% 30%, #fff7cc, #f5c542 55%, #c98a0b); box-shadow: 0 0 0 5px rgba(255,255,255,.5), 0 10px 26px rgba(0,0,0,.25); animation: medalIn .8s cubic-bezier(.3,1.5,.5,1) both; }
.ct-medal svg { width: 44px; height: 44px; stroke-width: 2.4; }
@keyframes medalIn { from { transform: scale(.3) rotate(-40deg); opacity: 0; } }
.ct-k { position: relative; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .3em; color: #fde68a; }
.cert h4 { position: relative; margin: 2px 0 6px; font-size: 28px; font-weight: 900; letter-spacing: .02em; }
.ct-name { position: relative; margin: 0; font-size: 16px; font-weight: 700; }
.ct-meta { position: relative; margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.78); }
.st-share { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 10px; border-radius: 12px; background: linear-gradient(90deg, #f59e0b, #f5c542); color: #422006; font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.st-share svg { width: 18px; height: 18px; }
.st-tl li.fail .dot { background: #ef4444; border-color: #ef4444; }
.sh-badge { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #7a4d00; background: linear-gradient(90deg, #fde68a, #f5c542); box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.sh-badge svg { width: 16px; height: 16px; }
/* ---------- exam: reschedule sheet, coach team page ---------- */
.sc-move { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 8px; border-radius: 12px; background: none; border: 1px dashed #93b4ee; color: var(--exb); font-size: 13.5px; font-weight: 700; }
.sc-move svg { width: 16px; height: 16px; }
.mv-sheet { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); animation: in .2s ease both; }
.mv-card { width: 100%; max-width: 430px; max-height: 80vh; overflow: auto; padding: 20px 20px calc(18px + var(--safe-b)); border-radius: 22px 22px 0 0; background: #fff; animation: mvUp .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes mvUp { from { transform: translateY(40px); opacity: 0; } }
.mv-card h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.mv-note { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.mv-act { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.mv-act button { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.mv-cancel { background: #f1f5f9; color: var(--ink); }
.mv-ok { background: var(--exb); color: #fff; }
.mv-ok:disabled { background: #e2e8f0; color: var(--faint); }

/* ---------- certified card v2: CI white -> blue gradient with neon ---------- */
@property --fa { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cert { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; position: relative; overflow: visible; margin-top: 4px; padding: 2px; border-radius: 24px; text-align: center; color: #fff;
  background: conic-gradient(from var(--fa), #7df9ff, #1f6fdc, #00e5ff, #ffffff, #3b5bff, #7df9ff); animation: foil 5s linear infinite;
  box-shadow: 0 0 0 1px rgba(125,249,255,.5), 0 0 18px rgba(0,229,255,.55), 0 0 48px rgba(31,111,220,.35), 0 20px 44px rgba(13,38,140,.3);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; }
.cert::before { display: none; }
.cert.tilt { transition: transform .08s linear; }
@keyframes foil { to { --fa: 360deg; } }
.cert.in { animation: foil 5s linear infinite, certIn 1s cubic-bezier(.2,1.3,.4,1) both, neonPulse 3s 1s ease-in-out infinite; }
@keyframes certIn { 0% { opacity: 0; transform: perspective(900px) rotateX(70deg) translateY(30px) scale(.8); } 60% { opacity: 1; } }
@keyframes neonPulse { 50% { box-shadow: 0 0 0 1px rgba(125,249,255,.8), 0 0 28px rgba(0,229,255,.8), 0 0 70px rgba(31,111,220,.5), 0 20px 44px rgba(13,38,140,.3); } }
.ct-in { position: relative; overflow: hidden; padding: 30px 20px 18px; border-radius: 22px; isolation: isolate;
  background: radial-gradient(80% 50% at 50% 18%, rgba(0,229,255,.35), transparent 70%), linear-gradient(160deg, #0b1f7a 0%, #1740b0 50%, #1f7fe0 100%); }
.ct-aur i { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(34px); opacity: .45; animation: aur 12s ease-in-out infinite alternate; }
.ct-aur i:nth-child(1) { left: -25%; top: -20%; background: #7df9ff; }
.ct-aur i:nth-child(2) { right: -28%; top: 5%; background: #8fb3ff; animation-delay: -4s; }
.ct-aur i:nth-child(3) { left: 15%; bottom: -40%; background: #00e5ff; animation-delay: -8s; opacity: .55; }
@keyframes aur { 50% { transform: translate(12%, 8%) scale(1.15); } 100% { transform: translate(-8%, 12%) scale(.9); } }
.ct-rays { position: absolute; z-index: -1; left: 50%; top: 92px; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(0,170,255,.13) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%); animation: rays 40s linear infinite; }
.ct-in::after { content: ""; position: absolute; z-index: -1; left: -50%; right: -50%; bottom: -10px; height: 46%; transform-origin: 50% 100%; transform: perspective(260px) rotateX(58deg);
  background-image: linear-gradient(rgba(125,249,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(125,249,255,.55) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); animation: grid 2.4s linear infinite; filter: drop-shadow(0 0 3px #00e5ff); }
@keyframes grid { to { background-position: 0 26px, 0 0; } }
.ct-spk i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 0; opacity: 0;
  background: radial-gradient(closest-side, #fff, #7df9ff 35%, transparent); filter: drop-shadow(0 0 3px #00e5ff);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spk 3.6s ease-in-out infinite; animation-delay: var(--d); }
.ct-spk i:nth-child(-n+2), .ct-spk i:nth-child(7) { background: radial-gradient(closest-side, #fff, #1f6fdc 40%, transparent); }
@keyframes spk { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1.3) rotate(90deg); } }
.ct-medal { position: relative; width: 124px; height: 124px; margin: 0 auto 14px; display: block; border-radius: 0; background: none; box-shadow: none; animation: none; color: #7df9ff; }
.ct-medal svg, .ct-brand svg { stroke: none; }
.cert.in .ct-medal { animation: medalIn 1.1s .25s cubic-bezier(.3,1.5,.5,1) both; }
.md-halo { position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,229,255,.5), transparent); animation: halo 3s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.14); opacity: .6; } }
.ct-medal .md-laurel { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(0,229,255,.9)); }
.md-coin { position: absolute; inset: 22px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; transform-style: preserve-3d;
  background: radial-gradient(circle at 32% 28%, #ffffff, #bfe6ff 40%, #2f7cf0 80%, #0d268c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), inset 0 -6px 14px rgba(13,38,140,.5), 0 0 0 2px #7df9ff, 0 0 16px #00e5ff, 0 0 36px rgba(0,229,255,.6);
  animation: coin 7s ease-in-out infinite; }
.md-coin svg { width: 46px; height: 46px; fill: #fff; filter: drop-shadow(0 0 4px #00e5ff) drop-shadow(0 0 10px rgba(0,229,255,.7)); }
.md-coin::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%); transform: translateX(-100%); animation: shine 3.5s 1.2s ease-in-out infinite; }
@keyframes coin { 0%, 70% { transform: rotateY(0); } 85% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.ct-k { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .42em; color: #93c5fd; text-indent: .42em; text-shadow: 0 0 10px rgba(0,229,255,.6); }
.ct-k::before, .ct-k::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #1f6fdc); }
.ct-k::after { transform: scaleX(-1); }
.cert h4 { position: relative; margin: 4px 0 8px; font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: .01em;
  background: linear-gradient(100deg, #0d268c 0%, #1f6fdc 25%, #00b4e0 42%, #e6fdff 50%, #00b4e0 58%, #1f6fdc 75%, #0d268c 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(0,229,255,.75)) drop-shadow(0 0 18px rgba(0,229,255,.45)); animation: neontx 4s linear infinite; }
@keyframes neontx { to { background-position: -220% 0; } }
.ct-name { position: relative; margin: 0; font-size: 18px; font-weight: 800; text-shadow: 0 0 12px rgba(0,229,255,.7), 0 2px 8px rgba(13,38,140,.5); }
.ct-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ct-pills span { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ct-pills #ctScore { background: rgba(0,229,255,.2); border-color: #7df9ff; box-shadow: 0 0 10px rgba(0,229,255,.7), inset 0 0 8px rgba(125,249,255,.4); text-shadow: 0 0 6px #00e5ff; }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(125,249,255,.4); font-size: 11.5px; color: rgba(255,255,255,.75); }
.ct-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; letter-spacing: .02em; text-shadow: 0 0 8px rgba(0,229,255,.8); }
.ct-brand svg { width: 15px; height: 15px; fill: #7df9ff; filter: drop-shadow(0 0 4px #00e5ff); }
.ct-no { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: #bff8ff; }
.ct-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; mix-blend-mode: overlay; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.8), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(125,249,255,.45) 45%, rgba(143,179,255,.4) 55%, transparent 70%); }
.cert.tilt .ct-glare { opacity: 1; }
.st-share { color: #fff; background: linear-gradient(90deg, #1f6fdc, #00b4e0, #3b5bff, #1f6fdc); background-size: 200% 100%; animation: neontx 4s linear infinite;
  box-shadow: 0 0 0 1px rgba(125,249,255,.6), 0 0 16px rgba(0,229,255,.55), 0 8px 20px rgba(31,111,220,.3); text-shadow: 0 0 8px rgba(125,249,255,.8); }
@media (prefers-reduced-motion: reduce) {
  .cert, .cert.in, .ct-aur i, .ct-rays, .ct-in::after, .ct-spk i, .md-halo, .md-coin, .md-coin::after, .cert h4, .st-share, .cert.in .ct-medal { animation: none !important; }
  .ct-spk i { opacity: .7; }
}

/* ---------- E-Learning ---------- */
.el-course { overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(15,23,42,.06); animation: exDrop .35s ease both; }
.el-player { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0d268c, #1f6fdc 60%, #00b4e0); }
.el-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.el-body { padding: 14px 16px 16px; }
.el-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #1f6fdc; background: #eaf2fe; }
.el-body h3 { margin: 8px 0 2px; font-size: 17px; font-weight: 800; }
.el-body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.el-yt { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.el-yt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- E-Learning: own video player, lesson list, admin ---------- */
.el-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.el-player [hidden] { display: none; }
.el-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.el-bar { flex: 1; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.el-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1f6fdc, #00b4e0); box-shadow: 0 0 10px rgba(0,180,224,.6); transition: width .6s cubic-bezier(.3,.8,.3,1); }
.el-prog b { font-size: 13px; font-weight: 800; color: #1f6fdc; white-space: nowrap; }
.el-prog.all b { color: #138a43; }
.el-prog.all .el-bar i { background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 10px rgba(34,197,94,.5); }
.el-list { list-style: none; margin: 0; padding: 0 8px 8px; border-top: 1px solid var(--line); }
.el-list button { --pct: 0%; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px; border-radius: 12px; text-align: left; background: none; color: inherit; }
.el-list li + li button { border-top: 1px solid var(--line); border-radius: 0; }
.el-list li.on button { background: #eaf2fe; border-radius: 12px; border-top-color: transparent; }
.el-list li.on + li button { border-top-color: transparent; }
.el-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; color: #1f6fdc; background: conic-gradient(#1f6fdc var(--pct), #e2e8f0 0); position: relative; }
.el-n::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.el-n > * , .el-n { z-index: 0; }
.el-list li .el-n { isolation: isolate; }
.el-list li .el-n::before { z-index: -1; }
.el-list li.done .el-n { background: #22c55e; color: #fff; }
.el-list li.done .el-n::before { display: none; }
.el-n svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.el-t { flex: 1; min-width: 0; }
.el-t b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-t small { font-size: 12px; color: var(--muted); }
.el-p { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.el-list li.done .el-p { color: #138a43; }
.el-admin { margin-top: 14px; }
.el-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #b45309; background: #fff7e6; vertical-align: 1px; }
.el-file { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px dashed #93b4ee; border-radius: 14px; color: #1f6fdc; font-size: 14px; font-weight: 700; cursor: pointer; background: #f5f9ff; }
.el-file input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.el-file svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.el-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-in { display: block; width: 100%; height: 46px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.el-in:focus { outline: none; border-color: #1f6fdc; box-shadow: 0 0 0 3px rgba(31,111,220,.15); }
.el-sel { margin-top: 10px; }
.el-up { width: 100%; height: 46px; margin-top: 10px; border-radius: 12px; background: #1f6fdc; color: #fff; font-size: 15px; font-weight: 700; }
.el-up:disabled { background: #e2e8f0; color: var(--faint); }
.el-upbar { position: relative; height: 30px; margin-top: 10px; border-radius: 999px; overflow: hidden; background: #e2e8f0; }
.el-upbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #1f6fdc, #00b4e0); transition: width .3s; }
.el-upbar span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.el-mlist { list-style: none; margin: 12px 0 0; padding: 0; }
.el-mlist li { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.el-mt { flex: 1; min-width: 0; }
.el-mt b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-mt small { font-size: 12px; color: var(--muted); }
.el-mv { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; color: #334155; }
.el-mv:disabled { opacity: .35; }
.el-mv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.el-del { flex: none; height: 32px; padding: 0 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; font-weight: 700; }
.el-del.sure { background: #dc2626; color: #fff; }
.el-mlist li.el-empty { justify-content: center; font-size: 13px; color: var(--muted); text-align: center; }
.el-sumt { margin-top: 18px; }
.el-sumt a { float: right; font-size: 12.5px; font-weight: 700; color: #1f6fdc; text-decoration: none; }
.el-cnt { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #1f6fdc; background: #eaf2fe; }
.el-cnt.all { color: #138a43; background: #e8f7ee; }

/* ---------- E-Learning (YouTube player inside the app) ---------- */
.el-player > div:first-child, .el-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.el-end { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, rgba(0,180,224,.35), transparent 60%), linear-gradient(160deg, #0a1a5c, #0d268c 60%, #1f4fd6); animation: in .3s ease both; }
.el-end b { font-size: 15px; font-weight: 800; line-height: 1.5; text-shadow: 0 0 12px rgba(0,229,255,.6); }
.el-end button { height: 42px; padding: 0 20px; border-radius: 999px; background: #fff; color: #1f6fdc; font-size: 14px; font-weight: 800; box-shadow: 0 0 0 1px rgba(125,249,255,.7), 0 0 18px rgba(0,229,255,.5); }
.el-hint { margin: 10px 2px 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.el-emptybox { padding: 28px 16px; border-radius: 16px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 14px; background: #fff; }

/* ---------- agent application + agreement ---------- */
.ag-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; border: 1.5px solid #bfd6fb; background: linear-gradient(135deg, #f5f9ff, #eaf2fe); }
.ag-cta.done { border-color: #bbe5c8; background: linear-gradient(135deg, #f3fbf6, #e8f7ee); }
.ag-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #1f6fdc; color: #fff; box-shadow: 0 6px 16px rgba(31,111,220,.3); }
.ag-cta.done .ag-ic { background: #16a34a; box-shadow: 0 6px 16px rgba(22,163,74,.25); }
.ag-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-tx { flex: 1; min-width: 0; }
.ag-tx b { display: block; font-size: 14.5px; }
.ag-tx small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ag-go, .ag-dl { flex: none; height: 38px; padding: 0 16px; display: grid; place-items: center; border-radius: 999px; background: #1f6fdc; color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.ag-dl { background: #fff; color: #16a34a; border: 1px solid #bbe5c8; }
.ag-bars { grid-template-columns: repeat(5, 1fr); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chips label { position: relative; }
.ag-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ag-chips span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; transition: all .15s; }
.ag-chips input:checked + span { border-color: var(--exb); background: #eaf2fe; color: var(--exb); box-shadow: 0 0 0 3px rgba(31,111,220,.12); }
.ag-chips input:focus-visible + span { outline: 2px solid var(--exb); outline-offset: 2px; }
.ag-chips.bad span { border-color: #ef4444; }
.ag-other { margin-top: 10px; }
.ag-cur { margin-top: 10px; }
.ag-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-2 .ex-in input[type=date] { font: inherit; font-size: 15px; }
.ag-2 > div { min-width: 0; }
.ag-2 .ex-in { padding: 0 12px; }
.ag-2 .ex-in input { width: 100%; min-width: 0; }
.ag-age { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: #16a34a; }
.ag-age.warn { color: #b45309; }
.ag-h3 { margin-top: 24px !important; }
.ag-h3 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ag-terms { max-height: 46vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 13px; line-height: 1.65; color: #334155; -webkit-overflow-scrolling: touch; }
.ag-terms h4 { margin: 4px 0 8px; font-size: 14.5px; color: #12307a; }
.ag-terms h4 + ol { margin-top: 0; }
.ag-terms ol { padding-left: 20px; margin: 0 0 16px; }
.ag-terms li + li { margin-top: 4px; }
.ag-terms h5 { margin: 12px 0 2px; font-size: 13px; color: #12307a; }
.ag-terms p { margin: 0; }
.ag-terms .ag-law { font-size: 12px; color: var(--muted); }
.ag-terms .red { color: #dc2626; }
.ag-scroll { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #b45309; }
.ag-acks { margin-top: 14px; }
.ag-acks .ex-agree { margin-bottom: 12px; }
.ag-acks input:disabled + span { color: var(--faint); }
.ag-pad { position: relative; height: 190px; border: 1.5px dashed #93b4ee; border-radius: 14px; background: #fff linear-gradient(transparent calc(100% - 44px), #dbe6f7 calc(100% - 44px), #dbe6f7 calc(100% - 43px), transparent calc(100% - 43px)); overflow: hidden; }
.ag-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ag-pad-ph { position: absolute; left: 0; right: 0; bottom: 52px; text-align: center; font-size: 13px; color: var(--faint); pointer-events: none; transition: opacity .2s; }
.ag-pad.inked .ag-pad-ph { opacity: 0; }
.ag-clear { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12.5px; font-weight: 700; }
.ag-signer { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: #334155; }
.ag-guard .ag-pad { margin-top: 12px; }
.ag-prev { margin-top: 18px; }
.ag-pages { display: grid; gap: 12px; }
.ag-pages img { width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15,23,42,.1); }
.ag-pdf { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #1f6fdc; font-size: 15px; font-weight: 700; text-decoration: none; }
.ag-pdf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* E-Learning: speed, skip, resume */
.el-ctl { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.el-skip { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #1f6fdc; font-size: 12.5px; font-weight: 800; }
.el-skip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.el-skip:active, .el-rate button:active { transform: scale(.95); }
.el-rate { flex: 1; min-width: 0; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #e9f0fb; }
.el-rate button { flex: 1; min-width: 0; height: 28px; border-radius: 999px; background: none; color: #475569; font-size: 12px; font-weight: 800; transition: background .2s, color .2s, box-shadow .2s; }
.el-rate button.on { background: linear-gradient(90deg, #1f6fdc, #00b4e0); color: #fff; box-shadow: 0 0 12px rgba(0,180,224,.45); }
.el-resume { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 8px 8px 12px; border-radius: 12px; background: #eaf2fe; color: #1f4fa8; font-size: 13px; font-weight: 700; animation: exDrop .3s ease both; }
.el-resume svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.el-resume span { flex: 1; min-width: 0; }
.el-resume button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: #1f6fdc; font-size: 12.5px; font-weight: 800; border: 1px solid #bfd6fb; }

/* Passkey (fingerprint / face) sign-in */
.pk-or { width: 100%; display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--faint); font-size: 12.5px; }
.pk-or::before, .pk-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pk-btn { width: 100%; height: 54px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 1.5px solid #bfd6fb; background: #fff; color: #1a4dbf; font-size: 14.5px; font-weight: 700; box-shadow: 0 0 0 0 rgba(0,229,255,0); transition: box-shadow .2s, transform .1s; }
.pk-btn:active { transform: scale(.98); }
.pk-btn:hover, .pk-btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,229,255,.18); }
.pk-btn svg, .pk-row svg, .pk-ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pk-btn svg { width: 22px; height: 22px; color: #00a8d6; }
.pk-btn:disabled { opacity: .6; }
.pk-row { width: 100%; display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f8fbff; color: #1a4dbf; font-size: 14px; font-weight: 700; text-align: left; }
.pk-row svg { width: 20px; height: 20px; flex: none; color: #00a8d6; }
.pk-row span { flex: 1; }
.pk-row.on { color: #138a43; background: #f0fbf4; border-color: #bbe5c8; }
.pk-row.on svg { color: #16a34a; }
.pk-card { text-align: center; }
.pk-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #0d268c, #1f6fdc 55%, #00c0e8); box-shadow: 0 0 0 6px rgba(0,229,255,.12), 0 10px 26px rgba(31,111,220,.35); }
.pk-ic svg { width: 38px; height: 38px; }

/* Profile photo */
.avatar.has-img { background-size: cover; background-position: center; color: transparent; font-size: 0; }
.av-edit { position: relative; padding: 0; border-radius: 50%; background: none; }
.av-edit .avatar.big { width: 76px; height: 76px; font-size: 28px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,229,255,.35), 0 8px 22px rgba(31,111,220,.3); }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; color: #fff; background: linear-gradient(135deg, #1f6fdc, #00c0e8); box-shadow: 0 0 10px rgba(0,229,255,.55); }
.av-cam svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.av-card small { margin-bottom: 4px; }
.av-crop { position: relative; width: 260px; height: 260px; margin: 8px auto 6px; overflow: hidden; border-radius: 20px; background: #0f172a; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.av-crop:active { cursor: grabbing; }
.av-crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.av-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #7df9ff; box-shadow: 0 0 0 200px rgba(15,23,42,.55), 0 0 14px rgba(0,229,255,.7) inset; pointer-events: none; }
.av-zoom { width: 260px; margin: 4px 0 6px; accent-color: #1f6fdc; }
.av-row { display: flex; justify-content: center; gap: 4px; }
.av-row .link { margin-top: 4px; }
.av-del { color: #dc2626; }
.md-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.md-coin.ph svg { display: none; }

/* News */
.gi-dot { position: absolute; top: 7px; right: 10px; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; box-shadow: 0 0 8px rgba(239,68,68,.65); }
.nw-list { display: flex; flex-direction: column; gap: 12px; }
.nw-card { position: relative; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(15,23,42,.05); cursor: pointer; animation: exDrop .35s ease both; }
.nw-card.new { border-color: #bfd6fb; box-shadow: 0 0 0 3px rgba(0,229,255,.12), 0 8px 22px rgba(31,111,220,.12); }
.nw-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.nw-tag { padding: 2px 9px; border-radius: 999px; font-weight: 800; color: #1f6fdc; background: #eaf2fe; }
.nw-new { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #ef4444, #f97316); }
.nw-card h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 800; line-height: 1.4; }
.nw-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #475569; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card.open p { display: block; -webkit-line-clamp: unset; }
.nw-go { margin-top: 12px; height: 36px; padding: 0 16px; border-radius: 999px; background: #1f6fdc; color: #fff; font-size: 13px; font-weight: 700; }

/* Event badges (profile sheet) */
.bd-row { width: 100%; margin: 8px 0 0; text-align: left; }
.bd-row > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.bd-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bd { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0d268c; background: #eaf6ff; border: 1px solid #bfe9ff; }
.bd i { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1f6fdc, #00c0e8); box-shadow: 0 0 8px rgba(0,229,255,.5); }
.bd svg { width: 12px; height: 12px; fill: #fff; }

/* Scan / my QR (center clover) */
.qx { position: fixed; inset: 0; z-index: 60; max-width: 430px; margin: 0 auto; display: flex; flex-direction: column; color: #fff; background: radial-gradient(120% 80% at 50% 0%, #1b3fa8 0%, #0a1846 45%, #050b24 100%); animation: fade .2s ease; }
.qx-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 10px; }
.qx-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.qx-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qx-tabs { flex: 1; display: flex; margin-right: 50px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.qx-tabs button { flex: 1; height: 36px; border-radius: 999px; background: none; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.qx-tabs button.on { background: #fff; color: #0d268c; box-shadow: 0 0 16px rgba(0,229,255,.5); }
.qx-pane { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 20px calc(24px + var(--safe-b)); overflow: auto; }
.qx-cam { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin-top: 24px; overflow: hidden; border-radius: 24px; background: #020617; box-shadow: 0 0 0 1px rgba(125,249,255,.25), 0 0 40px rgba(0,229,255,.18); }
.qx-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qx-cam.off video, .qx-cam.off .qx-line { display: none; }
.qx-frame { position: absolute; inset: 0; pointer-events: none; }
.qx-frame i { position: absolute; width: 44px; height: 44px; border: 4px solid #00e5ff; filter: drop-shadow(0 0 6px #00e5ff); }
.qx-frame i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.qx-frame i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.qx-frame i:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.qx-frame i:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.qx-line { position: absolute; left: 14%; right: 14%; top: 12%; height: 2px; background: linear-gradient(90deg, transparent, #7df9ff, transparent); box-shadow: 0 0 12px #00e5ff; animation: qxScan 2.2s ease-in-out infinite alternate; }
@keyframes qxScan { to { top: 88%; } }
.qx-hint { max-width: 300px; margin: 18px 0 0; font-size: 14px; line-height: 1.55; text-align: center; color: rgba(255,255,255,.85); }
.qx-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(125,249,255,.5); background: rgba(0,229,255,.08); color: #bff9ff; font-size: 14px; font-weight: 700; cursor: pointer; }
.qx-pick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qx-card { width: 100%; max-width: 320px; margin-top: 52px; padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(125,249,255,.4), 0 0 40px rgba(0,229,255,.35); animation: rise .35s cubic-bezier(.16,1,.3,1); }
.qx-av.avatar { width: 68px; height: 68px; margin-top: -58px; font-size: 26px; border: 4px solid #fff; box-shadow: 0 0 16px rgba(0,229,255,.6); }
.qx-card b { margin-top: 6px; font-size: 18px; }
.qx-lvl { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #1f6fdc; background: #eaf2fe; }
.qx-lvl.gold { color: #7a4d00; background: linear-gradient(90deg, #fde68a, #f5c542); }
.qx-qr { position: relative; width: 224px; height: 224px; margin: 14px 0 6px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); }
.qx-qr > div, .qx-qr img { display: block; width: 100%; height: 100%; }
.qx-mid { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 10px rgba(0,229,255,.7); }
.qx-mid svg { width: 30px; height: 30px; fill: #1f6fdc; }
.qx-no { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.qx-card small { font-size: 12.5px; text-align: center; color: var(--muted); }
.qx-res { position: absolute; left: 0; right: 0; bottom: 0; top: calc(62px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; padding: 24px 20px calc(24px + var(--safe-b)); overflow: auto; background: inherit; }
.qx-rc { position: relative; width: 100%; max-width: 320px; margin-top: 12px; padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 24px; background: #fff; color: var(--ink); text-align: center; animation: rise .35s cubic-bezier(.16,1,.3,1); }
.qx-ok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #138a43; background: #f0fbf4; }
.qx-ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qx-rc .avatar { width: 84px; height: 84px; margin: 6px 0 2px; font-size: 30px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(0,229,255,.35); }
.qx-rc h3 { margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.qx-rc p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.qx-medal { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7df9ff, #1f6fdc 60%, #0d268c); box-shadow: 0 0 0 6px rgba(0,229,255,.18), 0 0 30px rgba(0,229,255,.6); animation: medalIn .8s cubic-bezier(.3,1.5,.5,1) both; }
.qx-medal svg { width: 52px; height: 52px; fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
.qx-medal.warn { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 70%); box-shadow: 0 0 0 6px rgba(245,158,11,.18); animation: none; }
.qx-medal.warn svg { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; width: 44px; height: 44px; }
.qx-acts { display: flex; gap: 10px; width: 100%; max-width: 320px; margin-top: 18px; }
.qx-b { flex: 1; height: 50px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; font-size: 14.5px; font-weight: 700; }
.qx-b.pri { background: linear-gradient(90deg, #1f6fdc, #00b4e0); box-shadow: 0 0 18px rgba(0,229,255,.45); }
.qx-load { width: 44px; height: 44px; margin-top: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #7df9ff; animation: spin .8s linear infinite; }
.qx-conf { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.qx-conf i { position: absolute; left: 50%; top: 60px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: qxConf 1.4s var(--d) cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes qxConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .qx-line, .qx-conf i, .qx-medal { animation: none !important; } }

/* Scan: other QR codes */
.qx-medal.ext { background: radial-gradient(circle at 35% 30%, #bff9ff, #1f6fdc 60%, #0d268c); animation: none; }
.qx-medal.ext svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: none; }
.qx-rc .qx-host { font-size: 16px; font-weight: 800; color: var(--ink); word-break: break-word; }
.qx-rc .qx-val { width: 100%; max-height: 140px; overflow: auto; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; color: #334155; font-size: 13px; text-align: left; white-space: pre-wrap; word-break: break-all; }
.qx-rc .qx-amt { font-size: 28px; font-weight: 800; color: var(--ink); }
.qx-warn { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #b45309; background: #fff7e6; }
.qx-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.qx-act { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #1f6fdc, #00b4e0); color: #fff; font-size: 14px; font-weight: 700; }
.qx-act.sub { background: #eaf2fe; color: #1f6fdc; }

/* News feed (Facebook-style) */
.nw { background: #eef2f7; }
.nw .ex-top { background: #fff; box-shadow: 0 1px 0 rgba(15,23,42,.06); }
.nw-tabs { position: sticky; top: calc(58px + var(--safe-t)); z-index: 4; display: flex; gap: 8px; padding: 10px 12px; background: #eef2f7; }
.nw-tabs button { height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; color: #475569; font-size: 13.5px; font-weight: 700; border: 1px solid #dde5f0; }
.nw-tabs button.on { background: linear-gradient(90deg, #1f6fdc, #00b4e0); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgba(0,180,224,.35); }
.nw-feed { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; }
.nw-empty { margin: 30px 16px; }
.nf { background: #fff; border-top: 1px solid #e5eaf2; border-bottom: 1px solid #e5eaf2; animation: exDrop .35s ease both; }
.nf.new { box-shadow: inset 3px 0 0 #00b4e0; }
.nf-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.nf-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #0d268c, #1f6fdc 55%, #00c0e8); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,229,255,.45); }
.nf-av svg { width: 24px; height: 24px; fill: #fff; }
.nf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nf-who b { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nf-vf { width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; background: #1f6fdc; }
.nf-vf svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.nf-who small { font-size: 12px; color: var(--muted); }
.nf-tag { color: #1f6fdc; font-weight: 700; }
.nf .nw-new { margin-left: 0; }
.nf-body { padding: 0 14px 10px; }
.nf-body h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; line-height: 1.45; }
.nf-txt { margin: 0; font-size: 14.5px; line-height: 1.6; color: #1e293b; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nf.open .nf-txt { display: block; -webkit-line-clamp: unset; }
.nf-more { padding: 2px 0; background: none; color: #64748b; font-size: 14px; font-weight: 700; }
.nf-imgs { position: relative; display: grid; gap: 2px; background: #e5eaf2; }
.nf-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; background: linear-gradient(135deg, #0d268c, #1f6fdc 60%, #00c0e8); }
.nf-imgs.n1 img { max-height: 460px; aspect-ratio: auto; object-fit: contain; }
.nf-imgs img[src$='mascot.png'] { height: 300px; object-fit: contain; padding-top: 12px; }
.nf-imgs.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.1; }
.nf-imgs.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.nf-imgs.n3 img:first-child { grid-row: span 2; }
.nf-imgs.n4 { grid-template-columns: 1fr 1fr; aspect-ratio: 1; }
.nf-imgs .more { position: relative; }
.nf-heart { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; font-size: 80px; line-height: 96px; text-align: center; pointer-events: none; animation: nfHeart .9s ease forwards; filter: drop-shadow(0 6px 20px rgba(225,29,72,.5)); }
@keyframes nfHeart { 0% { transform: scale(.2); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 45% { transform: scale(.95); } 70% { opacity: 1; } 100% { transform: scale(1.3) translateY(-30px); opacity: 0; } }
.nf-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; background: #f1f5fb; color: #1f4fa8; font-size: 14px; font-weight: 700; border-top: 1px solid #e5eaf2; text-align: left; }
.nf-stats { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 14px; }
.nf-stats.empty { min-height: 0; padding: 4px 0 0; }
.nf-stats { font-size: 13px; color: var(--muted); }
.nf-rs { display: inline-flex; align-items: center; gap: 6px; }
.nf-rs i { display: inline-flex; font-style: normal; }
.nf-rs i span { width: 20px; height: 20px; display: grid; place-items: center; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff; font-size: 13px; }
.nf-rs i span:first-child { margin-left: 0; }
.nf-cn { background: none; color: var(--muted); font-size: 13px; }
.nf-bar { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 8px; padding: 2px 0 4px; border-top: 1px solid #e5eaf2; }
.nf-b { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 8px; background: none; color: #475569; font-size: 13.5px; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.nf-b:active { background: #f1f5f9; }
.nf-b svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf-b .nf-em { font-size: 18px; line-height: 1; animation: nfPop .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes nfPop { from { transform: scale(.3); } }
.nf-b.on { color: var(--rc, #1f6fdc); }
.nf-b.saved { color: #1f6fdc; }
.nf-b.saved svg { fill: currentColor; }
.nw-rx { position: fixed; z-index: 70; display: flex; gap: 4px; padding: 6px 8px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.22), 0 0 0 1px rgba(15,23,42,.05); animation: nfRx .22s cubic-bezier(.3,1.5,.5,1); }
@keyframes nfRx { from { transform: translateY(10px) scale(.8); opacity: 0; } }
.nw-rx button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: none; font-size: 30px; transition: transform .15s cubic-bezier(.3,1.6,.5,1); animation: nfPop .35s cubic-bezier(.3,1.8,.5,1) both; }
.nw-rx button:nth-child(2) { animation-delay: .03s; } .nw-rx button:nth-child(3) { animation-delay: .06s; } .nw-rx button:nth-child(4) { animation-delay: .09s; } .nw-rx button:nth-child(5) { animation-delay: .12s; }
.nw-rx button:hover, .nw-rx button.hot { transform: scale(1.35) translateY(-6px); }
.nw-rx button small { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: rgba(15,23,42,.85); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.nw-rx button:hover small, .nw-rx button.hot small { opacity: 1; }
.nw-csc { align-items: stretch; gap: 0; height: 82vh; max-height: 82vh; padding: 0; text-align: left; }
.nw-csh { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nw-csh b { font-size: 15.5px; }
.nw-csx { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f9; color: #334155; }
.nw-csx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nw-cl { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.nw-cl .nw-none { margin: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.nc { display: flex; gap: 8px; align-items: flex-start; animation: exDrop .25s ease both; }
.nc .avatar { width: 34px; height: 34px; flex: none; font-size: 14px; }
.nc-b { max-width: calc(100% - 44px); }
.nc-bub { display: inline-block; padding: 8px 12px; border-radius: 18px; background: #f0f2f5; }
.nc-bub b { display: block; font-size: 13px; }
.nc-bub p { margin: 1px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.nc-m { display: flex; gap: 12px; padding: 3px 12px 0; font-size: 12px; color: var(--muted); }
.nc-m button { padding: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.nw-cf { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: #fff; }
.nw-cav.avatar { width: 34px; height: 34px; flex: none; font-size: 14px; }
.nw-cf textarea { flex: 1; min-height: 38px; max-height: 110px; padding: 9px 14px; border: 0; border-radius: 20px; background: #f0f2f5; font: inherit; font-size: 14.5px; line-height: 1.4; resize: none; outline: none; }
.nw-send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1f6fdc, #00b4e0); color: #fff; }
.nw-send:disabled { background: #e2e8f0; color: #94a3b8; }
.nw-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nw-lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(2,6,23,.94); animation: fade .2s ease; touch-action: pan-y; }
.nw-lb img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.nw-lbx { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.nw-lbx svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nw-lbn { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; }
.nw-lbn.p { left: 10px; } .nw-lbn.n { right: 10px; }
.nw-lbc { position: absolute; bottom: calc(18px + var(--safe-b)); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; }
.nf-skel { height: 260px; background: linear-gradient(100deg, #fff 30%, #f1f5f9 50%, #fff 70%) 0 0 / 300% 100%; animation: nfSk 1.2s linear infinite; border-top: 1px solid #e5eaf2; border-bottom: 1px solid #e5eaf2; }
@keyframes nfSk { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .nf-heart, .nw-rx, .nw-rx button, .nf-b .nf-em, .nf-skel { animation: none !important; } }

/* feed poster avatar: the X mark from the CloverX logo */
.nf-av { background: radial-gradient(circle at 35% 30%, #16307a, #050b24 75%) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,229,255,.5), 0 0 12px rgba(0,229,255,.35); }
.nf-av::before { content: ""; width: 26px; height: 26px; background: url(/logo.png) no-repeat -115.4px -13.7px / 154.4px auto; filter: drop-shadow(0 0 4px rgba(0,229,255,.6)); }
.nf-av svg { display: none; }

/* exam-day check-in (staff scan result) */
.qx-medal.ok { background: radial-gradient(circle at 35% 30%, #86efac, #16a34a 70%); box-shadow: 0 0 0 6px rgba(34,197,94,.2), 0 0 30px rgba(34,197,94,.5); }
.qx-medal.ok svg, .qx-medal.again svg { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; width: 48px; height: 48px; filter: none; }
.qx-medal.again { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 70%); box-shadow: 0 0 0 6px rgba(245,158,11,.18); animation: none; }
.qx-tk { width: 100%; margin-top: 8px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); text-align: left; overflow: hidden; }
.qx-tk div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; }
.qx-tk div + div { border-top: 1px solid var(--line); }
.qx-tk span { color: var(--muted); flex: none; }
.qx-tk b { text-align: right; font-weight: 700; color: var(--ink); }
.qx-rc .avatar.qx-big { width: 110px; height: 110px; font-size: 40px; border-radius: 22px; }
.tk-in { color: #138a43 !important; background: #e8f7ee !important; }

/* ---------- exam room ---------- */
.rm-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border: 1.5px solid #bfd6fb; background: linear-gradient(135deg, #f5f9ff, #eaf2fe); }
.rm-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #1f6fdc; color: #fff; box-shadow: 0 6px 16px rgba(31,111,220,.3); }
.rm-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-tx { flex: 1; min-width: 0; }
.rm-tx b { display: block; font-size: 14.5px; }
.rm-tx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
/* exam room: white + blue gradient theme */
.er { --b1: #1e3a8a; --b2: #1d4ed8; --b3: #2563eb; --b4: #3b82f6; --b5: #93c5fd; --b6: #dbeafe; --b7: #eff6ff; --ink2: #0f1e46; --mut2: #5b6f99; --bd: #d6e4fb;
  --grad: linear-gradient(135deg, #3b82f6, #1d4ed8); --gradS: linear-gradient(135deg, #60a5fa, #2563eb);
  position: relative; isolation: isolate; color: var(--ink2); background: #f7faff; padding-bottom: calc(118px + var(--safe-b)); overflow: hidden; }
.er-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #e3eeff 0%, #f5f9ff 38%, #ffffff 100%); }
.er-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: erFloat 16s ease-in-out infinite alternate; }
.er-bg i:nth-child(1) { width: 260px; height: 260px; left: -90px; top: 60px; background: #93c5fd; }
.er-bg i:nth-child(2) { width: 220px; height: 220px; right: -80px; top: 340px; background: #bfdbfe; animation-delay: -6s; }
.er-bg i:nth-child(3) { width: 200px; height: 200px; left: 30%; bottom: -60px; background: #dbeafe; animation-delay: -11s; }
@keyframes erFloat { to { transform: translate(30px, -40px) scale(1.15); } }
body.er-lock .er { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.er svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.er-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 12px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bd); }
.er-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--bd); color: var(--b2); box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.er-back svg { width: 20px; height: 20px; }
.er-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.er-ttl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--b4); text-transform: uppercase; }
.er-ttl b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--b1); }
.er-cam { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transform: scaleX(-1); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b3), 0 4px 14px rgba(37,99,235,.35); }
.er-clock { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 4px; border-radius: 999px; flex: none; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(29,78,216,.3); }
.er-ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.er-ring circle { stroke-width: 3.4; }
.er-ring .rb { stroke: rgba(255,255,255,.28); }
.er-ring .rf { stroke: #fff; stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.er-tm { display: flex; flex-direction: column; line-height: 1.05; }
.er-tm b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.er-tm small { font-size: 9.5px; opacity: .8; font-weight: 600; }
.er-clock.low { background: linear-gradient(135deg, #1e3a8a, #172554); animation: erPulse 1.2s ease-in-out infinite; }
@keyframes erPulse { 50% { box-shadow: 0 0 0 6px rgba(37,99,235,.18), 0 8px 20px rgba(29,78,216,.35); } }

/* shared buttons */
.er-dock { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 9; display: flex; gap: 10px;
  padding: 14px 16px calc(16px + var(--safe-b)); background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95) 32%); }
.er-cta { position: relative; overflow: hidden; flex: 1; height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 18px;
  color: #fff; font-size: 16.5px; font-weight: 800; letter-spacing: .01em; background: var(--grad); box-shadow: 0 12px 28px rgba(29,78,216,.35), 0 0 0 1px rgba(255,255,255,.25) inset; transition: transform .12s, box-shadow .2s; }
.er-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-120%); animation: erShine 3.2s ease-in-out infinite; }
@keyframes erShine { 60%, 100% { transform: translateX(120%); } }
.er-cta svg { width: 20px; height: 20px; stroke-width: 2.6; transition: transform .2s; }
.er-cta:active { transform: scale(.975); }
.er-cta:active svg { transform: translateX(3px); }
.er-cta:disabled { background: #e8effc; color: var(--mut2); box-shadow: none; cursor: not-allowed; }
.er-cta:disabled::before, .er-cta:disabled svg { display: none; }
.er-cta.go:not(:disabled) { background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 12px 28px rgba(30,58,138,.4); }
.er-cta.sure:not(:disabled) { background: linear-gradient(135deg, #1e40af, #172554); box-shadow: 0 0 0 4px rgba(59,130,246,.25), 0 12px 28px rgba(23,37,84,.45); animation: erWig .5s ease; }
@keyframes erWig { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.er-cta.busy span::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.er-nav { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 18px; color: var(--b2); background: #fff; border: 1px solid var(--bd); box-shadow: 0 6px 16px rgba(37,99,235,.1); }
.er-nav svg { width: 24px; height: 24px; stroke-width: 2.6; }
.er-nav:disabled { opacity: .35; }
.er-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 14px; border-radius: 16px; color: var(--b2); font-size: 15px; font-weight: 700; background: #fff; border: 1.5px solid var(--b5); }
.er-ghost svg { width: 20px; height: 20px; }

/* pre-exam */
.er-pre, .er-exam, .er-res { padding: 18px 16px 0; }
.er-hero { text-align: center; padding: 14px 0 22px; }
.er-emb { position: relative; width: 108px; height: 108px; margin: 12px auto 28px; display: grid; place-items: center; border-radius: 32px; background: var(--grad); box-shadow: 0 18px 40px rgba(29,78,216,.35); animation: stPop .6s cubic-bezier(.3,1.6,.5,1) both; }
.er .er-emb svg { width: 58px; height: 58px; fill: #fff; stroke: none; }
.er-halo { position: absolute; inset: -14px; border-radius: 40px; border: 1.5px dashed var(--b5); animation: spin 18s linear infinite; }
.er-kick { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .28em; color: var(--b4); }
.er-hero h2 { margin: 0 0 16px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(90deg, #1e3a8a, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.er-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.er-chips span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--bd); font-size: 11px; color: var(--mut2); box-shadow: 0 4px 12px rgba(37,99,235,.06); }
.er-chips b { font-size: 17px; color: var(--b2); font-weight: 800; }
.er-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.er-rules li { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--bd); box-shadow: 0 4px 14px rgba(37,99,235,.06); animation: up .45s ease both; }
.er-rules li:nth-child(2) { animation-delay: .05s; } .er-rules li:nth-child(3) { animation-delay: .1s; } .er-rules li:nth-child(4) { animation-delay: .15s; } .er-rules li:nth-child(5) { animation-delay: .2s; }
.er-rules i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--gradS); box-shadow: 0 6px 14px rgba(37,99,235,.28); }
.er-rules i svg { width: 21px; height: 21px; }
.er-rules b { display: block; font-size: 14.5px; color: var(--ink2); }
.er-rules small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--mut2); }
.er-msg { margin: 18px 4px 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--b2); }

/* exam */
.er-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.er-parts span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0 8px; border-radius: 14px; background: #fff; border: 1px solid var(--bd); font-size: 11px; font-weight: 700; color: var(--mut2); transition: all .25s; }
.er-parts span em { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11.5px; background: var(--b7); color: var(--b2); }
.er-parts span.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 18px rgba(29,78,216,.3); }
.er-parts span.on em { background: #fff; color: var(--b2); }
.er-parts span.done:not(.on) { color: var(--b2); border-color: var(--b5); background: var(--b7); }
.er-parts span.done:not(.on) em { background: var(--b3); color: #fff; }
.er-parts span.lock { opacity: .5; }
.er-prog { height: 6px; margin: 12px 2px 0; border-radius: 99px; background: var(--b6); overflow: hidden; }
.er-prog i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #93c5fd, #2563eb); transition: width .4s ease; }
.er-q { position: relative; margin-top: 14px; padding: 20px 16px 16px; border-radius: 24px; background: #fff; border: 1px solid var(--bd); box-shadow: 0 18px 44px rgba(29,78,216,.1); overflow: hidden; }
.er-q::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #93c5fd, #2563eb, #1e3a8a); }
.er-q.in { animation: erIn .35s cubic-bezier(.2,.9,.3,1) both; }
@keyframes erIn { from { opacity: 0; transform: translateX(18px); } }
.er-qh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.er-qn { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(29,78,216,.25); }
.er-qn b { font-size: 17px; } .er-qn small { font-size: 11.5px; opacity: .85; }
.er-pt { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-qt { margin: 0 0 18px; font-size: 18px; line-height: 1.7; font-weight: 700; color: var(--ink2); text-wrap: pretty; line-break: loose; word-break: normal; }
.er-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.er-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 14px 14px 12px; border-radius: 18px; text-align: left; color: var(--ink2);
  background: #f8fbff; border: 1.5px solid var(--bd); transition: border-color .2s, background .2s, transform .12s, box-shadow .2s; animation: up .35s ease both; }
.er-opt:nth-child(2) { animation-delay: .04s; } .er-opt:nth-child(3) { animation-delay: .08s; } .er-opt:nth-child(4) { animation-delay: .12s; }
.er-opt:active { transform: scale(.985); }
.er-opt > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 15px; font-weight: 800; color: var(--b2); background: #fff; border: 1.5px solid var(--b5); transition: all .2s; }
.er-opt .ot { flex: 1; min-width: 0; padding-top: 5px; font-size: 15px; line-height: 1.6; text-wrap: pretty; line-break: loose; }
.er-opt .ot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.er-opt .ot li { position: relative; padding-left: 14px; }
.er-opt .ot li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--b4); }
.er-opt .ot .k { color: var(--b1); font-weight: 700; }
.er-opt .ot .tail { display: block; margin-top: 4px; font-size: 13.5px; color: var(--mut2); }
.er-opt .ck { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--b2); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.er-opt .ck svg { width: 13px; height: 13px; stroke-width: 3.4; }
.er-opt.on { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 12px 26px rgba(29,78,216,.35); }
.er-opt.on > span { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.55); }
.er-opt.on .ot .k { color: #fff; }
.er-opt.on .ot .tail { color: rgba(255,255,255,.85); }
.er-opt.on .ot li::before { background: #fff; }
.er-opt.on .ck { transform: scale(1); }
.er-map { margin-top: 14px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--bd); box-shadow: 0 6px 18px rgba(37,99,235,.06); }
.er-maph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
.er-maph b { color: var(--ink2); }
.er-maph span { color: var(--mut2); font-size: 11.5px; }
.er-maph span.ok { color: var(--b3); font-weight: 700; } .er-maph span.warn { color: var(--b1); font-weight: 700; }
.er-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.er-grid button { aspect-ratio: 1; border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--mut2); background: #f8fbff; border: 1px solid var(--bd); transition: all .2s; }
.er-grid button.ans { color: #fff; background: var(--gradS); border-color: transparent; }
.er-grid button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b3); color: var(--b2); }
.er-grid button.ans.on { color: #fff; }
.er-pause { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 12px; border-radius: 14px; color: var(--b2); font-size: 14px; font-weight: 700; background: var(--b7); border: 1px solid var(--b5); }
.er-pause svg { width: 18px; height: 18px; stroke-width: 2.8; }
.er-paused { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(239,246,255,.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.er-pi { width: 70px; height: 70px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--grad); animation: erPulse 1.6s ease-in-out infinite; }
.er-pi svg { width: 30px; height: 30px; stroke-width: 3; }

/* result */
.er-rh { text-align: center; padding: 8px 6px 20px; }
.er-score { position: relative; width: 190px; height: 190px; margin: 0 auto 18px; }
.er-score::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; box-shadow: 0 18px 44px rgba(29,78,216,.18); }
.er-score svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); }
.er-score circle { stroke-width: 9; }
.er-score .sb { stroke: var(--b6); }
.er-score .sf { stroke: url(#erG); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.er-score.fail .sf { stroke: var(--b5); }
.er-sv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.er-sv > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 2px; color: #fff; background: var(--grad); }
.er-sv > span.wait { color: var(--b2); background: var(--b6); }
.er-sv > span svg { width: 20px; height: 20px; stroke-width: 2.8; }
.er-sv b { font-size: 46px; font-weight: 800; line-height: 1.05; color: var(--b1); font-variant-numeric: tabular-nums; }
.er-sv small { font-size: 12px; color: var(--mut2); font-weight: 600; }
.er-rh h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--b1); }
.er-rh p { margin: 0 auto; max-width: 320px; font-size: 14px; line-height: 1.65; color: var(--mut2); }
.er-rparts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.er-rp { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--bd); box-shadow: 0 6px 18px rgba(37,99,235,.07); animation: up .4s ease both; }
.er-rp:nth-child(2) { animation-delay: .06s; } .er-rp:nth-child(3) { animation-delay: .12s; } .er-rp:nth-child(4) { animation-delay: .18s; } .er-rp:nth-child(5) { animation-delay: .24s; }
.er-rp-h { display: flex; align-items: center; gap: 10px; }
.er-rp-h > i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--b2); background: var(--b7); border: 1px solid var(--b5); }
.er-rp.ok .er-rp-h > i { color: #fff; background: var(--grad); border-color: transparent; }
.er-rp-h > div { flex: 1; min-width: 0; }
.er-rp-h b { display: block; font-size: 14px; color: var(--ink2); }
.er-rp-h small { display: block; font-size: 11.5px; color: var(--mut2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-rp-h em { font-style: normal; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--mut2); }
.er-rp.ok .er-rp-h em { color: var(--b2); }
.er-bar { position: relative; height: 6px; margin-top: 12px; border-radius: 99px; background: var(--b6); overflow: hidden; }
.er-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #93c5fd, #2563eb); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.er-rp.no .er-bar i { background: var(--b5); }
.er-bar::after { content: ""; position: absolute; left: 80%; top: -2px; bottom: -2px; width: 2px; background: var(--b1); opacity: .45; }
.er-rp .er-cta { width: 100%; height: 46px; margin-top: 12px; font-size: 14.5px; border-radius: 14px; }
.er-wrong { margin-top: 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--bd); }
.er-wrong .sc-t { color: var(--b1); margin: 0 0 4px; }
.er-wq { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--bd); }
.er-wq:first-of-type { border-top: 0; }
.er-wq i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--gradS); }
.er-wq small { display: block; font-size: 11px; font-weight: 700; color: var(--b3); }
.er-wq p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.er-none { margin: 0; font-size: 14px; color: var(--mut2); }

/* neon rings and bars (same style as the home score ring), unanswered = light grey, failed parts = soft red */
.er-clock { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.er-ring { overflow: visible; }
.er-ring circle { stroke-width: 3.6; }
.er-ring .rb { stroke: rgba(255,255,255,.14); }
.er-ring .rf { stroke: url(#erT); stroke-linecap: round; stroke-dasharray: 106.8; filter: none; transition: stroke-dashoffset 1s linear; }
.er-ring .rg { stroke: #00e5ff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 106.8; opacity: .5; filter: blur(3px); transition: stroke-dashoffset 1s linear; animation: erNeon 2.4s ease-in-out infinite; }
@keyframes erNeon { 50% { opacity: .9; } }
.er-score svg { overflow: visible; }
.er-score circle { stroke-width: 10; }
.er-score .sb { stroke: #e3edfc; }
.er-score .sf { stroke: url(#erG); stroke-linecap: round; filter: none; }
.er-score .sg { stroke: #00e5ff; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; opacity: .45; filter: blur(7px); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); animation: erNeonL 2.4s ease-in-out infinite; }
@keyframes erNeonL { 50% { opacity: .8; stroke-width: 18; } }
.er-score.fail .sf { stroke: url(#erGr); filter: none; }
.er-score.fail .sg { stroke: #fb7185; opacity: .22; animation: none; }
.er-prog { background: #e6ecf5; overflow: visible; }
.er-prog i { background: linear-gradient(90deg, #00e5ff, #22a6ff 55%, #2563eb); box-shadow: 0 0 8px rgba(0,229,255,.55); }
.er-bar { background: #e6ecf5; overflow: visible; }
.er-bar i { background: linear-gradient(90deg, #00e5ff, #22a6ff 55%, #2563eb); box-shadow: 0 0 8px rgba(0,229,255,.5); }
.er-rp.no { border-color: #fbd5d8; background: #fffafa; }
.er-rp.no .er-bar i { background: linear-gradient(90deg, #fda4af, #e5484d); box-shadow: 0 0 5px rgba(229,72,77,.25); }
.er-rp.no .er-rp-h > i { color: #fff; background: linear-gradient(135deg, #f58a92, #e5484d); border-color: transparent; }
.er-rp.no .er-rp-h b, .er-rp.no .er-rp-h em { color: #d93d42; }
.er-grid button { color: #a3adbd; background: #eef1f5; border-color: #e3e7ee; }
.er-grid button.on { color: #6b7589; }
.er-opt .ck { display: none; }
.er-score .er-sv svg { transform: none; }

/* in-app venue map: light map + detail sheet */
.mp { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 60; background: #eef2f7; overflow: hidden; animation: in .3s ease both; }
.mp[hidden] { display: none; }
body.mp-open { overflow: hidden; }
.mp svg { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.mp-map { position: absolute; left: 0; right: 0; top: 0; height: 56%; background: #eef2f7; }
.mp-map .mp-tiles { filter: grayscale(1) sepia(.18) hue-rotate(180deg) saturate(1.5) brightness(1.1) contrast(.82); }
.mp-fade { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 450; pointer-events: none; background: linear-gradient(180deg, rgba(238,242,247,.9), rgba(238,242,247,0)); }
.mp-top { position: absolute; left: 14px; right: 14px; top: calc(12px + var(--safe-t)); z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-back { height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(255,255,255,.96); color: #0f172a; font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(15,23,42,.1); }
.mp-back svg { width: 19px; height: 19px; }
.mp-share { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.96); color: #0f172a; box-shadow: 0 6px 18px rgba(15,23,42,.1); }
.mp-share svg { width: 19px; height: 19px; }
.mp-tools { position: absolute; right: 14px; top: calc(66px + var(--safe-t)); z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.mp-tools .mp-zoom { display: flex; flex-direction: column; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(15,23,42,.1); }
.mp-tools button { width: 42px; height: 42px; display: grid; place-items: center; color: #0f172a; }
.mp-tools .mp-zoom button + button { border-top: 1px solid #e8edf4; }
.mp-tools > button { border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(15,23,42,.1); color: #2563eb; }
.mp-tools > #mpMe { color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.mp-tools button svg { width: 19px; height: 19px; }
/* bottom detail sheet */
.mp-card { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; height: 50%; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: #0f172a; box-shadow: 0 -10px 30px rgba(15,23,42,.18); }
.mp-dark { position: relative; flex: none; padding: 16px 20px 34px; color: #fff; border-radius: 26px 26px 0 0; background: radial-gradient(120% 140% at 85% 0%, rgba(37,99,235,.55), transparent 60%), linear-gradient(160deg, #111c33, #0b1224); }
.mp-dh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.82); }
.mp-dh svg { width: 16px; height: 16px; fill: #60a5fa; stroke: none; }
.mp-dh b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.mp-stats { display: flex; gap: 28px; margin-top: 10px; }
.mp-stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mp-stats small { display: block; margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.6); }
.mp-note { margin: 8px 0 0; max-width: 62%; font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.6); }
.mp-note:empty { display: none; }
.mp-masc { position: absolute; right: 14px; bottom: -18px; z-index: 3; height: 128px; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); pointer-events: none; }
.mp-body { position: relative; z-index: 2; flex: 1; min-height: 0; overflow-y: auto; margin-top: -20px; padding: 18px 18px 12px; border-radius: 24px 24px 0 0; background: #f5f7fb; -webkit-overflow-scrolling: touch; }
.mp-body h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #0f172a; }
.mp-addr { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e6ebf3; font-size: 12.5px; line-height: 1.5; color: #1f2937; }
.mp-addr > svg { width: 18px; height: 18px; flex: none; color: #0f172a; }
.mp-addr span { flex: 1; }
.mp-copy { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #2563eb; background: #eff6ff; }
.mp-copy svg { width: 16px; height: 16px; }
.mp-facts { display: flex; gap: 10px; margin: 10px -18px 0; padding: 0 18px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mp-facts::-webkit-scrollbar { display: none; }
.mp-facts > div { flex: 0 0 auto; min-width: 118px; max-width: 170px; scroll-snap-align: start; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e6ebf3; }
.mp-facts > div[hidden] { display: none; }
.mp-facts svg { width: 19px; height: 19px; color: #0f172a; }
.mp-facts b { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: #0f172a; line-height: 1.35; }
.mp-facts small { display: block; margin-top: 2px; font-size: 11px; color: #8391a7; }
.mp-photo { position: relative; margin: 12px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #e2e8f0; }
.mp-photo[hidden] { display: none; }
.mp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mp-attr { margin: 10px 0 0; text-align: center; font-size: 10px; color: #94a3b8; }
.mp-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; box-shadow: 0 -1px 0 #e6ebf3; }
.mp-bl { flex: 1; min-width: 0; }
.mp-bl b { display: block; font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mp-bl small { font-size: 11px; color: #8391a7; }
.mp-b { position: relative; overflow: hidden; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s; }
.mp-b:active { transform: scale(.97); }
.mp-b svg { width: 18px; height: 18px; }
.mp-b1 { padding: 0 20px 0 24px; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 10px 22px rgba(29,78,216,.32); }
.mp-b1 i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); }
.mp-b1 i svg { width: 15px; height: 15px; }
.mp-b2 { padding: 0 16px; color: #1d4ed8; background: #eff6ff; }
/* markers */
.mp-vpin { position: relative; }
.mp-vpin .ph { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: #fff center / cover no-repeat; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(15,23,42,.25); }
.mp-vpin .ph.nop { display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.mp-vpin .ph.nop svg { width: 24px; height: 24px; fill: #fff; stroke: none; }
.mp-vpin .tl { position: absolute; left: 20px; top: 49px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; box-shadow: 3px 3px 6px rgba(15,23,42,.12); }
.mp-vpin .bd { position: absolute; left: 36px; top: 34px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #2563eb; border: 2px solid #fff; }
.mp-vpin .bd svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3; fill: none; }
.mp-vpin em { position: absolute; left: 44px; top: 14px; white-space: nowrap; padding: 4px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #0f172a; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.14); }
.mp-vpin em:empty { display: none; }
.mp-me { position: relative; }
.mp-me .halo { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.22), rgba(59,130,246,.1) 60%, rgba(59,130,246,0) 72%); animation: mpHalo 2.6s ease-in-out infinite; }
.mp-me .dot { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.22); }
.mp-me .dot i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.mp-me .dot svg { width: 14px; height: 14px; fill: #fff; stroke: none; }
@keyframes mpHalo { 50% { transform: scale(.82); } }
.mp .mp-glow { filter: blur(4px); }
.mp .mp-line.drw { stroke-dasharray: 1; animation: mpDraw 1.4s ease-out both; }
@keyframes mpDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* tap ripple on answer cards */
.er-opt { overflow: hidden; }
.er-rip { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255,255,255,.55); pointer-events: none; animation: erRip .6s ease-out forwards; }
@keyframes erRip { to { transform: scale(40); opacity: 0; } }
.er-opt.pop { animation: erPop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes erPop { 40% { transform: scale(1.025); } }
/* timer heartbeat in the last 5 minutes */
.er-clock.low { animation: erBeatBox 1s ease-in-out infinite; }
.er-clock.low .rg { stroke: #9ad8ff; animation: erBeat 1s ease-in-out infinite; }
@keyframes erBeat { 0%, 100% { opacity: .4; } 14% { opacity: 1; } 28% { opacity: .5; } 42% { opacity: 1; } 70% { opacity: .4; } }
@keyframes erBeatBox { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.05); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } 70% { transform: scale(1); } }
/* part tabs: connectors fill when a part is done, flash on completion */
.er-parts span { position: relative; overflow: visible; }
.er-parts span .lk { position: absolute; left: 100%; top: 50%; width: 6px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: #dbe4f2; overflow: hidden; }
.er-parts span:last-child .lk { display: none; }
.er-parts span.done .lk { background: linear-gradient(90deg, #00e5ff, #2563eb); box-shadow: 0 0 6px rgba(0,229,255,.7); }
.er-parts span.flash .lk { animation: erLk .6s ease-out .25s both; transform-origin: left; }
@keyframes erLk { from { transform: scaleX(0); } }
.er-parts span.flash { animation: erFlash .9s ease-out; }
.er-parts span.flash em { animation: erTick .6s cubic-bezier(.3,1.7,.5,1); }
@keyframes erFlash { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.8); } 100% { box-shadow: 0 0 0 14px rgba(0,229,255,0); } }
@keyframes erTick { 0% { transform: scale(.3) rotate(-30deg); } 100% { transform: none; } }
/* final confirm button */
.er-cta.submit:not(:disabled) { background: linear-gradient(135deg, #3b82f6, #1d4ed8 55%, #1e3a8a); box-shadow: 0 0 0 3px rgba(125,196,255,.35), 0 12px 28px rgba(29,78,216,.45); animation: erGlowBtn 2s ease-in-out infinite; }
@keyframes erGlowBtn { 50% { box-shadow: 0 0 0 6px rgba(125,196,255,.25), 0 12px 32px rgba(29,78,216,.55); } }
.er-cta[hidden] { display: none; }

/* name watermark on the question card */
.er-q { background: var(--wm, none) repeat, #fff; }
/* hourglass clock mode (tap the clock to switch) */
.er-clock { cursor: pointer; -webkit-user-select: none; user-select: none; }
.er-clock .er-hg { display: none; width: 34px; height: 38px; margin-left: 2px; overflow: visible; filter: drop-shadow(0 0 3px rgba(125,216,255,.55)); }
.er-clock.hg .er-hg { display: block; }
.er-clock.hg .er-ring { display: none; }
.er-hg .hg-glass { fill: url(#hgG); stroke: rgba(255,255,255,.9); stroke-width: 1.3; stroke-linejoin: round; }
.er-hg .hg-sand { fill: url(#hgS); stroke: none; }
.er-hg #hgTop { transition: y 1s linear, height 1s linear; }
.er-hg .hg-stream { stroke: #bff4ff; stroke-width: .9; stroke-linecap: round; stroke-dasharray: 1 1.6; animation: hgFlow .5s linear infinite; }
@keyframes hgFlow { to { stroke-dashoffset: -2.6; } }
.er-hg .hg-grain { fill: #e0fbff; opacity: 0; animation: hgDrop 1.2s linear infinite; }
.er-hg .hg-grain.g2 { animation-delay: .4s; } .er-hg .hg-grain.g3 { animation-delay: .8s; }
@keyframes hgDrop { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.er-hg .hg-shine { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
.er-hg .hg-cap { fill: url(#hgC); stroke: none; filter: drop-shadow(0 1px 1.5px rgba(8,30,90,.35)); }
.er-clock.hg-empty .hg-stream, .er-clock.hg-empty .hg-grain { display: none; }
.er-clock.flip .er-hg { animation: hgTurn .5s cubic-bezier(.5,0,.3,1.4); transform-origin: 50% 50%; }
.er-clock.flip .er-ring { animation: hgFlip .42s ease-in-out; }
@keyframes hgTurn { from { transform: rotate(-180deg) scale(.7); opacity: .3; } }
@keyframes hgFlip { 50% { transform: rotate(90deg) scale(.6); opacity: .3; } }
.er-clock.low .er-hg .hg-sand { fill: #fff; }
.er-opt:not(.on) { background: rgba(248,251,255,.72); }

/* ============ depth / 3D pass ============ */
/* hourglass: rounded glass shading, cylinder caps, gentle 3D sway */
.er-clock { perspective: 160px; }
.er-clock .er-hg { transform-style: preserve-3d; animation: hgSway 7s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(125,216,255,.5)) drop-shadow(0 2px 2px rgba(3,20,70,.45)); }
@keyframes hgSway { 0%, 100% { transform: rotateY(-16deg) rotateX(4deg); } 50% { transform: rotateY(16deg) rotateX(4deg); } }
.er-hg .hg-shade { fill: url(#hgSh); pointer-events: none; }
.er-hg .hg-shine.s2 { opacity: .35; }
.er-hg .hg-cap { fill: url(#hgCs); }
.er-hg .hg-capt { fill: #fff; opacity: .9; }
.er-hg .hg-ground { fill: rgba(2,14,52,.45); filter: blur(1px); }
.er-clock.flip .er-hg { animation: hgTurn .55s cubic-bezier(.5,0,.3,1.4); }
@keyframes hgTurn { from { transform: rotateX(180deg) scale(.7); opacity: .2; } }

/* question card: stacked-deck depth and 3D page turn between questions */
.er-q { transform-style: preserve-3d; box-shadow: 0 10px 0 -5px #e7eefc, 0 20px 0 -10px #d9e4f8, 0 30px 50px -10px rgba(29,78,216,.22); }
.er-q.in.fwd { animation: erTurnF .5s cubic-bezier(.2,.8,.2,1) both; transform-origin: left center; }
.er-q.in.back { animation: erTurnB .5s cubic-bezier(.2,.8,.2,1) both; transform-origin: right center; }
@keyframes erTurnF { from { opacity: 0; transform: perspective(1100px) rotateY(-28deg) translateX(60px) translateZ(-80px); } 60% { opacity: 1; } to { transform: perspective(1100px); } }
@keyframes erTurnB { from { opacity: 0; transform: perspective(1100px) rotateY(28deg) translateX(-60px) translateZ(-80px); } 60% { opacity: 1; } to { transform: perspective(1100px); } }
/* raised answer cards that press in */
.er-opt { box-shadow: 0 3px 0 #dbe6f7, 0 6px 14px rgba(29,78,216,.06); transition: transform .12s, box-shadow .12s, background .2s, border-color .2s; }
.er-opt:active { transform: translateY(3px); box-shadow: 0 0 0 #dbe6f7, 0 2px 6px rgba(29,78,216,.06); }
.er-opt.on { box-shadow: 0 4px 0 #1e3a8a, 0 14px 28px rgba(29,78,216,.38); }
.er-opt > span { box-shadow: inset 0 -2px 0 rgba(29,78,216,.12); }
.er-opt.on > span { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.15); }
/* raised 3D buttons */
.er-cta:not(:disabled) { box-shadow: 0 5px 0 #1a3486, 0 14px 26px rgba(29,78,216,.38), inset 0 1px 0 rgba(255,255,255,.35); }
.er-cta:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 #1a3486, 0 6px 12px rgba(29,78,216,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.er-cta.go:not(:disabled) { box-shadow: 0 5px 0 #13266a, 0 14px 26px rgba(30,58,138,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.er-nav { box-shadow: 0 4px 0 #d3e1f7, 0 8px 16px rgba(29,78,216,.1); }
.er-nav:active { transform: translateY(3px); box-shadow: 0 1px 0 #d3e1f7; }
/* part tabs: raised tiles, glossy 3D badges, done tabs flip */
.er-parts { perspective: 600px; }
.er-parts span { box-shadow: 0 3px 0 #dbe6f7; transform-style: preserve-3d; }
.er-parts span.on { box-shadow: 0 4px 0 #1a3486, 0 10px 20px rgba(29,78,216,.32); }
.er-parts span.done:not(.on) { box-shadow: 0 3px 0 #b9d1f5, 0 6px 12px rgba(37,99,235,.12); }
.er-parts span em { box-shadow: inset 0 -2px 0 rgba(29,78,216,.15); }
.er-parts span.done em { background: radial-gradient(circle at 32% 28%, #9fd4ff 0, #3b82f6 45%, #1e40af 100%); box-shadow: 0 2px 4px rgba(29,78,216,.45), inset 0 1px 1px rgba(255,255,255,.6); color: #fff; }
.er-parts span.on em { background: radial-gradient(circle at 32% 28%, #fff 0, #e3edff 60%, #b8cff5 100%); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.er-parts span.flash { animation: erFlip3d .8s cubic-bezier(.3,1.3,.5,1); }
@keyframes erFlip3d { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg) scale(1.08); box-shadow: 0 0 0 10px rgba(0,229,255,.25); } 100% { transform: rotateY(360deg); } }

/* pause: card rises in 3D, glossy sphere icon with depth rings */
.er-paused { perspective: 900px; }
@keyframes erRise { from { opacity: 0; transform: rotateX(55deg) translateY(60px) translateZ(-120px); } }
.er-pi { position: relative; width: 86px; height: 86px; background: radial-gradient(circle at 34% 28%, #bfe0ff 0, #4f8ff7 38%, #1d4ed8 70%, #172f7a 100%); box-shadow: 0 12px 24px rgba(29,78,216,.45), inset 0 -6px 12px rgba(0,0,0,.25), inset 0 4px 8px rgba(255,255,255,.35); animation: erFloat3d 3s ease-in-out infinite; }
.er-pi::after { content: ""; position: absolute; left: 20%; top: 10%; width: 36%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(2px); transform: rotate(-20deg); }
.er-pi svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.er-pi i { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(59,130,246,.35); animation: erRingOut 2.4s ease-out infinite; }
.er-pi i.pr2 { animation-delay: 1.2s; }
@keyframes erRingOut { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes erFloat3d { 0%, 100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-6px) rotateX(12deg); } }

/* results: medal-like score disc, 3D flip-in ring and cards */
.er-res { perspective: 1000px; }
.er-score { transform-style: preserve-3d; animation: erMedal 1s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes erMedal { from { opacity: 0; transform: rotateY(-100deg) scale(.7); } }
.er-score::before { inset: 4px; background: radial-gradient(circle at 35% 28%, #ffffff 0, #f2f7ff 45%, #dbe7fb 100%); box-shadow: 0 18px 36px rgba(29,78,216,.25), inset 0 -8px 16px rgba(29,78,216,.12), inset 0 6px 10px rgba(255,255,255,.9), 0 0 0 6px #fff, 0 0 0 7px #d6e4fb; }
.er-score::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -22px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(29,78,216,.28), transparent 70%); }
.er-sv > span { background: radial-gradient(circle at 34% 28%, #bfe0ff 0, #3b82f6 45%, #1e40af 100%); box-shadow: 0 4px 8px rgba(29,78,216,.4), inset 0 1px 2px rgba(255,255,255,.6); }
.er-sv > span.wait { background: radial-gradient(circle at 34% 28%, #fff 0, #dbeafe 60%, #b8cff5 100%); }
.er-sv b { text-shadow: 0 1px 0 #c9daf6, 0 2px 0 #b4cbf2, 0 3px 0 #9fbcee, 0 6px 10px rgba(29,78,216,.25); }
.er-rp { transform-origin: top center; animation: erDrop3d .6s cubic-bezier(.2,.9,.3,1.2) both; box-shadow: 0 4px 0 #dbe6f7, 0 10px 22px rgba(29,78,216,.08); }
.er-rp:nth-child(1) { animation-delay: .5s; } .er-rp:nth-child(2) { animation-delay: .62s; } .er-rp:nth-child(3) { animation-delay: .74s; } .er-rp:nth-child(4) { animation-delay: .86s; } .er-rp:nth-child(5) { animation-delay: .98s; }
@keyframes erDrop3d { from { opacity: 0; transform: rotateX(-75deg) translateY(-10px); } }
.er-rp.no { box-shadow: 0 4px 0 #f7cdd1, 0 10px 22px rgba(229,72,77,.08); }
.er-rp-h > i { box-shadow: 0 2px 0 rgba(29,78,216,.18); }
.er-rp.ok .er-rp-h > i { background: radial-gradient(circle at 34% 28%, #bfe0ff 0, #3b82f6 45%, #1e40af 100%); box-shadow: 0 3px 6px rgba(29,78,216,.35), inset 0 1px 1px rgba(255,255,255,.6); }
.er-rp.no .er-rp-h > i { background: radial-gradient(circle at 34% 28%, #ffd0d4 0, #f06a73 45%, #c7343b 100%); box-shadow: 0 3px 6px rgba(229,72,77,.3), inset 0 1px 1px rgba(255,255,255,.55); }
.er-bar { box-shadow: inset 0 2px 3px rgba(29,78,216,.15); }

/* ============ pause screen (full-screen, blue gradient, 5-minute neon ring) ============ */
.er-paused { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); overflow: hidden; perspective: none;
  background: radial-gradient(120% 80% at 50% 0%, #2f6fe8 0%, #1d4ed8 35%, #14307f 75%, #0c1f5c 100%); -webkit-backdrop-filter: none; backdrop-filter: none; animation: pzIn .45s ease both; }
@keyframes pzIn { from { opacity: 0; } }
.er-paused .pz-a { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; animation: erFloat 12s ease-in-out infinite alternate; pointer-events: none; }
.er-paused .a1 { width: 260px; height: 260px; left: -80px; top: -40px; background: #60a5fa; }
.er-paused .a2 { width: 240px; height: 240px; right: -90px; top: 40%; background: #22d3ee; opacity: .35; animation-delay: -5s; }
.er-paused .a3 { width: 220px; height: 220px; left: 20%; bottom: -80px; background: #818cf8; opacity: .3; animation-delay: -9s; }
.er-paused > div.pz { position: relative; width: 100%; max-width: 360px; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 0; animation: pzUp .6s cubic-bezier(.2,.9,.3,1.1) both; color: #fff; text-align: center; }
@keyframes pzUp { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.pz-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 13px; font-weight: 700; letter-spacing: .04em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pz-chip svg { width: 15px; height: 15px; stroke-width: 3; }
.pz h3 { margin: 14px 0 22px; font-size: 24px; font-weight: 800; color: #fff; }
.pz-ring { position: relative; width: 230px; height: 230px; }
.pz-ring::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%); box-shadow: inset 0 0 30px rgba(125,216,255,.25), 0 20px 40px rgba(3,15,60,.35); animation: pzBreathe 8s ease-in-out infinite; }
@keyframes pzBreathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.02); } }
.pz-ring svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pz-ring circle { fill: none; stroke-width: 10; }
.pz-ring .pz-tr { stroke: rgba(255,255,255,.14); }
.pz-ring .pz-br { stroke: url(#pzG); stroke-linecap: round; stroke-dasharray: 552.9; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.pz-ring .pz-gl { stroke: #7dd8ff; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 552.9; opacity: .45; filter: blur(8px); transition: stroke-dashoffset 1s linear; animation: erNeonL 2.6s ease-in-out infinite; }
.pz-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pz-num small { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.pz-num b { font-size: 54px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(125,216,255,.55), 0 4px 10px rgba(3,15,60,.35); }
.pz-num em { margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #bfe9ff; animation: pzTxt 4s ease-in-out infinite; }
@keyframes pzTxt { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.pz-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 26px 0 22px; }
.pz-info span { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pz-info small { font-size: 11.5px; color: rgba(255,255,255,.72); }
.pz-info b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pz-go { width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; background: linear-gradient(180deg, #ffffff, #e6efff); color: #1d4ed8; font-size: 17px; font-weight: 800;
  box-shadow: 0 5px 0 #9dbdf0, 0 16px 30px rgba(3,15,60,.35), inset 0 1px 0 #fff; transition: transform .12s, box-shadow .12s; }
.pz-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #9dbdf0, 0 8px 16px rgba(3,15,60,.3); }
.pz-go svg { width: 18px; height: 18px; fill: #1d4ed8; stroke: none; }

/* ===== exam pass : real CloverX logo ===== */
.tk-brand .tk-logo { display: block; height: 36px; width: auto; margin: -10px 0 -10px -5px; filter: drop-shadow(0 0 6px rgba(125,211,252,.45)); }
#rmS { white-space: pre-line; }

/* ===== buttons : soft light-neon gradient + shine + sparkle ===== */
.er-cta:not(:disabled), .er-cta.go:not(:disabled), .er-cta.sure:not(:disabled), .er-cta.submit:not(:disabled), #rmGo {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; text-shadow: 0 1px 2px rgba(22,70,170,.35);
  background: linear-gradient(120deg, #43d9ff 0%, #3aa9ff 45%, #4d86ff 100%); background-size: 160% 100%; animation: ngFlow 6s ease-in-out infinite;
  box-shadow: 0 4px 0 #3a7ee6, 0 10px 24px rgba(58,169,255,.38), 0 0 18px rgba(67,217,255,.28), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -10px 18px rgba(77,134,255,.22);
}
.er-cta:not(:disabled):active, #rmGo:active {
  transform: translateY(3px); box-shadow: 0 1px 0 #3a7ee6, 0 5px 12px rgba(58,169,255,.3), inset 0 1px 0 rgba(255,255,255,.6);
}
.er-cta.sure:not(:disabled) { box-shadow: 0 0 0 4px rgba(67,217,255,.25), 0 4px 0 #3a7ee6, 0 12px 26px rgba(58,169,255,.45), inset 0 1px 0 rgba(255,255,255,.65); animation: ngFlow 6s ease-in-out infinite, erWig .5s ease; }
.er-cta.submit:not(:disabled) { animation: ngFlow 6s ease-in-out infinite, ngPulse 2.2s ease-in-out infinite; }
/* shine sweep */
.er-cta::before, #rmGo::before, .pz-go::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.15) 54%, transparent 66%);
  transform: translateX(-130%); animation: ngShine 3.6s cubic-bezier(.4,0,.2,1) infinite;
}
/* sparkle (วิ้ง) */
.er-cta:not(:disabled)::after, #rmGo::after, .pz-go::after {
  content: ""; position: absolute; top: 16%; right: 12%; width: 11px; height: 11px; z-index: 1; pointer-events: none; background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; transform: scale(0); animation: ngTwinkle 3.6s ease-in-out infinite;
}
#rmGo::after { width: 7px; height: 7px; top: 14%; right: 14%; }
.pz-go { position: relative; overflow: hidden; isolation: isolate; }
.pz-go::before { background: linear-gradient(105deg, transparent 32%, rgba(67,217,255,.35) 48%, transparent 64%); }
.pz-go::after { background: #3aa9ff; }
.er-cta:disabled::after { display: none; }
/* secondary white buttons : soft neon edge */
.er-nav { background: linear-gradient(180deg, #ffffff, #eef7ff); border-color: #bfe3ff; box-shadow: 0 3px 0 #d6e9fb, 0 8px 18px rgba(58,169,255,.14), 0 0 0 3px rgba(67,217,255,.06); }
.er-nav { color: #2f8cf0; }
@keyframes ngFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ngShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes ngTwinkle { 0%, 48%, 100% { opacity: 0; transform: scale(0) rotate(0); } 58% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .9; transform: scale(.8) rotate(90deg); } 80% { opacity: 0; transform: scale(0) rotate(135deg); } }
@keyframes ngPulse { 50% { box-shadow: 0 0 0 6px rgba(67,217,255,.22), 0 4px 0 #3a7ee6, 0 14px 30px rgba(58,169,255,.5), 0 0 26px rgba(67,217,255,.4), inset 0 1px 0 rgba(255,255,255,.65); } }
@media (prefers-reduced-motion: reduce) { .er-cta, #rmGo, .er-cta::before, .er-cta::after, #rmGo::before, #rmGo::after, .pz-go::before, .pz-go::after { animation: none !important; } }
#erRS { white-space: pre-line; }
/* result ring : soft rose neon for a failed attempt, same feel as the blue ring */
.er-score.fail .sb { stroke: #fbe9ee; }
.er-score.fail .sf { stroke: url(#erGr); }
.er-score.fail .sg { stroke: #ff8fa3; opacity: .22; animation: erNeonR 3s ease-in-out infinite; }
@keyframes erNeonR { 50% { opacity: .34; stroke-width: 16; } }
/* sparkles around the rose ring */
.er-score.fail .er-sv::before, .er-score.fail .er-sv::after { content: ""; position: absolute; width: 20px; height: 20px; z-index: 2; pointer-events: none; background: linear-gradient(135deg, #fff, #ffe3e9);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px #ff8fa3) drop-shadow(0 0 8px rgba(255,143,163,.6)); opacity: 0; animation: erSpk 3.2s ease-in-out infinite; }
.er-score.fail .er-sv::before { top: 6%; right: 14%; }
.er-score.fail .er-sv::after { width: 14px; height: 14px; bottom: 16%; left: 6%; animation-delay: 1.6s; }
.er-sv > span.no::after { content: ""; position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: erSpk 2.4s ease-in-out .8s infinite; }
.er-sv > span.no { position: relative; }
@keyframes erSpk { 0%, 55%, 100% { opacity: 0; transform: scale(0) rotate(0); } 68% { opacity: 1; transform: scale(1.1) rotate(45deg); } 82% { opacity: 0; transform: scale(.2) rotate(110deg); } }
.er-sv > span.no { color: #fff; background: radial-gradient(circle at 34% 28%, #ffe0e6 0, #fb7f95 50%, #e54866 100%); box-shadow: 0 4px 10px rgba(240,80,110,.35), 0 0 14px rgba(255,143,163,.45), inset 0 1px 2px rgba(255,255,255,.7); }
.er-sv > span.no svg { width: 18px; height: 18px; stroke-width: 2.6; }

/* ===== E-XAM hub : X-VISOR (blue, silver lettering) + X-LEAD (grey padlock -> white-gold metallic) ===== */
.hb { background: radial-gradient(120% 60% at 50% 0%, #ffffff 0, #f1f6fe 55%, #e8f0fb 100%); min-height: 100vh; padding-bottom: calc(96px + var(--safe-b)); }
.hb .ex-top { background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hb-in { padding: 14px 18px 24px; }
.hb-hello { margin: 0; font-size: 13px; color: #64748b; }
.hb-h { margin: 2px 0 18px; font-size: 22px; font-weight: 800; color: #0f1f4d; }
.hb-card { position: relative; display: block; width: 100%; text-align: left; border-radius: 24px; padding: 20px 20px 18px; margin-bottom: 22px; overflow: hidden; min-height: 184px; isolation: isolate; font: inherit; transform: perspective(900px) rotateX(4deg); transition: transform .25s cubic-bezier(.2,.9,.3,1.2); -webkit-tap-highlight-color: transparent; }
.hb-card:active { transform: perspective(900px) rotateX(4deg) translateY(4px) scale(.99); }
.hb-card > span { position: relative; z-index: 1; }
.hb-tag { display: block; font-size: 11px; letter-spacing: .24em; font-weight: 800; }
.hb-tt { display: flex !important; align-items: center; gap: 6px; margin: 4px 0 2px; }
.hb-tt b { font-family: Inter, "Noto Sans Thai", sans-serif; font-size: 34px; font-weight: 900; letter-spacing: .02em; line-height: 1.15; }
.hb-st { width: 20px; height: 20px; align-self: center; margin-left: 2px; stroke: none; }
.hb-sub { display: block; font-size: 13px; line-height: 1.6; white-space: pre-line; max-width: 72%; }
.hb-row { display: flex !important; align-items: center; justify-content: space-between; margin-top: 14px; min-height: 42px; }
.hb-chip { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hb-chip:empty { visibility: hidden; }
.hb-go { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 800; display: grid; place-items: center; position: relative; overflow: hidden; }
.hb-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 46%, transparent 60%); transform: translateX(-130%); animation: ngShine 3.6s cubic-bezier(.4,0,.2,1) infinite; }
.hb-sheen { position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 58%); background-size: 260% 100%; animation: hbSheen 6s ease-in-out infinite; }
@keyframes hbSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hb-glow { position: absolute; z-index: 0; right: -40px; top: -50px; width: 220px; height: 220px; border-radius: 50%; }
.hb-coin { position: absolute !important; right: 18px; top: 18px; width: 66px; height: 66px; border-radius: 50%; display: grid !important; place-items: center; }
.hb-coin svg { width: 34px; height: 34px; stroke: none; }
.hb-silver, .hb-gold { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hb-silver { background-image: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.7) 43%, #fff 48%, #c8f6ff 52%, transparent 60%), linear-gradient(180deg, #f3f7fc 0%, #c9d6e7 48%, #9fb2cc 62%, #dfe8f4 100%); background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0; background-repeat: no-repeat; filter: drop-shadow(0 2px 0 rgba(3,10,50,.35)) drop-shadow(0 0 8px rgba(125,211,252,.35)); animation: titleShine 4.2s ease-in-out 1s infinite; }
.hb-gold { background-image: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.8) 44%, #fffbe8 48%, transparent 58%), linear-gradient(180deg, #f9e7a8 0%, #d9a93c 42%, #8f6212 56%, #c8932c 72%, #f2d27a 100%); background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0; background-repeat: no-repeat; filter: drop-shadow(0 2px 0 rgba(120,80,10,.3)) drop-shadow(0 0 6px rgba(255,214,110,.5)); animation: titleShine 4.2s ease-in-out 2.4s infinite; }
/* X-VISOR */
.hb-xv { color: #dbeafe; background: linear-gradient(145deg, #0b1f7a 0%, #1740b0 50%, #1f7fe0 100%); box-shadow: 0 6px 0 #0a1a5e, 0 22px 36px rgba(23,64,176,.38), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -14px 24px rgba(3,10,50,.25); }
.hb-xv .hb-glow { background: radial-gradient(circle, rgba(0,229,255,.45), transparent 65%); }
.hb-xv .hb-tag { color: #93c5fd; }
.hb-xv .hb-st { fill: #e6f7ff; filter: drop-shadow(0 0 4px #bdf3ff) drop-shadow(0 0 8px #00e5ff); animation: twinkle 4.2s ease-in-out 1s infinite; }
.hb-xv .hb-coin { background: radial-gradient(circle at 32% 26%, #bff4ff 0, #3aa9ff 40%, #1741b0 100%); box-shadow: 0 5px 0 #0c2a80, 0 10px 18px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.7), inset 0 -6px 10px rgba(5,20,90,.45), 0 0 18px rgba(0,229,255,.45); }
.hb-xv .hb-coin svg { fill: #fff; filter: drop-shadow(0 1px 1px rgba(5,20,90,.5)); }
.hb-xv .hb-chip { background: rgba(125,211,252,.16); box-shadow: inset 0 0 0 1px rgba(125,211,252,.45); color: #bae6fd; }
.hb-xv .hb-go { color: #fff; background: linear-gradient(120deg, #43d9ff, #3aa9ff 45%, #4d86ff); box-shadow: 0 4px 0 #1f5fcf, 0 0 18px rgba(67,217,255,.45), inset 0 1px 0 rgba(255,255,255,.6); }
/* X-LEAD locked */
.hb-xl.lock { color: #94a3b8; background: linear-gradient(150deg, #f7f9fc, #e7ecf3 60%, #dde3ec); box-shadow: 0 6px 0 #cfd7e3, 0 18px 30px rgba(100,116,139,.18), inset 0 1px 0 #fff; }
.hb-xl.lock .hb-tag { color: #a3aebf; }
.hb-xl.lock .hb-gold { background-image: linear-gradient(180deg, #e9edf3 0%, #b9c3d1 50%, #9aa6b8 60%, #d5dce6 100%); background-size: 100% 100%; background-position: 0 0; filter: drop-shadow(0 1px 0 #fff); animation: none; }
.hb-xl.lock .hb-st, .hb-xl.lock .hb-glow, .hb-xl.lock .hb-sheen, .hb-xl.lock .hb-spk { display: none; }
.hb-xl.lock .hb-coin { background: radial-gradient(circle at 32% 26%, #fff 0, #d6dde7 45%, #a9b5c6 100%); box-shadow: 0 5px 0 #b3bfcf, 0 8px 14px rgba(100,116,139,.2), inset 0 2px 3px #fff; opacity: .7; }
.hb-xl.lock .hb-coin svg { fill: #eef2f7; }
.hb-xl.lock .hb-chip { background: #e2e8f0; color: #64748b; box-shadow: inset 0 1px 2px rgba(100,116,139,.15); }
.hb-frost { position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); opacity: .5; display: none; }
.hb-xl.lock .hb-frost { display: block; }
.hb-padl { position: absolute !important; right: 26px; bottom: 20px; width: 62px; height: 62px; border-radius: 20px; display: none !important; place-items: center; background: linear-gradient(180deg, #ffffff, #eef2f7); box-shadow: 0 5px 0 #cdd6e2, 0 12px 20px rgba(100,116,139,.25), inset 0 1px 0 #fff; }
.hb-xl.lock .hb-padl { display: grid !important; }
.hb-lk { width: 38px; height: 38px; stroke: none; filter: drop-shadow(0 2px 2px rgba(71,85,105,.3)); }
.hb-xl.lock:active .hb-padl { animation: hbShake .4s ease; }
@keyframes hbShake { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }
/* X-LEAD unlocked : white-gold metallic */
.hb-xl.gold { color: #6b4e12; background: linear-gradient(145deg, #fffdf7 0%, #fdf3d8 40%, #f3dc9c 75%, #e7c26a 100%); box-shadow: 0 6px 0 #c9a045, 0 22px 36px rgba(190,140,30,.35), inset 0 1px 0 #fff, inset 0 -14px 24px rgba(180,130,30,.18); }
.hb-xl.gold .hb-glow { background: radial-gradient(circle, rgba(255,244,200,.95), transparent 65%); }
.hb-xl.gold .hb-sheen { background-image: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 48%, transparent 58%); }
.hb-xl.gold .hb-tag { color: #b08a2e; }
.hb-xl.gold .hb-st { fill: #fff6d2; filter: drop-shadow(0 0 3px #ffe9a0) drop-shadow(0 0 7px #ffc93c) drop-shadow(0 0 12px rgba(255,190,40,.8)); animation: twinkle 4.2s ease-in-out 2.4s infinite; }
.hb-xl.gold .hb-coin { background: radial-gradient(circle at 32% 26%, #fffbe6 0, #f5d27a 38%, #c8922e 75%, #8f6415 100%); box-shadow: 0 5px 0 #8a6213, 0 10px 18px rgba(140,100,20,.35), inset 0 2px 3px rgba(255,255,255,.9), inset 0 -6px 10px rgba(120,80,10,.4), 0 0 18px rgba(255,210,100,.6); }
.hb-xl.gold .hb-coin svg { fill: #fffaf0; filter: drop-shadow(0 1px 1px rgba(120,80,10,.6)); }
.hb-xl.gold .hb-chip { background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px #e6c46e; color: #9a7318; }
.hb-xl.gold .hb-go { color: #4a3508; background: linear-gradient(120deg, #fff0bf, #f0c75a 45%, #d4a23e); box-shadow: 0 4px 0 #a97e22, 0 0 18px rgba(240,199,90,.55), inset 0 1px 0 #fff; }
.hb-spk { position: absolute; z-index: 1; right: 30px; top: 104px; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: erSpk 3.2s ease-in-out infinite; }
.hb-spk.s2 { right: 118px; top: 26px; width: 9px; height: 9px; animation-delay: 1.6s; }
/* locked sheet */
.hb-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-end; animation: hbFade .2s ease; }
.hb-sheet[hidden] { display: none; }
@keyframes hbFade { from { opacity: 0; } }
.hb-sh { width: 100%; max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, #fff, #f5f8fd); border-radius: 28px 28px 0 0; padding: 14px 22px calc(26px + var(--safe-b)); text-align: center; box-shadow: 0 -12px 30px rgba(15,23,42,.2); animation: hbUp .38s cubic-bezier(.2,.9,.3,1.1); }
@keyframes hbUp { from { transform: translateY(100%); } }
.hb-grab { width: 40px; height: 5px; border-radius: 9px; background: #dbe3ee; margin: 0 auto 16px; }
.hb-bigl { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #eef2f7); box-shadow: 0 7px 0 #cdd6e2, 0 16px 26px rgba(100,116,139,.28), inset 0 1px 0 #fff; }
.hb-bigl .hb-lk { width: 54px; height: 54px; }
.hb-sh h4 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #0f172a; }
.hb-sh p { margin: 0 0 14px; font-size: 13.5px; color: #64748b; line-height: 1.6; }
.hb-steps { text-align: left; margin: 0 0 18px; background: #fff; border-radius: 18px; padding: 6px 14px; box-shadow: 0 3px 0 #e3eaf5, 0 8px 18px rgba(29,78,216,.06); }
.hb-sp { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #64748b; padding: 10px 0; }
.hb-sp + .hb-sp { border-top: 1px dashed #e2e8f0; }
.hb-sp span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #94a3b8; box-shadow: 0 2px 0 #cbd5e1; }
.hb-sp.ok { color: #1e3a8a; font-weight: 700; }
.hb-sp.ok span { color: #fff; background: radial-gradient(circle at 34% 28%, #bfe0ff, #3b82f6 50%, #1e40af); box-shadow: 0 2px 0 #1a3486, 0 0 10px rgba(59,130,246,.4); }
.hb-ok { width: 100%; height: 52px; border-radius: 16px; font-size: 15px; font-weight: 800; color: #fff; position: relative; overflow: hidden; background: linear-gradient(120deg, #43d9ff, #3aa9ff 45%, #4d86ff); box-shadow: 0 4px 0 #1f5fcf, 0 0 18px rgba(67,217,255,.4); }
.hb-ok:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f5fcf; }
@media (prefers-reduced-motion: reduce) { .hb-sheen, .hb-silver, .hb-gold, .hb-st, .hb-spk, .hb-go::after { animation: none !important; } }

/* ===== X-LEAD registration (white-gold) ===== */
.xl-reg { padding: 6px 18px 0; }
.xl-hero { position: relative; overflow: hidden; margin: 8px 0 18px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(145deg, #fffdf7 0%, #fdf3d8 40%, #f3dc9c 80%, #e7c26a 100%); box-shadow: 0 5px 0 #c9a045, 0 16px 28px rgba(190,140,30,.28), inset 0 1px 0 #fff; }
.xl-hero b { display: block; font-family: Inter, "Noto Sans Thai", sans-serif; font-size: 32px; font-weight: 900; line-height: 1.2; }
.xl-hero p { margin: 2px 0 0; font-size: 13px; color: #6b4e12; }
.xl-badge { font-size: 11px; letter-spacing: .24em; font-weight: 800; color: #b08a2e; }
.xl-rounds { display: grid; gap: 10px; }
.xl-wait { padding: 22px 18px; border-radius: 18px; text-align: center; background: #fffaf0; border: 1.5px dashed #e6c46e; }
.xl-wait b { display: block; font-size: 15px; color: #8a6414; }
.xl-wait small { font-size: 12.5px; color: #a0845a; }

/* ===== exam pass as a wallet : the card sits in the pocket, tap to pull it out ===== */
.tk.wl { --wb1: #1740b0; --wb2: #0b1f7a; position: relative; overflow: visible; margin-top: 8px; padding-top: 78px; background: none; box-shadow: none; color: #fff; cursor: pointer; outline: none; transition: padding-top .6s cubic-bezier(.2,.9,.25,1.12); -webkit-tap-highlight-color: transparent; }
.tk.wl::before, .tk.wl::after { display: none; }
.tk.wl.pop { padding-top: 196px; }
.tk-shell { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; border-radius: 28px; background: linear-gradient(180deg, #7fa8f5, #4a78e0); box-shadow: 0 18px 34px rgba(23,64,176,.28); transition: top .6s cubic-bezier(.2,.9,.25,1.12); }
.tk.wl.pop .tk-shell { top: 170px; }
.tk-cards { position: absolute; left: 18px; right: 18px; top: 0; height: 180px; z-index: 1; transition: transform .6s cubic-bezier(.2,.9,.25,1.12); }
.tk.wl.pop .tk-cards { transform: translateY(-6px) rotate(-1.2deg); }
.tk-back { position: absolute; left: 22px; right: 22px; top: -9px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #9ab8f0, #6f94e0); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); transition: transform .6s cubic-bezier(.2,.9,.25,1.12); }
.tk.wl.pop .tk-back { transform: translateY(112px); }
.tk-card { position: relative; height: 100%; border-radius: 20px; overflow: hidden; padding: 0; color: #fff;
  background: linear-gradient(125deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%), linear-gradient(135deg, #a9c6ff 0%, #6f9af0 38%, #3d6fdc 70%, #7fa6f5 100%);
  box-shadow: 0 10px 24px rgba(23,64,176,.35), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(10,30,100,.3); }
.tk-gloss { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.45) 48%, transparent 58%); background-size: 260% 100%; animation: hbSheen 5s ease-in-out infinite; pointer-events: none; }
.tk.wl .tk-top { position: relative; padding: 14px 18px 0; }
.tk.wl .tk-kicker { position: relative; margin: 8px 18px 0; color: rgba(255,255,255,.85); text-shadow: 0 1px 1px rgba(10,30,100,.3); }
.tk.wl .tk-name { position: relative; margin: 2px 18px 0; font-size: 20px; text-shadow: 0 1px 2px rgba(10,30,100,.35); }
.tk.wl .tk-bot { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
.tk.wl .tk-brand { gap: 6px; }
.tk-wm { font-family: Inter, "Noto Sans Thai", sans-serif; font-size: 26px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.tk.wl .tk-st { width: 17px; height: 17px; fill: #e6f7ff; stroke: none; filter: drop-shadow(0 0 4px #bdf3ff) drop-shadow(0 0 8px #00e5ff); animation: twinkle 4.2s ease-in-out 1s infinite; }
.tk-lv { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.tk-coin { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, #bff4ff 0, #3aa9ff 40%, #1741b0 100%); box-shadow: 0 3px 0 #0c2a80, 0 6px 12px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.7), 0 0 14px rgba(0,229,255,.4); }
.tk-coin svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
body.lv-xlead .tk.wl .tk-st { fill: #fff6d2; filter: drop-shadow(0 0 3px #ffe9a0) drop-shadow(0 0 7px #ffc93c) drop-shadow(0 0 12px rgba(255,190,40,.8)); }
body.lv-xlead .tk-lv { color: #6b4e12; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(160,120,40,.45); }
body.lv-xlead .tk-coin { background: radial-gradient(circle at 32% 26%, #fffbe6 0, #f5d27a 38%, #c8922e 75%, #8f6415 100%); box-shadow: 0 3px 0 #8a6213, 0 6px 12px rgba(140,100,20,.3), inset 0 2px 3px rgba(255,255,255,.9), 0 0 14px rgba(255,210,100,.55); }
.tk.wl .tk-code small { color: rgba(255,255,255,.8); }
.tk.wl .tk-code b { font-size: 18px; text-shadow: 0 1px 2px rgba(10,30,100,.35); }
.tk.wl .tk-qr { width: 92px; height: 92px; box-shadow: 0 4px 10px rgba(10,30,100,.25); }
.tk.wl .tk-badge { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.tk.wl .tk-badge.wait { background: rgba(251,191,36,.25); color: #fff7d6; }
.tk.wl .tk-badge.tk-in { color: #fff !important; background: rgba(34,197,94,.35) !important; }
.tk-pocket { position: relative; z-index: 2; margin: 0 0 0; padding: 30px 22px 18px; border-radius: 26px; background: radial-gradient(90% 70% at 20% 0%, rgba(125,211,252,.28), transparent 60%), linear-gradient(160deg, var(--wb1) 0%, var(--wb2) 100%);
  box-shadow: 0 -6px 16px rgba(10,30,100,.28), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -10px 20px rgba(3,10,50,.25);
  -webkit-mask: radial-gradient(56% 16px at 50% 0, transparent 98%, #000 100%); mask: radial-gradient(56% 16px at 50% 0, transparent 98%, #000 100%); }
.tk-pocket::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 20px; pointer-events: none; -webkit-mask: radial-gradient(56% 12px at 50% 0, transparent 98%, #000 100%); mask: radial-gradient(56% 12px at 50% 0, transparent 98%, #000 100%); }
.tk.wl .tk-grid { position: relative; padding: 0; gap: 12px 16px; }
.tk.wl .tk-grid small { color: rgba(255,255,255,.65); }
.tk.wl .tk-wide b { font-size: 18px; font-weight: 800; }
.tk-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tk-foot em { font-style: normal; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.8); }
.tk-tap { flex: none; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); animation: tkNudge 2.6s ease-in-out infinite; }
@keyframes tkNudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(0); } }
.tk.wl:not(.pop) .tk-cards { animation: tkPeek 4s ease-in-out 1.2s infinite; }
@keyframes tkPeek { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-8px); } }
.tk.wl.pending .tk-card { filter: none; }
/* X-LEAD wallet in gold */
body.lv-xlead .tk.wl { --wb1: #b8862a; --wb2: #7a5410; color: #fff; }
body.lv-xlead .tk-shell { background: linear-gradient(180deg, #f3dc9c, #d9ae4c); box-shadow: 0 18px 34px rgba(160,110,20,.3); }
body.lv-xlead .tk-back { background: linear-gradient(135deg, #f6e3a8, #d9b35a); }
body.lv-xlead .tk-card { background: linear-gradient(125deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 32%), linear-gradient(135deg, #fff1c4 0%, #e9c46a 38%, #b9862a 70%, #f0d27f 100%); box-shadow: 0 10px 24px rgba(150,100,20,.35), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(100,70,10,.3); }
body.lv-xlead .tk.wl .tk-kicker, body.lv-xlead .tk.wl .tk-name, body.lv-xlead .tk.wl .tk-code b { text-shadow: 0 1px 2px rgba(90,60,5,.45); }
body.lv-xlead .tk-pocket { background: radial-gradient(90% 70% at 20% 0%, rgba(255,236,170,.35), transparent 60%), linear-gradient(160deg, var(--wb1) 0%, var(--wb2) 100%); }
body.lv-xlead .tk.wl .tk-logo { filter: none; }
body.lv-xlead .tk-card { color: #4a3508; }
body.lv-xlead .tk.wl .tk-kicker { color: #8a6414; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
body.lv-xlead .tk.wl .tk-name, body.lv-xlead .tk.wl .tk-code b { color: #3d2b05; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
body.lv-xlead .tk.wl .tk-code small { color: #8a6414; }
body.lv-xlead .tk.wl .tk-card .tk-badge { background: rgba(255,255,255,.55); color: #6b4e12; box-shadow: inset 0 0 0 1px rgba(160,120,40,.45); }
@media (prefers-reduced-motion: reduce) { .tk.wl, .tk-shell, .tk-cards, .tk-back { transition: none; } .tk-gloss, .tk-tap, .tk.wl:not(.pop) .tk-cards { animation: none !important; } }

/* ===== wallet v2 : one or two cards in the pocket, tap a card to pull it out as a pop-up ===== */
.tk.wl { cursor: default; }
.tk.wl.two { padding-top: 128px; }
.tk.wl.two .tk-shell { top: 102px; }
.tk.wl .tk-card { position: absolute; left: 0; right: 0; top: 0; height: 180px; display: block; width: auto; border: 0; font: inherit; text-align: left; cursor: pointer; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.tk.wl .tk-card > span { display: block; }
.tk.wl .tk-card .tk-top { display: flex; }
.tk.wl .tk-card .tk-bot { display: flex; }
.tk.wl.two .tk-card:not(.tk-cb) { top: 50px; }
.tk.wl .tk-card:hover, .tk.wl .tk-card:focus-visible { transform: translateY(-8px); outline: none; }
.tk.wl .tk-card:active { transform: translateY(-14px) scale(1.01); }
.tk.wl .tk-cards { animation: none !important; }
.tk.wl .tk-card:not(.tk-cb) { animation: tkPeek2 4.5s ease-in-out 1.2s infinite; }
@keyframes tkPeek2 { 0%, 80%, 100% { translate: 0 0; } 88% { translate: 0 -9px; } }
.tk.wl .tk-card:hover { animation: none; }
/* certificate card faces */
.tk.wl .tk-cc, .wl-pass .tk-cc { background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255,255,255,.07) 0 8deg, transparent 8deg 22deg), radial-gradient(120% 90% at 50% 0%, #8ef0ff 0, rgba(142,240,255,0) 55%), linear-gradient(160deg, #2a9df0 0%, #1447c4 55%, #0b1f7a 100%); box-shadow: 0 10px 24px rgba(11,31,122,.4), inset 0 1px 0 rgba(255,255,255,.7), 0 0 18px rgba(0,229,255,.25); }
body.lv-xlead .tk.wl .tk-cc:not(.tk-cb), body.lv-xlead .wl-pass .tk-cc { background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255,255,255,.12) 0 8deg, transparent 8deg 22deg), radial-gradient(120% 90% at 50% 0%, #fff6d2 0, rgba(255,246,210,0) 55%), linear-gradient(160deg, #fbe7ad 0%, #deb055 55%, #a9781d 100%); box-shadow: 0 10px 24px rgba(150,100,20,.4), inset 0 1px 0 rgba(255,255,255,.9), 0 0 18px rgba(255,210,100,.35); }
body.lv-xlead .tk.wl .tk-cb { color: #fff; }
body.lv-xlead .tk.wl .tk-cb .tk-st { fill: #e6f7ff; filter: drop-shadow(0 0 4px #bdf3ff) drop-shadow(0 0 8px #00e5ff); }
body.lv-xlead .tk.wl .tk-cb .tk-badge { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.tk-cb .tk-top { padding-top: 10px !important; }
/* pop-up */
.wl-pop { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px 18px calc(20px + var(--safe-b)); background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-y: auto; }
.wl-pop[hidden] { display: none; }
.wl-pop.go { animation: hbFade .25s ease; }
.wl-stage { width: min(380px, 100%); perspective: 900px; }
.wl-pop.go .wl-stage { animation: wlUp .7s cubic-bezier(.2,1.25,.35,1) both; }
@keyframes wlUp { 0% { transform: translateY(46vh) scale(.72) rotateX(28deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; } }
.wl-stage .cert { margin: 0; }
.wl-pass .tk-card.big { position: relative; display: block; width: 100%; height: 230px; border: 0; text-align: left; font: inherit; color: #fff; border-radius: 24px; overflow: hidden; animation: none; cursor: default; }
.wl-pass .tk-card.big > span { display: block; }
.wl-pass .tk-card.big .tk-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 0; }
.wl-pass .tk-card.big .tk-kicker { margin: 16px 22px 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.85); }
.wl-pass .tk-card.big .tk-name { margin: 4px 22px 0; font-size: 26px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-pass .tk-card.big .tk-bot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.wl-pass .tk-card.big .tk-wm { font-size: 34px; }
.wl-pass .tk-card.big .tk-coin { width: 52px; height: 52px; }
.wl-pass .tk-card.big .tk-coin svg { width: 26px; height: 26px; }
.wl-pass .tk-card.big .tk-st { width: 20px; height: 20px; }
.wl-close { height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 800; color: #0f1f4d; background: linear-gradient(180deg, #fff, #eef3fb); box-shadow: 0 4px 0 #c9d6ea, 0 10px 22px rgba(0,0,0,.25); }
.wl-close:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d6ea; }
body.wl-open { overflow: hidden; }
body.lv-xlead .wl-pass .tk-card.big { color: #3d2b05; }
body.lv-xlead .wl-pass .tk-card.big .tk-kicker { color: #8a6414; }
body.lv-xlead .wl-pass .tk-card.big .tk-badge { background: rgba(255,255,255,.55); color: #6b4e12; box-shadow: inset 0 0 0 1px rgba(160,120,40,.45); }
body.lv-xlead .wl-pass .tk-st { fill: #fff6d2; filter: drop-shadow(0 0 3px #ffe9a0) drop-shadow(0 0 7px #ffc93c) drop-shadow(0 0 12px rgba(255,190,40,.8)); }
body.lv-xlead #rmGo { color: #4a3508; text-shadow: none; background: linear-gradient(120deg, #fff0bf, #f0c75a 45%, #d4a23e); box-shadow: 0 4px 0 #a97e22, 0 0 16px rgba(240,199,90,.5), inset 0 1px 0 #fff; }
body.lv-xlead #rmGo::after { background: #fff; }
/* certificate level name : silver metallic (X-VISOR) / gold metallic (X-LEAD), like the E-XAM cards */
#ctLv { background: linear-gradient(100deg, #8a9bb5 0%, #dfe7f2 22%, #ffffff 34%, #b8c6da 48%, #f4f8fc 62%, #9fb0c8 78%, #e6edf6 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10,40,120,.55)) drop-shadow(0 0 10px rgba(125,211,252,.55)); animation: neontx 5s linear infinite; }
body.lv-xlead #ctLv { background-image: linear-gradient(100deg, #8f6212 0%, #d9a93c 22%, #fff3c4 34%, #c8932c 48%, #f9e7a8 62%, #a97a1c 78%, #f2d27a 100%); filter: drop-shadow(0 2px 0 rgba(100,65,5,.5)) drop-shadow(0 0 10px rgba(255,214,110,.6)); }
/* card face: level wordmark + star, EXAM PASS / CERTIFIED and the name only */
.tk.wl .tk-card .tk-badge, .tk.wl .tk-card .tk-bot, .wl-pass .tk-badge, .wl-pass .tk-bot { display: none !important; }
.tk.wl .tk-card { height: 150px; }
.tk.wl .tk-cards { height: 150px; }
.wl-pass .tk-card.big { height: 200px; }
.wl-pass .tk-card.big .tk-top { padding-top: 26px; }
/* card face v3 : credit-card layout (logo top-left, level top-right, chip + name on the left) */
.tk.wl .tk-card, .tk.wl .tk-cards { height: 200px; }
.wl-pass .tk-card.big { height: auto; aspect-ratio: 1.586; }
.tk-card .tk-top { display: flex !important; justify-content: space-between; align-items: center; padding: 16px 18px 0 !important; }
.tk-card .tk-logo { display: block; height: 34px; width: auto; margin: -9px 0 -9px -6px; filter: drop-shadow(0 1px 2px rgba(10,30,100,.35)); }
.tk-card .tk-brand { display: flex; align-items: center; gap: 5px; }
.tk-card .tk-wm { font-size: 21px; }
.tk-chipw { position: absolute; left: 22px; top: 80px; display: flex !important; align-items: center; gap: 8px; }
.tk-chip { position: relative; display: block; width: 44px; height: 34px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(135deg, #f3f6fa 0%, #b9c3d1 38%, #f7f9fc 55%, #98a4b6 100%); box-shadow: inset 0 0 0 1px rgba(60,75,100,.45), 0 1px 3px rgba(0,0,0,.3); }
.tk-chip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 32%, rgba(60,75,100,.45) 32% 34%, transparent 34% 66%, rgba(60,75,100,.45) 66% 68%, transparent 68%), linear-gradient(180deg, transparent 32%, rgba(60,75,100,.45) 32% 35%, transparent 35% 65%, rgba(60,75,100,.45) 65% 68%, transparent 68%); }
.tk-chip b { position: absolute; left: 34%; right: 34%; top: 35%; bottom: 35%; border-radius: 3px; background: linear-gradient(135deg, #fff, #c7d0dc); box-shadow: inset 0 0 0 1px rgba(60,75,100,.4); }
.tk-nfc { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.8; stroke-linecap: round; }
.tk.wl .tk-card .tk-name, .wl-pass .tk-card .tk-name { position: absolute; left: 22px; right: 110px; bottom: 20px; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk.wl .tk-card .tk-kicker, .wl-pass .tk-card .tk-kicker { position: absolute; right: 18px; bottom: 22px; margin: 0; font-size: 10.5px; letter-spacing: .16em; }
.wl-pass .tk-card.big .tk-top { padding: 20px 22px 0 !important; }
.wl-pass .tk-card.big .tk-logo { height: 42px; margin: -11px 0 -11px -7px; }
.wl-pass .tk-card.big .tk-wm { font-size: 27px; }
.wl-pass .tk-card.big .tk-chipw { left: 26px; top: 40%; }
.wl-pass .tk-card.big .tk-chip { width: 54px; height: 42px; }
.wl-pass .tk-card.big .tk-name { left: 26px; bottom: 24px; font-size: 21px; }
.wl-pass .tk-card.big .tk-kicker { right: 22px; bottom: 27px; font-size: 12px; }
body.lv-xlead .tk-card:not(.tk-cb) .tk-chip { background: linear-gradient(135deg, #fff4cf 0%, #e0b85a 40%, #fff1c4 56%, #b7872a 100%); box-shadow: inset 0 0 0 1px rgba(120,85,15,.5), 0 1px 3px rgba(0,0,0,.25); }
body.lv-xlead .tk-card:not(.tk-cb) .tk-chip::before { background: linear-gradient(90deg, transparent 32%, rgba(120,85,15,.45) 32% 34%, transparent 34% 66%, rgba(120,85,15,.45) 66% 68%, transparent 68%), linear-gradient(180deg, transparent 32%, rgba(120,85,15,.45) 32% 35%, transparent 35% 65%, rgba(120,85,15,.45) 65% 68%, transparent 68%); }
body.lv-xlead .tk-card:not(.tk-cb) .tk-chip b { background: linear-gradient(135deg, #fffbe8, #e7c679); box-shadow: inset 0 0 0 1px rgba(120,85,15,.4); }
body.lv-xlead .tk-card:not(.tk-cb) .tk-nfc { stroke: rgba(90,60,5,.7); }
body.lv-xlead .tk-card:not(.tk-cb) .tk-logo { filter: none; }
body.lv-xlead .tk.wl .tk-cb .tk-name, body.lv-xlead .tk.wl .tk-cb .tk-kicker { color: #fff; text-shadow: 0 1px 2px rgba(10,30,100,.35); }
.tk-card .tk-wm.hb-gold { background-image: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.7) 44%, #fff6d6 48%, transparent 58%), linear-gradient(180deg, #e9c46a 0%, #a8781c 42%, #5f420a 58%, #946a18 76%, #d4a843 100%); filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)) drop-shadow(0 0 4px rgba(255,214,110,.5)); }
#ctLv { filter: drop-shadow(0 2px 0 rgba(8,30,100,.8)) drop-shadow(0 0 1px rgba(8,30,100,.9)) drop-shadow(0 0 10px rgba(125,211,252,.55)); }
body.lv-xlead #ctLv { filter: drop-shadow(0 2px 0 rgba(90,60,5,.7)) drop-shadow(0 0 1px rgba(90,60,5,.8)) drop-shadow(0 0 10px rgba(255,214,110,.6)); }
/* two cards: the back card only peeks a little (like a real wallet); tap to switch */
.tk.wl.two { padding-top: 96px; }
.tk.wl.two .tk-shell { top: 70px; }
.tk.wl.two .tk-card { transition: top .45s cubic-bezier(.2,.9,.3,1.15), transform .35s cubic-bezier(.2,.9,.3,1.2); }
.tk.wl.two .tk-cb { top: 0; z-index: 1; }
.tk.wl.two .tk-card:not(.tk-cb) { top: 18px; z-index: 2; }
.tk.wl.two.swp .tk-cb { top: 18px; z-index: 2; }
.tk.wl.two.swp .tk-card:not(.tk-cb) { top: 0; z-index: 1; }
.tk.wl.two .tk-cb:not(:hover) { animation: none; }
.tk.wl.two.swp .tk-card:not(.tk-cb) { animation: none; }
.tk.wl.two.swp .tk-cb { animation: tkPeek2 4.5s ease-in-out 1.2s infinite; }
.tk-foot em { display: none; }
.tk-foot { justify-content: flex-end; }
.tk-tap { cursor: pointer; }
/* wallet in brushed silver : a neutral tone that sits well with both the blue and the gold cards */
body .tk.wl .tk-shell, body.lv-xlead .tk.wl .tk-shell { background: linear-gradient(180deg, #eef2f7, #c5cfdc); box-shadow: 0 18px 34px rgba(71,85,105,.28), inset 0 1px 0 #fff; }
body .tk.wl .tk-pocket, body.lv-xlead .tk.wl .tk-pocket { color: #1e293b;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, rgba(0,0,0,.025) 2px 4px), linear-gradient(170deg, #f4f7fb 0%, #d5dde8 45%, #aeb9c9 100%);
  box-shadow: 0 -6px 16px rgba(71,85,105,.22), inset 0 1px 0 #fff, inset 0 -10px 20px rgba(71,85,105,.18); }
body .tk.wl .tk-pocket::before { border-color: rgba(71,85,105,.35); }
body .tk.wl .tk-grid small, body.lv-xlead .tk.wl .tk-grid small { color: #64748b; }
body .tk.wl .tk-grid b, body.lv-xlead .tk.wl .tk-grid b { color: #0f1f4d; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
body .tk.wl .tk-tap, body.lv-xlead .tk.wl .tk-tap { color: #334155; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(71,85,105,.3), 0 2px 0 rgba(71,85,105,.15); }
body .tk.wl, body.lv-xlead .tk.wl { background: none !important; box-shadow: none !important; }
/* glass pill button on the wallet */
body .tk.wl .tk-tap, body.lv-xlead .tk.wl .tk-tap { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #1e293b;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.12)); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(71,85,105,.12), 0 4px 12px rgba(71,85,105,.18); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.tk.wl .tk-tap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tk.wl .tk-tap:active { transform: scale(.96); }
/* pocket holds no text: just the cards and the glass button */
body .tk.wl #tkInfo, body .tk.wl #tkCInfo { display: none !important; }
body .tk.wl .tk-pocket { min-height: 124px; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 18px 18px; }
body .tk.wl.two .tk-pocket { min-height: 142px; }
body .tk.wl .tk-foot { margin-top: 0; justify-content: flex-end; }
/* card face: full name, lighter weight; no EXAM PASS label */
.tk.wl .tk-card .tk-kicker, .wl-pass .tk-card .tk-kicker { display: none !important; }
.tk.wl .tk-card .tk-name, .wl-pass .tk-card .tk-name { right: 22px !important; font-weight: 600 !important; letter-spacing: .01em; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; font-size: 16px !important; }
.wl-pass .tk-card.big .tk-name { font-size: 19px !important; right: 26px !important; }
/* taller pocket like a real wallet: only the top of the card peeks out */
body .tk.wl .tk-pocket { min-height: 190px !important; }
body .tk.wl.two .tk-pocket { min-height: 196px !important; }
body .tk.wl .tk-pocket { border-radius: 28px 28px 34px 34px; }
/* X-VISOR card = same tone as the home hero, with drifting clovers */
body:not(.lv-xlead) .tk.wl #tkCard, body .tk.wl #tkCardB, body:not(.lv-xlead) .wl-pass .tk-card.big {
  background: radial-gradient(220px 220px at 30% 45%, rgba(0,229,255,.2), transparent 65%), linear-gradient(90deg, #0f172a, #2563eb) !important;
  box-shadow: 0 12px 26px rgba(15,23,42,.3), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(125,211,252,.25) !important; }
.tk-card .tk-fx { position: absolute; inset: 0; z-index: 0; }
.tk-card .tk-fx .mc { stroke: none; }
.tk-card > span:not(.tk-fx) { position: relative; z-index: 1; }
.tk.wl .tk-card .tk-chipw, .wl-pass .tk-card .tk-chipw { position: absolute !important; z-index: 1; }
.tk.wl .tk-card .tk-name, .wl-pass .tk-card .tk-name { position: absolute !important; z-index: 1; }
body.lv-xlead .tk.wl #tkCard .tk-fx, body.lv-xlead .wl-pass .tk-fx { display: none; }
@media (prefers-reduced-motion: reduce) { .tk-fx .mc { animation: none !important; } }
/* exam shield (fullscreen / split / devtools / focus) */
.er-shield { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); background: rgba(239,246,255,.82); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); animation: shIn .25s ease; }
@keyframes shIn { from { opacity: 0; } }
.sh-card { width: min(360px, 100%); text-align: center; padding: 28px 22px 22px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(239,246,255,.9)); box-shadow: 0 24px 60px rgba(30,64,175,.22), inset 0 1px 0 #fff; border: 1px solid rgba(147,197,253,.55); }
.sh-ic { width: 62px; height: 62px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, #2563eb, #22d3ee); box-shadow: 0 10px 24px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.sh-ic svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #0f172a; }
.sh-card p { margin: 0 0 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sh-card p span { font-size: 15px; font-weight: 500; line-height: 1.5; color: #334155; }
.sh-card p small { font-size: 13px; line-height: 1.5; color: #64748b; }
.sh-note { display: block; margin: 0 0 18px; font-style: normal; font-size: 12px; color: #64748b; }
.sh-card .er-cta { width: 100%; }
body.er-shield-on .er-q, body.er-shield-on .er-opts { filter: blur(16px); }
.er-cam.warn { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f59e0b, 0 4px 14px rgba(245,158,11,.45) !important; animation: camWarn 1.2s ease-in-out infinite; }
@keyframes camWarn { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 6px #fbbf24, 0 4px 18px rgba(245,158,11,.6); } }
body.er-lock img { -webkit-user-drag: none; }
@media print { body.er-lock .screen { display: none !important; } body.er-lock::before { content: "ไม่อนุญาตให้พิมพ์หรือบันทึกข้อสอบ"; display: block; padding: 40px; font-size: 20px; text-align: center; } }
/* wallet 3D: pull-out, flip, swipe */
.wl-pop.card .wl-stage { animation: none !important; }
.wl-pass { perspective: 1100px; }
.wl-3d { position: relative; transform-style: preserve-3d; will-change: transform; }
.wl-fl { position: relative; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,1.25,.4,1); cursor: pointer; }
.wl-fl.fl { transform: rotateY(180deg); }
.wl-fl > .tk-card { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.wl-fl > .tk-card:not(.wl-b) { transition: visibility 0s .1s; }
.wl-fl.fl > .tk-card:not(.wl-b) { visibility: hidden; }
.wl-fl > .tk-card.wl-b:not(.pulling) { visibility: hidden; transition: visibility 0s .1s; }
.wl-fl.fl > .tk-card.wl-b { visibility: visible; }
.wl-pass .tk-card.big.wl-b { position: absolute !important; inset: 0; height: auto; transform: rotateY(180deg); }
.wl-pass .tk-card.wl-b .wb-stripe { position: absolute; left: 0; right: 0; top: 20px; height: 40px; background: linear-gradient(180deg, #05070f, #1e293b 55%, #05070f); box-shadow: 0 1px 0 rgba(255,255,255,.18); }
.wl-pass .tk-card.wl-b .wb-sig { position: absolute; left: 22px; right: 22px; top: 72px; height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 0 12px; border-radius: 8px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.95) 0 6px, rgba(226,232,240,.95) 6px 12px); color: #1e293b; }
.wl-pass .tk-card.wl-b .wb-sig em { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 17px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wl-pass .tk-card.wl-b .wb-sig i { flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #cbd5e1; }
.wl-pass .tk-card.wl-b .wb-rows { position: absolute; left: 22px; right: 22px; bottom: 18px; display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 8px; }
.wl-pass .tk-card.wl-b .wb-rows > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-pass .tk-card.wl-b .wb-rows small { font-size: 10.5px; opacity: .78; letter-spacing: .02em; }
.wl-pass .tk-card.wl-b .wb-rows b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-pass .tk-card.wl-b .wb-cert { position: absolute; right: 22px; top: 116px; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: inherit; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.wl-pass .tk-card.wl-b .wb-cert svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body.lv-xlead .wl-pass .tk-card.wl-b .wb-cert { background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(160,120,40,.4); }
.wl-hint { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; font-size: 13px; color: rgba(255,255,255,.88); }
.wl-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-hint[hidden] { display: none; }
.wl-pop.out { animation: wlFadeOut .56s ease forwards; }
.wl-pop.out .wl-close, .wl-pop.out .wl-hint { opacity: 0; transition: opacity .15s; }
@keyframes wlFadeOut { 60% { background: rgba(15,23,42,.3); } to { background: rgba(15,23,42,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
.tk.wl.sw-l .tk-cards { animation: swL .45s cubic-bezier(.3,1.4,.5,1) !important; }
.tk.wl.sw-r .tk-cards { animation: swR .45s cubic-bezier(.3,1.4,.5,1) !important; }
@keyframes swL { 40% { transform: translateX(-14px) rotate(-1.5deg); } }
@keyframes swR { 40% { transform: translateX(14px) rotate(1.5deg); } }
/* News : Twitter-style feed */
.nw { background: #fff; }
.nw-tabs { top: calc(58px + var(--safe-t)); gap: 0; padding: 0; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid #e7ecf3; }
.nw-tabs button { position: relative; flex: 1; height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: #64748b; font-size: 14px; font-weight: 600; }
.nw-tabs button.on { background: none; color: #0f172a; font-weight: 800; box-shadow: none; }
.nw-tabs button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 4px; margin-left: -22px; border-radius: 99px; background: linear-gradient(90deg, #1f6fdc, #00b4e0); box-shadow: 0 0 10px rgba(0,180,224,.5); }
.tw-cmp { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e7ecf3; }
.tw-cmp[hidden] { display: none; }
.tw-cav { width: 40px; height: 40px; flex: none; font-size: 16px; }
.tw-cin { flex: 1; height: 40px; padding: 0 14px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 14.5px; text-align: left; }
.tw-cimg, .tp-ib { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: none; color: #1f6fdc; }
.tw-cimg svg, .tp-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-feed { gap: 0; padding: 0 0 calc(96px + var(--safe-b)); }
.nf.tw { position: relative; padding: 12px 14px 4px; border: 0; border-bottom: 1px solid #e7ecf3; box-shadow: none; }
.nf.tw.new { box-shadow: inset 3px 0 0 #00b4e0; }
.nf.tw.gone { opacity: 0; transform: translateX(30px); transition: .3s; }
.tw-pin { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 30px; font-size: 12.5px; font-weight: 700; color: #64748b; }
.tw-pin svg { width: 14px; height: 14px; fill: #64748b; }
.tw-row { display: flex; gap: 10px; }
.tw-av { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #64748b, #94a3b8) center / cover no-repeat; }
.tw-av.has-img { color: transparent; }
.tw-av.cx { background: linear-gradient(135deg, #0d268c, #1f6fdc 55%, #00c0e8); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,229,255,.45); }
.tw-av.cx svg { width: 24px; height: 24px; fill: #fff; }
.tw-main { flex: 1; min-width: 0; }
.tw-h { display: flex; align-items: center; gap: 4px; min-height: 22px; white-space: nowrap; }
.tw-nm { flex: 0 0 auto; max-width: 58%; font-size: 14.5px; font-weight: 800; color: #0f172a; overflow: hidden; text-overflow: ellipsis; }
.tw-hd, .tw-dt { font-size: 13px; color: #64748b; overflow: hidden; text-overflow: ellipsis; }
.tw-hd { min-width: 0; flex: 0 1 auto; }
.tw-h > .tw-hd { flex: 1 1 0; }
.tw-dt { flex: none; }
.tw-lv { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px 0 4px; border-radius: 99px; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #2563eb, #22d3ee); flex: none; }
.tw-lv.ag { background: linear-gradient(90deg, #a9781d, #deb055); }
.tw-lv svg { width: 10px; height: 10px; fill: #fff; }
.tw-h .nw-new { margin-left: 4px; }
.tw-mn { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: none; color: #64748b; flex: none; }
.tw-mn svg { width: 18px; height: 18px; fill: currentColor; }
.tw-mn:active { background: #eef4ff; color: #1f6fdc; }
.nf.tw .nf-body { padding: 2px 0 0; }
.nf.tw .nf-body h3 { margin: 2px 0 2px; font-size: 15px; }
.nf.tw .nf-txt { font-size: 15px; line-height: 1.55; color: #0f172a; }
.nf.tw .nf-imgs { margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; background: #e2e8f0; }
.nf.tw .nf-cta { margin: 10px 0 0; }
.tw-bar { display: flex; align-items: center; justify-content: space-between; max-width: 320px; margin: 4px 0 0 -8px; }
.tw-b { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 8px; border-radius: 99px; background: none; color: #64748b; font-size: 13px; font-weight: 600; }
.tw-b svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tw-b[data-a=cm]:active { color: #1f6fdc; }
.tw-b.nf-like.on { color: #e11d48; }
.tw-b.nf-like.on svg { fill: #e11d48; stroke: #e11d48; animation: twPop .35s ease; }
.tw-b .nf-em { font-size: 17px; line-height: 1; }
.tw-sv.saved { color: #1f6fdc; }
.tw-sv.saved svg { fill: #1f6fdc; stroke: #1f6fdc; }
@keyframes twPop { 40% { transform: scale(1.35); } }
/* photo grids (Facebook page layouts) */
.tw-g { display: grid; gap: 2px; }
.tw-g img, .tw-g .tp-th { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.tw-g.n1 { display: block; aspect-ratio: 1.4; }
.tw-g.n1 img { max-height: none !important; height: 100%; object-fit: cover !important; padding: 0 !important; }
.tw-g.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 1.6 !important; }
.tw-g.n3, .tw-g.n4, .tw-g.n5 { aspect-ratio: 1 !important; }
.tw-g.n3.tall { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tw-g.n3.tall > :first-child { grid-row: span 2; }
.tw-g.n3.wide, .tw-g.n3.sq { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tw-g.n3.wide > :first-child, .tw-g.n3.sq > :first-child { grid-column: span 2; }
.tw-g.n4.tall { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.tw-g.n4.tall > :first-child { grid-row: span 3; }
.tw-g.n4.wide { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; }
.tw-g.n4.wide > :first-child { grid-column: span 3; }
.tw-g.n4.sq { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tw-g.n5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 3fr 2fr; aspect-ratio: 1.2 !important; }
.tw-g.n5.tall { aspect-ratio: 1 !important; }
.tw-g.n5 > * { grid-column: span 2; }
.tw-g.n5 > :nth-child(-n+2) { grid-column: span 3; }
.tw-g.n5.tall { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 1fr); grid-auto-flow: column; }
.tw-g.n5.tall > * { grid-column: auto; grid-row: span 2; }
.tw-g.n5.tall > :nth-child(-n+2) { grid-column: auto; grid-row: span 3; }
/* FAB + menu */
.tw-fab { position: fixed; right: 18px; bottom: calc(22px + var(--safe-b)); z-index: 20; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1f6fdc, #00b4e0); box-shadow: 0 10px 24px rgba(31,111,220,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.tw-fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.tw-fab:active { transform: scale(.94); }
.screen.nw[hidden] .tw-fab { display: none; }
.nw-menu { position: fixed; z-index: 60; min-width: 190px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.2), 0 0 0 1px rgba(15,23,42,.06); animation: hbFade .15s ease; }
.nw-menu button { display: block; width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; background: none; text-align: left; font-size: 14px; font-weight: 700; color: #0f172a; }
.nw-menu button:active { background: #f1f5f9; }
.nw-menu button.dan { color: #e11d48; }
/* compose */
.tp { position: fixed; inset: 0; z-index: 75; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); animation: hbFade .2s ease; }
.tp[hidden] { display: none; }
.tp-card { width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; background: #fff; padding-bottom: var(--safe-b); animation: tpUp .32s cubic-bezier(.2,1,.3,1); }
@keyframes tpUp { from { transform: translateY(40px); opacity: 0; } }
.tp-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.tp-x { height: 36px; padding: 0 6px; background: none; font-size: 15px; font-weight: 600; color: #0f172a; }
.tp-go { height: 36px; padding: 0 20px; border-radius: 99px; font-size: 14.5px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #1f6fdc, #00b4e0); box-shadow: 0 6px 14px rgba(31,111,220,.35); }
.tp-go:disabled { opacity: .45; box-shadow: none; }
.tp-go.busy { opacity: .7; }
.tp-b { display: flex; gap: 10px; padding: 4px 14px 10px; overflow-y: auto; }
.tp-f { flex: 1; min-width: 0; }
.tp-f textarea { width: 100%; min-height: 90px; border: 0; outline: 0; resize: none; font: inherit; font-size: 17px; line-height: 1.5; color: #0f172a; background: none; padding: 8px 0; }
.tp-imgs { margin-top: 6px; border-radius: 16px; overflow: hidden; }
.tp-imgs[hidden] { display: none; }
.tp-th { position: relative; display: block; overflow: hidden; }
.tp-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-th button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,23,42,.7); }
.tp-th button svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.tp-t { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; border-top: 1px solid #e7ecf3; }
.tp-ib { width: auto; gap: 6px; padding: 0 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; height: 38px; }
.tp-ib:disabled { opacity: .4; }
.tp-ring { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tp-ring[hidden] { display: none; }
.tp-ring svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.tp-ring circle { fill: none; stroke-width: 2.6; }
.tp-rt { stroke: #e2e8f0; }
.tp-rb { stroke: #1f6fdc; stroke-dasharray: 62.83; stroke-dashoffset: 62.83; stroke-linecap: round; transition: stroke-dashoffset .15s; }
.tp-ring.warn .tp-rb { stroke: #f59e0b; }
.tp-ring.over .tp-rb { stroke: #e11d48; }
.tp-ring b { font-size: 13px; font-weight: 700; color: #64748b; }
.tp-ring.over b { color: #e11d48; }
/* home: card carousel (scroll-snap) : every card snaps to the centre, the other card peeks at the side */
.hero-wrap { margin: 0 -16px 20px; isolation: auto; }
.hero-wrap::before, .hero-wrap::after { display: none; }
.hdeck { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 14px 26px 12px; scroll-padding: 0 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hdeck::-webkit-scrollbar { display: none; }
.hslide { position: relative; flex: 0 0 100%; scroll-snap-align: center; isolation: isolate; } /* full content width: every card sits exactly in the middle, the other one peeks by padding - gap */
.hslide > .hero { z-index: 1; transition: transform .35s, filter .35s; }
.hslide > .mascot { z-index: 2; }
.hslide.hs-xv::before, .hslide.hs-xv::after { content: ""; position: absolute; left: -3px; right: -3px; top: -3px; height: 258px; border-radius: 27px; background: conic-gradient(from var(--edge), transparent 0 62%, rgba(0,229,255,.2) 70%, #00e5ff 80%, #9ee8ff 83%, rgba(96,165,250,.6) 88%, transparent 94%); animation: edge 6s linear infinite; pointer-events: none; }
.hslide.hs-xv::after { filter: blur(12px); opacity: .85; z-index: -1; }
.hero-wrap:not(.alt) .hs-xl > .hero, .hero-wrap.alt .hs-xv > .hero { filter: brightness(.85); }
.hero-wrap:not(.alt) .hs-xl > .mascot, .hero-wrap.alt .hs-xv > .mascot { opacity: .0; }
.hslide > .mascot { transition: opacity .3s; }
.hx { background: radial-gradient(220px 220px at 30% 45%, rgba(255,255,255,.35), transparent 65%), linear-gradient(100deg, #E3C25A 0%, #A87A14 24%, #E6C862 50%, #9C7012 76%, #D8B650 100%); box-shadow: 0 12px 24px rgba(150,110,20,.28), inset 0 1px 0 rgba(255,255,255,.7); }
.hx .hero-sub, .hx .hero-next, .hx .ring-num { text-shadow: 0 1px 3px rgba(90,60,5,.55); }
.hx::after { opacity: .12; }
.hx::before { background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); }
.hx-fx .mc { fill: #fffbe6; }
.hx .hero-title b.hx-t { background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.7) 43%, #fffdf3 48%, #fff0bd 52%, rgba(255,214,110,.6) 57%, transparent 64%), linear-gradient(180deg, #fff7da 0%, #f3d27c 48%, #c9962f 62%, #ffe9a8 100%); background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 2px rgba(90,60,5,.6)) drop-shadow(0 0 6px rgba(255,214,110,.35)); }
.hx .star { fill: #fff3c4; animation-name: twinkle_g; filter: drop-shadow(0 0 2px #fff0b8) drop-shadow(0 0 6px #f2c94c) drop-shadow(0 0 12px rgba(227,194,90,.85)); }
.ring.hx-ring svg .track { stroke: rgba(255,255,255,.28); }
.ring .bar.hx-bar { stroke: url(#hxg); stroke-dasharray: 351.86; stroke-dashoffset: 351.86; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.9,.3,1); filter: drop-shadow(0 0 6px rgba(255,214,110,.7)); }
.hx .ring-num b { color: #fff; text-shadow: 0 1px 3px rgba(90,60,5,.55), 0 0 12px rgba(255,214,110,.6); }
.hx-lock { position: absolute; left: 129px; top: 143px; transform: translate(-50%, -50%); z-index: 3; display: none; }
.hx-lock svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(15,23,42,.45)); }
.hx.lock { background: linear-gradient(90deg, #1e293b 0%, #475569 60%, #94a3b8 100%); }
.hx.lock::before { background: radial-gradient(circle, rgba(226,232,240,.18), transparent 65%); }
.hx.lock .hx-fx .mc { fill: #e2e8f0; }
.hx.lock .hero-title b.hx-t { background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 50%, #94a3b8 62%, #e2e8f0 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
.hx.lock .star { fill: #cbd5e1; filter: none; }
.hx.lock .hx-ring { opacity: .35; }
.hx.lock .hx-lock { display: block; }
.hdots { position: relative; left: 0; right: 0; bottom: 0; margin-top: -4px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.hdots i { width: 7px; height: 7px; border-radius: 99px; background: #b6c2d3; transition: .3s; cursor: pointer; }
.hdots i.on { width: 18px; background: linear-gradient(90deg, #1f6fdc, #00b4e0); }
.hero-wrap.alt .hdots i.on { background: linear-gradient(90deg, #c9962f, #f3cf6b); }
.hero-wrap.alt.hxl .hdots i.on { background: #94a3b8; }
.hero-wrap.hxl .hs-xl > .mascot { filter: grayscale(.7) drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.hslide { cursor: pointer; }
/* card details sheet */
.cd { position: fixed; inset: 0; z-index: 75; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); animation: hbFade .2s ease; }
.cd[hidden] { display: none; }
.cd-card { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 26px 26px 0 0; background: #fff; padding-bottom: calc(10px + var(--safe-b)); animation: tpUp .32s cubic-bezier(.2,1,.3,1); }
.cd-top { display: flex; flex-direction: column; align-items: center; padding: 10px 16px 18px; background: linear-gradient(180deg, #eaf3ff, #f5f9ff); }
.cd.gold .cd-top { background: linear-gradient(180deg, #fff6d8, #fffbef); }
.cd-grab { width: 42px; height: 5px; border-radius: 99px; background: #cbd5e1; }
.cd-t { margin: 10px 0 12px; font-size: 14px; font-weight: 700; color: #334155; }
.cd-prev { width: 100%; display: flex; justify-content: center; }
.cd-mini { width: 358px; height: 252px; transform: scale(.62); transform-origin: top center; margin-bottom: calc(252px * -.38); pointer-events: none; }
.cd-mini .hero { width: 358px; box-shadow: 0 16px 30px rgba(15,23,42,.25); }
.cd-rows { padding: 4px 18px 8px; }
.cd-r { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid #eef2f7; }
.cd-r:last-child { border-bottom: 0; }
.cd-r small { font-size: 13.5px; color: #64748b; flex: none; }
.cd-r b { font-size: 15px; font-weight: 400; color: #0f172a; text-align: right; white-space: pre-line; }
.hslide .ring { left: 44px; }
.hslide .hero-sub, .hslide .hero-next, .hslide .hx-lock { left: 111px; }
.hslide > .mascot { height: 236px; right: 4px; top: -2px; }
/* home cards: credit-card proportion */
.hslide > .hero { height: auto; aspect-ratio: 1.586; }
.hslide.hs-xv::before, .hslide.hs-xv::after { height: auto; bottom: -3px; }
.hslide .hero-next { bottom: 9px; font-size: 10.5px; gap: 4px; opacity: .92; }
.hslide .hero-next svg { width: 13px; height: 13px; }
.hslide .hero-sub { top: 42px; font-size: 10.5px; opacity: .92; }
.hslide .ring { left: 44px; top: 58px; width: 108px; height: 108px; }
.hslide .ring-num b { font-size: 38px; }
.hslide .ring-num small { font-size: 11px; margin-top: 2px; }
.hslide .hero-sub, .hslide .hero-next, .hslide .hx-lock { left: 98px; }
.hslide .hx-lock { top: 112px; }
.hslide .hx-lock svg { width: 54px; height: 54px; }
.hslide > .mascot { height: 206px; top: -4px; right: 6px; }
.cd-mini { height: auto; margin-bottom: calc(358px / 1.586 * -.38); flex: none; cursor: default; }
.hslide .ring .glow { filter: blur(5px); stroke-width: 12; opacity: .5; animation: none; }
.cd-mini > .mascot { animation: none; opacity: 1 !important; }
/* card scales with its own width (cqw; ref 304px) */
.hslide { container-type: inline-size; }
.hslide > .hero { padding: 4.6cqw 6.6cqw; border-radius: 7.9cqw; }
.hslide.hs-xv::before, .hslide.hs-xv::after { border-radius: calc(7.9cqw + 3px); }
.hslide .hero-title { gap: 2cqw; }
.hslide .hero-title b { font-size: 6.9cqw; }
.hslide .star { width: 3.6cqw; height: 3.6cqw; }
.hslide .hero-sub { top: 13.4cqw; font-size: 3.7cqw; }
.hslide .ring { left: 13.9cqw; top: 18.4cqw; width: 36.6cqw; height: 36.6cqw; }
.hslide .hero-sub, .hslide .hero-next, .hslide .hx-lock { left: 32.2cqw; }
.hslide .ring-num b { font-size: 13.2cqw; }
.hslide .ring-num small { font-size: 3.8cqw; margin-top: .6cqw; }
.hslide .hero-next { bottom: 3cqw; font-size: 3.7cqw; gap: 1.3cqw; }
.hslide .hero-next svg { width: 4.4cqw; height: 4.4cqw; }
.hslide .hx-lock { top: 36.7cqw; }
.hslide .hx-lock svg { width: 18cqw; height: 18cqw; }
.hslide > .mascot { height: 71cqw; top: -2cqw; right: 1.6cqw; }
/* low-poly facet pattern (subtle, tinted by card colour) */
.hslide .hero-fx::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1578 996' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 415,75 180,365 0,345' fill='%23000' fill-opacity='0.08'/%3E%3Cpolygon points='0,0 470,0 415,75' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='470,0 570,0 520,97 415,75' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='415,75 520,97 290,580 180,365' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='520,97 570,0 597,425 290,580' fill='%23000' fill-opacity='0.16'/%3E%3Cpolygon points='570,0 770,195 597,425' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='570,0 945,0 1110,80 1578,330 770,195' fill='%23fff' fill-opacity='0.2'/%3E%3Cpolygon points='945,0 1578,0 1110,80' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1578,0 1110,80 1578,330' fill='%23fff' fill-opacity='0.02'/%3E%3Cpolygon points='770,195 1578,330 1050,440' fill='%23fff' fill-opacity='0.06'/%3E%3Cpolygon points='770,195 1050,440 597,425' fill='%23fff' fill-opacity='0.12'/%3E%3Cpolygon points='1578,330 1425,530 1050,440' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='597,425 1050,440 1425,530 1080,975' fill='%23000' fill-opacity='0.02'/%3E%3Cpolygon points='597,425 1080,975 630,830' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='597,425 630,830 245,735' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='597,425 245,735 290,580' fill='%23000' fill-opacity='0.12'/%3E%3Cpolygon points='290,580 245,735 175,715 180,365' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='0,345 180,365 175,715 0,670' fill='%23000' fill-opacity='0.06'/%3E%3Cpolygon points='0,670 175,715 220,996 0,996' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='175,715 245,735 220,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='245,735 630,830 1080,975 440,996' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='245,735 440,996 220,996' fill='%23000' fill-opacity='0.04'/%3E%3Cpolygon points='1425,530 1578,330 1578,760' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1425,530 1578,760 1578,830 1080,975' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='1080,975 1578,830 1578,996 1080,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='440,996 1080,975 1080,996' fill='%23000' fill-opacity='0.06'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .7; }
.hslide .hx .hero-fx::before { opacity: .6; }
/* wallet cards (exam page): same colours + facet pattern as the home cards */
body .tk-card, body .tk.wl .tk-cc, body .wl-pass .tk-cc { background: radial-gradient(70% 110% at 30% 45%, rgba(0,229,255,.18), transparent 65%), linear-gradient(90deg, #0f172a, #2563eb) !important; }
body.lv-xlead .tk-card:not(.tk-cb), body.lv-xlead .tk.wl .tk-cc:not(.tk-cb), body.lv-xlead .wl-pass .tk-cc:not(.tk-cb) { background: radial-gradient(70% 110% at 30% 45%, rgba(255,255,255,.35), transparent 65%), linear-gradient(100deg, #E3C25A 0%, #A87A14 24%, #E6C862 50%, #9C7012 76%, #D8B650 100%) !important; }
.tk-card .tk-fx::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1578 996' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 415,75 180,365 0,345' fill='%23000' fill-opacity='0.08'/%3E%3Cpolygon points='0,0 470,0 415,75' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='470,0 570,0 520,97 415,75' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='415,75 520,97 290,580 180,365' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='520,97 570,0 597,425 290,580' fill='%23000' fill-opacity='0.16'/%3E%3Cpolygon points='570,0 770,195 597,425' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='570,0 945,0 1110,80 1578,330 770,195' fill='%23fff' fill-opacity='0.2'/%3E%3Cpolygon points='945,0 1578,0 1110,80' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1578,0 1110,80 1578,330' fill='%23fff' fill-opacity='0.02'/%3E%3Cpolygon points='770,195 1578,330 1050,440' fill='%23fff' fill-opacity='0.06'/%3E%3Cpolygon points='770,195 1050,440 597,425' fill='%23fff' fill-opacity='0.12'/%3E%3Cpolygon points='1578,330 1425,530 1050,440' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='597,425 1050,440 1425,530 1080,975' fill='%23000' fill-opacity='0.02'/%3E%3Cpolygon points='597,425 1080,975 630,830' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='597,425 630,830 245,735' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='597,425 245,735 290,580' fill='%23000' fill-opacity='0.12'/%3E%3Cpolygon points='290,580 245,735 175,715 180,365' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='0,345 180,365 175,715 0,670' fill='%23000' fill-opacity='0.06'/%3E%3Cpolygon points='0,670 175,715 220,996 0,996' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='175,715 245,735 220,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='245,735 630,830 1080,975 440,996' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='245,735 440,996 220,996' fill='%23000' fill-opacity='0.04'/%3E%3Cpolygon points='1425,530 1578,330 1578,760' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1425,530 1578,760 1578,830 1080,975' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='1080,975 1578,830 1578,996 1080,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='440,996 1080,975 1080,996' fill='%23000' fill-opacity='0.06'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .7; }
body.lv-xlead .tk-card:not(.tk-cb) .tk-fx::before { opacity: .6; }
body.lv-xlead .tk.wl #tkCard .tk-fx, body.lv-xlead .wl-pass .tk-fx { display: block; }
body.lv-xlead .tk.wl #tkCard .tk-fx .mc, body.lv-xlead .wl-pass .tk-fx .mc { display: none; }
/* ===== Pre-Order shop (flow from the reference, CloverX CI) ===== */
:root { --spb: #2563eb; --spn: #1e3a8a; --spg: linear-gradient(90deg, #1e3a8a 0%, #2f5fd8 55%, #3b82f6 100%); }
.sp { background: #f3f6fb; padding-bottom: calc(96px + var(--safe-b)); color: var(--ink); }
.sp-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(15,23,42,.07); }
.sp-bar { display: flex; align-items: center; gap: 4px; padding: calc(8px + var(--safe-t)) 8px 8px; min-height: 56px; }
.sp-bar h2 { flex: 1; margin: 0 4px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-bar h2.c { text-align: center; }
.sp-ib { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); transition: background .15s, transform .15s; }
.sp-ib:active { background: #eef2f8; transform: scale(.94); }
.sp-ib svg { width: 23px; height: 23px; }
.sp-ib em { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: #e11d48; color: #fff; font: 700 10px/1 var(--font); font-style: normal; box-shadow: 0 0 0 2px #fff; }
.sp-cartbtn.bump { animation: spBump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes spBump { 40% { transform: scale(1.22) rotate(-8deg); } }
.sp-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: #f1f4f9; }
.sp-search[hidden] { display: none; }
.sp-search svg { width: 18px; height: 18px; color: var(--muted); }
.sp-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.sp-tabs { display: flex; gap: 22px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs button { position: relative; flex: none; padding: 8px 0 11px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.sp-tabs button.on { color: var(--spb); font-weight: 700; }
.sp-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--spb); animation: spInk .25s ease; }
@keyframes spInk { from { transform: scaleX(.3); opacity: 0; } }
.sp-closed { margin: 12px 14px 0; padding: 12px 14px; border-radius: 14px; background: #fff7ed; color: #9a3412; }
.sp-closed b, .sp-closed small { display: block; } .sp-closed small { font-size: 12px; opacity: .8; }
.sp-body { padding: 4px 14px 10px; }
.sp-sec h3 { display: flex; align-items: center; gap: 8px; margin: 18px 2px 12px; font-size: 16px; font-weight: 700; }
.sp-sec h3 svg { width: 21px; height: 21px; color: var(--spb); }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-pc { display: flex; flex-direction: column; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.05); animation: spIn .35s ease both; }
@keyframes spIn { from { opacity: 0; transform: translateY(8px); } }
.sp-pc-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 10px; background: linear-gradient(180deg, #f8fafd, #eef2f8); }
.sp-pc-img img, .sp-pc-img svg { width: 100%; height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sp-pc-img:active img { transform: scale(.96); }
.sp-bdg { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 5px; background: var(--spg); color: #fff; font: 700 9.5px/1.2 var(--font); font-style: normal; letter-spacing: .03em; }
.sp-off { position: absolute; top: 8px; right: 8px; padding: 3px 6px; border-radius: 5px; background: #e11d48; color: #fff; font: 700 10px/1.2 var(--font); font-style: normal; }
.sp-pc-in { display: flex; flex-direction: column; gap: 5px; padding: 10px 11px 12px; flex: 1; }
.sp-pc-t { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-pc-s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-pc-c { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
.sp-pc-c em { padding: 1px 6px; border-radius: 4px; background: #f1f4f9; color: #64748b; font-size: 10.5px; font-style: normal; }
.sp-pc-p { margin-top: auto; font-size: 16px; font-weight: 700; color: var(--spb); }
.sp-pc-p s { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 18px; border-radius: 99px; background: var(--spg); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px rgba(37,99,235,.25); transition: transform .12s, opacity .2s, box-shadow .2s; }
.sp-btn:active { transform: scale(.97); }
.sp-btn:disabled { opacity: .45; box-shadow: none; }
.sp-btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; box-shadow: none; }
.sp-pc .sp-btn.sm { width: 100%; margin-top: 4px; border-radius: 10px; }
.sp-btn.line { background: #fff; color: var(--spb); box-shadow: inset 0 0 0 1.5px var(--spb); }
.sp-btn.wide { width: 100%; height: 50px; font-size: 16px; }
.sp-btn.busy { opacity: .7; }
.sp-btn svg { width: 19px; height: 19px; }
.sp-none { text-align: center; color: var(--muted); padding: 40px 0; }
.shp-polo * { stroke: none; }
.shp-polo .ln { stroke: #fff; stroke-width: 1.5; }
/* details */
.spd { padding-bottom: calc(30px + var(--safe-b)); }
.pd-gal { position: relative; background: linear-gradient(180deg, #fff, #f1f5fb); }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; aspect-ratio: 1 / .78; display: grid; place-items: center; padding: 18px; scroll-snap-align: center; }
.pd-slide img, .pd-slide svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(15,23,42,.14)); animation: spIn .4s ease both; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.pd-dots i { width: 6px; height: 6px; border-radius: 99px; background: #cbd5e1; transition: width .25s, background .25s; }
.pd-dots i.on { width: 16px; background: var(--spb); }
.pd-cnt { position: absolute; right: 12px; bottom: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(15,23,42,.55); color: #fff; font-size: 11.5px; }
.sp-blk { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 14px 16px; background: #fff; }
.pd-info { margin-top: 0; }
.pd-price { display: flex; align-items: baseline; gap: 8px; }
.pd-price b { font-size: 28px; font-weight: 800; color: var(--spb); letter-spacing: -.01em; }
.pd-price s { color: var(--faint); font-size: 14px; }
.pd-price em { padding: 2px 6px; border-radius: 5px; background: #ffe4e6; color: #e11d48; font: 700 11.5px/1.3 var(--font); font-style: normal; }
.pd-paynote { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.pd-paynote svg { width: 15px; height: 15px; }
.spd h1 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.pd-real { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 5px; background: #e8efff; color: var(--spb); font-size: 11px; font-weight: 700; vertical-align: 3px; }
.pd-sub { margin: 3px 0 0; color: #475569; font-size: 14px; }
.pd-optrow { cursor: pointer; }
.pd-optt { display: block; margin-bottom: 10px; font-size: 14.5px; font-weight: 700; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 12px; border: 1.5px solid #e2e8f0; font-size: 13.5px; color: #64748b; transition: border-color .2s, background .2s; }
.pd-chip i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #f1f4f9; overflow: hidden; }
.pd-chip i img, .pd-chip i svg { width: 100%; height: 100%; object-fit: contain; }
.pd-chip em { font-style: normal; }
.pd-chip.on { border-color: var(--spb); color: var(--ink); font-weight: 700; background: #f5f8ff; }
.pd-chip.sz { height: 36px; min-width: 46px; padding: 0 12px; justify-content: center; }
.sp-h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.pd-box { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-box li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.pd-box svg { width: 19px; height: 19px; color: #16a34a; flex: none; }
.pd-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; }
.pd-note[hidden] { display: none; }
.pd-acts { display: flex; align-items: center; gap: 8px; }
.pd-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 44px; font-size: 10.5px; color: var(--muted); text-decoration: none; cursor: pointer; }
.pd-mini svg { width: 22px; height: 22px; transition: transform .2s; }
.pd-mini[aria-pressed=true] { color: #e11d48; }
.pd-mini[aria-pressed=true] svg { fill: #e11d48; animation: spBump .45s ease; }
.pd-acts .sp-btn { flex: 1; height: 44px; padding: 0 10px; font-size: 14px; border-radius: 12px; }
.pd-ship { margin-top: 0; padding-top: 0; }
.pd-ship p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; background: #f5f8fc; font-size: 13px; font-weight: 600; }
.pd-ship p:first-child { border-radius: 12px 12px 0 0; padding-bottom: 2px; }
.pd-ship p:last-child { border-radius: 0 0 12px 12px; }
.pd-ship p.ok { color: #16a34a; font-weight: 500; }
.pd-ship p.ok svg { color: #16a34a; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pd-ship svg { width: 20px; height: 20px; color: #334155; }
.pd-store { display: flex; align-items: center; gap: 12px; }
.pd-logo { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #0f1b4c, #1e3a8a); color: #fff; font-weight: 800; letter-spacing: .02em; }
.pd-store div { flex: 1; min-width: 0; }
.pd-store b { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.pd-store b svg { width: 16px; height: 16px; color: var(--spb); }
.pd-store small { display: block; font-size: 12px; color: var(--muted); }
.pd-spec { display: grid; grid-template-columns: 38% 1fr; margin: 0; border: 1px solid #edf1f6; border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.pd-spec dt { padding: 11px 12px; background: #f6f8fb; color: #64748b; border-top: 1px solid #edf1f6; }
.pd-spec dd { margin: 0; padding: 11px 12px; border-top: 1px solid #edf1f6; }
.pd-spec > :nth-child(1), .pd-spec > :nth-child(2) { border-top: 0; }
/* sheets */
.sp-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); animation: hbFade .2s ease; }
.sp-sheet[hidden] { display: none; }
.sp-sheet-card { width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; border-radius: 24px 24px 0 0; background: #fff; padding: 8px 18px calc(16px + var(--safe-b)); animation: spUp .35s cubic-bezier(.2,1,.3,1); }
@keyframes spUp { from { transform: translateY(100%); } }
.sp-grab { display: block; width: 44px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: #cbd5e1; }
.ps-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eef2f6; }
.ps-pic { flex: none; width: 84px; height: 84px; display: grid; place-items: center; padding: 6px; border-radius: 14px; border: 1px solid #eef2f6; background: #f8fafc; }
.ps-pic img, .ps-pic svg { width: 100%; height: 100%; object-fit: contain; }
.ps-hd div { flex: 1; min-width: 0; }
.ps-hd b { display: block; font-size: 22px; font-weight: 800; color: var(--spb); }
.ps-hd small { display: block; margin-top: 4px; font-size: 13px; color: #475569; }
.ps-x { width: 36px; height: 36px; display: grid; place-items: center; color: #334155; align-self: flex-start; }
.ps-x svg { width: 24px; height: 24px; }
.ps-sec { padding: 14px 0; border-bottom: 1px solid #eef2f6; }
.ps-sec[hidden] { display: none; }
.ps-sec h4 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #e2e8f0; font-size: 13.5px; color: #64748b; transition: all .18s; }
.ps-chip i { width: 16px; height: 16px; border-radius: 50%; }
.ps-chip.c-black i { background: #1e293b; } .ps-chip.c-beige i { background: #e9dcc3; }
.ps-chip.on { border-color: var(--spb); color: var(--ink); font-weight: 700; background: #f5f8ff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.sp-in { display: block; width: 100%; height: 48px; margin-top: 10px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sp-in:focus { border-color: var(--spb); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.ps-sec h4 + .sp-in { margin-top: 0; }
.ps-qty { display: flex; align-items: center; justify-content: space-between; border-bottom: 0; }
.ps-qty h4 { margin: 0; } .ps-qty small { font-size: 11.5px; color: var(--muted); }
.sp-step { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; background: #fff; }
.sp-step button { width: 38px; height: 38px; font-size: 18px; color: #334155; background: #f6f8fb; }
.sp-step button:disabled { color: #cbd5e1; }
.sp-step b { min-width: 42px; text-align: center; font-size: 15px; }
.sp-step.sm button { width: 28px; height: 28px; font-size: 15px; } .sp-step.sm b { min-width: 30px; font-size: 13px; }
.sp-err { margin: 6px 0 0; min-height: 0; color: #dc2626; font-size: 12.5px; }
.sp-err:empty { display: none; }
.ps-sec + .sp-err, #psErr { margin-bottom: 8px; }
/* cards, cart */
.sp-pad { padding: 12px 14px; }
.sp-card { display: block; width: 100%; text-align: left; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.04); animation: spIn .3s ease both; }
.sp-card[hidden] { display: none; }
.sp-card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.sp-store { display: flex; align-items: center; gap: 7px; }
.sp-store svg { width: 19px; height: 19px; color: #334155; }
.sp-ck { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.8px solid #cbd5e1; background: #fff; transition: all .18s; }
.sp-ck svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3.2; opacity: 0; transform: scale(.5); transition: all .18s; }
.sp-ck.on { border-color: var(--spb); background: var(--spb); }
.sp-ck.on svg { opacity: 1; transform: none; }
.ct-sh { display: flex; align-items: center; gap: 10px; width: 100%; padding-bottom: 12px; border-bottom: 1px solid #eef2f6; font-size: 15px; }
.ct-sh .vf { width: 17px; height: 17px; color: #16a34a; }
.ct-row { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eef2f6; }
.ct-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.ct-ck { padding-top: 26px; }
.ct-pic { flex: none; width: 72px; height: 72px; display: grid; place-items: center; padding: 5px; border-radius: 12px; background: #f3f6fa; overflow: hidden; }
.ct-pic img, .ct-pic svg { width: 100%; height: 100%; object-fit: contain; }
.ct-t { flex: 1; min-width: 0; }
.ct-t b { display: block; font-size: 14px; line-height: 1.35; }
.ct-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ct-t small[hidden] { display: none; }
.ct-pr { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ct-pr strong { font-size: 16px; color: var(--spb); }
.ct-one { font-size: 13px; color: var(--muted); }
.ct-del { width: 30px; height: 30px; display: grid; place-items: center; color: #94a3b8; margin-top: -4px; }
.ct-del svg { width: 18px; height: 18px; }
.sp-foot { position: fixed; left: 50%; bottom: 0; z-index: 25; width: 100%; max-width: 430px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + var(--safe-b)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgba(15,23,42,.07), 0 -8px 20px rgba(15,23,42,.05); }
.sp-foot .sp-btn { flex: 1; height: 50px; font-size: 16px; }
.ct-all { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #475569; text-align: left; line-height: 1.2; }
.ct-sum { text-align: right; } .ct-sum small { display: block; font-size: 12px; font-weight: 700; }
.ct-sum b { font-size: 17px; color: var(--spb); }
.ct-foot .sp-btn { flex: 0 0 48%; }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 20px; color: var(--muted); text-align: center; }
.sp-empty[hidden] { display: none; }
.sp-empty svg { width: 54px; height: 54px; color: #cbd5e1; }
.sp-empty b { color: #334155; font-size: 15px; }
.sp-empty .sp-btn { margin-top: 8px; }
/* checkout */
.pc-addr { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pc-addr .pin { flex: none; width: 24px; height: 24px; color: var(--spb); }
.pc-addr .chev { flex: none; width: 20px; height: 20px; color: #94a3b8; }
.pc-addr-t { flex: 1; min-width: 0; }
.pc-addr-t b { font-size: 15px; } .pc-addr-t b.add { display: block; color: var(--spb); }
.pc-addr-t em { margin-left: 8px; font-style: normal; color: var(--muted); font-size: 14px; }
.pc-addr-t small { display: block; margin-top: 3px; color: #475569; font-size: 13px; line-height: 1.5; }
.pc-addr.empty { box-shadow: 0 0 0 1.5px #dbe6ff inset, 0 6px 16px rgba(15,23,42,.04); }
.pc-it { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.pc-it .ct-pic { width: 64px; height: 64px; }
.pc-it div { flex: 1; min-width: 0; } .pc-it b { display: block; font-size: 14px; }
.pc-it small { display: block; font-size: 12px; color: var(--muted); } .pc-it small[hidden] { display: none; }
.pc-it strong { display: block; margin-top: 4px; font-size: 14.5px; }
.pc-it > em { font-style: normal; color: var(--muted); font-size: 13px; align-self: flex-end; padding-bottom: 2px; }
.pc-ship { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid #eef2f6; font-size: 14px; }
.pc-ship small { display: block; color: #16a34a; font-size: 12px; }
.pc-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pc-note span { flex: none; } .pc-note input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 13px; background: none; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-two .sp-in { margin: 0; }
.sp-sel { position: relative; }
.sp-sel select { width: 100%; height: 48px; padding: 0 34px 0 14px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; font-size: 15px; -webkit-appearance: none; appearance: none; outline: none; color: var(--ink); }
.sp-sel select:invalid { color: var(--muted); }
.sp-sel svg { position: absolute; right: 10px; top: 14px; width: 20px; height: 20px; pointer-events: none; }
.pc-pay { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; font-size: 14.5px; color: #475569; }
.pc-pay input { display: none; }
.pc-pay > svg { width: 21px; height: 21px; color: var(--spb); }
.pc-pay span { flex: 1; } .pc-pay small { color: var(--muted); font-weight: 400; }
.pc-pay.on { color: var(--ink); font-weight: 700; }
.pc-pay.off { opacity: .5; pointer-events: none; }
.sp-rd { width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid #cbd5e1; transition: all .18s; }
.pc-pay.on .sp-rd { border: 6px solid var(--spb); }
.pc-bank { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: #f5f8fc; }
.pc-bank[hidden] { display: none; }
.kb { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #0f9d58; color: #fff; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #d7263d; }
.pc-bank b { display: block; font-size: 13.5px; } .pc-bank small { display: block; font-size: 12px; color: var(--muted); }
.pc-sumbox div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; color: #475569; }
.pc-sumbox div.t { margin-top: 6px; padding-top: 10px; border-top: 1px solid #eef2f6; color: var(--ink); font-size: 15px; }
.pc-sumbox div.t b:last-child { color: var(--spb); font-size: 18px; }
.pc-foot > div small { display: block; font-size: 11.5px; color: var(--muted); }
.pc-foot > div b { font-size: 20px; color: var(--spb); }
.ad-t { margin: 0 0 4px; font-size: 16px; }
.ad-list { max-height: 210px; overflow-y: auto; margin-top: 4px; }
.ad-list button { display: block; width: 100%; text-align: left; padding: 11px 6px; border-bottom: 1px solid #eef2f6; font-size: 13.5px; color: #334155; }
.ad-list button:active { background: #f5f8ff; }
.ad-none { padding: 10px 6px; font-size: 13px; color: var(--muted); }
#adErr { margin-bottom: 8px; } #adSave { margin-top: 12px; }
/* order placed */
.dn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: calc(40px + var(--safe-t)) 20px 30px; text-align: center; }
.dn-ok { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--spg); box-shadow: 0 14px 30px rgba(37,99,235,.35); animation: dnPop .6s cubic-bezier(.3,1.6,.5,1) both; }
.dn-ok svg { width: 40px; height: 40px; stroke: #fff; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: dnTick .45s .35s ease forwards; }
@keyframes dnPop { from { transform: scale(.3); opacity: 0; } } @keyframes dnTick { to { stroke-dashoffset: 0; } }
.dn h2 { margin: 8px 0 0; font-size: 24px; } .dn > p { margin: 0; color: var(--muted); }
.dn-no { padding: 6px 14px; border-radius: 10px; background: #eaf1ff; color: var(--spb); font-size: 13.5px; font-weight: 700; }
#dnPay { width: 100%; }
.dn-warn { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; color: #b45309; font-size: 13px; font-weight: 600; text-align: left; }
.dn-warn svg { width: 20px; height: 20px; flex: none; }
.dn-okmsg { margin: 8px 0; color: #16a34a; font-weight: 600; }
.dn-bank { text-align: left; }
.dn-bank > small { color: #475569; font-size: 13px; }
.dn-b { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; padding-bottom: 12px; border-bottom: 1px solid #eef2f6; }
.dn-acc { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dn-acc small, .dn-row small { display: block; font-size: 12px; color: var(--muted); }
.dn-acc b { font-size: 22px; color: var(--spb); letter-spacing: .02em; }
.dn-copy { padding: 6px 12px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 12.5px; }
.dn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.dn-row b { font-size: 13px; text-align: right; } .dn-row strong { font-size: 18px; color: var(--spb); }
.dn .sp-btn.wide[hidden] { display: none; }
.dn-home { margin-top: 12px; color: #475569; text-decoration: underline; font-size: 14px; }
/* orders */
.od-card .od-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.od-card h4 { margin: 0; font-size: 14.5px; }
.od-st { flex: none; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.od-st.wait { background: #fff7e6; color: #d97706; } .od-st.prep { background: #fff7e6; color: #c2410c; }
.od-st.ok { background: #e8f8ee; color: #16a34a; } .od-st.off { background: #f1f5f9; color: #64748b; } .od-st.bad { background: #fee2e2; color: #dc2626; }
.od-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.od-pics { display: flex; gap: 6px; } .od-pics .ct-pic { width: 54px; height: 54px; border-radius: 10px; }
.od-tot { text-align: right; } .od-tot small { display: block; font-size: 12px; color: var(--muted); } .od-tot b { font-size: 17px; color: var(--spb); }
.od-f { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.od-f small { font-size: 12px; color: var(--muted); }
.od-sk { height: 150px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%) 0 0 / 200% 100%; animation: odSk 1.2s linear infinite; }
@keyframes odSk { to { background-position: -200% 0; } }
/* order details */
.ov-hd { display: flex; align-items: center; justify-content: space-between; }
.ov-hd small { display: block; font-size: 12px; color: var(--muted); } .ov-hd b { font-size: 18px; }
.ov-tl { list-style: none; margin: 0; padding: 0; }
.ov-tl li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.ov-tl li:last-child { padding-bottom: 0; }
.ov-tl li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: #e2e8f0; }
.ov-tl li:last-child::before { display: none; }
.ov-tl li.done::before { background: var(--spb); }
.ov-tl i { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: #e2e8f0; }
.ov-tl li.done i { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.ov-tl li.cur i { background: var(--spb); box-shadow: 0 0 0 4px rgba(37,99,235,.18); animation: ovPulse 1.6s ease-in-out infinite; }
@keyframes ovPulse { 50% { box-shadow: 0 0 0 7px rgba(37,99,235,.08); } }
.ov-tl b { display: block; font-size: 14px; font-weight: 500; color: #94a3b8; }
.ov-tl li.done b, .ov-tl li.cur b { color: var(--ink); font-weight: 700; }
.ov-tl small { display: block; font-size: 12px; color: var(--muted); }
.ov-it { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ov-it .ct-pic { width: 52px; height: 52px; border-radius: 10px; }
.ov-it b { display: block; font-size: 14px; } .ov-it small { font-size: 12.5px; color: var(--muted); }
.ov-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eef2f6; font-size: 13.5px; }
.ov-dl dt { color: var(--muted); } .ov-dl dd { margin: 0; text-align: right; line-height: 1.5; } .ov-dl dd.t { font-weight: 700; font-size: 15px; }
.ov-foot .sp-btn { flex: 1; }

/* list hero (CloverX style) */
.sp-hero { position: relative; overflow: hidden; padding: 0 0 18px; border-radius: 0 0 28px 28px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #3b82f6 0%, transparent 60%), linear-gradient(160deg, #1d4ed8, #0b3fb8 60%, #0a2f8f); box-shadow: 0 14px 30px rgba(29,78,216,.28); }
.sp-topo { position: absolute; inset: 0; opacity: .14; background: repeating-radial-gradient(circle at 85% 10%, transparent 0 18px, rgba(255,255,255,.9) 19px 20px); pointer-events: none; }
.sp-orb { position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.35), transparent 65%); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
.sp-hero .sp-bar { position: relative; }
.sp-hero .sp-ib { color: #fff; background: rgba(255,255,255,.12); margin-left: 4px; }
.sp-hero .sp-ib:active { background: rgba(255,255,255,.22); }
.sp-hero .sp-ib em { box-shadow: 0 0 0 2px #1d4ed8; }
.sp-ttl { flex: 1; margin-left: 6px; } .sp-ttl small { display: block; font-size: 11.5px; opacity: .8; letter-spacing: .06em; }
.sp-ttl h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.sp-hero .sp-search { position: relative; margin: 4px 16px 0; height: 46px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(10,47,143,.25); }
.sp-perks { position: relative; display: flex; justify-content: space-between; gap: 6px; margin: 14px 18px 0; font-size: 11.5px; }
.sp-perks span { display: flex; align-items: center; gap: 5px; opacity: .92; }
.sp-perks svg { width: 16px; height: 16px; }
.sp-cats { display: flex; gap: 10px; padding: 16px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.sp-cats::-webkit-scrollbar { display: none; }
.sp-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; font-size: 11.5px; color: #475569; }
.sp-cat span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: var(--spb); box-shadow: 0 4px 12px rgba(15,23,42,.06); transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.sp-cat span svg { width: 24px; height: 24px; }
.sp-cat b { font-weight: 500; white-space: nowrap; }
.sp-cat.on span { background: var(--spg); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,.3); }
.sp-cat.on b { color: var(--spb); font-weight: 700; }
.sp-pc-c em.dot { display: inline-flex; align-items: center; gap: 4px; background: none; padding: 0 6px 0 0; color: #475569; }
.sp-pc-c em.dot i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,23,42,.15); }
.sp-pc-c em.c-black i { background: #1e293b; } .sp-pc-c em.c-beige i { background: #e9dcc3; }
.pd-gal { background: radial-gradient(60% 55% at 50% 45%, rgba(59,130,246,.16), transparent 70%), linear-gradient(180deg, #fff, #eef3fb); }
.pd-slide { position: relative; }
.pd-slide::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,23,42,.18), transparent); z-index: -1; }
.pd-slide img { animation: pdFloat 5s ease-in-out infinite; }
@keyframes pdFloat { 50% { transform: translateY(-6px); } }
.pd-buy { height: 52px; padding: 0 28px; border-radius: 99px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 22px rgba(29,78,216,.3); transition: transform .12s; }
.rcp { position: fixed; inset: 0; z-index: 80; display: block; overflow-y: auto; background: radial-gradient(120% 60% at 50% 0%, #dbe7fb 0%, #eef2f8 55%, #e9eef5 100%); }
.rcp[hidden] { display: none; }
.rcp-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: calc(10px + var(--safe-t)) 14px 10px; background: rgba(238,242,248,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rcp-bar b { font-size: 16px; font-weight: 700; color: var(--ink); }
.rcp-ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.rcp-ib svg { width: 19px; height: 19px; }
.rcp-wrap { max-width: 1012px; margin: 0 auto; padding: 8px 16px calc(28px + var(--safe-b)); }
.rcp-fit { width: 100%; cursor: zoom-in; }
.rcp-fit.full { overflow-x: auto; cursor: zoom-out; -webkit-overflow-scrolling: touch; border-radius: 4px; }
.rcp-doc { width: 980px; background: #fff; color: #1f2a3d; font-size: 12px; line-height: 1.45; border-radius: 4px; box-shadow: 0 18px 40px rgba(15,27,76,.14), 0 2px 6px rgba(15,27,76,.06); padding: 18px 20px 12px; animation: rcpIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rcpIn { from { opacity: 0; transform: translateY(14px); } }
.rd-head { display: grid; grid-template-columns: 1fr 45%; }
.rd-co { background: #173a6a; color: #fff; font-size: 19px; font-weight: 700; padding: 12px 16px; }
.rd-orig { background: #3d6fd6; color: #fff; font-size: 17px; font-weight: 700; display: grid; place-items: center; }
.rd-sub { display: grid; grid-template-columns: 1fr 45%; align-items: start; padding: 8px 2px 10px; }
.rd-addr { font-size: 11.5px; color: #334155; }
.rd-title { text-align: center; padding-top: 6px; }
.rd-title b { display: block; font-size: 24px; color: #173a6a; letter-spacing: .01em; }
.rd-title small { display: block; font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: .08em; }
.rd-info { display: grid; grid-template-columns: 1fr 45%; gap: 8px; }
.rd-box { border: 1px solid #d6e1f0; border-radius: 10px; overflow: hidden; }
.rd-box h5, .rd-pay h5 { margin: 0; padding: 5px 8px; background: #dce8f8; color: #173a6a; font-size: 12.5px; font-weight: 700; }
.rd-box dl { display: grid; grid-template-columns: 42% 1fr; margin: 0; }
.rd-box2 dl { grid-template-columns: 48% 1fr; height: 100%; }
.rd-box dt { padding: 5px 8px; font-weight: 700; color: #1f2a3d; background: #f4f7fc; border-top: 1px solid #e6edf6; font-size: 11.5px; }
.rd-box dd { margin: 0; padding: 5px 8px; border-top: 1px solid #e6edf6; border-left: 1px solid #e6edf6; font-size: 12px; }
.rd-box dl > :nth-child(1), .rd-box dl > :nth-child(2) { border-top: 0; }
.rd-box2 dt, .rd-box2 dd { display: flex; align-items: center; }
.rd-box dd.tall { min-height: 40px; }
.rd-tb { width: 100%; margin-top: 8px; border-collapse: collapse; }
.rd-tb th { background: #173a6a; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 4px; border-left: 1px solid #2c4f82; line-height: 1.25; }
.rd-tb th small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; }
.rd-tb td { padding: 5px 8px; border: 1px solid #e0e8f3; height: 26px; font-variant-numeric: tabular-nums; }
.rd-tb tbody tr:nth-child(odd) td { background: #f7f9fd; }
.rd-tb .c { text-align: center; } .rd-tb .r { text-align: right; }
.rd-sum { display: grid; grid-template-columns: 1fr 45%; border: 1px solid #e0e8f3; border-top: 0; }
.rd-words { padding: 6px 8px; background: #f7f9fd; }
.rd-words h6, .rd-sign h6 { margin: 0; font-size: 12px; font-weight: 700; color: #1f2a3d; }
.rd-words p { margin: 2px 0 8px; min-height: 18px; }
.rd-words p + h6 { padding-top: 6px; border-top: 1px solid #dbe4f0; }
.rd-tot { display: grid; grid-template-columns: 58% 1fr; margin: 0; border-left: 1px solid #e0e8f3; }
.rd-tot dt { padding: 5px 8px; font-weight: 700; font-size: 11.5px; border-bottom: 1px solid #e6edf6; }
.rd-tot dd { margin: 0; padding: 5px 8px; text-align: right; border-bottom: 1px solid #e6edf6; border-left: 1px solid #e6edf6; font-variant-numeric: tabular-nums; }
.rd-tot .g { background: #dce8f8; color: #173a6a; font-weight: 700; border-bottom: 0; }
.rd-tot dd.g { font-size: 14px; }
.rd-pay { margin-top: 8px; border: 1px solid #d6e1f0; }
.rd-pays { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; background: #f4f7fc; }
.rd-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #334155; }
.rd-ck i { width: 14px; height: 14px; border: 1.5px solid #64748b; border-radius: 3px; display: grid; place-items: center; }
.rd-ck.on { color: #173a6a; font-weight: 700; }
.rd-ck.on i { background: #3d6fd6; border-color: #3d6fd6; }
.rd-ck i svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3.2; }
.rd-note { margin-top: 8px; padding: 7px 8px; background: #fdf6e3; border: 1px solid #f1e3bb; font-size: 10.5px; color: #3b3b3b; line-height: 1.5; }
.rd-sign { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e0e8f3; border-top: 0; text-align: center; }
.rd-sign > div { padding: 8px; } .rd-sign > div + div { border-left: 1px solid #e0e8f3; }
.rd-sign h6 { color: #173a6a; }
.rd-sign p { margin: 12px 0 2px; font-size: 11.5px; color: #334155; }
.rd-page { margin-top: 6px; text-align: center; font-size: 10px; color: #94a3b8; }
.rcp-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.rcp-save { display: block; width: 100%; max-width: 420px; margin: 14px auto 0; }
@media (min-width: 1000px) { .rcp-hint { display: none; } }
@page { size: A5 landscape; margin: 5mm; }
@media print { html, body.rcp-open { height: auto; background: #fff !important; } body.rcp-open > *:not(.rcp) { display: none !important; } body.rcp-open .rcp { position: static; overflow: visible; background: #fff; } body.rcp-open .rcp-bar, body.rcp-open .rcp-save, body.rcp-open .rcp-hint, body.rcp-open .rd-tb tr.em { display: none !important; } body.rcp-open .rcp-wrap { padding: 0; max-width: none; } body.rcp-open .rcp-fit { overflow: visible; } body.rcp-open .rcp-doc { zoom: 0.7 !important; margin: 0 auto; box-shadow: none; animation: none; border-radius: 0; padding: 0; } body.rcp-open .rd-box dd.tall { min-height: 0; } body.rcp-open .rd-box dt, body.rcp-open .rd-box dd, body.rcp-open .rd-tot dt, body.rcp-open .rd-tot dd { padding-top: 3px; padding-bottom: 3px; } body.rcp-open .rd-tb td { height: 22px; padding-top: 3px; padding-bottom: 3px; } body.rcp-open .rd-sub { padding: 4px 2px 6px; } body.rcp-open .rd-words p { margin-bottom: 4px; } body.rcp-open .rd-pays { padding: 5px 8px; } body.rcp-open .rd-sign p { margin-top: 8px; } .rcp-doc, .rcp-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* ==== X-LEAD gold theme (generated) ==== */
body #erGr stop:nth-of-type(3){stop-color:#97a1ae}
body #erGr stop:nth-of-type(2){stop-color:#b5bcc5}
body #erGr stop:nth-of-type(1){stop-color:#dadde2}
@keyframes xGlow_g{ 50% { filter: drop-shadow(0 0 10px rgba(236, 203, 110, .9)) drop-shadow(0 0 22px rgba(217, 171, 55, .6)); } }
@keyframes twinkle_g{ 0%, 34%, 54%, 100% { transform: scale(1) rotate(0); } 43% { transform: scale(1.55) rotate(72deg); filter: drop-shadow(0 0 4px #fff3c4) drop-shadow(0 0 10px #f2c94c) drop-shadow(0 0 18px #e3c25a); } }
@keyframes flash_g{ 50% { fill: #edcf45; } }
@keyframes cloverFlash_g{ 25% { box-shadow: 0 0 18px 4px rgba(237, 207, 69, .75), 0 0 38px 10px rgba(237, 198, 69, .35); } }
@keyframes clvSpin_g{ 0% { transform: scale(1) rotate(0deg); filter: none; } 25% { transform: scale(1.14) rotate(200deg); filter: drop-shadow(0 0 5px #edcf45) drop-shadow(0 0 12px rgba(237, 207, 69, .8)); } 100% { transform: scale(1) rotate(360deg); filter: none; } }
@keyframes nowPulse_g{ 0% { box-shadow: 0 0 0 0 rgba(227, 203, 96, .7); } 100% { box-shadow: 0 0 0 9px rgba(227, 203, 96, 0); } }
@keyframes clvGlow_g{ 50% { fill: #ebc730; } }
@keyframes monOn_g{ 0% { fill: rgba(203, 162, 48, 0); } 30% { fill: rgba(237, 207, 69, .6); } 100% { fill: rgba(203, 162, 48, .18); } }
@keyframes tlPulse_g{ 0%, 100% { box-shadow: 0 0 0 4px rgba(203, 162, 48, .16); } 50% { box-shadow: 0 0 0 8px rgba(203, 162, 48, .05); } }
@keyframes filled_g{ 0% { box-shadow: 0 0 0 0 rgba(237, 207, 69, .7); border-color: #ebc730; } 100% { box-shadow: 0 0 0 10px rgba(237, 207, 69, 0); } }
@keyframes neonPulse_g{ 50% { box-shadow: 0 0 0 1px rgba(248, 237, 183, .8), 0 0 28px rgba(237, 207, 69, .8), 0 0 70px rgba(203, 162, 48, .5), 0 20px 44px rgba(129, 97, 24, .3); } }
@keyframes erPulse_g{ 50% { box-shadow: 0 0 0 6px rgba(217, 171, 55, .18), 0 8px 20px rgba(199, 154, 46, .35); } }
@keyframes erFlash_g{ 0% { box-shadow: 0 0 0 0 rgba(237, 207, 69, .8); } 100% { box-shadow: 0 0 0 14px rgba(237, 207, 69, 0); } }
@keyframes erGlowBtn_g{ 50% { box-shadow: 0 0 0 6px rgba(243, 217, 137, .25), 0 12px 32px rgba(199, 154, 46, .55); } }
@keyframes erFlip3d_g{ 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg) scale(1.08); box-shadow: 0 0 0 10px rgba(237, 207, 69, .25); } 100% { transform: rotateY(360deg); } }
@keyframes ngPulse_g{ 50% { box-shadow: 0 0 0 6px rgba(243, 220, 130, .22), 0 4px 0 #d7b049, 0 14px 30px rgba(237, 198, 76, .5), 0 0 26px rgba(243, 220, 130, .4), inset 0 1px 0 rgba(255,255,255,.65); } }
@keyframes wlFadeOut_g{ 60% { background: rgba(57, 48, 25, .3); } to { background: rgba(57, 48, 25, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes ovPulse_g{ 50% { box-shadow: 0 0 0 7px rgba(217, 171, 55, .08); } }
body .er-bg i{animation:erFloat 16s ease-in-out infinite alternate}
body .er-clock.low{animation:erPulse_g 1.2s ease-in-out infinite}
body .er-cta::before{animation:erShine 3.2s ease-in-out infinite}
body .er-cta.sure:not(:disabled){animation:erWig .5s ease}
body .er-cta.busy span::after{animation:spin .7s linear infinite}
body .er-emb{animation:stPop .6s cubic-bezier(.3,1.6,.5,1) both}
body .er-halo{animation:spin 18s linear infinite}
body .er-rules li{animation:up .45s ease both}
body .er-q.in{animation:erIn .35s cubic-bezier(.2,.9,.3,1) both}
body .er-opt{animation:up .35s ease both}
body .er-pi{animation:erPulse_g 1.6s ease-in-out infinite}
body .er-rp{animation:up .4s ease both}
body .er-ring .rg{animation:erNeon 2.4s ease-in-out infinite}
body .er-score .sg{animation:erNeonL 2.4s ease-in-out infinite}
body .er-score.fail .sg{stroke:#aeb5bf;animation:none}
body .er-rp.no{border-color:#e2e4e8}
body .er-rp.no .er-bar i{background:linear-gradient(90deg, #c9ced5, #8e98a6);box-shadow:0 0 5px rgba(142, 152, 166, .25)}
body .er-rp.no .er-rp-h > i{background:linear-gradient(135deg, #b8bec7, #8e98a6)}
body .er-rp.no .er-rp-h b,body .er-rp.no .er-rp-h em{color:#828d9d}
body .er-rip{animation:erRip .6s ease-out forwards}
body .er-opt.pop{animation:erPop .35s cubic-bezier(.3,1.6,.5,1)}
body .er-clock.low{animation:erBeatBox 1s ease-in-out infinite}
body .er-clock.low .rg{animation:erBeat 1s ease-in-out infinite}
body .er-parts span.flash .lk{animation:erLk .6s ease-out .25s both}
body .er-parts span.flash{animation:erFlash_g .9s ease-out}
body .er-parts span.flash em{animation:erTick .6s cubic-bezier(.3,1.7,.5,1)}
body .er-cta.submit:not(:disabled){animation:erGlowBtn_g 2s ease-in-out infinite}
body .er-hg .hg-stream{animation:hgFlow .5s linear infinite}
body .er-hg .hg-grain{animation:hgDrop 1.2s linear infinite}
body .er-clock.flip .er-hg{animation:hgTurn .5s cubic-bezier(.5,0,.3,1.4)}
body .er-clock.flip .er-ring{animation:hgFlip .42s ease-in-out}
body .er-clock .er-hg{animation:hgSway 7s ease-in-out infinite}
body .er-clock.flip .er-hg{animation:hgTurn .55s cubic-bezier(.5,0,.3,1.4)}
body .er-q.in.fwd{animation:erTurnF .5s cubic-bezier(.2,.8,.2,1) both}
body .er-q.in.back{animation:erTurnB .5s cubic-bezier(.2,.8,.2,1) both}
body .er-parts span.flash{animation:erFlip3d_g .8s cubic-bezier(.3,1.3,.5,1)}
body .er-pi{animation:erFloat3d 3s ease-in-out infinite}
body .er-pi i{animation:erRingOut 2.4s ease-out infinite}
body .er-score{animation:erMedal 1s cubic-bezier(.2,.9,.3,1.15) both}
body .er-rp{animation:erDrop3d .6s cubic-bezier(.2,.9,.3,1.2) both}
body .er-rp.no{box-shadow:0 4px 0 #dbdfe3, 0 10px 22px rgba(142, 152, 166, .08)}
body .er-rp.no .er-rp-h > i{background:radial-gradient(circle at 34% 28%, #e1e4e7 0, #a5adb8 45%, #748092 100%);box-shadow:0 3px 6px rgba(142, 152, 166, .3), inset 0 1px 1px rgba(255,255,255,.55)}
body .er-paused{animation:pzIn .45s ease both}
body .er-paused .pz-a{animation:erFloat 12s ease-in-out infinite alternate}
body .er-paused > div.pz{animation:pzUp .6s cubic-bezier(.2,.9,.3,1.1) both}
body .er-cta:not(:disabled),body .er-cta.go:not(:disabled),body .er-cta.sure:not(:disabled),body .er-cta.submit:not(:disabled){animation:ngFlow 6s ease-in-out infinite}
body .er-cta.sure:not(:disabled){animation:ngFlow 6s ease-in-out infinite, erWig .5s ease}
body .er-cta.submit:not(:disabled){animation:ngFlow 6s ease-in-out infinite, ngPulse_g 2.2s ease-in-out infinite}
body .er-cta::before{animation:ngShine 3.6s cubic-bezier(.4,0,.2,1) infinite}
body .er-cta:not(:disabled)::after{animation:ngTwinkle 3.6s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){body .er-cta,body .er-cta::before,body .er-cta::after{animation:none !important}}
body .er-score.fail .sb{stroke:#ebedef}
body .er-score.fail .sg{stroke:#c0c5cd;animation:erNeonR 3s ease-in-out infinite}
body .er-score.fail .er-sv::before,body .er-score.fail .er-sv::after{background:linear-gradient(135deg, #fff, #ebedef);filter:drop-shadow(0 0 4px #c0c5cd) drop-shadow(0 0 8px rgba(192, 197, 205, .6));animation:erSpk 3.2s ease-in-out infinite}
body .er-sv > span.no::after{animation:erSpk 2.4s ease-in-out .8s infinite}
body .er-sv > span.no{background:radial-gradient(circle at 34% 28%, #e9ebee 0, #b5bcc5 50%, #8e98a6 100%);box-shadow:0 4px 10px rgba(151, 161, 174, .35), 0 0 14px rgba(192, 197, 205, .45), inset 0 1px 2px rgba(255,255,255,.7)}
body .er-shield{animation:shIn .25s ease}
body .er-cam.warn{animation:camWarn 1.2s ease-in-out infinite}
body.lv-xlead .ps-truck .tk-body{fill:#fff}
body.lv-xlead .ps-truck .tk-cab{fill:#edd376}
body.lv-xlead .ex{--exb:#cba230;background:var(--bg)}
body.lv-xlead .ex-top{background:#fcfbf8;box-shadow:0 1px 0 rgba(57, 48, 25, .06)}
body.lv-xlead .ex-back{color:var(--ink)}
body.lv-xlead .ex-back:active{background:#efece3}
body.lv-xlead .ex-sub{color:var(--muted)}
body.lv-xlead .ex-prog-t b{color:var(--exb)}
body.lv-xlead .ex-prog-t span{color:var(--muted)}
body.lv-xlead .ex-bars i{background:#efece3}
body.lv-xlead .ex-bars i::after{background:var(--exb)}
body.lv-xlead .ex-step{animation:exIn .35s cubic-bezier(.2,.8,.3,1) both}
body.lv-xlead .ex-step.back{animation-name:exBackIn}
body.lv-xlead .ex-in,body.lv-xlead .ex-sel,body.lv-xlead .ex-ta{background:#fff;border:1px solid var(--line);color:var(--faint)}
body.lv-xlead .ex-in:focus-within,body.lv-xlead .ex-sel:focus-within,body.lv-xlead .ex-ta:focus{border-color:var(--blue4);box-shadow:0 0 0 4px rgba(229, 187, 76, .12)}
body.lv-xlead .ex-in:focus-within,body.lv-xlead .ex-sel:focus-within{color:var(--exb)}
body.lv-xlead .ex-in.bad,body.lv-xlead .ex-sel.bad,body.lv-xlead .ex-ta.bad{border-color:#919ba8}
body.lv-xlead .ex-in input{color:var(--ink)}
body.lv-xlead .ex-in input:read-only{color:var(--muted)}
body.lv-xlead .ex-in:has(input:read-only){background:#f8f7f2}
body.lv-xlead .ex-in input::placeholder,body.lv-xlead .ex-ta::placeholder{color:var(--faint)}
body.lv-xlead .ex-ta{color:var(--ink)}
body.lv-xlead .ex-sel select{color:var(--ink)}
body.lv-xlead .ex-sel select:invalid,body.lv-xlead .ex-sel select.ph{color:var(--faint)}
body.lv-xlead .ex-sel svg{color:var(--muted)}
body.lv-xlead .ex-note{color:var(--muted)}
body.lv-xlead .ex-err{color:#778495}
body.lv-xlead .ex-chk input,body.lv-xlead .ex-agree input{accent-color:var(--exb)}
body.lv-xlead .ex-mode{background:#fff;border:1.5px solid var(--line)}
body.lv-xlead .ex-mode:has(input:checked){border-color:var(--exb);box-shadow:0 6px 18px rgba(203, 162, 48, .12)}
body.lv-xlead .ex-mode:has(input:focus-visible){box-shadow:0 0 0 4px rgba(229, 187, 76, .25)}
body.lv-xlead .ex-mode .mi{background:#f8f7f2;color:var(--muted)}
body.lv-xlead .ex-mode:has(input:checked) .mi{background:#fcf8ec;color:var(--exb)}
body.lv-xlead .ex-mode .mt small{color:var(--muted)}
body.lv-xlead .ex-mode em{color:var(--exb)}
body.lv-xlead .ex-total{background:#fdf9f0}
body.lv-xlead .ex-total b{color:var(--exb)}
body.lv-xlead .ex-card{background:#fff;border:1px solid var(--line)}
body.lv-xlead .ex-item small{color:var(--muted)}
body.lv-xlead .bk-row{border-bottom:1px solid var(--line)}
body.lv-xlead .bk-ic{background:#e8f7ee;color:#138a43}
body.lv-xlead .bk-row small{color:var(--muted)}
body.lv-xlead .bk-acc small{color:var(--faint)}
body.lv-xlead .bk-copy{background:#fcf8ec;color:var(--exb)}
body.lv-xlead .bk-copy.ok{background:#e8f7ee;color:#138a43}
body.lv-xlead .ex-up{border:1.5px dashed #e0c889;background:#fff}
body.lv-xlead .ex-up:active{background:#fefcf6}
body.lv-xlead .ex-up.bad{border-color:#919ba8}
body.lv-xlead .ex-up.has{border-color:var(--line)}
body.lv-xlead .up-empty{color:var(--exb)}
body.lv-xlead .up-empty small{color:var(--muted)}
body.lv-xlead .up-done img{background:#f8f7f2}
body.lv-xlead .up-done b{color:#138a43}
body.lv-xlead .up-done small{color:var(--muted)}
body.lv-xlead .up-done em{color:var(--exb)}
body.lv-xlead .sum-h{border-bottom:1px solid var(--line)}
body.lv-xlead .sum-h button{color:var(--exb)}
body.lv-xlead .ex-sum dt{color:var(--muted)}
body.lv-xlead .ex-sum dd.sum-fee{color:var(--exb)}
body.lv-xlead .ex-agree{color:#615840}
body.lv-xlead .ex-foot{background:#fff;border-top:1px solid var(--line)}
body.lv-xlead .ex-next{background:var(--exb);color:#fff}
body.lv-xlead .ex-next:disabled{background:#efece3;color:var(--faint)}
body.lv-xlead .ex-next.busy span::after{border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
body.lv-xlead .st-ic{background:#e8f7ee;color:#16a34a;animation:stPop .5s cubic-bezier(.3,1.6,.5,1) both}
body.lv-xlead .st-ic.wait{background:#fff7e6;color:#d97706}
body.lv-xlead .st-hero p{color:var(--muted)}
body.lv-xlead .st-badge{background:#e8f7ee;color:#138a43}
body.lv-xlead .st-badge.wait{background:#fff7e6;color:#b45309}
body.lv-xlead .ex-in.ok{border-color:#86d8a4}
body.lv-xlead .ex-same{background:#fff;border:1.5px solid var(--line)}
body.lv-xlead .ex-same:has(input:checked){border-color:var(--exb);background:#fefcf6}
body.lv-xlead .ex-same:has(input:focus-visible){box-shadow:0 0 0 4px rgba(229, 187, 76, .25)}
body.lv-xlead .sm-box{border:2px solid #dfdacd;color:#fff}
body.lv-xlead .ex-same:has(input:checked) .sm-box{background:var(--exb);border-color:var(--exb)}
body.lv-xlead .sm-t small{color:var(--exb)}
body.lv-xlead .ex-same:not(:has(input:checked)) .sm-t small{color:var(--faint)}
body.lv-xlead .ex-email{animation:exDrop .3s cubic-bezier(.2,.8,.3,1) both}
body.lv-xlead .ex-chips button{background:#fff;border:1.5px solid var(--line);color:#615840}
body.lv-xlead .ex-chips button[aria-checked=true]{background:var(--exb);border-color:var(--exb);color:#fff;box-shadow:0 4px 12px rgba(203, 162, 48, .25)}
body.lv-xlead .ex-chips.bad button{border-color:#c9ced5}
body.lv-xlead .ex-mode .rd{border:2px solid #dfdacd}
body.lv-xlead .ex-mode:has(input:checked) .rd{border:6px solid var(--exb)}
body.lv-xlead .ex-trust{color:var(--muted)}
body.lv-xlead .ex-trust svg{color:#16a34a}
body.lv-xlead .ex-verify{background:rgba(57, 48, 25, .45);animation:in .2s ease both}
body.lv-xlead .vf-card{background:#fff;box-shadow:0 20px 50px rgba(57, 48, 25, .3)}
body.lv-xlead .vf-slip{background:#f8f7f2;box-shadow:inset 0 0 0 1px var(--line)}
body.lv-xlead .vf-scan{background:linear-gradient(180deg, transparent, rgba(237, 207, 69, .45) 80%, #edcf45);box-shadow:0 2px 12px #edcf45;animation:vfScan 1.3s ease-in-out infinite alternate}
body.lv-xlead .vf-card small{color:var(--muted)}
body.lv-xlead .st-burst i{background:var(--exb)}
body.lv-xlead .st-burst i:nth-child(3n+1){background:#22c55e}
body.lv-xlead .st-burst i:nth-child(3n+2){background:#ebc730}
body.lv-xlead .st-burst.go i{animation:burst .9s cubic-bezier(.1,.8,.3,1) .15s forwards}
body.lv-xlead .ex-rounds.bad .rc{border-color:#c9ced5}
body.lv-xlead .ex-empty{color:var(--muted);background:#fff;border:1px dashed var(--line)}
body.lv-xlead .ex-clv{filter:drop-shadow(0 0 4px rgba(237, 207, 69, .9)) drop-shadow(0 0 10px rgba(203, 162, 48, .6))}
body.lv-xlead .ex-clv svg{fill:var(--exb);animation:clvGlow_g 2.2s ease-in-out infinite}
body.lv-xlead .ex-clv.hop svg{animation:clvHop .6s cubic-bezier(.3,1.4,.5,1), clvGlow_g 2.2s ease-in-out .6s infinite}
body.lv-xlead .mi-pin::after{background:rgba(203, 162, 48, .3)}
body.lv-xlead .ex-mode:has(input:checked) .mi-pin svg{animation:pinDrop .65s cubic-bezier(.3,1.6,.5,1)}
body.lv-xlead .ex-mode:has(input:checked) .mi-pin::after{animation:pinShadow .65s ease-out forwards}
body.lv-xlead .ex-mode:has(input:checked) .mi-mon .scr{animation:monOn_g .8s ease-out forwards}
body.lv-xlead .ex-mode:has(input:checked) .mi-mon svg{animation:monPop .4s cubic-bezier(.3,1.6,.5,1)}
body.lv-xlead .ex-soon{color:var(--exb);animation:exDrop .3s ease both}
body.lv-xlead .st-rain.go i{animation:cloverRain 2.6s cubic-bezier(.3,.6,.4,1) var(--dl) forwards}
body.lv-xlead .st-rain i:nth-child(1){background:#22c55e}
body.lv-xlead .st-rain i:nth-child(2){background:#ebc730}
body.lv-xlead .st-rain i:nth-child(3){background:#16a34a}
body.lv-xlead .st-rain i:nth-child(4){background:#eccb6e}
body.lv-xlead .st-rain i:nth-child(5){background:#cba230}
body.lv-xlead .st-rain i:nth-child(6){background:#22c55e}
body.lv-xlead .st-rain i:nth-child(7){background:#ebc730}
body.lv-xlead .st-rain i:nth-child(8){background:#16a34a}
body.lv-xlead .st-rain i:nth-child(9){background:#eccb6e}
body.lv-xlead .st-rain i:nth-child(10){background:#cba230}
body.lv-xlead .st-rain i:nth-child(11){background:#22c55e}
body.lv-xlead .st-rain i:nth-child(12){background:#ebc730}
body.lv-xlead .st-rain i:nth-child(13){background:#16a34a}
body.lv-xlead .st-rain i:nth-child(14){background:#eccb6e}
body.lv-xlead .st-rain i:nth-child(15){background:#cba230}
body.lv-xlead .st-rain i:nth-child(16){background:#22c55e}
body.lv-xlead .tk{color:#fff;background:radial-gradient(120% 90% at 100% 0%, rgba(229, 187, 76, .9) 0%, transparent 55%), linear-gradient(145deg, #816118, #b08929 55%, #cba230);box-shadow:0 16px 36px rgba(129, 97, 24, .3)}
body.lv-xlead .tk::before{background:linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);animation:tkShine 3.4s ease-in-out infinite}
body.lv-xlead .tk-brand svg{fill:#f6e8b6}
body.lv-xlead .tk-badge{background:rgba(34,197,94,.2);color:#bbf7d0;box-shadow:inset 0 0 0 1px rgba(187,247,208,.4)}
body.lv-xlead .tk-badge.wait{background:rgba(251,191,36,.18);color:#fde68a;box-shadow:inset 0 0 0 1px rgba(253,230,138,.4)}
body.lv-xlead .tk-kicker{color:rgba(255,255,255,.65)}
body.lv-xlead .tk-grid small{color:rgba(255,255,255,.6)}
body.lv-xlead .tk-cut{border-top:2px dashed rgba(255,255,255,.3)}
body.lv-xlead .tk-cut::before,body.lv-xlead .tk-cut::after{background:var(--bg)}
body.lv-xlead .tk-qr{background:#fff}
body.lv-xlead .tk.pending .tk-qr{background:repeating-conic-gradient(#dfdacd 0 25%, #fff 0 50%) 0 0 / 12px 12px}
body.lv-xlead .qr-lock{background:rgba(57, 48, 25, .78);color:#fff}
body.lv-xlead .tk-code small{color:rgba(255,255,255,.6)}
body.lv-xlead .tk-code em{color:rgba(255,255,255,.78)}
body.lv-xlead .st-save{background:#fff;border:1px solid var(--line);color:var(--exb)}
body.lv-xlead .sc-row div{background:#f8f7f2}
body.lv-xlead .sc-row b{color:var(--exb)}
body.lv-xlead .sc-row small{color:var(--muted)}
body.lv-xlead .sc-cal{background:#fcf8ec;color:var(--exb)}
body.lv-xlead .st-tl li::before{background:var(--line)}
body.lv-xlead .st-tl li.done::before{background:#22c55e}
body.lv-xlead .st-tl .dot{border:2px solid #dfdacd;background:#fff}
body.lv-xlead .st-tl li.done .dot{background:#22c55e;border-color:#22c55e}
body.lv-xlead .st-tl li.done .dot::after{border:2px solid #fff}
body.lv-xlead .st-tl li.now .dot{border-color:var(--exb);animation:tlPulse_g 1.6s ease-in-out infinite}
body.lv-xlead .st-tl li.now .dot::after{background:var(--exb)}
body.lv-xlead .st-tl small{color:var(--muted)}
body.lv-xlead .st-tl li.todo b{color:var(--faint)}
body.lv-xlead .ex-scan{color:#fff;background:linear-gradient(120deg, #816118, #cba230 60%, #eac429);box-shadow:0 10px 24px rgba(203, 162, 48, .25)}
body.lv-xlead .ex-scan::after{background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);animation:scanSweep 2.8s ease-in-out infinite}
body.lv-xlead .sc-ic{background:rgba(255,255,255,.16)}
body.lv-xlead .sc-tx small{color:rgba(255,255,255,.82)}
body.lv-xlead .ex-area select:disabled{color:var(--faint)}
body.lv-xlead .ex-addr-full{color:var(--exb)}
body.lv-xlead .up-chk{animation:exDrop .3s ease both}
body.lv-xlead .up-chk.busy{background:#f8f7f2;color:var(--muted)}
body.lv-xlead .up-chk .sp{border:2px solid #dfdacd;border-top-color:var(--exb);animation:spin .7s linear infinite}
body.lv-xlead .up-chk.ok{background:#e8f7ee;color:#166534}
body.lv-xlead .up-chk.bad{background:#fef2f2;color:#646f7f}
body.lv-xlead .up-chk.wait{background:#fff7e6;color:#92400e}
body.lv-xlead .sp-ic{background:#fcf8ec;color:var(--exb)}
body.lv-xlead .st-push.on .sp-ic{background:#e8f7ee;color:#16a34a;animation:bell 1.2s ease-in-out 1}
body.lv-xlead .sp-tx small{color:var(--muted)}
body.lv-xlead .sp-btn{background:var(--exb);color:#fff}
body.lv-xlead .st-push.on .sp-btn{background:#fcf8ec;color:var(--exb)}
body.lv-xlead .pl-ic{background:#fef2f2;color:#778495}
body.lv-xlead .pl-tx small{color:var(--muted)}
body.lv-xlead .pl-go{background:var(--exb);color:#fff}
body.lv-xlead .ck-count{color:var(--exb)}
body.lv-xlead .ck-list li + li{border-top:1px solid var(--line)}
body.lv-xlead .ck-box{border:2px solid #dfdacd;color:#fff}
body.lv-xlead .ck-list li.on .ck-box{background:#22c55e;border-color:#22c55e}
body.lv-xlead .ck-list li.on .ck-t{color:var(--muted);text-decoration-color:rgba(100,116,139,.5)}
body.lv-xlead .ck-list li.later .ck-t{color:var(--muted)}
body.lv-xlead .ck-sub{color:#b45309}
body.lv-xlead .ck-list li.ck-group{color:var(--exb)}
body.lv-xlead .ck-t em{color:#b45309;background:#fff7e6}
body.lv-xlead .cert{color:#fff;background:radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(150deg, #816118, #b08929 60%, #eac429);box-shadow:0 16px 36px rgba(129, 97, 24, .3)}
body.lv-xlead .cert::before{background:repeating-conic-gradient(rgba(255,255,255,.07) 0 10deg, transparent 10deg 30deg);animation:rays 20s linear infinite}
body.lv-xlead .ct-medal{color:#7a4d00;background:radial-gradient(circle at 35% 30%, #fff7cc, #f5c542 55%, #c98a0b);box-shadow:0 0 0 5px rgba(255,255,255,.5), 0 10px 26px rgba(0,0,0,.25);animation:medalIn .8s cubic-bezier(.3,1.5,.5,1) both}
body.lv-xlead .ct-k{color:#fde68a}
body.lv-xlead .ct-meta{color:rgba(255,255,255,.78)}
body.lv-xlead .st-share{background:linear-gradient(90deg, #f59e0b, #f5c542);color:#422006;box-shadow:0 8px 20px rgba(245,158,11,.3)}
body.lv-xlead .st-tl li.fail .dot{background:#919ba8;border-color:#919ba8}
body.lv-xlead .sc-move{border:1px dashed #e6d19b;color:var(--exb)}
body.lv-xlead .mv-sheet{background:rgba(57, 48, 25, .45);animation:in .2s ease both}
body.lv-xlead .mv-card{background:#fff;animation:mvUp .3s cubic-bezier(.2,.8,.3,1) both}
body.lv-xlead .mv-note{color:var(--muted)}
body.lv-xlead .mv-cancel{background:#f8f7f2;color:var(--ink)}
body.lv-xlead .mv-ok{background:var(--exb);color:#fff}
body.lv-xlead .mv-ok:disabled{background:#efece3;color:var(--faint)}
body.lv-xlead .cert{color:#fff;background:conic-gradient(from var(--fa), #f8edb7, #cba230, #edcf45, #ffffff, #edbb4d, #f8edb7);animation:foil 5s linear infinite;box-shadow:0 0 0 1px rgba(248, 237, 183, .5), 0 0 18px rgba(237, 207, 69, .55), 0 0 48px rgba(203, 162, 48, .35), 0 20px 44px rgba(129, 97, 24, .3)}
body.lv-xlead .cert.in{animation:foil 5s linear infinite, certIn 1s cubic-bezier(.2,1.3,.4,1) both, neonPulse_g 3s 1s ease-in-out infinite}
body.lv-xlead .ct-in{background:radial-gradient(80% 50% at 50% 18%, rgba(237, 207, 69, .35), transparent 70%), linear-gradient(160deg, #856419 0%, #a27d25 50%, #cfa730 100%)}
body.lv-xlead .ct-aur i{animation:aur 12s ease-in-out infinite alternate}
body.lv-xlead .ct-aur i:nth-child(1){background:#f8edb7}
body.lv-xlead .ct-aur i:nth-child(2){background:#f5db99}
body.lv-xlead .ct-aur i:nth-child(3){background:#edcf45}
body.lv-xlead .ct-rays{background:repeating-conic-gradient(rgba(237, 200, 69, .13) 0 5deg, transparent 5deg 15deg);animation:rays 40s linear infinite}
body.lv-xlead .ct-in::after{background-image:linear-gradient(rgba(248, 237, 183, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(248, 237, 183, .55) 1px, transparent 1px);animation:grid 2.4s linear infinite;filter:drop-shadow(0 0 3px #edcf45)}
body.lv-xlead .ct-spk i{background:radial-gradient(closest-side, #fff, #f8edb7 35%, transparent);filter:drop-shadow(0 0 3px #edcf45);animation:spk 3.6s ease-in-out infinite}
body.lv-xlead .ct-spk i:nth-child(-n+2),body.lv-xlead .ct-spk i:nth-child(7){background:radial-gradient(closest-side, #fff, #cba230 40%, transparent)}
body.lv-xlead .ct-medal{animation:none;color:#f8edb7}
body.lv-xlead .cert.in .ct-medal{animation:medalIn 1.1s .25s cubic-bezier(.3,1.5,.5,1) both}
body.lv-xlead .md-halo{background:radial-gradient(closest-side, rgba(237, 207, 69, .5), transparent);animation:halo 3s ease-in-out infinite}
body.lv-xlead .ct-medal .md-laurel{filter:drop-shadow(0 0 4px rgba(237, 207, 69, .9))}
body.lv-xlead .md-coin{background:radial-gradient(circle at 32% 28%, #ffffff, #faf1d1 40%, #dfb440 80%, #816118);box-shadow:inset 0 0 0 2px rgba(255,255,255,.9), inset 0 -6px 14px rgba(129, 97, 24, .5), 0 0 0 2px #f8edb7, 0 0 16px #edcf45, 0 0 36px rgba(237, 207, 69, .6);animation:coin 7s ease-in-out infinite}
body.lv-xlead .md-coin svg{fill:#fff;filter:drop-shadow(0 0 4px #edcf45) drop-shadow(0 0 10px rgba(237, 207, 69, .7))}
body.lv-xlead .md-coin::after{background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%);animation:shine 3.5s 1.2s ease-in-out infinite}
body.lv-xlead .ct-k{color:#f3dd9d;text-shadow:0 0 10px rgba(237, 207, 69, .6)}
body.lv-xlead .ct-k::before,body.lv-xlead .ct-k::after{background:linear-gradient(90deg, transparent, #cba230)}
body.lv-xlead .cert h4{background:linear-gradient(100deg, #816118 0%, #cba230 25%, #eac429 42%, #faf3d1 50%, #eac429 58%, #cba230 75%, #816118 100%);color:transparent;filter:drop-shadow(0 0 6px rgba(237, 207, 69, .75)) drop-shadow(0 0 18px rgba(237, 207, 69, .45));animation:neontx 4s linear infinite}
body.lv-xlead .ct-name{text-shadow:0 0 12px rgba(237, 207, 69, .7), 0 2px 8px rgba(129, 97, 24, .5)}
body.lv-xlead .ct-pills span{color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35)}
body.lv-xlead .ct-pills #ctScore{background:rgba(237, 207, 69, .2);border-color:#f8edb7;box-shadow:0 0 10px rgba(237, 207, 69, .7), inset 0 0 8px rgba(248, 237, 183, .4);text-shadow:0 0 6px #edcf45}
body.lv-xlead .ct-foot{border-top:1px dashed rgba(248, 237, 183, .4);color:rgba(255,255,255,.75)}
body.lv-xlead .ct-brand{color:#fff;text-shadow:0 0 8px rgba(237, 207, 69, .8)}
body.lv-xlead .ct-brand svg{fill:#f8edb7;filter:drop-shadow(0 0 4px #edcf45)}
body.lv-xlead .ct-no{color:#faf3d1}
body.lv-xlead .ct-glare{background:radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.8), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(248, 237, 183, .45) 45%, rgba(245, 219, 153, .4) 55%, transparent 70%)}
body.lv-xlead .st-share{color:#fff;background:linear-gradient(90deg, #cba230, #eac429, #edbb4d, #cba230);animation:neontx 4s linear infinite;box-shadow:0 0 0 1px rgba(248, 237, 183, .6), 0 0 16px rgba(237, 207, 69, .55), 0 8px 20px rgba(203, 162, 48, .3);text-shadow:0 0 8px rgba(248, 237, 183, .8)}
@media (prefers-reduced-motion: reduce){body.lv-xlead .cert,body.lv-xlead .cert.in,body.lv-xlead .ct-aur i,body.lv-xlead .ct-rays,body.lv-xlead .ct-in::after,body.lv-xlead .ct-spk i,body.lv-xlead .md-halo,body.lv-xlead .md-coin,body.lv-xlead .md-coin::after,body.lv-xlead .cert h4,body.lv-xlead .st-share,body.lv-xlead .cert.in .ct-medal{animation:none !important}}
body.lv-xlead .nw .ex-top{background:#fff;box-shadow:0 1px 0 rgba(57, 48, 25, .06)}
body.lv-xlead .tk-in{color:#138a43 !important;background:#e8f7ee !important}
body.lv-xlead .rm-card{border:1.5px solid #f6e8c4;background:linear-gradient(135deg, #fefcf6, #fcf8ec)}
body.lv-xlead .rm-ic{background:#cba230;color:#fff;box-shadow:0 6px 16px rgba(203, 162, 48, .3)}
body.lv-xlead .rm-tx small{color:var(--muted)}
body.lv-xlead .er{--b1:#806628;--b2:#c79a2e;--b3:#d9ab37;--b4:#e5bb4c;--b5:#f3dd9d;--b6:#fbf3de;--b7:#fefaf0;--ink2:#55431a;--mut2:#938561;--bd:#f8efd9;--grad:linear-gradient(135deg, #e5bb4c, #c79a2e);--gradS:linear-gradient(135deg, #eccb6e, #d9ab37);color:var(--ink2);background:#fefcf8}
body.lv-xlead .er-bg{background:linear-gradient(180deg, #fcf6e6 0%, #fefcf6 38%, #ffffff 100%)}
body.lv-xlead .er-bg i{animation:erFloat 16s ease-in-out infinite alternate}
body.lv-xlead .er-bg i:nth-child(1){background:#f3dd9d}
body.lv-xlead .er-bg i:nth-child(2){background:#f8ebc5}
body.lv-xlead .er-bg i:nth-child(3){background:#fbf3de}
body.lv-xlead .er-top{background:rgba(255,255,255,.86);border-bottom:1px solid var(--bd)}
body.lv-xlead .er-back{background:#fff;border:1px solid var(--bd);color:var(--b2);box-shadow:0 2px 8px rgba(217, 171, 55, .08)}
body.lv-xlead .er-ttl small{color:var(--b4)}
body.lv-xlead .er-ttl b{color:var(--b1)}
body.lv-xlead .er-cam{box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--b3), 0 4px 14px rgba(217, 171, 55, .35)}
body.lv-xlead .er-clock{color:#fff;background:var(--grad);box-shadow:0 8px 20px rgba(199, 154, 46, .3)}
body.lv-xlead .er-ring .rb{stroke:rgba(255,255,255,.28)}
body.lv-xlead .er-ring .rf{stroke:#fff}
body.lv-xlead .er-clock.low{background:linear-gradient(135deg, #806628, #614f23);animation:erPulse_g 1.2s ease-in-out infinite}
body.lv-xlead .er-dock{background:linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95) 32%)}
body.lv-xlead .er-cta{color:#fff;background:var(--grad);box-shadow:0 12px 28px rgba(199, 154, 46, .35), 0 0 0 1px rgba(255,255,255,.25) inset}
body.lv-xlead .er-cta::before{background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);animation:erShine 3.2s ease-in-out infinite}
body.lv-xlead .er-cta:disabled{background:#faf6ea;color:var(--mut2)}
body.lv-xlead .er-cta.go:not(:disabled){background:linear-gradient(135deg, #d9ab37, #806628);box-shadow:0 12px 28px rgba(128, 102, 40, .4)}
body.lv-xlead .er-cta.sure:not(:disabled){background:linear-gradient(135deg, #a27e2b, #614f23);box-shadow:0 0 0 4px rgba(229, 187, 76, .25), 0 12px 28px rgba(97, 79, 35, .45);animation:erWig .5s ease}
body.lv-xlead .er-cta.busy span::after{border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
body.lv-xlead .er-nav{color:var(--b2);background:#fff;border:1px solid var(--bd);box-shadow:0 6px 16px rgba(217, 171, 55, .1)}
body.lv-xlead .er-ghost{color:var(--b2);background:#fff;border:1.5px solid var(--b5)}
body.lv-xlead .er-emb{background:var(--grad);box-shadow:0 18px 40px rgba(199, 154, 46, .35);animation:stPop .6s cubic-bezier(.3,1.6,.5,1) both}
body.lv-xlead .er .er-emb svg{fill:#fff}
body.lv-xlead .er-halo{border:1.5px dashed var(--b5);animation:spin 18s linear infinite}
body.lv-xlead .er-kick{color:var(--b4)}
body.lv-xlead .er-hero h2{background:linear-gradient(90deg, #806628, #e5bb4c);color:transparent}
body.lv-xlead .er-chips span{background:#fff;border:1px solid var(--bd);color:var(--mut2);box-shadow:0 4px 12px rgba(217, 171, 55, .06)}
body.lv-xlead .er-chips b{color:var(--b2)}
body.lv-xlead .er-rules li{background:#fff;border:1px solid var(--bd);box-shadow:0 4px 14px rgba(217, 171, 55, .06);animation:up .45s ease both}
body.lv-xlead .er-rules i{color:#fff;background:var(--gradS);box-shadow:0 6px 14px rgba(217, 171, 55, .28)}
body.lv-xlead .er-rules b{color:var(--ink2)}
body.lv-xlead .er-rules small{color:var(--mut2)}
body.lv-xlead .er-msg{color:var(--b2)}
body.lv-xlead .er-parts span{background:#fff;border:1px solid var(--bd);color:var(--mut2)}
body.lv-xlead .er-parts span em{background:var(--b7);color:var(--b2)}
body.lv-xlead .er-parts span.on{color:#fff;background:var(--grad);border-color:transparent;box-shadow:0 8px 18px rgba(199, 154, 46, .3)}
body.lv-xlead .er-parts span.on em{background:#fff;color:var(--b2)}
body.lv-xlead .er-parts span.done:not(.on){color:var(--b2);border-color:var(--b5);background:var(--b7)}
body.lv-xlead .er-parts span.done:not(.on) em{background:var(--b3);color:#fff}
body.lv-xlead .er-prog{background:var(--b6)}
body.lv-xlead .er-prog i{background:linear-gradient(90deg, #f3dd9d, #d9ab37)}
body.lv-xlead .er-q{background:#fff;border:1px solid var(--bd);box-shadow:0 18px 44px rgba(199, 154, 46, .1)}
body.lv-xlead .er-q::before{background:linear-gradient(90deg, #f3dd9d, #d9ab37, #806628)}
body.lv-xlead .er-q.in{animation:erIn .35s cubic-bezier(.2,.9,.3,1) both}
body.lv-xlead .er-qn{background:var(--grad);color:#fff;box-shadow:0 6px 14px rgba(199, 154, 46, .25)}
body.lv-xlead .er-pt{color:var(--mut2)}
body.lv-xlead .er-qt{color:var(--ink2)}
body.lv-xlead .er-opt{color:var(--ink2);background:#fefdf9;border:1.5px solid var(--bd);animation:up .35s ease both}
body.lv-xlead .er-opt > span{color:var(--b2);background:#fff;border:1.5px solid var(--b5)}
body.lv-xlead .er-opt .ot li::before{background:var(--b4)}
body.lv-xlead .er-opt .ot .k{color:var(--b1)}
body.lv-xlead .er-opt .ot .tail{color:var(--mut2)}
body.lv-xlead .er-opt .ck{background:#fff;color:var(--b2)}
body.lv-xlead .er-opt.on{color:#fff;background:var(--grad);border-color:transparent;box-shadow:0 12px 26px rgba(199, 154, 46, .35)}
body.lv-xlead .er-opt.on > span{background:rgba(255,255,255,.2);color:#fff;border-color:rgba(255,255,255,.55)}
body.lv-xlead .er-opt.on .ot .k{color:#fff}
body.lv-xlead .er-opt.on .ot .tail{color:rgba(255,255,255,.85)}
body.lv-xlead .er-opt.on .ot li::before{background:#fff}
body.lv-xlead .er-map{background:#fff;border:1px solid var(--bd);box-shadow:0 6px 18px rgba(217, 171, 55, .06)}
body.lv-xlead .er-maph b{color:var(--ink2)}
body.lv-xlead .er-maph span{color:var(--mut2)}
body.lv-xlead .er-maph span.ok{color:var(--b3)}
body.lv-xlead .er-maph span.warn{color:var(--b1)}
body.lv-xlead .er-grid button{color:var(--mut2);background:#fefdf9;border:1px solid var(--bd)}
body.lv-xlead .er-grid button.ans{color:#fff;background:var(--gradS);border-color:transparent}
body.lv-xlead .er-grid button.on{box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--b3);color:var(--b2)}
body.lv-xlead .er-grid button.ans.on{color:#fff}
body.lv-xlead .er-pause{color:var(--b2);background:var(--b7);border:1px solid var(--b5)}
body.lv-xlead .er-paused{background:rgba(254, 250, 240, .96)}
body.lv-xlead .er-pi{color:#fff;background:var(--grad);animation:erPulse_g 1.6s ease-in-out infinite}
body.lv-xlead .er-score::before{background:#fff;box-shadow:0 18px 44px rgba(199, 154, 46, .18)}
body.lv-xlead .er-score .sb{stroke:var(--b6)}
body.lv-xlead .er-score .sf{stroke:url(#erG)}
body.lv-xlead .er-score.fail .sf{stroke:var(--b5)}
body.lv-xlead .er-sv > span{color:#fff;background:var(--grad)}
body.lv-xlead .er-sv > span.wait{color:var(--b2);background:var(--b6)}
body.lv-xlead .er-sv b{color:var(--b1)}
body.lv-xlead .er-sv small{color:var(--mut2)}
body.lv-xlead .er-rh h3{color:var(--b1)}
body.lv-xlead .er-rh p{color:var(--mut2)}
body.lv-xlead .er-rp{background:#fff;border:1px solid var(--bd);box-shadow:0 6px 18px rgba(217, 171, 55, .07);animation:up .4s ease both}
body.lv-xlead .er-rp-h > i{color:var(--b2);background:var(--b7);border:1px solid var(--b5)}
body.lv-xlead .er-rp.ok .er-rp-h > i{color:#fff;background:var(--grad);border-color:transparent}
body.lv-xlead .er-rp-h b{color:var(--ink2)}
body.lv-xlead .er-rp-h small{color:var(--mut2)}
body.lv-xlead .er-rp-h em{color:var(--mut2)}
body.lv-xlead .er-rp.ok .er-rp-h em{color:var(--b2)}
body.lv-xlead .er-bar{background:var(--b6)}
body.lv-xlead .er-bar i{background:linear-gradient(90deg, #f3dd9d, #d9ab37)}
body.lv-xlead .er-rp.no .er-bar i{background:var(--b5)}
body.lv-xlead .er-bar::after{background:var(--b1)}
body.lv-xlead .er-wrong{background:#fff;border:1px solid var(--bd)}
body.lv-xlead .er-wrong .sc-t{color:var(--b1)}
body.lv-xlead .er-wq{border-top:1px solid var(--bd)}
body.lv-xlead .er-wq i{color:#fff;background:var(--gradS)}
body.lv-xlead .er-wq small{color:var(--b3)}
body.lv-xlead .er-wq p{color:var(--ink2)}
body.lv-xlead .er-none{color:var(--mut2)}
body.lv-xlead .er-clock{background:linear-gradient(135deg, #806628, #c79a2e)}
body.lv-xlead .er-ring .rb{stroke:rgba(255,255,255,.14)}
body.lv-xlead .er-ring .rf{stroke:url(#erT)}
body.lv-xlead .er-ring .rg{stroke:#edcf45;animation:erNeon 2.4s ease-in-out infinite}
body.lv-xlead .er-score .sb{stroke:#faf4e5}
body.lv-xlead .er-score .sf{stroke:url(#erG)}
body.lv-xlead .er-score .sg{stroke:#edcf45;animation:erNeonL 2.4s ease-in-out infinite}
body.lv-xlead .er-score.fail .sf{stroke:url(#erGr)}
body.lv-xlead .er-score.fail .sg{stroke:#aeb5bf;animation:none}
body.lv-xlead .er-prog{background:#f4f0e7}
body.lv-xlead .er-prog i{background:linear-gradient(90deg, #edcf45, #f0cf64 55%, #d9ab37);box-shadow:0 0 8px rgba(237, 207, 69, .55)}
body.lv-xlead .er-bar{background:#f4f0e7}
body.lv-xlead .er-bar i{background:linear-gradient(90deg, #edcf45, #f0cf64 55%, #d9ab37);box-shadow:0 0 8px rgba(237, 207, 69, .5)}
body.lv-xlead .er-rp.no{border-color:#e2e4e8;background:#fffafa}
body.lv-xlead .er-rp.no .er-bar i{background:linear-gradient(90deg, #c9ced5, #8e98a6);box-shadow:0 0 5px rgba(142, 152, 166, .25)}
body.lv-xlead .er-rp.no .er-rp-h > i{color:#fff;background:linear-gradient(135deg, #b8bec7, #8e98a6);border-color:transparent}
body.lv-xlead .er-rp.no .er-rp-h b,body.lv-xlead .er-rp.no .er-rp-h em{color:#828d9d}
body.lv-xlead .er-grid button{color:#a3adbd;background:#f4f3ef;border-color:#edebe4}
body.lv-xlead .er-grid button.on{color:#6b7589}
body.lv-xlead .mp{background:#f6f4ef;animation:in .3s ease both}
body.lv-xlead .mp-map{background:#f6f4ef}
body.lv-xlead .mp-fade{background:linear-gradient(180deg, rgba(246, 244, 239, .9), rgba(246, 244, 239, 0))}
body.lv-xlead .mp-back{background:rgba(255,255,255,.96);color:#393019;box-shadow:0 6px 18px rgba(57, 48, 25, .1)}
body.lv-xlead .mp-share{background:rgba(255,255,255,.96);color:#393019;box-shadow:0 6px 18px rgba(57, 48, 25, .1)}
body.lv-xlead .mp-tools .mp-zoom{background:rgba(255,255,255,.96);box-shadow:0 6px 18px rgba(57, 48, 25, .1)}
body.lv-xlead .mp-tools button{color:#393019}
body.lv-xlead .mp-tools .mp-zoom button + button{border-top:1px solid #f3f0e9}
body.lv-xlead .mp-tools > button{background:rgba(255,255,255,.96);box-shadow:0 6px 18px rgba(57, 48, 25, .1);color:#d9ab37}
body.lv-xlead .mp-tools > #mpMe{color:#fff;background:linear-gradient(135deg, #e5bb4c, #c79a2e)}
body.lv-xlead .mp-card{background:#393019;box-shadow:0 -10px 30px rgba(57, 48, 25, .18)}
body.lv-xlead .mp-dark{color:#fff;background:radial-gradient(120% 140% at 85% 0%, rgba(217, 171, 55, .55), transparent 60%), linear-gradient(160deg, #42371c, #342b14)}
body.lv-xlead .mp-dh{color:rgba(255,255,255,.82)}
body.lv-xlead .mp-dh svg{fill:#eccb6e}
body.lv-xlead .mp-stats small{color:rgba(255,255,255,.6)}
body.lv-xlead .mp-note{color:rgba(255,255,255,.6)}
body.lv-xlead .mp-masc{filter:drop-shadow(0 10px 14px rgba(0,0,0,.35))}
body.lv-xlead .mp-body{background:#faf9f6}
body.lv-xlead .mp-body h3{color:#393019}
body.lv-xlead .mp-addr{background:#fff;box-shadow:inset 0 0 0 1px #f2efe7;color:#453e2b}
body.lv-xlead .mp-addr > svg{color:#393019}
body.lv-xlead .mp-copy{color:#d9ab37;background:#fefaf0}
body.lv-xlead .mp-facts > div{background:#fff;box-shadow:inset 0 0 0 1px #f2efe7}
body.lv-xlead .mp-facts svg{color:#393019}
body.lv-xlead .mp-facts b{color:#393019}
body.lv-xlead .mp-facts small{color:#8391a7}
body.lv-xlead .mp-photo{background:#efece3}
body.lv-xlead .mp-photo figcaption{color:#fff;background:rgba(57, 48, 25, .55)}
body.lv-xlead .mp-attr{color:#b5ad97}
body.lv-xlead .mp-bar{background:#fff;box-shadow:0 -1px 0 #f2efe7}
body.lv-xlead .mp-bl b{color:#393019}
body.lv-xlead .mp-bl small{color:#8391a7}
body.lv-xlead .mp-b1{color:#fff;background:linear-gradient(135deg, #e5bb4c, #c79a2e);box-shadow:0 10px 22px rgba(199, 154, 46, .32)}
body.lv-xlead .mp-b1 i{background:rgba(255,255,255,.22)}
body.lv-xlead .mp-b2{color:#c79a2e;background:#fefaf0}
body.lv-xlead .mp-vpin .ph{background:#fff center / cover no-repeat;border:3px solid #fff;box-shadow:0 8px 18px rgba(57, 48, 25, .25)}
body.lv-xlead .mp-vpin .ph.nop{background:linear-gradient(135deg, #e5bb4c, #c79a2e)}
body.lv-xlead .mp-vpin .ph.nop svg{fill:#fff}
body.lv-xlead .mp-vpin .tl{background:#fff;box-shadow:3px 3px 6px rgba(57, 48, 25, .12)}
body.lv-xlead .mp-vpin .bd{background:#d9ab37;border:2px solid #fff}
body.lv-xlead .mp-vpin .bd svg{stroke:#fff}
body.lv-xlead .mp-vpin em{color:#393019;background:#fff;box-shadow:0 4px 12px rgba(57, 48, 25, .14)}
body.lv-xlead .mp-me .halo{background:radial-gradient(circle, rgba(229, 187, 76, .22), rgba(229, 187, 76, .1) 60%, rgba(229, 187, 76, 0) 72%);animation:mpHalo 2.6s ease-in-out infinite}
body.lv-xlead .mp-me .dot{background:#fff;box-shadow:0 6px 16px rgba(57, 48, 25, .22)}
body.lv-xlead .mp-me .dot i{background:linear-gradient(135deg, #e5bb4c, #c79a2e)}
body.lv-xlead .mp-me .dot svg{fill:#fff}
body.lv-xlead .mp .mp-line.drw{animation:mpDraw 1.4s ease-out both}
body.lv-xlead .er-rip{background:rgba(255,255,255,.55);animation:erRip .6s ease-out forwards}
body.lv-xlead .er-opt.pop{animation:erPop .35s cubic-bezier(.3,1.6,.5,1)}
body.lv-xlead .er-clock.low{animation:erBeatBox 1s ease-in-out infinite}
body.lv-xlead .er-clock.low .rg{stroke:#faf1d1;animation:erBeat 1s ease-in-out infinite}
body.lv-xlead .er-parts span .lk{background:#f0ebdd}
body.lv-xlead .er-parts span.done .lk{background:linear-gradient(90deg, #edcf45, #d9ab37);box-shadow:0 0 6px rgba(237, 207, 69, .7)}
body.lv-xlead .er-parts span.flash .lk{animation:erLk .6s ease-out .25s both}
body.lv-xlead .er-parts span.flash{animation:erFlash_g .9s ease-out}
body.lv-xlead .er-parts span.flash em{animation:erTick .6s cubic-bezier(.3,1.7,.5,1)}
body.lv-xlead .er-cta.submit:not(:disabled){background:linear-gradient(135deg, #e5bb4c, #c79a2e 55%, #806628);box-shadow:0 0 0 3px rgba(243, 217, 137, .35), 0 12px 28px rgba(199, 154, 46, .45);animation:erGlowBtn_g 2s ease-in-out infinite}
body.lv-xlead .er-q{background:var(--wm, none) repeat, #fff}
body.lv-xlead .er-clock .er-hg{filter:drop-shadow(0 0 3px rgba(248, 234, 183, .55))}
body.lv-xlead .er-hg .hg-glass{fill:url(#hgG);stroke:rgba(255,255,255,.9)}
body.lv-xlead .er-hg .hg-sand{fill:url(#hgS)}
body.lv-xlead .er-hg .hg-stream{stroke:#faf2d1;animation:hgFlow .5s linear infinite}
body.lv-xlead .er-hg .hg-grain{fill:#faf3d1;animation:hgDrop 1.2s linear infinite}
body.lv-xlead .er-hg .hg-shine{stroke:#fff}
body.lv-xlead .er-hg .hg-cap{fill:url(#hgC);filter:drop-shadow(0 1px 1.5px rgba(104, 79, 19, .35))}
body.lv-xlead .er-clock.flip .er-hg{animation:hgTurn .5s cubic-bezier(.5,0,.3,1.4)}
body.lv-xlead .er-clock.flip .er-ring{animation:hgFlip .42s ease-in-out}
body.lv-xlead .er-clock.low .er-hg .hg-sand{fill:#fff}
body.lv-xlead .er-opt:not(.on){background:rgba(254, 253, 249, .72)}
body.lv-xlead .er-clock .er-hg{animation:hgSway 7s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(248, 234, 183, .5)) drop-shadow(0 2px 2px rgba(86, 64, 12, .45))}
body.lv-xlead .er-hg .hg-shade{fill:url(#hgSh)}
body.lv-xlead .er-hg .hg-cap{fill:url(#hgCs)}
body.lv-xlead .er-hg .hg-capt{fill:#fff}
body.lv-xlead .er-hg .hg-ground{fill:rgba(70, 52, 10, .45)}
body.lv-xlead .er-clock.flip .er-hg{animation:hgTurn .55s cubic-bezier(.5,0,.3,1.4)}
body.lv-xlead .er-q{box-shadow:0 10px 0 -5px #faf5e9, 0 20px 0 -10px #f5eedc, 0 30px 50px -10px rgba(199, 154, 46, .22)}
body.lv-xlead .er-q.in.fwd{animation:erTurnF .5s cubic-bezier(.2,.8,.2,1) both}
body.lv-xlead .er-q.in.back{animation:erTurnB .5s cubic-bezier(.2,.8,.2,1) both}
body.lv-xlead .er-opt{box-shadow:0 3px 0 #f4eede, 0 6px 14px rgba(199, 154, 46, .06)}
body.lv-xlead .er-opt:active{box-shadow:0 0 0 #f4eede, 0 2px 6px rgba(199, 154, 46, .06)}
body.lv-xlead .er-opt.on{box-shadow:0 4px 0 #806628, 0 14px 28px rgba(199, 154, 46, .38)}
body.lv-xlead .er-opt > span{box-shadow:inset 0 -2px 0 rgba(199, 154, 46, .12)}
body.lv-xlead .er-opt.on > span{box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.15)}
body.lv-xlead .er-cta:not(:disabled){box-shadow:0 5px 0 #7c6224, 0 14px 26px rgba(199, 154, 46, .38), inset 0 1px 0 rgba(255,255,255,.35)}
body.lv-xlead .er-cta:not(:disabled):active{box-shadow:0 1px 0 #7c6224, 0 6px 12px rgba(199, 154, 46, .3), inset 0 1px 0 rgba(255,255,255,.35)}
body.lv-xlead .er-cta.go:not(:disabled){box-shadow:0 5px 0 #765c20, 0 14px 26px rgba(128, 102, 40, .42), inset 0 1px 0 rgba(255,255,255,.3)}
body.lv-xlead .er-nav{box-shadow:0 4px 0 #f4ecd6, 0 8px 16px rgba(199, 154, 46, .1)}
body.lv-xlead .er-nav:active{box-shadow:0 1px 0 #f4ecd6}
body.lv-xlead .er-parts span{box-shadow:0 3px 0 #f4eede}
body.lv-xlead .er-parts span.on{box-shadow:0 4px 0 #7c6224, 0 10px 20px rgba(199, 154, 46, .32)}
body.lv-xlead .er-parts span.done:not(.on){box-shadow:0 3px 0 #f0e2be, 0 6px 12px rgba(217, 171, 55, .12)}
body.lv-xlead .er-parts span em{box-shadow:inset 0 -2px 0 rgba(199, 154, 46, .15)}
body.lv-xlead .er-parts span.done em{background:radial-gradient(circle at 32% 28%, #f6e3a8 0, #e5bb4c 45%, #a27e2b 100%);box-shadow:0 2px 4px rgba(199, 154, 46, .45), inset 0 1px 1px rgba(255,255,255,.6);color:#fff}
body.lv-xlead .er-parts span.on em{background:radial-gradient(circle at 32% 28%, #fff 0, #fcf6e6 60%, #f0e2bd 100%);box-shadow:0 2px 4px rgba(0,0,0,.2)}
body.lv-xlead .er-parts span.flash{animation:erFlip3d_g .8s cubic-bezier(.3,1.3,.5,1)}
body.lv-xlead .er-pi{background:radial-gradient(circle at 34% 28%, #f9ecc5 0, #e8c25e 38%, #c79a2e 70%, #856926 100%);box-shadow:0 12px 24px rgba(199, 154, 46, .45), inset 0 -6px 12px rgba(0,0,0,.25), inset 0 4px 8px rgba(255,255,255,.35);animation:erFloat3d 3s ease-in-out infinite}
body.lv-xlead .er-pi::after{background:rgba(255,255,255,.55)}
body.lv-xlead .er-pi svg{filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}
body.lv-xlead .er-pi i{border:2px solid rgba(229, 187, 76, .35);animation:erRingOut 2.4s ease-out infinite}
body.lv-xlead .er-score{animation:erMedal 1s cubic-bezier(.2,.9,.3,1.15) both}
body.lv-xlead .er-score::before{background:radial-gradient(circle at 35% 28%, #ffffff 0, #fefbf3 45%, #f8f1de 100%);box-shadow:0 18px 36px rgba(199, 154, 46, .25), inset 0 -8px 16px rgba(199, 154, 46, .12), inset 0 6px 10px rgba(255,255,255,.9), 0 0 0 6px #fff, 0 0 0 7px #f8efd9}
body.lv-xlead .er-score::after{background:radial-gradient(ellipse, rgba(199, 154, 46, .28), transparent 70%)}
body.lv-xlead .er-sv > span{background:radial-gradient(circle at 34% 28%, #f9ecc5 0, #e5bb4c 45%, #a27e2b 100%);box-shadow:0 4px 8px rgba(199, 154, 46, .4), inset 0 1px 2px rgba(255,255,255,.6)}
body.lv-xlead .er-sv > span.wait{background:radial-gradient(circle at 34% 28%, #fff 0, #fbf3de 60%, #f0e2bd 100%)}
body.lv-xlead .er-sv b{text-shadow:0 1px 0 #f2e8cd, 0 2px 0 #ecdeba, 0 3px 0 #e7d5a6, 0 6px 10px rgba(199, 154, 46, .25)}
body.lv-xlead .er-rp{animation:erDrop3d .6s cubic-bezier(.2,.9,.3,1.2) both;box-shadow:0 4px 0 #f4eede, 0 10px 22px rgba(199, 154, 46, .08)}
body.lv-xlead .er-rp.no{box-shadow:0 4px 0 #dbdfe3, 0 10px 22px rgba(142, 152, 166, .08)}
body.lv-xlead .er-rp-h > i{box-shadow:0 2px 0 rgba(199, 154, 46, .18)}
body.lv-xlead .er-rp.ok .er-rp-h > i{background:radial-gradient(circle at 34% 28%, #f9ecc5 0, #e5bb4c 45%, #a27e2b 100%);box-shadow:0 3px 6px rgba(199, 154, 46, .35), inset 0 1px 1px rgba(255,255,255,.6)}
body.lv-xlead .er-rp.no .er-rp-h > i{background:radial-gradient(circle at 34% 28%, #e1e4e7 0, #a5adb8 45%, #748092 100%);box-shadow:0 3px 6px rgba(142, 152, 166, .3), inset 0 1px 1px rgba(255,255,255,.55)}
body.lv-xlead .er-bar{box-shadow:inset 0 2px 3px rgba(199, 154, 46, .15)}
body.lv-xlead .er-paused{background:radial-gradient(120% 80% at 50% 0%, #d7ad40 0%, #c79a2e 35%, #8a6b23 75%, #6a5118 100%);animation:pzIn .45s ease both}
body.lv-xlead .er-paused .pz-a{animation:erFloat 12s ease-in-out infinite alternate}
body.lv-xlead .er-paused .a1{background:#eccb6e}
body.lv-xlead .er-paused .a2{background:#e3cb60}
body.lv-xlead .er-paused .a3{background:#edce8c}
body.lv-xlead .er-paused > div.pz{animation:pzUp .6s cubic-bezier(.2,.9,.3,1.1) both;color:#fff}
body.lv-xlead .pz-chip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25)}
body.lv-xlead .pz h3{color:#fff}
body.lv-xlead .pz-ring::before{background:radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%);box-shadow:inset 0 0 30px rgba(248, 234, 183, .25), 0 20px 40px rgba(77, 57, 11, .35);animation:pzBreathe 8s ease-in-out infinite}
body.lv-xlead .pz-ring .pz-tr{stroke:rgba(255,255,255,.14)}
body.lv-xlead .pz-ring .pz-br{stroke:url(#pzG)}
body.lv-xlead .pz-ring .pz-gl{stroke:#f8eab7;animation:erNeonL 2.6s ease-in-out infinite}
body.lv-xlead .pz-num small{color:rgba(255,255,255,.75)}
body.lv-xlead .pz-num b{color:#fff;text-shadow:0 0 18px rgba(248, 234, 183, .55), 0 4px 10px rgba(77, 57, 11, .35)}
body.lv-xlead .pz-num em{color:#faf1d1;animation:pzTxt 4s ease-in-out infinite}
body.lv-xlead .pz-info span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
body.lv-xlead .pz-info small{color:rgba(255,255,255,.72)}
body.lv-xlead .pz-go{background:linear-gradient(180deg, #ffffff, #fdf7e8);color:#c79a2e;box-shadow:0 5px 0 #e9d6a4, 0 16px 30px rgba(77, 57, 11, .35), inset 0 1px 0 #fff}
body.lv-xlead .pz-go:active{box-shadow:0 1px 0 #e9d6a4, 0 8px 16px rgba(77, 57, 11, .3)}
body.lv-xlead .pz-go svg{fill:#c79a2e}
body.lv-xlead .tk-brand .tk-logo{filter:drop-shadow(0 0 6px rgba(246, 232, 182, .45))}
body.lv-xlead .er-cta:not(:disabled),body.lv-xlead .er-cta.go:not(:disabled),body.lv-xlead .er-cta.sure:not(:disabled),body.lv-xlead .er-cta.submit:not(:disabled){color:#fff;text-shadow:0 1px 2px rgba(157, 122, 35, .35);background:linear-gradient(120deg, #f3dc82 0%, #edc64c 45%, #efc65d 100%);animation:ngFlow 6s ease-in-out infinite;box-shadow:0 4px 0 #d7b049, 0 10px 24px rgba(237, 198, 76, .38), 0 0 18px rgba(243, 220, 130, .28), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -10px 18px rgba(239, 198, 93, .22)}
body.lv-xlead .er-cta:not(:disabled):active{box-shadow:0 1px 0 #d7b049, 0 5px 12px rgba(237, 198, 76, .3), inset 0 1px 0 rgba(255,255,255,.6)}
body.lv-xlead .er-cta.sure:not(:disabled){box-shadow:0 0 0 4px rgba(243, 220, 130, .25), 0 4px 0 #d7b049, 0 12px 26px rgba(237, 198, 76, .45), inset 0 1px 0 rgba(255,255,255,.65);animation:ngFlow 6s ease-in-out infinite, erWig .5s ease}
body.lv-xlead .er-cta.submit:not(:disabled){animation:ngFlow 6s ease-in-out infinite, ngPulse_g 2.2s ease-in-out infinite}
body.lv-xlead .er-cta::before,body.lv-xlead .pz-go::before{background:linear-gradient(105deg, transparent 32%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.15) 54%, transparent 66%);animation:ngShine 3.6s cubic-bezier(.4,0,.2,1) infinite}
body.lv-xlead .er-cta:not(:disabled)::after,body.lv-xlead .pz-go::after{background:#fff;animation:ngTwinkle 3.6s ease-in-out infinite}
body.lv-xlead .pz-go::before{background:linear-gradient(105deg, transparent 32%, rgba(243, 220, 130, .35) 48%, transparent 64%)}
body.lv-xlead .pz-go::after{background:#edc64c}
body.lv-xlead .er-nav{background:linear-gradient(180deg, #ffffff, #fdfaf0);border-color:#f9edc5;box-shadow:0 3px 0 #f8f0d9, 0 8px 18px rgba(237, 198, 76, .14), 0 0 0 3px rgba(243, 220, 130, .06)}
body.lv-xlead .er-nav{color:#dfb640}
@media (prefers-reduced-motion: reduce){body.lv-xlead .er-cta,body.lv-xlead .er-cta::before,body.lv-xlead .er-cta::after,body.lv-xlead .pz-go::before,body.lv-xlead .pz-go::after{animation:none !important}}
body.lv-xlead .er-score.fail .sb{stroke:#ebedef}
body.lv-xlead .er-score.fail .sf{stroke:url(#erGr)}
body.lv-xlead .er-score.fail .sg{stroke:#c0c5cd;animation:erNeonR 3s ease-in-out infinite}
body.lv-xlead .er-score.fail .er-sv::before,body.lv-xlead .er-score.fail .er-sv::after{background:linear-gradient(135deg, #fff, #ebedef);filter:drop-shadow(0 0 4px #c0c5cd) drop-shadow(0 0 8px rgba(192, 197, 205, .6));animation:erSpk 3.2s ease-in-out infinite}
body.lv-xlead .er-sv > span.no::after{background:#fff;animation:erSpk 2.4s ease-in-out .8s infinite}
body.lv-xlead .er-sv > span.no{color:#fff;background:radial-gradient(circle at 34% 28%, #e9ebee 0, #b5bcc5 50%, #8e98a6 100%);box-shadow:0 4px 10px rgba(151, 161, 174, .35), 0 0 14px rgba(192, 197, 205, .45), inset 0 1px 2px rgba(255,255,255,.7)}
body.lv-xlead .tk-shell{background:linear-gradient(180deg, #eacf8a, #d2af58);box-shadow:0 18px 34px rgba(162, 125, 37, .28)}
body.lv-xlead .tk-back{background:linear-gradient(135deg, #e8d5a2, #d6bc79);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
body.lv-xlead .tk-card{color:#fff;background:linear-gradient(125deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%), linear-gradient(135deg, #f7e3b1 0%, #e4c77b 38%, #cea94b 70%, #eacf8a 100%);box-shadow:0 10px 24px rgba(162, 125, 37, .35), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(113, 86, 22, .3)}
body.lv-xlead .tk-gloss{background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.45) 48%, transparent 58%);animation:hbSheen 5s ease-in-out infinite}
body.lv-xlead .tk-lv{background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
body.lv-xlead .tk-coin{background:radial-gradient(circle at 32% 26%, #faf2d1 0, #edc64c 40%, #a27e25 100%);box-shadow:0 3px 0 #8b6a1b, 0 6px 12px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.7), 0 0 14px rgba(237, 207, 69, .4)}
body.lv-xlead .tk-coin svg{fill:#fff}
body.lv-xlead .tk-pocket{background:radial-gradient(90% 70% at 20% 0%, rgba(246, 232, 182, .28), transparent 60%), linear-gradient(160deg, var(--wb1) 0%, var(--wb2) 100%);box-shadow:0 -6px 16px rgba(113, 86, 22, .28), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -10px 20px rgba(68, 50, 11, .25)}
body.lv-xlead .tk-pocket::before{border:1.5px dashed rgba(255,255,255,.35)}
body.lv-xlead .tk-foot em{color:rgba(255,255,255,.8)}
body.lv-xlead .tk-tap{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);animation:tkNudge 2.6s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){body.lv-xlead .tk-gloss,body.lv-xlead .tk-tap{animation:none !important}}
body.lv-xlead .tk-card .tk-logo{filter:drop-shadow(0 1px 2px rgba(113, 86, 22, .35))}
body.lv-xlead .tk-chip{background:linear-gradient(135deg, #f9f8f4 0%, #cfcabb 38%, #fcfaf7 55%, #98a4b6 100%);box-shadow:inset 0 0 0 1px rgba(96, 87, 64, .45), 0 1px 3px rgba(0,0,0,.3)}
body.lv-xlead .tk-chip::before{background:linear-gradient(90deg, transparent 32%, rgba(96, 87, 64, .45) 32% 34%, transparent 34% 66%, rgba(96, 87, 64, .45) 66% 68%, transparent 68%), linear-gradient(180deg, transparent 32%, rgba(96, 87, 64, .45) 32% 35%, transparent 35% 65%, rgba(96, 87, 64, .45) 65% 68%, transparent 68%)}
body.lv-xlead .tk-chip b{background:linear-gradient(135deg, #fff, #dad6c9);box-shadow:inset 0 0 0 1px rgba(96, 87, 64, .4)}
body.lv-xlead .tk-nfc{stroke:rgba(255,255,255,.85)}
@media (prefers-reduced-motion: reduce){body.lv-xlead .tk-fx .mc{animation:none !important}}
body.lv-xlead .er-shield{background:rgba(254, 250, 240, .82);animation:shIn .25s ease}
body.lv-xlead .er-cam.warn{box-shadow:0 0 0 2px #fff, 0 0 0 4px #f59e0b, 0 4px 14px rgba(245,158,11,.45) !important;animation:camWarn 1.2s ease-in-out infinite}
body.lv-xlead body .tk-card{background:radial-gradient(70% 110% at 30% 45%, rgba(237, 207, 69, .18), transparent 65%), linear-gradient(90deg, #393019, #d9ab37) !important}
body.lv-xlead .sp{background:#faf8f4;color:var(--ink)}
body.lv-xlead .sp-top{background:rgba(255,255,255,.96);box-shadow:0 1px 0 rgba(57, 48, 25, .07)}
body.lv-xlead .sp-ib{color:var(--ink)}
body.lv-xlead .sp-ib:active{background:#f7f5ef}
body.lv-xlead .sp-ib em{background:#758293;color:#fff;box-shadow:0 0 0 2px #fff}
body.lv-xlead .sp-cartbtn.bump{animation:spBump .5s cubic-bezier(.3,1.6,.5,1)}
body.lv-xlead .sp-search{background:#f8f6f2}
body.lv-xlead .sp-search svg{color:var(--muted)}
body.lv-xlead .sp-tabs button{color:var(--muted)}
body.lv-xlead .sp-tabs button.on{color:var(--spb)}
body.lv-xlead .sp-tabs button.on::after{background:var(--spb);animation:spInk .25s ease}
body.lv-xlead .sp-closed{background:#fff7ed;color:#535d6a}
body.lv-xlead .sp-sec h3 svg{color:var(--spb)}
body.lv-xlead .sp-pc{background:#fff;box-shadow:0 1px 2px rgba(57, 48, 25, .05), 0 6px 18px rgba(57, 48, 25, .05);animation:spIn .35s ease both}
body.lv-xlead .sp-pc-img{background:linear-gradient(180deg, #fdfbf8, #f7f5ef)}
body.lv-xlead .sp-bdg{background:var(--spg);color:#fff}
body.lv-xlead .sp-off{background:#758293;color:#fff}
body.lv-xlead .sp-pc-s{color:var(--muted)}
body.lv-xlead .sp-pc-c em{background:#f8f6f2;color:#64748b}
body.lv-xlead .sp-pc-p{color:var(--spb)}
body.lv-xlead .sp-pc-p s{color:var(--faint)}
body.lv-xlead .sp-btn{background:var(--spg);color:#fff;box-shadow:0 8px 18px rgba(217, 171, 55, .25)}
body.lv-xlead .sp-btn.line{background:#fff;color:var(--spb);box-shadow:inset 0 0 0 1.5px var(--spb)}
body.lv-xlead .sp-none{color:var(--muted)}
body.lv-xlead .sp-blk{background:#fff}
body.lv-xlead .sp-sheet{background:rgba(57, 48, 25, .45);animation:hbFade .2s ease}
body.lv-xlead .sp-sheet-card{background:#fff;animation:spUp .35s cubic-bezier(.2,1,.3,1)}
body.lv-xlead .sp-grab{background:#dfdacd}
body.lv-xlead .sp-in{border:1.5px solid #efece3;background:#fff}
body.lv-xlead .sp-in:focus{border-color:var(--spb);box-shadow:0 0 0 3px rgba(217, 171, 55, .12)}
body.lv-xlead .sp-step{border:1px solid #efece3;background:#fff}
body.lv-xlead .sp-step button{color:#615840;background:#fbf9f6}
body.lv-xlead .sp-step button:disabled{color:#dfdacd}
body.lv-xlead .sp-err{color:#778495}
body.lv-xlead .sp-card{background:#fff;box-shadow:0 1px 2px rgba(57, 48, 25, .04), 0 6px 16px rgba(57, 48, 25, .04);animation:spIn .3s ease both}
body.lv-xlead .sp-store svg{color:#615840}
body.lv-xlead .sp-ck{border:1.8px solid #dfdacd;background:#fff}
body.lv-xlead .sp-ck svg{stroke:#fff}
body.lv-xlead .sp-ck.on{border-color:var(--spb);background:var(--spb)}
body.lv-xlead .ct-sh{border-bottom:1px solid #f5f4ef}
body.lv-xlead .ct-sh .vf{color:#16a34a}
body.lv-xlead .ct-row{border-bottom:1px solid #f5f4ef}
body.lv-xlead .ct-pic{background:#f9f8f4}
body.lv-xlead .ct-t small{color:var(--muted)}
body.lv-xlead .ct-pr strong{color:var(--spb)}
body.lv-xlead .ct-one{color:var(--muted)}
body.lv-xlead .ct-del{color:#b5ad97}
body.lv-xlead .sp-foot{background:rgba(255,255,255,.97);box-shadow:0 -1px 0 rgba(57, 48, 25, .07), 0 -8px 20px rgba(57, 48, 25, .05)}
body.lv-xlead .ct-all{color:#665e4a}
body.lv-xlead .ct-sum b{color:var(--spb)}
body.lv-xlead .sp-empty{color:var(--muted)}
body.lv-xlead .sp-empty svg{color:#dfdacd}
body.lv-xlead .sp-empty b{color:#615840}
body.lv-xlead .sp-sel select{border:1.5px solid #efece3;background:#fff;color:var(--ink)}
body.lv-xlead .sp-sel select:invalid{color:var(--muted)}
body.lv-xlead .sp-rd{border:1.8px solid #dfdacd}
body.lv-xlead .pc-pay.on .sp-rd{border:6px solid var(--spb)}
body.lv-xlead .sp-hero{color:#fff;background:radial-gradient(120% 90% at 100% 0%, #e5bb4c 0%, transparent 60%), linear-gradient(160deg, #c79a2e, #a8801b 60%, #836316);box-shadow:0 14px 30px rgba(199, 154, 46, .28)}
body.lv-xlead .sp-topo{background:repeating-radial-gradient(circle at 85% 10%, transparent 0 18px, rgba(255,255,255,.9) 19px 20px)}
body.lv-xlead .sp-orb{background:radial-gradient(circle, rgba(237, 207, 69, .35), transparent 65%);animation:breathe 6s ease-in-out infinite}
body.lv-xlead .sp-hero .sp-ib{color:#fff;background:rgba(255,255,255,.12)}
body.lv-xlead .sp-hero .sp-ib:active{background:rgba(255,255,255,.22)}
body.lv-xlead .sp-hero .sp-ib em{box-shadow:0 0 0 2px #c79a2e}
body.lv-xlead .sp-hero .sp-search{background:#fff;color:var(--ink);box-shadow:0 8px 20px rgba(131, 99, 22, .25)}
body.lv-xlead .sp-cat{color:#665e4a}
body.lv-xlead .sp-cat span{background:#fff;color:var(--spb);box-shadow:0 4px 12px rgba(57, 48, 25, .06)}
body.lv-xlead .sp-cat.on span{background:var(--spg);color:#fff;box-shadow:0 10px 20px rgba(217, 171, 55, .3)}
body.lv-xlead .sp-cat.on b{color:var(--spb)}
body.lv-xlead .sp-pc-c em.dot{color:#665e4a}
body.lv-xlead .sp-pc-c em.dot i{box-shadow:0 0 0 1px rgba(57, 48, 25, .15)}
body.lv-xlead .sp-pc-c em.c-black i{background:#49402a}
body.lv-xlead .sp-pc-c em.c-beige i{background:#e9dcc3}
body.lv-xlead .rd-co{background:#766024;color:#fff}
body.lv-xlead .rd-orig{background:#c8a54b;color:#fff}
body.lv-xlead .rd-addr{color:#615840}
body.lv-xlead .rd-title b{color:#766024}
body.lv-xlead .rd-title small{color:#64748b}
body.lv-xlead .rd-box{border:1px solid #eee8d8}
body.lv-xlead .rd-box h5,body.lv-xlead .rd-pay h5{background:#f5efdf;color:#766024}
body.lv-xlead .rd-box dt{color:#4a422b;background:#fbf9f5;border-top:1px solid #f5f1e7}
body.lv-xlead .rd-box dd{border-top:1px solid #f5f1e7;border-left:1px solid #f5f1e7}
body.lv-xlead .rd-tb th{background:#766024;color:#fff;border-left:1px solid #7a6734}
body.lv-xlead .rd-tb td{border:1px solid #f1ede2}
body.lv-xlead .rd-tb tbody tr:nth-child(odd) td{background:#fcfbf8}
body.lv-xlead .rd-sum{border:1px solid #f1ede2}
body.lv-xlead .rd-words{background:#fcfbf8}
body.lv-xlead .rd-words h6,body.lv-xlead .rd-sign h6{color:#4a422b}
body.lv-xlead .rd-words p + h6{border-top:1px solid #eeeadd}
body.lv-xlead .rd-tot{border-left:1px solid #f1ede2}
body.lv-xlead .rd-tot dt{border-bottom:1px solid #f5f1e7}
body.lv-xlead .rd-tot dd{border-bottom:1px solid #f5f1e7;border-left:1px solid #f5f1e7}
body.lv-xlead .rd-tot .g{background:#f5efdf;color:#766024}
body.lv-xlead .rd-pay{border:1px solid #eee8d8}
body.lv-xlead .rd-pays{background:#fbf9f5}
body.lv-xlead .rd-ck{color:#615840}
body.lv-xlead .rd-ck i{border:1.5px solid #64748b}
body.lv-xlead .rd-ck.on{color:#766024}
body.lv-xlead .rd-ck.on i{background:#c8a54b;border-color:#c8a54b}
body.lv-xlead .rd-ck i svg{stroke:#fff}
body.lv-xlead .rd-note{background:#fdf6e3;border:1px solid #f1e3bb;color:#3b3b3b}
body.lv-xlead .rd-sign{border:1px solid #f1ede2}
body.lv-xlead .rd-sign > div + div{border-left:1px solid #f1ede2}
body.lv-xlead .rd-sign h6{color:#766024}
body.lv-xlead .rd-sign p{color:#615840}
body.lv-xlead .rd-page{color:#b5ad97}
body.lv-xlead #gldL stop:nth-of-type(1){stop-color:#faf3d1}
body.lv-xlead #gldL stop:nth-of-type(2){stop-color:#f8edb7}
body.lv-xlead #gldL stop:nth-of-type(3){stop-color:#cba230}
body.lv-xlead #hgS stop:nth-of-type(1){stop-color:#faf3d1}
body.lv-xlead #hgS stop:nth-of-type(2){stop-color:#f8eab7}
body.lv-xlead #hgS stop:nth-of-type(3){stop-color:#ecc242}
body.lv-xlead #hgC stop:nth-of-type(2){stop-color:#fbf0d3}
body.lv-xlead #hgG stop:nth-of-type(3){stop-color:#846519}
body.lv-xlead #hgSh stop:nth-of-type(1){stop-color:#866514}
body.lv-xlead #hgSh stop:nth-of-type(4){stop-color:#866514}
body.lv-xlead #hgSh stop:nth-of-type(5){stop-color:#866514}
body.lv-xlead #hgCs stop:nth-of-type(2){stop-color:#fcf4de}
body.lv-xlead #hgCs stop:nth-of-type(3){stop-color:#e2ce97}
body.lv-xlead #erT stop:nth-of-type(1){stop-color:#faf3d1}
body.lv-xlead #erT stop:nth-of-type(2){stop-color:#f5e29c}
body.lv-xlead #erT stop:nth-of-type(3){stop-color:#f0cf64}
body.lv-xlead #pzG stop:nth-of-type(1){stop-color:#faf3d1}
body.lv-xlead #pzG stop:nth-of-type(2){stop-color:#f8eab7}
body.lv-xlead #pzG stop:nth-of-type(3){stop-color:#e5bb4c}
body.lv-xlead #erG stop:nth-of-type(1){stop-color:#edcf45}
body.lv-xlead #erG stop:nth-of-type(2){stop-color:#f0cf64}
body.lv-xlead #erG stop:nth-of-type(3){stop-color:#d9ab37}
body.lv-xlead #erGr stop:nth-of-type(1){stop-color:#dadde2}
body.lv-xlead #erGr stop:nth-of-type(2){stop-color:#b5bcc5}
body.lv-xlead #erGr stop:nth-of-type(3){stop-color:#97a1ae}
/* ==== end X-LEAD gold theme ==== */

/* family band lock */
.sp-pc.locked .sp-btn{background:#e5e7eb;color:#6b7280;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:4px}
.sp-pc.locked .sp-btn svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
#pdNote b{display:block;margin-bottom:6px;font-size:13.5px}
#pdNote ul{margin:0;padding-left:18px;display:grid;gap:6px}
#pdNote small{opacity:.8;font-size:12px}
.pd-lock,.ct-warn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.55}
.pd-lock{margin-top:10px}
.ct-warn{margin:10px 12px}
.pd-lock b,.ct-warn b{font-size:14px}
.pd-lock p,.ct-warn p{margin:0}
.pd-lock small,.ct-warn small{font-size:12px;opacity:.8;letter-spacing:.2px}
.pd-lock .sp-btn{margin-top:8px}

.pd-got{margin:0;padding-left:18px;display:grid;gap:4px}
.pd-got li::marker{color:#94a3b8}

/* 3-digit score (100) fits the ring */
.ring-num b.w3 { font-size: 36px; letter-spacing: -1px; }
.hslide .ring-num b.w3 { font-size: 28px; }
@supports (font-size: 1cqw) { .hslide .ring-num b.w3 { font-size: 9.2cqw; } }

/* hero deck: room for the mascot's feet and the card shadow, so nothing gets clipped into a band */
.hdeck { padding-bottom: 40px; margin-bottom: -28px; }
.hdots { position: relative; z-index: 3; }

/* store header: same colour and pattern as the X-VISOR card */
.sp-hero { background: linear-gradient(90deg, #0f172a, #2563eb); }
.sp-fx { z-index: 0; border-radius: 0 0 28px 28px; }
.sp-fx::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1578 996' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 415,75 180,365 0,345' fill='%23000' fill-opacity='0.08'/%3E%3Cpolygon points='0,0 470,0 415,75' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='470,0 570,0 520,97 415,75' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='415,75 520,97 290,580 180,365' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='520,97 570,0 597,425 290,580' fill='%23000' fill-opacity='0.16'/%3E%3Cpolygon points='570,0 770,195 597,425' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='570,0 945,0 1110,80 1578,330 770,195' fill='%23fff' fill-opacity='0.2'/%3E%3Cpolygon points='945,0 1578,0 1110,80' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1578,0 1110,80 1578,330' fill='%23fff' fill-opacity='0.02'/%3E%3Cpolygon points='770,195 1578,330 1050,440' fill='%23fff' fill-opacity='0.06'/%3E%3Cpolygon points='770,195 1050,440 597,425' fill='%23fff' fill-opacity='0.12'/%3E%3Cpolygon points='1578,330 1425,530 1050,440' fill='%23fff' fill-opacity='0.14'/%3E%3Cpolygon points='597,425 1050,440 1425,530 1080,975' fill='%23000' fill-opacity='0.02'/%3E%3Cpolygon points='597,425 1080,975 630,830' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='597,425 630,830 245,735' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='597,425 245,735 290,580' fill='%23000' fill-opacity='0.12'/%3E%3Cpolygon points='290,580 245,735 175,715 180,365' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='0,345 180,365 175,715 0,670' fill='%23000' fill-opacity='0.06'/%3E%3Cpolygon points='0,670 175,715 220,996 0,996' fill='%23000' fill-opacity='0.2'/%3E%3Cpolygon points='175,715 245,735 220,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='245,735 630,830 1080,975 440,996' fill='%23000' fill-opacity='0.14'/%3E%3Cpolygon points='245,735 440,996 220,996' fill='%23000' fill-opacity='0.04'/%3E%3Cpolygon points='1425,530 1578,330 1578,760' fill='%23000' fill-opacity='0.1'/%3E%3Cpolygon points='1425,530 1578,760 1578,830 1080,975' fill='%23fff' fill-opacity='0.03'/%3E%3Cpolygon points='1080,975 1578,830 1578,996 1080,996' fill='%23fff' fill-opacity='0.1'/%3E%3Cpolygon points='440,996 1080,975 1080,996' fill='%23000' fill-opacity='0.06'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: .7; }
.sp-fx .mc { animation-duration: calc(var(--d) * .6); }
.sp-hero .sp-orb { left: 30px; right: auto; top: -40px; background: radial-gradient(circle, rgba(0,229,255,.18), transparent 65%); }

/* product card: price + round add button (marketplace style) */
.sp-pc-t { cursor: pointer; }
.sp-pc-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.sp-pc-row .sp-pc-p { margin-top: 0; display: flex; flex-direction: column; line-height: 1.15; }
.sp-pc-row .sp-pc-p s { margin: 0 0 1px; }
.sp-add { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--spg); box-shadow: 0 6px 14px rgba(37,99,235,.35); cursor: pointer; transition: transform .15s; }
.sp-add:active { transform: scale(.9); }
.sp-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.sp-pc.locked .sp-add { background: #e5e7eb; color: #6b7280; box-shadow: none; }
.sp-pc.locked .sp-add svg { width: 17px; height: 17px; stroke-width: 2; }
.sp-pc-lock { font-size: 11px; color: #9a3412; }

/* product detail action bar (marketplace style, CloverX colours) */
.pd-acts { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.pd-ic { flex: 0 0 auto; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 0; color: var(--spn); cursor: pointer; text-decoration: none; font: 600 10.5px/1.1 var(--font); }
.pd-ic i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #f1f6ff, #e3edff); box-shadow: inset 0 0 0 1px rgba(37,99,235,.12); color: var(--spb); transition: transform .15s; }
.pd-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-ic span { color: #475569; }
.pd-ic:active i { transform: scale(.92); }
.pd-ic:disabled { cursor: default; opacity: .45; }
.pd-buy2 { flex: 1; margin-left: 4px; height: 52px; border: 0; border-radius: 14px; color: #fff; background: var(--spg); box-shadow: 0 8px 18px rgba(37,99,235,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; cursor: pointer; }
.pd-buy2 b { font-size: 15px; font-weight: 700; }
.pd-buy2 span { font-size: 14px; font-weight: 600; opacity: .95; }
.pd-buy2:disabled { background: #cbd5e1; box-shadow: none; }
.pd-buy2:active:not(:disabled) { transform: scale(.98); }
/* header floats over the product photo: back on the left; share, search and cart on the right */
.sp-top.pd-over { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; margin-bottom: -60px; pointer-events: none; }
.pd-over .sp-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
.pd-over .pd-grow { flex: 1; }
.pd-fb { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; color: #0f172a; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(15,23,42,.12), inset 0 0 0 1px rgba(15,23,42,.05); }
.pd-fb:active { background: #fff; transform: scale(.92); }
.pd-fb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pd-fb em { top: -3px; right: -4px; box-shadow: 0 0 0 2px #fff; }
.pd-fav { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #e2e8f0; background: #fff; display: grid; place-items: center; color: #94a3b8; cursor: pointer; }
.pd-fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-fav[aria-pressed=true] { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.pd-fav[aria-pressed=true] svg { fill: #e11d48; animation: spBump .45s ease; }
.pd-heart[aria-pressed=true] i { background: linear-gradient(160deg, #fff1f2, #ffe4e6); box-shadow: inset 0 0 0 1px rgba(225,29,72,.18); color: #e11d48; }
.pd-heart[aria-pressed=true] svg { fill: #e11d48; animation: spBump .45s ease; }
.pd-heart[aria-pressed=true] span { color: #e11d48; }

/* store card (marketplace style) */
.pd-store2 { display: flex; flex-direction: column; gap: 12px; }
.ps-head { display: flex; align-items: center; gap: 12px; }
.ps-head .pd-logo { width: 54px; height: 54px; font-size: 17px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dbe6ff; }
.ps-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ps-id b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-tags em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ps-off { color: #fff; background: var(--spg); }
.ps-off svg { width: 13px; height: 13px; fill: #fff; margin-left: -2px; }
.ps-off svg path:last-child { stroke: #2563eb; }
.ps-real { color: #15803d; background: #dcfce7; }
.ps-visit { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 99px; color: #fff; font: 700 14px/1 var(--font); background: var(--spg); box-shadow: 0 6px 14px rgba(37,99,235,.28); cursor: pointer; }
.ps-visit:active { transform: scale(.96); }
.ps-stats { display: flex; gap: 14px; font-size: 12.5px; color: #475569; }
.ps-stats > * { display: flex; align-items: center; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.ps-stats span span, .ps-stats a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-stats b { color: var(--spb); font-weight: 700; }
.ps-stats svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--spb); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.ps-rail::-webkit-scrollbar { display: none; }
.ps-card { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ps-pic { position: relative; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #fff, #eef3fb); box-shadow: inset 0 0 0 1px #e8eef7; }
.ps-pic img { width: 100%; height: 100%; object-fit: contain; }
.ps-fam { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--spg); padding: 2px 6px; border-radius: 5px; }
.ps-card b { font-size: 14px; font-weight: 700; color: var(--ink); }
.ps-card small { font-size: 11px; font-weight: 700; color: #e11d48; background: #ffe4e6; padding: 1px 5px; border-radius: 5px; }
.ps-card small.n { color: #64748b; background: none; padding: 0; font-weight: 500; max-width: 104px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-card:active .ps-pic { transform: scale(.97); }

/* action icons: symbol only */
.pd-ic { width: 50px; }
.pd-ic i { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
.pd-ic svg { width: 27px; height: 27px; stroke-width: 1.7; }
.pd-heart[aria-pressed=true] i { background: none; box-shadow: none; }
.ps-stats { gap: 30px; }
.ps-card { gap: 2px; }
.ps-card b { margin-top: 7px; }

/* floating header: bare symbols, no backdrop */
.pd-fb { width: 36px; height: 36px; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #1f2937; }
.pd-fb:active { background: none; transform: scale(.88); }
.pd-fb svg { width: 25px; height: 25px; stroke-width: 1.9; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.9)) drop-shadow(0 1px 2px rgba(255,255,255,.7)); }
.pd-over .sp-bar { gap: 10px; }
.pd-fb em { top: -2px; right: -5px; min-width: 18px; height: 18px; font-size: 10.5px; background: #e11d48; box-shadow: 0 0 0 1.5px #fff; }

/* card stepper when the item is already in the cart */
/* family set unlocks: a padlock springs open over the + button */
.sp-pc.unlocking .sp-add { position: relative; overflow: visible; animation: ulPop .9s cubic-bezier(.3,1.4,.5,1); }
.sp-pc.unlocking .sp-add svg { animation: ulPlus .9s ease both; }
.sp-pc.unlocking .sp-add::before { content: ""; position: absolute; inset: -6px; border-radius: 16px; box-shadow: 0 0 0 0 rgba(59,130,246,.55); animation: ulRing .9s ease-out; }
.sp-pc.unlocking .sp-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.7'/%3E%3C/svg%3E"); animation: ulLock .9s ease both; }
.sp-pc.unlocking { animation: ulCard .9s ease; }
@keyframes ulPop { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } 100% { transform: none; } }
@keyframes ulLock { 0% { opacity: 1; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px) rotate(-12deg); } 70% { opacity: 0; transform: translateY(-10px) scale(.6); } 100% { opacity: 0; } }
@keyframes ulPlus { 0%, 55% { opacity: 0; transform: scale(.3) rotate(-90deg); } 100% { opacity: 1; transform: none; } }
@keyframes ulRing { from { box-shadow: 0 0 0 0 rgba(59,130,246,.55); } to { box-shadow: 0 0 0 16px rgba(59,130,246,0); } }
@keyframes ulCard { 30% { box-shadow: 0 0 0 3px rgba(59,130,246,.35), 0 10px 26px rgba(37,99,235,.18); } }
/* product detail: buy bar stays at the bottom while reading */
.spd { padding-bottom: calc(96px + var(--safe-b)); }
.spd .pd-acts { position: fixed; left: 50%; bottom: 0; z-index: 30; width: 100%; max-width: 430px; transform: translateX(-50%); margin: 0; padding: 10px 14px calc(10px + var(--safe-b)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgba(15,23,42,.07), 0 -8px 20px rgba(15,23,42,.06); border-radius: 18px 18px 0 0; }
/* cart: send pay link */
.ct-link { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 10px 12px calc(92px + var(--safe-b)); padding: 13px 14px; border: 1.5px dashed #bfd3ff; border-radius: 16px; background: linear-gradient(135deg, #f5f9ff, #eaf1ff); color: var(--spn); text-align: left; cursor: pointer; }
.ct-link > svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--spb); stroke-width: 1.9; stroke-linecap: round; }
.ct-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ct-link b { font-size: 14px; }
.ct-link small { font-size: 11.5px; color: #64748b; }
.ct-link .chev { width: 18px; height: 18px; stroke: #94a3b8; }
.ct-link:active { transform: scale(.99); }
.ct-link:disabled { opacity: .6; }
/* link sheet */
.lk { text-align: center; }
.lk-ic { display: grid; place-items: center; width: 58px; height: 58px; margin: 6px auto 8px; border-radius: 18px; color: #fff; background: var(--spg); box-shadow: 0 10px 22px rgba(37,99,235,.3); }
.lk-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lk h4 { margin: 0; font-size: 18px; }
.lk-sub { margin: 4px 0 12px; font-size: 13px; color: #64748b; }
.lk-box { padding: 12px; border-radius: 12px; background: #f1f5f9; font: 600 12.5px/1.5 ui-monospace, Menlo, monospace; color: #1e3a8a; word-break: break-all; }
.lk-meta { display: flex; justify-content: space-between; margin: 10px 2px 14px; font-size: 12.5px; color: #64748b; }
.lk-meta b { color: var(--ink); }
.lk-btns { display: flex; gap: 10px; }
.lk-btns .sp-btn { flex: 1; height: 46px; }
/* guest pay page */
.pk-hero { padding: calc(18px + var(--safe-t)) 18px 22px; }
.pk-top { position: relative; display: flex; flex-direction: column; }
.pk-top b { font-size: 22px; font-weight: 800; }
.pk-top span { font-size: 13px; opacity: .85; }
.pk-from { position: relative; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.pk-timer { position: relative; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 13px; }
.pk-timer small { margin-right: 4px; opacity: .85; }
.pk-timer b { font-variant-numeric: tabular-nums; }
.pk .sp-pad { padding-bottom: calc(40px + var(--safe-b)); }
.pk .sp-in, .pk .sp-sel { margin-top: 8px; }
.pk-it { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.pk-it > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-it b { font-size: 14px; }
.pk-it small { font-size: 12px; color: #64748b; }
.pk-it em { font-style: normal; font-weight: 700; color: var(--spb); }
.pk-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 14px; }
.pk-total b { font-size: 20px; color: var(--spb); }
.pk-go { height: 52px; font-size: 16px; }
.pk-ok { text-align: center; padding: 8px 0 14px; }
.pk-ok h3 { margin: 10px 0 4px; }
.pk-ok p { margin: 0; color: #475569; }
.pk-st { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; background: #eef4ff; color: var(--spb); font-size: 12.5px; font-weight: 700; }
.pk-bad { padding: 60px 24px; }
.pk-bad small { color: #64748b; }

.pk-ok .dn-ok { margin: 0 auto 14px; }
.pk-fee { display: flex; justify-content: space-between; padding: 10px 0 0; color: #475569; font-size: 14px; }

/* ---- pay link: who sent it ---- */
.pk-snd { position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pkIn .5s cubic-bezier(.3,1.4,.5,1) both; }
.pk-av { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #fff, #dbe7ff); color: var(--spb); font-size: 22px; font-weight: 800; box-shadow: 0 0 0 2.5px #fff, 0 6px 16px rgba(15,23,42,.25); }
.pk-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-si { min-width: 0; flex: 1; display: grid; gap: 1px; color: #fff; text-align: left; }
.pk-si small { font-size: 11.5px; opacity: .85; }
.pk-si b { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-sm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; }
.pk-sm em { font-style: normal; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); }
.pk-sm em.xv { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #5b3a00; }
.pk-sm em.ag { background: #fff; color: var(--spb); }
.pk-sm i { font-style: normal; opacity: .85; letter-spacing: .3px; }
.pk-ver { position: absolute; top: -9px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 4px 10px rgba(22,163,74,.35); }
.pk-ver svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pk-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 6px; font-size: 11.5px; color: rgba(255,255,255,.88); }
.pk-safe svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pk-safe b { font-weight: 700; color: #fff; }
@keyframes pkIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---- address book ---- */
.ab-hd { display: flex; align-items: baseline; justify-content: space-between; }
.ab-hd small { color: var(--muted); font-size: 12px; }
.ab-list { display: grid; gap: 10px; margin: 10px 0 12px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.ab-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #e5ebf3; cursor: pointer; text-align: left; transition: box-shadow .2s, background .2s; }
.ab-card.on { background: #f3f7ff; box-shadow: inset 0 0 0 2px var(--spb); }
.ab-card .sp-rd { margin-top: 2px; flex: 0 0 auto; }
.ab-card.on .sp-rd { border: 6px solid var(--spb); }
.ab-in { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ab-top { display: flex; gap: 6px; }
.ab-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef4ff; color: var(--spb); }
.ab-tag.t-work { background: #fff4e5; color: #b45309; }
.ab-tag.t-other { background: #f1f5f9; color: #475569; }
.ab-def { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #16a34a; color: #fff; }
.ab-in b { font-size: 14px; color: var(--spn); }
.ab-in small { font-size: 12.5px; color: #64748b; line-height: 1.5; }
.ab-ed { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #64748b; }
.ab-ed:active { background: #eef2f6; }
.ab-ed svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ab-new { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: 14px; border: 1.5px dashed #9db7f5; color: var(--spb); font-weight: 700; font-size: 14px; background: #f8fbff; }
.ab-new:disabled { color: #94a3b8; border-color: #cbd5e1; }
.ab-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ad-hd { display: flex; align-items: center; gap: 6px; }
.ad-back { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; margin-left: -6px; color: var(--spn); }
.ad-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ad-tags { display: flex; gap: 8px; margin: 8px 0 4px; }
.ad-tags button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: #475569; background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; }
.ad-tags button.on { color: var(--spb); background: #eef4ff; box-shadow: inset 0 0 0 1.5px var(--spb); font-weight: 700; }
.ad-tags svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ad-def { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 13.5px; color: #334155; cursor: pointer; }
.ad-def input { position: absolute; opacity: 0; pointer-events: none; }
.ad-def i { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.8px #cbd5e1; display: grid; place-items: center; transition: background .15s; }
.ad-def input:checked + i { background: var(--spb); box-shadow: none; }
.ad-def input:checked + i::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: translateY(-1px) rotate(45deg); }
.ad-def input:disabled + i { opacity: .6; }
.ad-del { display: block; width: 100%; margin-top: 8px; padding: 11px; border-radius: 12px; color: #dc2626; font-size: 13.5px; font-weight: 600; }
.ad-del.arm { background: #fee2e2; }

/* ---- my orders: icon status row (TikTok / Shopee style) ---- */
.od-ic { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 10px; }
.od-ic button { position: relative; display: grid; justify-items: center; gap: 6px; padding: 6px 0 8px; color: #111827; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.od-ic-g { position: relative; width: 34px; height: 34px; display: grid; place-items: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.od-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.od-ic i { position: absolute; top: -8px; left: 21px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font: 700 11px/19px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; animation: odBdg .4s cubic-bezier(.3,1.8,.5,1) both; }
.od-ic small { font-size: 13px; line-height: 1.2; white-space: nowrap; color: #1f2937; transition: color .2s; }
.od-ic.pick button:not(.on) { color: #9aa4b2; }
.od-ic.pick button:not(.on) small { color: #9aa4b2; }
.od-ic button.on { color: var(--spb); }
.od-ic button.on small { color: var(--spb); font-weight: 700; }
.od-ic button.on .od-ic-g { animation: odPop .4s cubic-bezier(.3,1.6,.5,1); }
.od-ic button.on svg { stroke-width: 2.2; }
.od-ic button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px; background: var(--spb); animation: spInk .25s ease; }
.od-ic button:active .od-ic-g { transform: scale(.88); }
.od-flt { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 10px; font-size: 13.5px; font-weight: 700; color: var(--spn); }
.od-flt button { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--spb); background: none; border: 0; }
.od-flt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@keyframes odPop { 40% { transform: scale(1.18) translateY(-2px); } }
@keyframes odBdg { from { transform: scale(0); } }
@media (max-width: 360px) { .od-ic small { font-size: 11px; } }

/* ---- account page (grouped settings, CloverX CI) ---- */
.acct { position: fixed; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 15; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f3f6fb; animation: fade .2s ease; }
.acct[hidden] { display: none; }
.ac-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(8px + var(--safe-t)) 8px 8px; min-height: 56px; background: rgba(243,246,251,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ac-top h2 { margin: 0; text-align: center; font-size: 17px; font-weight: 700; }
.ac-body { padding: 4px 16px calc(110px + var(--safe-b)); }
.ac-me { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; color: #fff; overflow: hidden; background: linear-gradient(120deg, #0f1b4c 0%, #1d4ed8 60%, #00c0e8 130%); box-shadow: 0 12px 26px rgba(29,78,216,.25); }
.ac-me::before { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,255,.28), transparent 65%); }
.ac-me .av-edit { position: relative; z-index: 1; flex: none; }
.ac-me .av-edit .avatar.big { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.25); }
.ac-who { position: relative; z-index: 1; min-width: 0; display: grid; gap: 2px; }
.ac-who strong { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-who small { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-who .sh-badge { justify-self: start; margin: 6px 0 0; }
.acct .bd-row { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ac-h { margin: 20px 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ac-g { border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ac-g + .ac-g { margin-top: 20px; }
.ac-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; text-align: left; text-decoration: none; color: var(--ink); font-size: 15px; transition: background .15s; }
.ac-row[hidden] { display: none; }
.ac-row:active { background: #eef4ff; }
.ac-row + .ac-row::before, .ac-g > .ac-row:not(:first-child)::before { content: ""; position: absolute; left: 60px; right: 0; top: 0; height: 1px; background: #eef1f6; }
.ac-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eaf1ff; color: var(--blue); }
.ac-ic svg { width: 19px; height: 19px; }
.ac-l { flex: 1; min-width: 0; font-weight: 500; }
.ac-row em { font-style: normal; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52%; }
.ac-go { width: 18px; height: 18px; color: #b6c2d4; }
#pkSheetBtn.on em { color: #16a34a; font-weight: 600; }
.ac-out { color: #dc2626; }
.ac-out .ac-ic { background: #fef2f2; color: #dc2626; }
.ac-out .ac-l { font-weight: 600; }
.ac-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* ---- Help Center ---- */
.acct.hc { z-index: 16; }
.hc-hero { position: relative; display: grid; gap: 4px; padding: 20px 18px 18px; border-radius: 22px; color: #fff; overflow: hidden; background: linear-gradient(120deg, #0f1b4c 0%, #1d4ed8 60%, #00c0e8 130%); box-shadow: 0 12px 26px rgba(29,78,216,.25); }
.hc-hero b { position: relative; font-size: 18px; }
.hc-hero small { position: relative; font-size: 13px; opacity: .85; }
.hc-q { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 14px; height: 46px; border-radius: 14px; background: #fff; color: var(--muted); }
.hc-q svg { width: 18px; height: 18px; }
.hc-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.hc-cats { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; }
.hc-cats::-webkit-scrollbar { display: none; }
.hc-cats button { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px #e2e8f0; }
.hc-cats button.on { background: var(--blue); color: #fff; box-shadow: none; }
.hc-it + .hc-it { border-top: 1px solid #eef1f6; }
.hc-it summary { display: flex; align-items: center; gap: 10px; padding: 14px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.hc-it summary::-webkit-details-marker { display: none; }
.hc-it summary span { flex: 1; }
.hc-it summary svg { width: 18px; height: 18px; color: #b6c2d4; transition: transform .2s; }
.hc-it[open] summary svg { transform: rotate(180deg); color: var(--blue); }
.hc-it[open] summary { color: var(--blue7); }
.hc-it p { margin: -4px 14px 14px; font-size: 14px; line-height: 1.65; color: #475569; white-space: pre-line; }
.hc-none { margin: 20px 4px 0; text-align: center; font-size: 14px; color: var(--muted); }
.hc-ct { display: grid; gap: 4px; margin-top: 20px; padding: 18px; border-radius: 18px; background: #eaf1ff; text-align: center; }
.hc-ct b { font-size: 15px; }
.hc-ct small { font-size: 13px; color: var(--muted); }
.hc-ctb { display: flex; gap: 10px; margin-top: 10px; }
.hc-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.hc-btn + .hc-btn { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.hc-btn svg { width: 18px; height: 18px; }

/* ===== exam hand-off to a computer + desktop exam layout ===== */
.er-pc { margin-top: 12px; }
.er-exam .er-pc { margin: 12px 0 0; }
.er-fs { flex: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bd); background: #fff; color: var(--b2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.er-fs svg { width: 18px; height: 18px; }
.er-fs.on { background: var(--b7); }
.ho { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,30,70,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: in .2s ease both; }
.ho-card { position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow: auto; padding: 26px 22px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; background: #fff; text-align: center; animation: mvUp .3s cubic-bezier(.2,.8,.2,1) both; }
.ho-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f1f5fb; color: var(--mut2); cursor: pointer; }
.ho-x svg { width: 18px; height: 18px; }
.ho-ic { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--gradS); box-shadow: 0 10px 24px rgba(37,99,235,.28); }
.ho-ic svg { width: 28px; height: 28px; }
.ho-card h3, .emv h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink2); }
.ho-lead { margin: 0 0 16px; color: var(--mut2); font-size: 13.5px; line-height: 1.6; }
.ho-qr { width: 180px; height: 180px; margin: 0 auto 14px; padding: 12px; border-radius: 18px; border: 1px solid var(--bd); background: #fff; }
.ho-qr img { width: 100%; height: 100%; display: block; }
.ho-qr img:not([src]) { visibility: hidden; }
.ho-steps { margin: 0 auto 10px; padding: 0 0 0 18px; max-width: 340px; text-align: left; color: var(--ink2); font-size: 13.5px; line-height: 1.8; }
.ho-steps b { color: var(--b2); }
.ho-code { font-size: 34px; font-weight: 800; letter-spacing: .14em; color: var(--b1); font-variant-numeric: tabular-nums; }
.ho-exp { min-height: 20px; margin: 2px 0 12px; color: var(--mut2); font-size: 13px; }
.ho-re { margin-left: 6px; padding: 3px 12px; border: 1px solid var(--b3); border-radius: 999px; background: none; color: var(--b2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ho-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ho-acts .er-ghost { margin: 0; height: 48px; }
.ho-note { margin: 14px 0 0; color: var(--mut2); font-size: 12px; line-height: 1.6; }
.er-moved { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 24px; background: rgba(239,246,255,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.emv { width: 100%; max-width: 380px; text-align: center; }
.emv p { margin: 0 0 22px; color: var(--mut2); font-size: 14px; line-height: 1.6; }
.emv .er-cta { width: 100%; }
body.er-scope .tabbar { display: none !important; }

@media (min-width: 900px) {
  body.er-wide .app { max-width: none; box-shadow: none; }
  body.er-wide .er-top { padding: 14px max(32px, calc((100vw - 1240px) / 2)); }
  body.er-wide .er-ttl b { font-size: 20px; }
  body.er-wide .er-pre { max-width: 820px; margin: 0 auto; padding: 28px 32px 130px; }
  body.er-wide .er-rules { grid-template-columns: 1fr 1fr; }
  body.er-wide .er-dock { max-width: 1240px; padding-left: 32px; padding-right: 32px; }
  body.er-wide .er-pre .er-dock { max-width: 820px; }
  body.er-wide .er-exam { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; column-gap: 28px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 22px 32px 48px; }
  body.er-wide .er-parts, body.er-wide .er-prog { grid-column: 1 / -1; }
  body.er-wide .er-q { grid-column: 1; grid-row: 3; margin-top: 18px; padding: 32px 34px 30px; }
  body.er-wide .er-qt { font-size: 23px; line-height: 1.75; margin-bottom: 24px; }
  body.er-wide .er-opts { grid-template-columns: 1fr 1fr; gap: 14px; }
  body.er-wide .er-opt { padding: 18px 18px 18px 16px; cursor: pointer; }
  body.er-wide .er-opt:hover { border-color: var(--b4); }
  body.er-wide .er-opt > span { width: 40px; height: 40px; font-size: 17px; }
  body.er-wide .er-opt .ot { font-size: 17px; padding-top: 7px; }
  body.er-wide .er-side { grid-column: 2; grid-row: 3 / span 3; margin-top: 18px; position: sticky; top: 92px; }
  body.er-wide .er-map { margin-top: 0; }
  body.er-wide .er-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  body.er-wide .er-grid button { font-size: 14px; cursor: pointer; }
  body.er-wide .er-exam .er-pause { margin-top: 12px; }
  body.er-wide .er-exam .er-map::after { content: "คีย์ลัด : 1 ถึง 4 เลือกคำตอบ : ← → เปลี่ยนข้อ"; display: block; margin-top: 12px; color: var(--mut2); font-size: 12px; text-align: center; }
  /* the next / back buttons sit right under the question, as wide as the question card (no floating bar over the card) */
  body.er-wide .er-exam .er-foot, body.lv-xlead.er-wide .er-exam .er-foot { grid-column: 1; grid-row: 4; position: static; left: auto; bottom: auto; transform: none; width: auto; max-width: none; z-index: auto; margin-top: 34px; padding: 0; background: none; gap: 12px; }
  body.er-wide .er-exam .er-foot .er-nav { width: 58px; height: 58px; flex: none; }
  body.er-wide .er-res { max-width: 900px; margin: 0 auto; padding: 28px 32px 130px; }
  body.er-wide .er-bg i:nth-child(1) { width: 520px; height: 520px; }
  body.er-wide .er-bg i:nth-child(2) { width: 460px; height: 460px; right: -120px; }
  .ho { align-items: center; }
  .ho-card { border-radius: 26px; }
}

/* Pre-Order: customer cancels an unpaid order */
.dn-cxl { margin-top: 14px; color: #dc2626; font-size: 14px; font-weight: 600; }
.ov-cxl { background: #f1f5f9 !important; color: #0f172a !important; box-shadow: none !important; white-space: nowrap; }
.ov-ct { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #0f172a; font-size: 15px; font-weight: 600; text-decoration: none; }
.ov-ct svg { width: 20px; height: 20px; fill: none; stroke: #475569; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ov-ct span { flex: 1; } .ov-ct .ch { width: 18px; height: 18px; stroke: #94a3b8; }
.cx-dlg { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.cx-bd { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.cx-box { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: cxUp .22s ease-out; }
.cx-box h3 { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.cx-box > p { margin: 0 0 14px; font-size: 14px; color: #475569; line-height: 1.55; }
.cx-box > small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #334155; }
.cx-why { display: grid; gap: 8px; }
.cx-why label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; color: #0f172a; cursor: pointer; }
.cx-why input { width: 18px; height: 18px; margin: 0; accent-color: #dc2626; }
.cx-why label:has(input:checked) { border-color: #fca5a5; background: #fef2f2; }
.cx-acts { display: flex; gap: 10px; margin-top: 14px; }
.cx-acts .sp-btn { flex: 1; }
.cx-go { background: #dc2626 !important; box-shadow: none !important; }
@keyframes cxUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.od-a { display: flex; gap: 8px; }

/* Pre-Order: pay strip + countdown on unpaid orders, payment details (ดูรหัส) */
.od-pay { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; font-size: 14px; color: #0f172a; }
.od-pay svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--spb, #1d4ed8); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-pay span { flex: 1; font-weight: 600; white-space: nowrap; }
.od-pay em { font-style: normal; color: #ea580c; white-space: nowrap; }
.od-pay em b { font-variant-numeric: tabular-nums; font-size: 15px; }
.od-card .od-f { justify-content: flex-end; }
.py-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 4px 2px 16px; }
.py-hd h3 { margin: 0; font-size: 20px; color: #0f172a; }
.py-hd strong { display: block; margin: 2px 0 6px; font-size: 26px; color: #0f172a; }
.py-hd small { font-size: 13px; color: var(--muted, #64748b); } .py-hd small b { color: #0f172a; }
.py-clock { width: 48px; height: 48px; border-radius: 50%; background: #f59e0b; display: grid; place-items: center; flex: none; }
.py-clock svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.py-left { margin: 14px 0 10px; text-align: center; font-size: 14px; color: #334155; }
.py-left b { color: #e11d48; font-size: 16px; font-variant-numeric: tabular-nums; }
.py-card .sp-btn.wide { width: 100%; }
.py-note { margin: 4px 4px 18px; font-size: 13px; color: #475569; line-height: 1.6; }
.py-h { margin: 0 4px 8px; font-size: 16px; color: #0f172a; }
.py-steps { margin: 0 4px 24px; padding-left: 20px; font-size: 14px; color: #334155; line-height: 1.8; }
.od-a .sp-btn { height: 40px; padding: 0 20px; font-size: 14px; }
.py-chg { display: block; margin-top: 8px; padding: 0; background: none; border: 0; color: #2563eb; font-size: 14px; font-weight: 600; cursor: pointer; }
.py-chg.sm { display: inline; margin: 0 0 0 8px; font-size: 13px; }
.pm-opts label { gap: 12px; }
.pm-opts label svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #1d4ed8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-opts label span { display: flex; flex-direction: column; } .pm-opts label small { font-size: 12px; color: #64748b; }
.pm-opts label.off { opacity: .5; cursor: not-allowed; }
.pm-opts label:has(input:checked) { border-color: #93c5fd; background: #eff6ff; }
.pm-opts input { accent-color: #2563eb; }

.rc .rc-free{align-self:center;margin-left:auto;padding:3px 8px;border-radius:99px;background:#ecfdf5;color:#047857;font-size:11px;font-style:normal;font-weight:700;white-space:nowrap}
.ex-free{margin:10px 0 4px;padding:10px 12px;border-radius:12px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:13px;line-height:1.5}

.qx-geo{margin-top:10px;font-size:13px;color:#64748b;text-align:center}
.qx-ci{display:grid;gap:8px;width:100%;margin-top:12px;text-align:left}
.qx-cirow{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#ecfdf5;border:1px solid #a7f3d0}
.qx-cirow b{font-size:14px;color:#0f172a}.qx-cirow span{font-size:13px;color:#047857}
.qx-cirow.bad{background:#fef2f2;border-color:#fecaca}.qx-cirow.bad span{color:#b91c1c}
.tr-wrap{display:grid;gap:10px;margin:14px 0 4px}.tr-wrap[hidden]{display:none}
.tr-c{padding:14px;border-radius:16px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.tr-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tr-h b{font-size:15px;color:#0f172a}
.tr-tag{padding:3px 8px;border-radius:99px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700;white-space:nowrap}
.tr-m{margin:6px 0 10px;font-size:13px;color:#64748b}
.tr-a{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tr-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:0;border-radius:10px;background:#1f6fdc;color:#fff;font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}
.tr-btn.line{background:#fff;color:#1f6fdc;border:1.5px solid #bfdbfe}.tr-btn:disabled{opacity:.6}
.tr-code{display:flex;flex-wrap:wrap;gap:8px;width:100%}.tr-code input{flex:1;min-width:0;height:40px;padding:0 12px;border:1.5px solid #cbd5e1;border-radius:10px;font:inherit;font-size:16px;letter-spacing:4px;text-align:center}
.tr-code small{width:100%;font-size:12px;color:#b91c1c}.tr-w{font-size:12px;color:#64748b}
.tr-ok{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:99px;background:#ecfdf5;color:#047857;font-size:13px;font-weight:700}
.qx-cit{display:flex;align-items:baseline;gap:8px;min-width:0}.qx-cit b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qx-cit em{flex:none;font-style:normal;font-size:12px;color:#475569;white-space:nowrap}
.st-re{display:flex;align-items:center;justify-content:center;width:100%;height:48px;margin-top:14px;border:0;border-radius:12px;background:var(--exb);color:#fff;font:inherit;font-size:15px;font-weight:700;white-space:nowrap}.st-re[hidden]{display:none}
.mv-pay{display:grid;gap:8px;margin-top:14px;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.mv-pay[hidden]{display:none}.mv-pay p{margin:0;font-size:13px;font-weight:700;color:#0f172a}
.mv-up{height:44px;border:1.5px dashed #93c5fd;border-radius:12px;background:#fff;color:#1d4ed8;font:inherit;font-size:14px;font-weight:700}.mv-up.ok{border-style:solid;border-color:#6ee7b7;color:#047857;background:#ecfdf5}
.mv-sheet{--exb:#1f6fdc}body.lv-xlead .mv-sheet{--exb:#cba230}

/* ---------- Content Studio (studio.js) ---------- */
.cs { background: var(--bg); min-height: 100vh; }
.cs-body { padding: 4px 18px calc(28px + var(--safe-b)); }
.cs-sub { margin: 4px 0 16px; font-size: 14px; color: var(--muted); }
.cs-btn { height: 44px; padding: 0 18px; border-radius: 12px; background: #1f6fdc; color: #fff; font: 700 14.5px var(--font); white-space: nowrap; }
.cs-btn.ln { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.cs-btn:active { transform: scale(.98); }
.cs-lock { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15,23,42,.05); }
.cs-lock svg { width: 40px; height: 40px; fill: none; stroke: #1f6fdc; stroke-width: 1.8; }
.cs-lock b { font-size: 16px; } .cs-lock span { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.cs-tools { display: flex; flex-direction: column; gap: 12px; }
.cs-tool { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15,23,42,.05); }
.cs-ti { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.cs-ti svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.cs-ti .px { fill: #d4ff3a; stroke: none; }
.cs-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-tt b { font-size: 15.5px; color: var(--ink); } .cs-tt small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cs-tt b, .cs-tt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one line each; long text ends with … instead of wrapping */
.cs-go { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--faint); stroke-width: 2; }
.cs-soon { padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.cs-soon b { color: var(--ink); font-size: 13.5px; }
.cb-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.cb-steps span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: #eef2f7; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cb-steps span.on { background: #1f6fdc; color: #fff; } .cb-steps span.done { background: #dbeafe; color: #1e3a8a; }
.cb-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 18px; border-radius: 18px; border: 2px dashed #93c5fd; background: #fff; cursor: pointer; }
.cb-drop svg { width: 44px; height: 44px; fill: none; stroke: #1f6fdc; stroke-width: 1.6; }
.cb-drop b { font-size: 16px; color: var(--ink); } .cb-drop span { font-size: 13px; color: var(--muted); }
.cb-hint { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.55; } .cb-hint b { color: var(--ink); }
.cb-stage, .cb-prev { display: flex; justify-content: center; padding: 10px; border-radius: 16px; background: #e8edf4; }
.cb-stage canvas { max-width: 100%; max-height: 62vh; width: auto; height: auto; touch-action: none; border-radius: 8px; cursor: crosshair; }
.cb-prev canvas { max-width: 100%; max-height: 64vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.18); }
.cb-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cb-row input[type=range] { flex: 1; min-width: 120px; accent-color: #1f6fdc; }
.cb-row .cs-btn { flex: 1; }
.cb-tg { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cb-tg input { width: 18px; height: 18px; accent-color: #1f6fdc; }
.cb-warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; line-height: 1.5; }
.cb-nav { display: flex; gap: 10px; margin-top: 16px; } .cb-nav .cs-btn { flex: 1; }
.cb-share { width: 100%; margin-top: 10px; }
.cb-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cb-opt > span { flex: none; width: 52px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cb-seg { flex: 1; display: flex; gap: 6px; }
.cb-seg button { flex: 1; height: 38px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 12.5px var(--font); color: var(--ink); white-space: nowrap; padding: 0 4px; }
.cb-seg button.on { background: #1f6fdc; color: #fff; box-shadow: none; }
.cb-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cb-f input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 500 15px var(--font); color: var(--ink); background: #fff; }
.cb-prev { margin-top: 12px; }
.cs-tool.soon { opacity: .62; cursor: default; box-shadow: 0 1px 0 var(--line); }
.cs-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.gi-ai .a-rec { fill: #d4ff3a; }
/* AI Tools : caption studio */
.cc-sel, .cb-f textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); font: 500 15px var(--font); color: var(--ink); background: #fff; }
.cc-sel { height: 46px; padding: 0 12px; }
.cb-f textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
.cc-form .cb-f { margin-bottom: 14px; }
.cc-img { margin-bottom: 6px; }
.cc-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px dashed #93c5fd; background: #fff; cursor: pointer; }
.cc-pick svg { flex: none; width: 32px; height: 32px; fill: none; stroke: #1f6fdc; stroke-width: 1.6; }
.cc-pick span { display: flex; flex-direction: column; gap: 2px; } .cc-pick b { font-size: 14.5px; color: var(--ink); } .cc-pick small { font-size: 12.5px; color: var(--muted); }
.cc-thumb { position: relative; display: inline-block; }
.cc-thumb img { display: block; max-width: 160px; max-height: 160px; border-radius: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.15); }
.cc-thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: #0f172a; color: #fff; font-size: 18px; line-height: 1; }
.cc-pv { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cc-ch { margin-bottom: 8px; }
.cc-tk { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #eef6ff; color: #1e3a8a; font-size: 12.5px; line-height: 1.5; }
.cc-go, .cc-again { width: 100%; height: 48px; }
.cc-go:disabled, .cc-again:disabled { opacity: .6; }
.cc-res { margin-top: 22px; }
.cc-src { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.cc-b { display: inline-block; padding: 2px 10px; margin-right: 4px; border-radius: 999px; background: #eef2f7; color: var(--ink); font-size: 12px; font-weight: 700; }
.cc-b.ai { background: #0b1f4d; color: #d4ff3a; }
.cc-re { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; }
.cc-card { padding: 14px; margin-bottom: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15,23,42,.05); border: 1.5px solid transparent; }
.cc-card.warn { border-color: #fdba74; }
.cc-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .cc-h b { font-size: 15px; } .cc-n { font-size: 12px; color: var(--faint); }
.cc-t { width: 100%; min-height: 150px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 500 14.5px/1.6 var(--font); color: var(--ink); resize: vertical; background: #fbfcfe; }
.cc-ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: #15803d; font-weight: 600; }
.cc-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cc-flags { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; } .cc-flags > b { display: block; font-size: 13px; color: #9a3412; margin-bottom: 6px; }
.cc-flag { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid #fed7aa; font-size: 12.5px; line-height: 1.5; } .cc-flag:first-of-type { border-top: 0; }
.cc-flag p { margin: 0; color: var(--ink); } .cc-flag small { color: #9a3412; }
.cc-flag mark { background: #fde68a; color: #7c2d12; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.cc-g { flex: none; height: 20px; padding: 0 8px; border-radius: 999px; background: #9a3412; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; }
.cc-act { display: flex; gap: 10px; margin-top: 12px; } .cc-act .cs-btn { flex: 1; }
/* AI Tools : content plan */
.cp-load { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.cp-form .cb-opt > span { width: 64px; }
.cp-form .cb-f { margin-bottom: 14px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 13px var(--font); color: var(--ink); white-space: nowrap; }
.cp-chip.on { background: #1f6fdc; color: #fff; box-shadow: none; }
.cp-sum { padding: 14px 16px; border-radius: 16px; background: #0b1f4d; color: #fff; }
.cp-sum-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .cp-sum-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sum small { display: block; margin-top: 6px; font-size: 12.5px; color: #c7d2fe; }
.cp-bar { height: 8px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; } .cp-bar i { display: block; height: 100%; width: 0; background: #d4ff3a; border-radius: 99px; transition: width .3s; }
.cp-tools { display: flex; gap: 10px; margin: 12px 0 4px; } .cp-tools .cs-btn { flex: 1; }
.cp-wk { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.cp-day { display: flex; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); border-left: 4px solid #94a3b8; }
.cp-day.today { box-shadow: 0 0 0 2px #1f6fdc; }
.cp-day.rest { background: transparent; box-shadow: none; border-left-color: transparent; padding: 6px 12px; align-items: center; }
.cp-day.rest.today { box-shadow: 0 0 0 2px #1f6fdc; }
.cp-rest { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-date { flex: none; width: 40px; text-align: center; } .cp-date small { display: block; font-size: 11.5px; color: var(--muted); } .cp-date b { font-size: 20px; line-height: 1.2; }
.cp-main { flex: 1; min-width: 0; }
.cp-meta { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.cp-k, .cp-f, .cp-w { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cp-k { background: #eef2f7; color: var(--ink); } .cp-f { background: #f1f5f9; color: var(--muted); } .cp-w { background: #fff7ed; color: #9a3412; }
.cp-t { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-i { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cp-day.open .cp-i, .cp-day.open .cp-t { white-space: normal; } /* tap the topic to read the whole idea */
.cp-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cp-done { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; } .cp-done input { width: 18px; height: 18px; accent-color: #16a34a; }
.cp-cap { height: 34px; padding: 0 14px; border-radius: 10px; background: #eef6ff; color: #1f6fdc; font: 700 13px var(--font); white-space: nowrap; }
.cp-day.done { opacity: .62; } .cp-day.done .cp-t { text-decoration: line-through; }
.cp-day.late .cp-date b { color: #c2410c; }
.cp-day.k-edu { border-left-color: #2563eb; } .cp-day.k-life { border-left-color: #0d9488; } .cp-day.k-prod { border-left-color: #d97706; } .cp-day.k-story { border-left-color: #db2777; }
.cp-day.k-team { border-left-color: #7c3aed; } .cp-day.k-qa { border-left-color: #0891b2; } .cp-day.k-behind { border-left-color: #64748b; }
.cp-form, .cc-form { padding-top: 10px; }
/* content plan : month calendar */
.cg-head, .cg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cg-head { margin: 16px 0 6px; } .cg-head span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cg-c { position: relative; min-height: 64px; padding: 6px 5px 5px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line); text-align: left; display: flex; flex-direction: column; gap: 3px; overflow: hidden; border-top: 4px solid #94a3b8; font-family: var(--font); }
.cg-c b { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-c.out { background: transparent; box-shadow: none; border-top-color: transparent; } .cg-c.out b { color: #cbd5e1; font-weight: 600; }
.cg-c.rest { background: #f8fafc; border-top-color: #e2e8f0; } .cg-r { font-size: 11px; color: var(--faint); }
.cg-k { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-t { display: none; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-c.today { box-shadow: 0 0 0 2px #1f6fdc; }
.cg-c.done { background: #f0fdf4; } .cg-ok { font-style: normal; color: #16a34a; font-weight: 800; }
.cg-c.late b { color: #c2410c; }
.cg-c:active { transform: scale(.97); }
.cg-leg { display: flex; flex-wrap: nowrap; gap: 0 clamp(5px, 1.8vw, 12px); margin: 12px 0 4px; font-size: clamp(10px, 2.85vw, 12px); color: var(--muted); overflow-x: auto; scrollbar-width: none; } .cg-leg::-webkit-scrollbar { display: none; }
.cg-leg span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; } .cg-leg b { font-weight: inherit; } .cg-leg i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.cg-c.k-edu { border-top-color: #2563eb; } .cg-c.k-edu .cg-k, .cg-leg .k-edu i { color: #2563eb; } .cg-leg .k-edu i { background: #2563eb; }
.cg-c.k-life { border-top-color: #0d9488; } .cg-c.k-life .cg-k { color: #0d9488; } .cg-leg .k-life i { background: #0d9488; }
.cg-c.k-prod { border-top-color: #d97706; } .cg-c.k-prod .cg-k { color: #b45309; } .cg-leg .k-prod i { background: #d97706; }
.cg-c.k-story { border-top-color: #db2777; } .cg-c.k-story .cg-k { color: #db2777; } .cg-leg .k-story i { background: #db2777; }
.cg-c.k-team { border-top-color: #7c3aed; } .cg-c.k-team .cg-k { color: #7c3aed; } .cg-leg .k-team i { background: #7c3aed; }
.cg-c.k-qa { border-top-color: #0891b2; } .cg-c.k-qa .cg-k { color: #0891b2; } .cg-leg .k-qa i { background: #0891b2; }
.cg-c.k-behind { border-top-color: #64748b; } .cg-c.k-behind .cg-k { color: #475569; } .cg-leg .k-behind i { background: #64748b; }
.cg-leg span { color: var(--muted); }

.cp-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; justify-content: center; }
.cp-sheet[hidden] { display: none; }
.cp-sheet-c { position: relative; width: 100%; max-width: 520px; padding: 22px 18px calc(22px + var(--safe-b)); border-radius: 20px 20px 0 0; background: #fff; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .cp-sheet { align-items: center; } .cp-sheet-c { border-radius: 20px; } }
.cp-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; font-size: 20px; color: var(--muted); }
.cs-d { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.cs-t { font-size: 17px; color: var(--ink); line-height: 1.4; } .cs-i { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.cp-sheet-c .cp-done { margin-top: 4px; } .cp-capbtn { width: 100%; height: 46px; }
.cp-k.k-edu { background: #dbeafe; color: #1d4ed8; } .cp-k.k-life { background: #ccfbf1; color: #0f766e; } .cp-k.k-prod { background: #fef3c7; color: #b45309; } .cp-k.k-story { background: #fce7f3; color: #be185d; } .cp-k.k-team { background: #ede9fe; color: #6d28d9; } .cp-k.k-qa { background: #cffafe; color: #0e7490; } .cp-k.k-behind { background: #f1f5f9; color: #475569; }
/* AI Tools : design studio */
.ed-body { padding-top: 10px; }
.ed-tplbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15,23,42,.05); text-align: left; font-family: var(--font); }
.ed-tplbtn img { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.ed-tplbtn span { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .ed-tplbtn b { font-size: 15.5px; color: var(--ink); } .ed-tplbtn small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-blank { display: flex; gap: 10px; margin-top: 12px; }
.ed-blank button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); font: 600 12.5px var(--font); color: var(--ink); white-space: nowrap; }
.ed-blank i { display: block; border: 2px solid #94a3b8; border-radius: 4px; } .ed-blank .r45 { width: 28px; height: 35px; } .ed-blank .r11 { width: 32px; height: 32px; } .ed-blank .r916 { width: 22px; height: 39px; }
.ed-work { display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.ed-top { flex: none; display: flex; align-items: center; gap: 6px; } .ed-top > span { flex: 1; }
.ed-ic { height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; border-radius: 10px; background: #eef2f7; color: var(--ink); font: 700 12.5px var(--font); white-space: nowrap; }
.ed-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .ed-ic:disabled { opacity: .4; }
.ed-mini { height: 34px; padding: 0 12px; border-radius: 10px; background: #eef2f7; color: var(--ink); font: 700 12.5px var(--font); white-space: nowrap; }
.ed-mini:disabled { opacity: .45; } .ed-mini.pri { background: #1f6fdc; color: #fff; } .ed-mini.ln { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.ed-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 16px; background: #e2e8f0; overflow: hidden; }
.ed-stage canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 6px 20px rgba(15,23,42,.15); touch-action: none; background: #fff; }
.ed-dock { flex: none; }
.ed-tools { display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: none; } .ed-tools::-webkit-scrollbar { display: none; }
.ed-tools button { flex: 1 0 62px; min-width: 62px; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(15,23,42,.04); font: 700 11.5px var(--font); color: var(--ink); white-space: nowrap; }
.ed-tools svg { width: 22px; height: 22px; fill: none; stroke: #1f6fdc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-sel button { flex: 0 0 62px; } .ed-tools button.ok { background: #1f6fdc; color: #fff; } .ed-tools button.ok svg { stroke: #fff; stroke-width: 2.4; }
.ed-tools button.del { color: #dc2626; } .ed-tools button.del svg { stroke: #dc2626; }
.ed-tools button:active { transform: scale(.96); }
.ed-panel { background: #fff; border-radius: 16px; box-shadow: 0 -6px 20px rgba(15,23,42,.08), 0 0 0 1px var(--line); padding: 0 14px 14px; max-height: 46vh; overflow-y: auto; }
.ed-panel-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 10px; background: #fff; }
.ed-panel-h b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-ok { flex: none; height: 34px; padding: 0 18px; border-radius: 999px; background: #1f6fdc; color: #fff; font: 700 13px var(--font); }
.ed-quick { position: absolute; z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.22); }
.ed-quick button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f8fafc; }
.ed-quick svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .ed-quick .del svg { stroke: #dc2626; }
.ed-confirm { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(310px, 90%); display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.35); text-align: center; }
.ed-confirm b { font-size: 16px; color: var(--ink); } .ed-confirm small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-confirm div { display: flex; gap: 8px; margin-top: 8px; } .ed-confirm .ed-mini { flex: 1; height: 40px; } .ed-mini.red { background: #dc2626; color: #fff; }
.ed-start-again { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: #fef3c7; font: 600 13px var(--font); color: #92400e; white-space: nowrap; }
.ed-start-again button { height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; color: #b45309; font: 700 12.5px var(--font); white-space: nowrap; box-shadow: inset 0 0 0 1.5px #fcd34d; }
.ed-sh { font-size: 16px; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 55vh; overflow-y: auto; padding: 2px; }
.ed-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: #f8fafc; font: 600 11.5px var(--font); color: var(--ink); min-width: 0; }
.ed-tile img { width: 100%; height: 72px; object-fit: contain; } .ed-tile i { display: block; width: 100%; height: 72px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.ed-tile span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-tile.tx b { height: 72px; display: flex; align-items: center; font-size: 18px; white-space: nowrap; }
.ed-col { height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ed-txin { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 16px var(--font); resize: vertical; }

/* AI Tools : tool icons (own colour each) */
.cs-ti { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px var(--tc, rgba(30,58,138,.6)); }
.cs-ti::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%); pointer-events: none; }
.cs-ti svg { position: relative; z-index: 1; width: 28px; height: 28px; stroke-width: 1.7; stroke-linejoin: round; }
.cs-ti .f { fill: rgba(255,255,255,.2); } .cs-ti .s { fill: #fff; stroke: none; } .cs-ti .s.o { fill: rgba(255,255,255,.55); } .cs-ti .w { stroke-width: 2.2; }
.cs-ti.t-blur { background: linear-gradient(135deg, #15803d, #4ade80); --tc: rgba(22,163,74,.7); }
.cs-ti.t-cap { background: linear-gradient(135deg, #6d28d9, #c084fc); --tc: rgba(124,58,237,.7); }
.cs-ti.t-des { background: linear-gradient(135deg, #db2777, #fb923c); --tc: rgba(219,39,119,.7); }
.cs-ti.t-plan { background: linear-gradient(135deg, #0369a1, #38bdf8); --tc: rgba(2,132,199,.7); }
.cs-ti.t-vid { background: linear-gradient(135deg, #b91c1c, #f87171); --tc: rgba(220,38,38,.7); }
.cs-ti.t-stat { background: linear-gradient(135deg, #b45309, #fbbf24); --tc: rgba(217,119,6,.7); }
.cs-tool.soon .cs-ti.t-vid, .cs-tool.soon .cs-ti.t-stat { opacity: .85; filter: saturate(.75); box-shadow: none; }

/* content plan : product multi-select dropdown */
.cp-pick { position: relative; }
.cp-dd { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 14.5px var(--font); color: var(--ink); text-align: left; }
.cp-dd span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-dd b { flex: none; padding: 2px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 12px; }
.cp-dd svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .15s; }
.cp-pick.open .cp-dd { border-color: #1f6fdc; } .cp-pick.open .cp-dd svg { transform: rotate(180deg); }
.cp-ddl { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 56vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.18), 0 0 0 1px var(--line); }
.cp-ddg { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.cp-ddi { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cp-ddi:active { background: #f1f5f9; } .cp-ddi input { width: 20px; height: 20px; accent-color: #1f6fdc; flex: none; }
.cp-ddi span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cp-ddi.dis { opacity: .45; }
.cp-ddok { width: 100%; height: 42px; margin-top: 6px; border-radius: 10px; background: #1f6fdc; color: #fff; font: 700 14px var(--font); }

/* AI Tools : video studio */
.vd-body { padding-top: 10px; }
.vd-steps span { cursor: pointer; }
.vd-stage { display: flex; justify-content: center; padding: 8px; border-radius: 16px; background: #0f172a; }
.vd-stage canvas { display: block; max-width: 100%; max-height: 52vh; width: auto; height: auto; border-radius: 6px; }
.vd-ctl { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; } .vd-ctl span { flex: 1; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-l { margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vd-r { width: 100%; accent-color: #1f6fdc; }
.vd-info { margin: 8px 0 0; font-size: 13px; color: var(--ink); font-weight: 600; }
.vd-note { margin: 6px 0 12px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-next, .vd-ai { width: 100%; height: 46px; margin-top: 14px; } .vd-ai { background: linear-gradient(135deg, #6d28d9, #a855f7); } .vd-ai:disabled, .vd-next:disabled { opacity: .6; }
.vd-segh { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; } .vd-segh b { font-size: 14px; } .vd-segh b span { font-weight: 500; color: var(--muted); font-size: 12.5px; } .vd-segh span { display: flex; gap: 6px; }
.vd-segs { display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow-y: auto; margin-bottom: 12px; }
.vd-seg { display: flex; align-items: center; gap: 6px; }
.vd-t { flex: none; height: 36px; padding: 0 8px; border-radius: 9px; background: #eef2f7; font: 700 12px var(--font); color: #1f6fdc; font-variant-numeric: tabular-nums; }
.vd-tx { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px; border: 1.5px solid var(--line); font: 500 14px var(--font); color: var(--ink); }
.vd-x { flex: none; width: 32px; height: 36px; border-radius: 9px; background: #fff1f2; color: #dc2626; font-size: 18px; }
.vd-empty { margin: 4px 0; font-size: 13px; color: var(--muted); }
.vd-tabs { margin-bottom: 4px; }
.vd-rec { display: flex; align-items: center; gap: 10px; margin-top: 4px; } .vd-bar { flex: 1; margin-top: 0; background: #e2e8f0; } .vd-bar i { background: #1f6fdc; }
.vd-res video { display: block; width: 100%; max-height: 50vh; border-radius: 12px; background: #000; margin-top: 8px; }
/* design studio : property panels, colour picker, background removal */
.ed-propb { display: flex; flex-direction: column; gap: 12px; }
.ed-done { width: 100%; height: 44px; }
.ed-sl { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ed-sl input { width: 100%; accent-color: #1f6fdc; } .ed-sl b { text-align: right; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ed-fonts { display: flex; flex-direction: column; gap: 6px; }
.ed-fonts button { height: 46px; padding: 0 14px; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-fonts button.on { box-shadow: inset 0 0 0 2px #1f6fdc; background: #eff6ff; }
.ed-w { display: flex; gap: 6px; } .ed-w button { flex: 1; height: 38px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13px var(--font); color: var(--ink); white-space: nowrap; } .ed-w button.on { background: #1f6fdc; color: #fff; box-shadow: none; }
.ed-colbtn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13.5px var(--font); color: var(--ink); }
.ed-colbtn i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ed-sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; } .ed-sw.g { grid-template-columns: repeat(6, 1fr); }
.ed-sw button { aspect-ratio: 1; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ed-crow { display: flex; align-items: center; gap: 8px; }
.ed-crow input[type=color] { flex: none; width: 46px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.ed-hex { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); font: 600 15px ui-monospace, Menlo, monospace; text-transform: uppercase; color: var(--ink); }
.ed-gprev { height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.ed-none { width: 100%; height: 42px; }
.ed-rainbow { background: conic-gradient(#ef4444, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #ef4444) !important; }
.ed-stage canvas.ed-picking { cursor: crosshair; outline: 3px dashed #db2777; outline-offset: 2px; }
.ed-ai { width: 100%; height: 46px; background: linear-gradient(135deg, #db2777, #fb923c); } .ed-ai:disabled { opacity: .7; }
.ed-note { margin: -6px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* off-screen looping decorations are paused (see app.js) */
/* off-screen looping animations are paused from app.js (Web Animations API), entrances are never paused */
.mascot { will-change: transform; }

/* design studio : colour picker (one page) */
.cp-top { display: flex; align-items: center; gap: 8px; }
.cp-cur { flex: none; width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cp-top .ed-hex { height: 42px; }
.cp-eye { flex: none; height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px; background: #eef2f7; color: var(--ink); font: 700 13px var(--font); white-space: nowrap; }
.cp-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .cp-eye.on { background: #db2777; color: #fff; }
.cp-lab { margin: 2px 0 -4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cp-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cp-dot { position: relative; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.cp-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f6fdc; }
.cp-dot.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32%; height: 18%; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translate(-50%, -65%) rotate(-45deg); filter: drop-shadow(0 0 1.5px rgba(0,0,0,.6)); }
.cp-none { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13px var(--font); color: var(--ink); white-space: nowrap; }
.cp-none i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, transparent 45%, #dc2626 45% 55%, transparent 55%), #fff; box-shadow: inset 0 0 0 1.5px #cbd5e1; } .cp-none.on { box-shadow: inset 0 0 0 2px #1f6fdc; background: #eff6ff; }
.cp-stops { display: flex; gap: 6px; } .cp-stops button { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13px var(--font); color: var(--ink); white-space: nowrap; }
.cp-stops button.on { box-shadow: inset 0 0 0 2px #1f6fdc; background: #eff6ff; } .cp-stops i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cp-stops [data-flip] { flex: 0 0 44px; } .cp-stops svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cp-sv { position: relative; height: 120px; border-radius: 12px; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); touch-action: none; cursor: crosshair; flex: none; }
.cp-sv i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cp-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; border-radius: 999px; background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); outline: none; margin: 2px 0; }
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.3); }
.cp-hue::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.3); }
.ed-tile.sc img { height: 96px; object-fit: cover; border-radius: 8px; } .ed-tile.on { box-shadow: inset 0 0 0 2px #1f6fdc; background: #eff6ff; }
.ed-tile i.ed-up { display: grid; place-items: center; background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fdc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/34px no-repeat; }
#edBar button { flex: 1 1 0; min-width: 0; padding: 0 2px; font-size: 11px; }
/* video studio : AI voice-over */
.vd-vo { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(15,23,42,.04); }
.vd-vo .vd-segh { margin: 0; } .vd-vobtn { margin: 0; }
.vd-voflags { padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 12.5px; } .vd-voflags p { margin: 2px 0; } .vd-voflags b { color: #dc2626; }
.vd-vobox { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.vd-vorow { display: flex; align-items: center; gap: 8px; } .vd-vorow span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-vo .ed-sl { grid-template-columns: 96px 1fr 58px; }
/* design studio : save panel (watermark + sizes) */
.sv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .sv-row b { font-size: 13.5px; white-space: nowrap; }
.sv-sw { position: relative; width: 46px; height: 28px; flex: none; } .sv-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sv-sw i { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .2s; } .sv-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sv-sw input:checked + i { background: #16a34a; } .sv-sw input:checked + i::after { transform: translateX(18px); }
.sv-in { width: 100%; text-transform: none; font-family: var(--font); font-size: 15px; }
.sv-size { flex: 0 0 auto; } .sv-size button { padding: 0 14px; }
/* caption studio : voice + age, full-height captions */
.cc-age { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cc-age::-webkit-scrollbar { display: none; }
.cc-age button { flex: 1 0 auto; padding: 0 6px; white-space: nowrap; }
.cc-t { resize: none; overflow: hidden; min-height: 120px; line-height: 1.7; }
.rc .rc-live{background:#fef2f2;color:#dc2626} .rc .rc-live + .rc-free{margin-left:6px}
.rc .rc-test{background:#eff6ff;color:#1d4ed8}
/* design studio : promo templates */
.ed-tplrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; } .ed-tplrow > b { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink); }
.ed-tplmini { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); font-family: var(--font); }
.ed-tplmini span { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; display: grid; place-items: center; } .ed-tplmini img { width: 70%; }
.tp-g { background: linear-gradient(135deg, #14532d, #22c55e); } .tp-n { background: linear-gradient(180deg, #12244f, #08122e); } .tp-y { background: linear-gradient(160deg, #fff7ed, #fde68a); }
.ed-tplmini small { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
/* design studio : carousel pages */
.ed-pages { flex: none; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; } .ed-pages::-webkit-scrollbar { display: none; }
.ed-pages span { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.ed-pages button { flex: none; height: 30px; min-width: 30px; padding: 0 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 12.5px var(--font); color: var(--ink); }
.ed-pages button.on { background: #1f6fdc; color: #fff; box-shadow: none; } .ed-pages button.add { color: #1f6fdc; } .ed-pages button.del { color: #dc2626; margin-left: auto; } .ed-pages button.del.sure { background: #dc2626; color: #fff; box-shadow: none; }
/* video studio : still picture */
.vd-grab { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.vd-grab img { flex: none; width: 56px; height: 72px; object-fit: cover; border-radius: 8px; background: #0f172a; }
.vd-grab > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .vd-grab b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-grab span { display: flex; gap: 6px; } .vd-grab .ed-mini { height: 32px; }
/* AI Tools : camera */
.cs-ti.t-cam { background: linear-gradient(135deg, #0f766e, #2dd4bf); --tc: rgba(13,148,136,.7); }
.vd-camgo { width: 100%; margin-top: 10px; }
.cm-body { display: flex; flex-direction: column; gap: 10px; }
.cm-modes { flex: none; }
.cm-view { position: relative; width: 100%; height: min(62vh, 560px); border-radius: 18px; overflow: hidden; background: #0b1220; }
.cm-view video#cmV { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; } .cm-view video#cmV.mirror { transform: scaleX(-1); } .cm-view video#cmV.flash { filter: brightness(2.2); }
#cmOv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cm-roll { position: absolute; left: 0; right: 0; top: 0; height: 38%; overflow: hidden; padding: 14px 18px; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.25) 80%, transparent); pointer-events: none; }
.cm-roll div { color: #fff; font-weight: 700; line-height: 1.5; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: pre-wrap; will-change: transform; }
.screen.cm:not(.tele) .cm-roll { display: none; }
.cm-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 96px var(--font); color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.cm-timer { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #dc2626; color: #fff; font: 700 13px var(--font); }
.cm-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #e2e8f0; font-size: 14px; }
.cm-res { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b1220; } .cm-res img, .cm-res video { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.cm-resb { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; } .cm-resb b { font-size: 13.5px; } .cm-resb div { display: flex; gap: 8px; } .cm-resb div .cs-btn { flex: 1; }
.cm-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 76px; }
.cm-tools { display: flex; gap: 6px; flex: 1; min-width: 0; } .cm-tools button { height: 32px; padding: 0 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 12px var(--font); color: var(--muted); white-space: nowrap; } .cm-tools button.on { background: #ecfeff; color: #0f766e; box-shadow: inset 0 0 0 1.5px #5eead4; }
.cm-shot { flex: none; width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #0f766e, 0 6px 16px rgba(15,23,42,.2); display: grid; place-items: center; }
.cm-shot i { width: 54px; height: 54px; border-radius: 50%; background: #0f766e; transition: all .2s; } .cm-shot.rec i { background: #dc2626; } .cm-shot.on i { width: 26px; height: 26px; border-radius: 6px; }
.cm-flip { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #eef2f7; display: grid; place-items: center; } .cm-flip svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-tools[hidden] + .cm-shot { margin-left: 50px; }
.cm-retry { align-self: center; }
.cm-tele { display: flex; flex-direction: column; gap: 10px; }
/* design studio : stickers */
.ed-gh { grid-column: 1 / -1; margin: 4px 2px 0; font-size: 13px; color: var(--muted); }
.ed-tile.stk { padding: 6px; } .ed-tile.stk img { height: 64px; }

/* exam result: a bottom bar back to the home page / exam page (the main tab bar only lives on the home screen) */
.er-rdock .er-ghost { flex: 0 0 auto; width: auto; height: 58px; margin: 0; padding: 0 18px; white-space: nowrap; }
.er-rdock .er-cta { white-space: nowrap; }
.er-rdock .er-cta svg { flex: none; }
body.er-scope .er-rdock { display: none; }
.er-rdock[hidden] { display: none; }

.er-rp-closed { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 600; text-align: center; }

/* exam result: the member card (locked = light grey + padlock, passed = one-time unlock animation) */
.er-card { width: min(340px, 100%); margin: 4px auto 18px; }
.er-card[hidden] { display: none; }
.er-cslide { cursor: default; }
.er-cslide > .hero { transition: filter 1.1s ease; }
.er-cslide > .mascot { transition: filter 1.1s ease; animation: none; }
.er-cslide.locked > .hero { filter: grayscale(1) brightness(1.28) contrast(.72); }
.er-cslide.hs-xv.locked > .hero { filter: grayscale(1) brightness(2.3) contrast(.42); }
.er-cslide.locked > .mascot { filter: grayscale(1) brightness(1.12) contrast(.85); }
.er-cslide.locked::before, .er-cslide.locked::after { opacity: 0 !important; }
.er-cslide > .hx-lock { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 3; display: none; pointer-events: none; }
.er-cslide > .hx-lock svg { width: 22cqw; height: 22cqw; overflow: visible; filter: drop-shadow(0 8px 16px rgba(15,23,42,.35)); }
.er-cslide.locked > .hx-lock, .er-cslide.unlocking > .hx-lock { display: block; }
.er-cslide .lk-sh { transform-box: fill-box; transform-origin: 85% 100%; }
.er-cslide.unlocking > .hx-lock { animation: lkPop .5s ease both, lkGone .55s .75s ease-in forwards; }
.er-cslide.unlocking .lk-sh { animation: lkOpen .45s .25s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes lkPop { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -50%) scale(1.15) rotate(-6deg); } 70% { transform: translate(-50%, -50%) scale(1.08) rotate(5deg); } 100% { transform: translate(-50%, -50%) scale(1.1); } }
@keyframes lkOpen { to { transform: translateY(-22%) rotate(-28deg); } }
@keyframes lkGone { to { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } }
.er-cslide .ulk-shine { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1.586; border-radius: 7.9cqw; overflow: hidden; z-index: 2; pointer-events: none; }
.er-cslide .ulk-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: ulkSweep 1s .2s ease-in-out forwards; }
.er-cslide .ulk-shine::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ulkGlow 1.4s .2s ease-out forwards; }
.er-cslide.hs-xl .ulk-shine::after { animation-name: ulkGlowG; }
@keyframes ulkSweep { to { left: 120%; } }
@keyframes ulkGlow { 30% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 0 30px rgba(56,189,248,.6); } 100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); } }
@keyframes ulkGlowG { 30% { box-shadow: inset 0 0 0 3px rgba(255,246,210,.9), 0 0 30px rgba(243,207,107,.7); } 100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .er-cslide.unlocking > .hx-lock, .er-cslide.unlocking .lk-sh, .er-cslide .ulk-shine::before, .er-cslide .ulk-shine::after { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* exam result: next step after passing X-VISOR (agent documents) */
.er-docs { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 4px; padding: 14px 14px 14px 12px; border-radius: 18px; text-align: left; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); box-shadow: 0 12px 26px rgba(29,78,216,.3); animation: erDocsIn .5s .4s ease both; }
.er-docs[hidden] { display: none; }
.er-docs-i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.er-docs-i svg, .er-docs-a { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.er-docs-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.er-docs-t b { font-size: 14.5px; font-weight: 800; }
.er-docs-t small { font-size: 12px; opacity: .88; }
.er-docs-a { flex: none; opacity: .9; }
@keyframes erDocsIn { from { opacity: 0; transform: translateY(10px); } }
body.lv-xlead .er-docs { display: none; }

/* design studio: a clear undo button (label + blue when there is something to undo) */
.ed-top .ed-undo { padding: 0 12px 0 10px; gap: 6px; background: #e0ecff; color: #1d4ed8; box-shadow: inset 0 0 0 1.5px #bfd5fb; }
.ed-top .ed-undo svg { width: 19px; height: 19px; stroke-width: 2.4; }
.ed-top .ed-undo:not(:disabled):active { transform: scale(.96); }
.ed-top .ed-undo:disabled, .ed-top .ed-redo:disabled { opacity: .38; background: #eef2f7; color: #64748b; box-shadow: none; }
.ed-top .ed-redo:not(:disabled) { background: #e0ecff; color: #1d4ed8; }

/* design studio: back to the start page + my designs (แฟ้มผลงาน) */
.ed-top .ed-back { padding: 0 12px 0 6px; gap: 2px; background: #fff; color: #0f172a; box-shadow: inset 0 0 0 1.5px #dbe3ee; }
.ed-top .ed-back svg { width: 20px; height: 20px; stroke-width: 2.4; }
.ed-top .ed-share { width: 36px; padding: 0; }
.ed-folio { margin: 0 0 18px; }
.ed-folio[hidden] { display: none; }
.ed-fo-h { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 10px; }
.ed-fo-h b { font-size: 16px; font-weight: 800; color: #0f172a; }
.ed-fo-h small { font-size: 12px; color: #94a3b8; }
.ed-fo-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ed-fo-row::-webkit-scrollbar { display: none; }
.ed-fo-c { flex: 0 0 136px; scroll-snap-align: start; display: grid; gap: 6px; }
.ed-fo-open { display: grid; gap: 3px; text-align: left; padding: 0; background: none; }
.ed-fo-th { position: relative; display: block; width: 136px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #eef2f7; box-shadow: 0 0 0 1px #e2e8f0, 0 6px 14px rgba(15,23,42,.08); }
.ed-fo-th img { width: 100%; height: 100%; object-fit: contain; display: block; } /* every card the same frame, so the buttons line up */
.ed-fo-th i { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(15,23,42,.7); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; }
.ed-fo-n { display: flex; align-items: center; gap: 4px; min-width: 0; height: 26px; }
.ed-fo-n b { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-fo-ren { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f1f5f9; color: #475569; }
.ed-fo-ren svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-fo-in { flex: 1; min-width: 0; height: 26px; padding: 0 6px; border: 1.5px solid #3b82f6; border-radius: 7px; font: 700 13px var(--font); color: #0f172a; outline: none; }
.ed-fo-t { margin-top: -4px; font-size: 11.5px; color: #94a3b8; }
.ed-fo-a { display: flex; gap: 6px; }
.ed-fo-a button { flex: 1; height: 30px; border-radius: 9px; background: #eef2f7; color: #334155; font: 700 11.5px var(--font); white-space: nowrap; }
.ed-fo-a button.del { background: #fef2f2; color: #b91c1c; }
.ed-fo-a button.del.sure { background: #dc2626; color: #fff; }
.ed-fo-a button { min-width: 0; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }

.ed-new-h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* design studio start page: even spacing between the template blocks */
.ed-start > .ed-tplbtn { margin-top: 14px; }
.ed-start > .ed-tplbtn:first-of-type { margin-top: 0; }
.ed-start > .ed-tplrow { margin-top: 20px; }
.ed-start > .ed-tplrow + .ed-tplbtn { margin-top: 16px; }
.ed-start > .ed-blank { margin-top: 14px; }
.ed-blank button { justify-content: flex-end; }
.ed-blank button::before { content: none; }
.ed-blank i { margin-top: auto; } /* icons of different heights sit on one baseline, so the three labels line up */
.ed-blank button { min-height: 92px; }

/* brand logos: watermark choice + decorate sheet tiles */
.wm-logo { flex-wrap: wrap; height: auto; gap: 4px; padding: 4px; }
.wm-logo button { flex: 1 1 30%; min-width: 0; padding: 7px 4px; white-space: nowrap; font-size: 12px; }
.ed-tile.lg { aspect-ratio: auto; height: 64px; padding: 10px; }
.ed-tile.lg img { object-fit: contain; width: 100%; height: 100%; }
.ed-tile.lg.dk { background: #334155; }
/* before / after card */
.ed-tile i.ed-baic, .ed-tplbtn .ed-baic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; }
.ed-baic s { display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px; border-radius: 5px; text-decoration: none; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #94a3b8, #cbd5e1); }
.ed-baic s + s { background: linear-gradient(160deg, #4ade80, #bbf7d0); }
.ed-tplbtn .ed-baic { flex: none; width: 76px; height: 95px; border-radius: 10px; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.ba-in button { flex: 1; }
/* video studio music: every track visible, 4 per row */
#vdMusic { flex-wrap: wrap; overflow: visible; }
#vdMusic button { flex: 1 0 calc(25% - 6px); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#vdMusic #vdMuOwnB { flex-basis: calc(50% - 6px); color: #1f6fdc; box-shadow: inset 0 0 0 1.5px #bfdbfe; }
#vdMusic #vdMuOwnB.on { color: #fff; box-shadow: none; }
/* AI Tools: คลิปรีวิว 15 วิ */
.cs-ti.t-reel { background: linear-gradient(135deg, #7c3aed, #c084fc); --tc: rgba(124,58,237,.7); }
.rl-body { display: grid; gap: 12px; }
.rl-stage { position: relative; display: grid; place-items: center; background: #0f172a; border-radius: 18px; padding: 12px; }
.rl-stage canvas { height: min(52vh, 460px); aspect-ratio: 9 / 16; width: auto; max-width: 100%; border-radius: 12px; background: #1e293b; }
.rl-play { position: absolute; right: 18px; bottom: 18px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.95); color: #0f172a; font: 700 13px var(--font); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.rl-h { margin: 2px 0 -2px; }
.rl-part { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15,23,42,.05); border: 1.5px solid transparent; }
.rl-part.on { border-color: #93c5fd; }
.rl-ph { display: flex; align-items: center; justify-content: space-between; } .rl-ph b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.rl-ph i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1f6fdc; color: #fff; font: 800 12px var(--font); font-style: normal; } .rl-ph small { color: var(--muted); font-size: 12px; }
.rl-prods { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .rl-prods::-webkit-scrollbar { display: none; }
.rl-prod { flex: none; width: 74px; display: grid; gap: 4px; justify-items: center; padding: 6px 4px; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 11px var(--font); color: var(--ink); }
.rl-prod img { width: 52px; height: 52px; object-fit: contain; } .rl-prod span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rl-prod.on { background: #eff6ff; box-shadow: inset 0 0 0 2px #1f6fdc; }
.rl-row { display: flex; align-items: center; gap: 10px; } .rl-ok { font-size: 12px; font-weight: 700; color: #16a34a; }
.rl-tx { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px; font: 600 15px var(--font); color: var(--ink); resize: none; }
.rl-tx:focus { outline: none; border-color: #1f6fdc; }
.rl-cta { margin: 0; }
.rl-opt { display: grid; gap: 6px; }
.rl-theme button i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.rl-theme button.on i { box-shadow: 0 0 0 2px #fff; }
.rl-music { flex-wrap: wrap; } .rl-music button { flex: 1 0 calc(25% - 6px); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rl-make { width: 100%; }
/* AI Tools: tools of one program as tabs under the header */
.cs-grp { position: sticky; top: calc(56px + var(--safe-t)); z-index: 4; display: flex; gap: 6px; padding: 6px 16px 10px; background: #f8fafc; box-shadow: 0 1px 0 rgba(15,23,42,.06); overflow-x: auto; scrollbar-width: none; }
.cs-grp::-webkit-scrollbar { display: none; }
.cs-grp button { flex: 1 0 auto; height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13px var(--font); color: var(--ink); white-space: nowrap; }
.cs-grp button.on { background: #1f6fdc; color: #fff; box-shadow: 0 4px 12px rgba(31,111,220,.3); }
#cmModes { display: none; }
.cs-tool.cs-mini { padding: 12px 16px; margin-top: 4px; box-shadow: 0 1px 0 var(--line); }
.cs-tool.cs-mini .cs-ti { transform: scale(.85); }
/* exam: continue on a computer (clear steps, one line each) */
.ho-lead { white-space: nowrap; }
.ho-way { margin: 0 0 12px; padding: 14px 14px 14px; border-radius: 18px; background: #f6f9ff; box-shadow: inset 0 0 0 1px #dbe7fb; text-align: left; }
.ho-wh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.ho-wh i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gradS); color: #fff; font: 800 12px var(--font); font-style: normal; }
.ho-way .ho-steps { margin: 0 0 10px; padding-left: 20px; max-width: none; font-size: 13px; line-height: 1.75; }
.ho-way .ho-steps li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-way .ho-acts { grid-template-columns: 1.15fr 1fr; }
.ho-way .ho-send { height: 48px; border-radius: 14px; font-size: 15px; }
.ho-way .ho-send svg { width: 18px; height: 18px; }
.ho-way .ho-code { text-align: center; font-size: 30px; padding: 4px 0 2px; }
.ho-exp { white-space: nowrap; margin: 0 0 4px; font-size: 12.5px; }
.ho-note { margin: 4px 0 0; white-space: nowrap; font-size: 12px; }
.er-pccard { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 0; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--bd); box-shadow: 0 6px 18px rgba(37,99,235,.08); text-align: left; cursor: pointer; }
.er-pccard .ho-ic { width: 42px; height: 42px; margin: 0; border-radius: 14px; flex: none; } .er-pccard .ho-ic svg { width: 22px; height: 22px; }
.er-pccard .pc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.er-pccard .pc-t b { font-size: 14.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-pccard .pc-t small { font-size: 12.5px; color: var(--b2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-pccard .pc-go { width: 20px; height: 20px; color: var(--b3); flex: none; }
.emv-1 { white-space: nowrap; }

/* Pre-Order sales closed from the Hub */
.po-off > :not(.po-offb) { opacity: .5; filter: grayscale(.7); }
.po-off:active, .gi.po-off:active .tile { transform: none; background: none; }
.po-offb { font-style: normal; white-space: nowrap; font-size: 12px; font-weight: 700; color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 3px 9px; margin-left: auto; flex: none; }
.po-offb[hidden] { display: none; }
.gi.po-off { position: relative; }
.gi > .po-offb { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 10.5px; padding: 2px 8px; color: #fff; background: #ef4444; box-shadow: 0 4px 10px -3px rgba(239,68,68,.6); z-index: 2; }
li.po-off > b { display: none; }

#toast.t2 { font-weight: 700; text-align: center; }
#toast.t2 small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; opacity: .85; white-space: nowrap; }

.promo[hidden] { display: none; }
.rc-empty { margin: 14px 0 0; padding: 22px 14px; border: 1px dashed #cfe0f5; border-radius: 16px; text-align: center; color: #7a8aa0; font-size: 14px; }
.cs-lock span { white-space: nowrap; font-size: clamp(9.5px, 3.1vw, 15px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cs-sub1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(10px, 3.5vw, 15px); }
.dots[hidden] { display: none; }
.recent li small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent li > div { min-width: 0; flex: 1; }
#slides .slide p { font-size: clamp(9.5px, 3.05vw, 12px); }
/* ---------- ตัดคลิปเล่าเรื่อง (CapCut-style editor, dark) ---------- */
.sx { --sb: #0b0d12; --sp: #141821; --sl: #232838; --sm: #9aa3b5; --sa: #2f7bff; background: var(--sb); color: #e8ebf2; height: 100vh; height: 100dvh; min-height: 0 !important; display: flex; flex-direction: column; overflow: hidden; -webkit-user-select: none; user-select: none; }
.sx[hidden] { display: none !important; }
.sx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx-top { flex: none; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); }
.sx-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #e8ebf2; cursor: pointer; }
.sx-ic:active { background: #1d2230; }
.sx-ic:disabled { opacity: .3; cursor: default; }
.sx-ic.sm { width: 34px; height: 34px; }
.sx-ic.sm svg { width: 18px; height: 18px; }
.sx-ttl { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-ur { display: flex; gap: 2px; }
.sx-exp { flex: none; height: 36px; margin-left: 6px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sa); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sx-exp:disabled { background: #222838; color: #6b7386; }
@media (max-width: 360px) { .sx-top { padding: 0 8px; gap: 2px; } .sx-ttl { font-size: 15px; } .sx-ur { gap: 0; } .sx-exp { margin-left: 4px; padding: 0 12px; } .sx-top > .sx-ic:first-child { width: 34px; } }
.sx-pick { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 8px 16px 28px; }
.sx-pcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 20px 22px; border: 1px solid #222837; border-radius: 22px; background: var(--sp); text-align: center; }
.sx-pi { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, #2f7bff, #8b5cf6); color: #fff; margin-bottom: 4px; }
.sx-pi svg { width: 30px; height: 30px; }
.sx-pcard b { font-size: 18px; }
.sx-pcard small { color: var(--sm); font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.sx-pcard small:not(:last-of-type) { margin-bottom: 0; }
.sx-pcard .sx-btn { width: 100%; }
.sx-how { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sx-how li { display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 7px; border-radius: 99px; background: #141821; color: #c9cfdc; font-size: 12.5px; white-space: nowrap; }
.sx-how i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #232a3b; font-style: normal; font-size: 11px; font-weight: 700; }
.sx-work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sx-stage { flex: 1; min-height: 160px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 4px 16px; }
.sx-stage canvas { flex: none; width: 180px; height: 320px; border-radius: 14px; background: #000; box-shadow: 0 8px 30px rgba(0,0,0,.45); cursor: pointer; }
.sx-bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; padding: 0 12px 0 16px; }
.sx-time { font-size: 13px; color: #c9cfdc; font-variant-numeric: tabular-nums; }
.sx-play { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #0b0d12; cursor: pointer; }
.sx-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.sx-play .pa, .sx-play.on .pl { display: none; }
.sx-play.on .pa { display: block; }
.sx-zm { justify-self: end; display: flex; gap: 2px; }
.sx-tlw { flex: none; position: relative; height: 252px; border-top: 1px solid #161a24; background: #0d1016; }
.sx-tl { height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sx-tl::-webkit-scrollbar { display: none; }
.sx-in { position: relative; height: 100%; box-sizing: border-box; }
.sx-ruler { position: absolute; left: 0; right: 0; top: 6px; height: 16px; }
.sx-ruler span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10px; color: #6b7386; font-variant-numeric: tabular-nums; }
.sx-trk { position: absolute; left: 0; right: 0; }
.sx-v { top: 26px; height: 58px; }
.sx-g { top: 90px; height: 24px; }
.sx-h { top: 120px; height: 42px; }
.sx-t { top: 168px; height: 26px; }
.sx-m { top: 200px; height: 20px; }
.sx-c { position: absolute; top: 0; height: 58px; border-radius: 8px; overflow: hidden; background: #1d2230; cursor: pointer; }
.sx-c .th { display: flex; height: 100%; pointer-events: none; }
.sx-c .th i { flex: none; width: 30px; height: 100%; background: #232a3b center / cover no-repeat; }
.sx-c em { position: absolute; top: 4px; right: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; pointer-events: none; }
.sx-c.sel, .sx-x.sel { overflow: visible; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.sx-c.sel .th { border-radius: 8px; overflow: hidden; }
.sx-c .hl, .sx-c .hr, .sx-x .hl, .sx-x .hr { position: absolute; top: -2px; bottom: -2px; width: 16px; background: #fff; touch-action: none; cursor: ew-resize; }
.sx-c .hl, .sx-x .hl { left: -14px; border-radius: 6px 0 0 6px; }
.sx-c .hr, .sx-x .hr { right: -14px; border-radius: 0 6px 6px 0; }
.sx-c .hl::after, .sx-c .hr::after, .sx-x .hl::after, .sx-x .hr::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 14px; margin-top: -7px; border-left: 1.5px solid #0b0d12; border-right: 1.5px solid #0b0d12; box-sizing: border-box; }
.sx-x { position: absolute; top: 0; height: 26px; display: flex; align-items: center; padding: 0 8px; box-sizing: border-box; border: 1px solid #f5a524; border-radius: 6px; background: rgba(245,165,36,.16); color: #ffd27a; font-size: 12px; font-weight: 600; cursor: pointer; }
.sx-x span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.sx-x.sel { background: #f5a524; color: #1a1100; }
.sx-mu { position: absolute; top: 0; height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 8px; box-sizing: border-box; border: 1px solid #22c55e; border-radius: 6px; background: rgba(34,197,94,.16); color: #86efac; font-size: 11px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.sx-mu svg { width: 12px; height: 12px; flex: none; }
.sx-add { position: absolute; top: 0; height: 100%; padding: 0 10px; border: 1px dashed #3a4256; border-radius: 6px; background: transparent; color: #9aa3b5; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.sx-ph { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none; z-index: 3; }
.sx-ph::before { content: ""; position: absolute; top: -2px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.sx-tools { flex: none; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #161a24; background: #0f1218; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.sx-tools::-webkit-scrollbar { display: none; }
.sx-tool { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-radius: 12px; background: none; color: #dfe3ec; font: inherit; cursor: pointer; scroll-snap-align: start; }
.sx-tool span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #1a1f2b; transition: transform .12s; }
.sx-tool:active span { transform: scale(.92); }
.sx-tool svg { width: 20px; height: 20px; }
.sx-tool small { font-size: 11.5px; line-height: 1.25; text-align: center; color: #c9cfdc; white-space: nowrap; }
.sx-tool.ai span { background: linear-gradient(135deg, #2f7bff, #8b5cf6); color: #fff; }
.sx-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); }
.sx-sheet[hidden] { display: none; }
.sx-shb { width: 100%; max-width: 560px; max-height: 80vh; max-height: 80dvh; overflow-y: auto; box-sizing: border-box; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #141821; color: #e8ebf2; animation: sxUp .22s ease both; }
@keyframes sxUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sx-grab { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #3a4256; }
.sx-shh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sx-shh b { font-size: 17px; }
.sx-done { height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sa); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sx-cls { flex: none; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #1d2230; color: #c9cfdc; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.sx-shb textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #2a3142; border-radius: 14px; background: #0b0d12; color: #fff; font: inherit; font-size: 18px; font-weight: 700; resize: none; outline: none; -webkit-user-select: text; user-select: text; }
.sx-shb textarea:focus { border-color: var(--sa); }
.sx-lab { display: flex; justify-content: space-between; margin: 16px 0 8px; font-size: 12.5px; color: var(--sm); }
.sx-lab em { font-style: normal; color: #e8ebf2; font-variant-numeric: tabular-nums; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chips button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #2a3142; border-radius: 18px; background: #1d2230; color: #dfe3ec; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.sx-chips button.on { border-color: var(--sa); background: rgba(47,123,255,.18); color: #fff; }
.sx-chips button i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.sx-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sx-looks button { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: #c9cfdc; font: inherit; font-size: 12.5px; cursor: pointer; }
.sx-looks i { display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(160deg, #7a8899, #c7b39a 55%, #4b5563); }
.sx-looks .lk-warm { filter: sepia(.35) saturate(1.3); } .sx-looks .lk-bright { filter: saturate(1.5) brightness(1.1); } .sx-looks .lk-soft { filter: contrast(.85) brightness(1.08); } .sx-looks .lk-cool { filter: hue-rotate(-25deg) saturate(1.1); } .sx-looks .lk-mono { filter: grayscale(1); }
.sx-looks button.on i { box-shadow: 0 0 0 2px var(--sa); }
.sx-looks button.on { color: #fff; }
.sx-shb input[type=range] { width: 100%; accent-color: var(--sa); }
.sx-sw { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.sx-sw input { width: 20px; height: 20px; accent-color: var(--sa); }
.sx-btn { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 18px; box-sizing: border-box; border: 1px solid #2a3142; border-radius: 14px; background: #1d2230; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.sx-btn.pri { border: 0; background: var(--sa); }
.sx-btn.wide { width: 100%; margin-top: 20px; }
.sx-hint { margin: 2px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--sm); }
.sx-warn { margin: 14px 0 0; font-size: 12.5px; color: #fbbf24; }
.sx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sx-res { display: block; width: 100%; max-height: 52vh; max-height: 52dvh; border-radius: 14px; background: #000; }
.sx-busy { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,7,10,.72); }
.sx-busy[hidden] { display: none; }
.sx-bb { width: min(320px, 100%); box-sizing: border-box; padding: 22px 20px; border-radius: 18px; background: #141821; color: #e8ebf2; text-align: center; display: grid; gap: 6px; }
.sx-bb b { font-size: 16px; }
.sx-bb small { font-size: 12.5px; color: var(--sm); }
.sx-pr { height: 6px; margin: 10px 0 4px; border-radius: 6px; background: #232838; overflow: hidden; }
.sx-pr i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--sa); transition: width .25s; }
.sx-pr.ind i { width: 40% !important; animation: sxInd 1.1s ease-in-out infinite; }
@keyframes sxInd { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sx-bb .sx-btn { margin-top: 8px; height: 42px; }
.sx-vid { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
@media (min-width: 700px) { .sx-tools { justify-content: center; } }
body:has(.sx:not([hidden])) .toast { bottom: auto; top: calc(68px + env(safe-area-inset-top)); background: rgba(20,24,33,.94); border: 1px solid #2a3142; }

.sx-g .sx-x { height: 24px; gap: 6px; padding: 0 8px 0 3px; border-color: #a78bfa; background: rgba(167,139,250,.16); color: #d8ccff; }
.sx-g .sx-x i { flex: none; width: 18px; height: 18px; border-radius: 4px; background: #2a2f3d center / cover no-repeat; pointer-events: none; }
.sx-g .sx-x.sel { background: #a78bfa; color: #160f2b; }
.sx-file { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 6px; cursor: pointer; }
.sx-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; padding-bottom: 4px; }
.sx-pics button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid #262c3a; border-radius: 12px; background: #141821; color: #c9cfdc; font: inherit; font-size: 11.5px; cursor: pointer; min-width: 0; }
.sx-pics img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#1e2330 0 25%, #171b25 0 50%) 0 0 / 14px 14px; }
.sx-pics span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ตัดคลิปเล่าเรื่อง : live panels keep the picture visible above, tabs, styles, colours */
.sx-work.live { padding-bottom: var(--shh, 0px); }
.sx-work.live .sx-bar, .sx-work.live .sx-tlw, .sx-work.live .sx-tools { display: none; }
.sx-work.live .sx-stage { padding-top: 8px; padding-bottom: 8px; }
.sx-sheet.live { background: transparent; pointer-events: none; }
.sx-sheet.live .sx-shb { pointer-events: auto; max-height: 52vh; max-height: 52dvh; box-shadow: 0 -10px 30px rgba(0,0,0,.45); }
.sx-tabs { display: flex; gap: 6px; margin: 2px -18px 0; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #222838; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tabs button { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: transparent; color: #9aa3b5; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sx-tabs button.on { background: #262d3d; color: #fff; }
.sx-tabc { padding-top: 6px; min-height: 150px; }
.sx-tabc > .sx-hint:first-of-type { margin-top: 8px; }
.sx-tst { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; padding-top: 10px; }
.sx-tst button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 4px 8px; border: 1px solid #262c3a; border-radius: 12px; background: #0f1218; color: #c9cfdc; font: inherit; font-size: 11.5px; cursor: pointer; }
.sx-tst button.on { border-color: var(--sa); background: rgba(47,123,255,.14); color: #fff; }
.sx-tst b { display: block; font-size: 22px; line-height: 1.25; font-weight: 800; white-space: nowrap; }
.sx-tst span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tst.sm { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 0; }
.sx-sws { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.sx-sws::-webkit-scrollbar { display: none; }
.sx-sws > * { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); cursor: pointer; }
.sx-sws > .on { box-shadow: 0 0 0 2px #141821, 0 0 0 4px #fff; }
.sx-swc { background: conic-gradient(#ff3b3b, #ffe14d, #c6ff00, #4de1ff, #2f7bff, #ff5fa2, #ff3b3b) !important; }
.sx-swc.on { background: var(--c) !important; }
.sx-swc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sx-btn.sm { height: 42px; font-size: 14px; margin-top: 16px; }
.sx-chips button span { white-space: nowrap; }
.sx-sheet.live .sx-shh { position: sticky; top: -8px; z-index: 2; margin-top: -8px; padding-top: 8px; background: #141821; }
.sx-ph { pointer-events: auto; cursor: ew-resize; touch-action: none; }
.sx-ph::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -14px; width: 30px; }
.sx-tl { cursor: grab; }
.sx-size { display: flex; align-items: center; gap: 10px; padding: 12px 0 2px; }
.sx-size span { flex: none; font-size: 13px; color: var(--sm); }
.sx-size button { flex: none; width: 34px; height: 34px; border: 1px solid #2a3142; border-radius: 10px; background: #1d2230; color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.sx-size input { flex: 1; min-width: 0; accent-color: var(--sa); }
.sx-size em { flex: none; width: 34px; text-align: right; font-style: normal; font-size: 13px; color: #e8ebf2; font-variant-numeric: tabular-nums; }
.sx-x.sel { touch-action: none; cursor: grab; }
.sx-stage { position: relative; }
.sx-ask { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px 6px 6px 12px; border: 1px solid #2a3142; border-radius: 14px; background: rgba(15,18,24,.94); box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; }
.sx-ask[hidden] { display: none; }
.sx-ask span { font-size: 12.5px; color: #c9cfdc; }
.sx-ask button { flex: none; height: 32px; padding: 0 10px; border: 1px solid #2a3142; border-radius: 10px; background: #1d2230; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sx-ask button.pri { border: 0; background: var(--sa); }
@media (max-width: 360px) { .sx-ask span { display: none; } .sx-ask { padding-left: 6px; } }
.sx-ptabs { margin-top: 14px; border-bottom: 0; padding-bottom: 0; }
.sx-ptabs button { flex: 1; }
.sx-pics.stk { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.sx-pics.stk button { padding: 6px; }
.sx-ptabs + .sx-hint { margin: 10px 0 10px; }
/* ตัดคลิปเล่าเรื่อง : computer layout like CapCut desktop */
.sx-side { display: none; }
@media (min-width: 1000px) {
  body.sx-desk { background: #0b0d12; }
  body.sx-desk .app { max-width: none; box-shadow: none; }
  body.sx-desk .sx { display: grid; grid-template-columns: 384px minmax(0, 1fr) 380px; grid-template-rows: 56px minmax(0, 1fr) 52px 344px; grid-template-areas: "top top top" "left stage side" "left bar side" "tl tl tl"; }
  body.sx-desk .sx-top { grid-area: top; border-bottom: 1px solid #1a1f2b; padding: 0 18px; }
  body.sx-desk .sx-ttl { font-size: 17px; }
  body.sx-desk .sx-pick { grid-area: 2 / 1 / 5 / 4; }
  body.sx-desk .sx-work { display: contents; }
  body.sx-desk .sx-work[hidden] { display: none; }
  body.sx-desk .sx-stage { grid-area: stage; min-height: 0; padding: 14px; background: #08090d; }
  body.sx-desk .sx-bar { grid-area: bar; display: grid; background: #08090d; border-top: 1px solid #161a24; }
  body.sx-desk .sx-tlw { grid-area: tl; display: block; height: auto; border-top: 1px solid #1f2430; }
  body.sx-desk .sx-tools { grid-area: left; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 16px; overflow-y: auto; border-top: 0; border-right: 1px solid #1a1f2b; -webkit-mask-image: none; mask-image: none; }
  body.sx-desk .sx-tools::before { content: "เครื่องมือ"; grid-column: 1 / -1; font-size: 13px; color: var(--sm); padding: 0 2px 2px; }
  body.sx-desk .sx-tool { width: auto; padding: 14px 4px 12px; background: #141821; border: 1px solid #1d2230; }
  body.sx-desk .sx-tool:hover { border-color: #2f3a52; background: #182030; }
  body.sx-desk .sx-tool small { white-space: normal; }
  body.sx-desk .sx-sheet, body.sx-desk .sx-sheet.live { grid-area: side; position: static; inset: auto; z-index: 1; display: block; padding: 12px; background: #0f1218; border-left: 1px solid #1a1f2b; pointer-events: auto; min-height: 0; }
  body.sx-desk .sx-sheet[hidden] { display: none; }
  body.sx-desk .sx-shb, body.sx-desk .sx-sheet.live .sx-shb { max-width: none; max-height: none; height: 100%; border-radius: 14px; border: 1px solid #1d2230; box-shadow: none; animation: none; padding-bottom: 20px; }
  body.sx-desk .sx-grab { display: none; }
  body.sx-desk .sx-side { grid-area: side; display: block; padding: 22px 20px; background: #0f1218; border-left: 1px solid #1a1f2b; color: var(--sm); font-size: 13.5px; line-height: 1.6; }
  body.sx-desk .sx-side b { display: block; margin-bottom: 12px; color: #e8ebf2; font-size: 15px; }
  body.sx-desk .sx-side p { margin: 0 0 6px; }
  body.sx-desk .sx-sheet:not([hidden]) ~ .sx-side, body.sx-desk .sx-work[hidden] ~ .sx-side { display: none; }
  body.sx-desk .sx-work.live .sx-bar { display: grid; } body.sx-desk .sx-work.live .sx-tlw { display: block; } body.sx-desk .sx-work.live .sx-tools { display: grid; }
  body.sx-desk .sx-work.live .sx-stage { padding: 14px; }
  body.sx-desk .sx-v { height: 70px; } body.sx-desk .sx-g { top: 104px; } body.sx-desk .sx-h { top: 136px; height: 48px; } body.sx-desk .sx-t { top: 190px; } body.sx-desk .sx-m { top: 224px; } body.sx-desk .sx-s { top: 258px; }
}

/* ตัดคลิปเล่าเรื่อง : home like CapCut (new video / record, quick tools, projects) */
.sx-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.sx-new { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 148px; padding: 18px 10px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #3b82f6, #7c3aed); color: #fff; font: inherit; cursor: pointer; text-align: center; box-shadow: 0 10px 28px rgba(59,130,246,.25); }
.sx-new.sx-cam { background: linear-gradient(135deg, #1f2a44, #2a2140); box-shadow: none; border: 1px solid #2a3142; }
.sx-new i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.2); }
.sx-new i svg { width: 26px; height: 26px; }
.sx-new b { font-size: 17px; white-space: nowrap; }
.sx-new small { font-size: 12px; opacity: .8; white-space: nowrap; }
.sx-qt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.sx-qt button { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: none; color: #dfe3ec; font: inherit; cursor: pointer; }
.sx-qt span { width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 16px; background: #141821; border: 1px solid #1d2230; }
.sx-qt button:active span { background: #1c2333; }
.sx-qt svg { width: 26px; height: 26px; }
.sx-qt small { font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sx-phd { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.sx-phd b { font-size: 18px; }
.sx-phd small { color: var(--sm); font-size: 12.5px; }
.sx-projs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
.sx-proj { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.sx-proj .th { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; background: #141821 center / cover no-repeat; border: 1px solid #1d2230; }
.sx-proj .th em { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.6); font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.sx-proj b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-proj small { color: var(--sm); font-size: 11.5px; }
.sx-proj .del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.sx-proj .del svg { width: 16px; height: 16px; }
.sx-proj .del.arm { background: #e11d48; }
.sx-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 10px 10px; color: var(--sm); text-align: center; }
.sx-empty svg { width: 56px; height: 56px; margin-bottom: 10px; opacity: .7; }
.sx-empty p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (min-width: 1000px) { body.sx-desk .sx-pick { padding: 24px max(24px, calc(50% - 400px)) 40px; } body.sx-desk .sx-qt { grid-template-columns: repeat(8, minmax(0, 1fr)); } body.sx-desk .sx-new { min-height: 180px; } }

/* timeline: clip track fills its row; "+ add" rows are long bars like CapCut */
.sx-c { height: 100%; }
.sx-add { border: 0; border-radius: 8px; background: #161a22; text-align: left; padding: 0 12px; color: #9aa3b5; }
.sx-add:hover { background: #1b2030; color: #dfe3ec; }
.sx-zm { align-items: center; }
.sx-zm .sx-ic { width: 36px; height: 36px; }
@media (pointer: coarse) { #sxZo, #sxZi { display: none; } }
.sx-ars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sx-ars button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 4px 10px; border: 1px solid #262c3a; border-radius: 12px; background: #0f1218; color: #c9cfdc; font: inherit; cursor: pointer; }
.sx-ars button.on { border-color: var(--sa); background: rgba(47,123,255,.14); color: #fff; }
.sx-ars i { display: block; border: 2px solid currentColor; border-radius: 4px; margin: 4px 0; }
.sx-ars b { font-size: 14px; } .sx-ars small { font-size: 11px; color: var(--sm); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* computer: scale the whole editor with the screen so it never looks tiny */
@media (min-width: 1000px) {
  body.sx-desk .sx { font-size: clamp(14px, .95vw, 17px); grid-template-columns: clamp(384px, 27vw, 500px) minmax(0, 1fr) clamp(360px, 24vw, 480px); grid-template-rows: clamp(56px, 3.6vw, 68px) minmax(0, 1fr) clamp(56px, 3.4vw, 66px) clamp(276px, 32vh, 356px); }
  body.sx-desk .sx-top .sx-ic { width: 44px; height: 44px; }
  body.sx-desk .sx-ttl { font-size: clamp(17px, 1.15vw, 21px); }
  body.sx-desk .sx-exp { height: clamp(38px, 2.4vw, 46px); padding: 0 clamp(18px, 1.4vw, 26px); font-size: clamp(14px, .95vw, 17px); border-radius: 12px; }
  body.sx-desk .sx-tools { gap: clamp(10px, .8vw, 14px); padding: clamp(16px, 1.2vw, 22px); }
  body.sx-desk .sx-tools::before { font-size: clamp(13px, .85vw, 15px); }
  body.sx-desk .sx-tool { gap: 10px; padding: clamp(16px, 1.3vw, 24px) 6px clamp(14px, 1.1vw, 20px); border-radius: 14px; }
  body.sx-desk .sx-tool span { width: clamp(44px, 3vw, 56px); height: clamp(44px, 3vw, 56px); border-radius: 14px; }
  body.sx-desk .sx-tool svg { width: clamp(22px, 1.4vw, 28px); height: clamp(22px, 1.4vw, 28px); }
  body.sx-desk .sx-tool small { font-size: clamp(12.5px, .85vw, 15px); }
  body.sx-desk .sx-time { font-size: clamp(13px, .9vw, 16px); }
  body.sx-desk .sx-play { width: clamp(44px, 3vw, 54px); height: clamp(44px, 3vw, 54px); }
  body.sx-desk .sx-side { font-size: clamp(14px, .9vw, 16px); padding: clamp(22px, 1.6vw, 30px); }
  body.sx-desk .sx-side b { font-size: clamp(16px, 1.05vw, 19px); }
  body.sx-desk .sx-shb { padding: clamp(14px, 1.1vw, 22px) clamp(18px, 1.3vw, 26px) 24px; }
  body.sx-desk .sx-shh b { font-size: clamp(17px, 1.1vw, 20px); }
  body.sx-desk .sx-chips button, body.sx-desk .sx-tabs button { height: clamp(36px, 2.3vw, 42px); font-size: clamp(13.5px, .9vw, 15.5px); }
  body.sx-desk .sx-lab, body.sx-desk .sx-hint { font-size: clamp(13px, .85vw, 15px); }
  body.sx-desk .sx-ruler span { font-size: clamp(11px, .7vw, 13px); }
  body.sx-desk .sx-v { top: 30px; height: clamp(70px, 9vh, 92px); }
  body.sx-desk .sx-g { top: calc(38px + clamp(70px, 9vh, 92px)); height: 30px; }
  body.sx-desk .sx-h { top: calc(76px + clamp(70px, 9vh, 92px)); height: 54px; }
  body.sx-desk .sx-t { top: calc(138px + clamp(70px, 9vh, 92px)); height: 34px; }
  body.sx-desk .sx-m { top: calc(180px + clamp(70px, 9vh, 92px)); height: 28px; }
  body.sx-desk .sx-s { top: calc(214px + clamp(70px, 9vh, 92px)); height: 26px; } body.sx-desk .sx-s .sx-x { height: 26px; font-size: 13px; }
  body.sx-desk .sx-g .sx-x { height: 30px; } body.sx-desk .sx-t .sx-x { height: 34px; font-size: 13.5px; } body.sx-desk .sx-h .sx-x { height: 100%; font-size: 13.5px; } body.sx-desk .sx-mu { height: 28px; font-size: 13px; }
  body.sx-desk .sx-add { font-size: 13.5px; }
  body.sx-desk .sx-c .th i { width: 36px; }
}
.sx-zm .dk { display: none; }
@media (min-width: 1000px) { body.sx-desk .sx-zm .dk { display: grid; } body.sx-desk .sx-ph { margin-left: -1px; } }
@media (min-width: 1000px) { body.sx-desk .sx-ars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-tpl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .sx-tpl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-tpl button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #1d2230; border-radius: 16px; background: #141821; color: #e8ebf2; font: inherit; text-align: left; cursor: pointer; }
.sx-tpl button:active { background: #1c2333; }
.sx-tpl span { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #0ea5e9, #22c55e); color: #fff; }
.sx-tpl button + button span { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sx-tpl div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-tpl b { font-size: 14px; white-space: nowrap; }
.sx-tpl small { font-size: 11.5px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx.home .sx-exp, .sx.home #sxUndo, .sx.home #sxRedo { display: none; }
.sx-tpl b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .sx-qt small { font-size: 11.5px; } }

/* exam eligibility card + round closing line */
.st-elig{display:flex;align-items:center;gap:12px;padding:14px 16px}
.st-elig .el-ic{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#fff7ed;color:#c2410c}
.st-elig.ok .el-ic{background:#ecfdf5;color:#047857}
.st-elig .el-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.st-elig .el-tx{min-width:0;display:flex;flex-direction:column;gap:2px}
.st-elig .el-tx b{font-size:15px;color:#c2410c}
.st-elig.ok .el-tx b{color:#047857}
.st-elig .el-tx small{font-size:13px;color:#475569;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-elig .el-m{color:#64748b;font-size:12px}
.rc .rc-t .rc-cl{display:block;margin-top:2px;font-size:11px;color:#b45309;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* text sheet: lines as shown on screen (delete one / join) */
.sx-lines { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sx-lnh { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--sm); }
.sx-lnh button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid #2a3142; background: #151a24; color: #fff; cursor: pointer; white-space: nowrap; }
.sx-ln { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #151a24; min-width: 0; }
.sx-ln span { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-ln button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* sound effects (Sound) */
.sx-s { top: 226px; height: 20px; }
.sx-s .sx-x { height: 20px; gap: 4px; padding: 0 6px; border-color: #a78bfa; background: rgba(167,139,250,.18); color: #ddd6fe; font-size: 11px; }
.sx-s .sx-x svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sx-s .sx-x.sel { background: #a78bfa; color: #1b1035; }
.sx-sfl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.sx-sfl button { display: flex; align-items: center; gap: 8px; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #2a3142; border-radius: 12px; background: #151a24; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sx-sfl button span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sfl button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #a78bfa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-sfl button.on { border-color: #a78bfa; background: rgba(167,139,250,.18); }
.sx-sfa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.sx-sfa .sx-btn { margin: 0; font-size: 14px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-sfl button { position: relative; }
.sx-sfl .sx-sfdel { flex: none; margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; font-style: normal; font-size: 16px; line-height: 24px; text-align: center; }
.sx-sfl .sx-sfup { justify-content: center; border-style: dashed; color: #c4b5fd; }
.sx-mup { display: flex; gap: 8px; margin: 12px 0 4px; } .sx-mup .sx-btn { flex: 1; height: 44px; margin: 0; font-size: 14px; white-space: nowrap; } .sx-mup .sx-btn[hidden] { display: none; }
/* music & sound lists: categories, ▶ listen, เลือก to use */
.sx-trl { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 8px; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; }
.sx-trw { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 6px; border: 1px solid #222838; border-radius: 14px; background: #121620; }
.sx-trw.on { border-color: var(--sa); background: rgba(59,130,246,.12); }
.sx-trw > span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-trw .pl { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #1f2534; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sx-trw .pl svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sx-trw .pl .i-st, .sx-trw.pv .pl .i-pl { display: none; }
.sx-trw.pv .pl .i-st { display: block; }
.sx-trw.pv .pl { background: #a78bfa; color: #1b1035; animation: sxPv 1.2s ease-in-out infinite; }
@keyframes sxPv { 50% { box-shadow: 0 0 0 6px rgba(167,139,250,.18); } }
.sx-trw .ck { flex: none; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid #2f3648; border-radius: 99px; background: transparent; color: #cbd2e1; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sx-trw.on .ck { border: 0; background: var(--sa); color: #fff; }
.sx-trw .ck svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-trw .dl { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #f87171; font-size: 20px; line-height: 1; cursor: pointer; }
.sx-trup { height: 46px; border: 1px dashed #3a4256; border-radius: 14px; background: transparent; color: #c4b5fd; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sx-mucur { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; font-size: 13.5px; color: var(--sm); }
.sx-mucur span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-mucur b { color: #fff; }
.sx-mucur button { flex: none; height: 32px; padding: 0 12px; border: 1px solid #2f3648; border-radius: 99px; background: transparent; color: #f87171; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sx-mucur button[hidden] { display: none; }
.sx-tabs { scrollbar-width: none; } .sx-tabs::-webkit-scrollbar { display: none; }

/* login: no account popup */
.na-bd { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); animation: naIn .18s ease; }
.na-bd[hidden] { display: none; }
.na-box { width: 100%; max-width: 340px; box-sizing: border-box; padding: 26px 22px 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.25); animation: naUp .22s cubic-bezier(.2,.9,.3,1.2); }
.na-ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: #eff6ff; color: #1d4ed8; }
.na-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.na-box h3 { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.na-box p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: #475569; }
.na-box .btn { width: 100%; }
.na-x { margin-top: 10px; width: 100%; height: 42px; border: 0; background: transparent; color: #64748b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@keyframes naIn { from { opacity: 0; } } @keyframes naUp { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* e-learning: X-VISOR / X-LEAD courses */
.el-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 14px; border-radius: 16px; background: #eef2f7; }
.el-tabs[hidden] { display: none; }
.el-tabs button { height: 42px; border: 0; border-radius: 12px; background: transparent; color: #475569; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.el-tabs button[aria-pressed="true"] { background: #fff; color: #0f172a; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.el-tabs button[data-c="xlead"][aria-pressed="true"] { color: #a16207; }
.el-tag.gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #5b3a00; }

/* performance: static film grain (animating the SVG noise layer repainted whole cards every frame) + pause decorative loops off screen */
.fx-off, .fx-off *, .fx-off::before, .fx-off::after, .fx-off *::before, .fx-off *::after { animation-play-state: paused !important; }
.tools-busy { position: fixed; left: 50%; top: 50%; z-index: 95; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 16px; background: rgba(15,23,42,.88); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tools-busy[hidden] { display: none; }
.tools-busy i { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: tbSpin .8s linear infinite; }
@keyframes tbSpin { to { transform: rotate(360deg); } }
/* transition markers between clips on the timeline */
.sx-trm { position: absolute; top: 50%; z-index: 3; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 1.5px solid #3a4256; border-radius: 7px; background: #11151d; color: #6b7386; display: grid; place-items: center; cursor: pointer; transform: rotate(45deg); }
.sx-trm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform: rotate(-45deg); }
.sx-trm.on { border-color: #f5a524; background: #2a1f08; color: #ffd27a; }

/* transition sheet: preview tiles */
.sx-trh { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; font-size: 13px; color: var(--sm); }
.sx-trh b { padding: 3px 10px; border-radius: 99px; background: #1b2130; color: #ffd27a; font-size: 12px; }
.sx-trg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 8px; }
.sx-trg button { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border: 0; background: none; color: #cbd2e1; font: inherit; cursor: pointer; min-width: 0; }
.sx-trg button b { font-size: 12.5px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-trg button.on b { color: #fff; }
.sx-trg .tp { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 2px solid #232a3a; background: linear-gradient(135deg, #3b4a6b, #1d2433 60%, #6b3b52); }
.sx-trg button.on .tp { border-color: #f5a524; box-shadow: 0 0 0 3px rgba(245,165,36,.18); }
.sx-trg button.on .tp::after { content: ""; position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #f5a524 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1100' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 12px no-repeat; z-index: 3; }
.sx-trg .tp i { position: absolute; display: block; }
.tp-none, .tp-auto { background: #151a24 !important; }
.tp-none i:first-child { inset: 30%; border: 3px solid #4b5468; border-radius: 50%; }
.tp-none i:nth-child(2) { left: 28%; right: 28%; top: 48%; height: 3px; background: #4b5468; transform: rotate(-45deg); }
.tp-auto i:first-child { inset: 32% 22%; border: 2.5px dashed #6b7386; border-radius: 10px; }
.tp-flash i:first-child { inset: 0; background: #fff; animation: tpFlash 1.8s ease-in-out infinite; }
.tp-zoom i:first-child { inset: 18%; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); animation: tpZoom 1.6s ease-out infinite; }
.tp-zoom i:nth-child(2) { inset: 18%; border-radius: 50%; border: 3px solid rgba(255,255,255,.45); animation: tpZoom 1.6s .5s ease-out infinite; }
.tp-glitch i { left: 0; right: 0; height: 14%; mix-blend-mode: screen; animation: tpGlitch .9s steps(3) infinite; }
.tp-glitch i:first-child { top: 22%; background: #ff0050; } .tp-glitch i:nth-child(2) { top: 50%; background: #00f0ff; animation-delay: .3s; } .tp-glitch i:nth-child(3) { top: 70%; height: 8%; background: #fff; opacity: .7; animation-delay: .6s; }
.tp-leak i:first-child { inset: -40%; background: radial-gradient(circle at center, rgba(255,214,140,.95), rgba(255,120,60,.6) 30%, transparent 60%); mix-blend-mode: screen; animation: tpLeak 2.2s ease-in-out infinite; }
.tp-tear i:first-child { top: 0; bottom: 0; right: 0; width: 55%; background: #f4efe6; clip-path: polygon(14% 0, 100% 0, 100% 100%, 8% 100%, 18% 88%, 4% 76%, 16% 64%, 6% 52%, 18% 40%, 5% 28%, 16% 16%); box-shadow: -4px 0 8px rgba(0,0,0,.4); animation: tpTear 2s ease-in-out infinite; }
.tp-tear i:nth-child(2) { inset: 0; background: radial-gradient(circle, rgba(0,0,0,.35) 30%, transparent 32%) 0 0 / 7px 7px; }
.tp-mix i { width: 50%; height: 50%; }
.tp-mix i:first-child { left: 0; top: 0; background: #fff; opacity: .85; } .tp-mix i:nth-child(2) { right: 0; top: 0; background: linear-gradient(#ff0050 33%, #00f0ff 33% 66%, transparent 66%); opacity: .8; } .tp-mix i:nth-child(3) { left: 0; bottom: 0; background: radial-gradient(circle at 30% 30%, #ffd68c, #ff783c 50%, transparent 70%); }
@keyframes tpFlash { 0%, 55%, 100% { opacity: 0; } 70% { opacity: .95; } }
@keyframes tpZoom { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tpGlitch { 0% { transform: translateX(-18%); } 33% { transform: translateX(12%); } 66% { transform: translateX(-6%); } 100% { transform: translateX(0); } }
@keyframes tpLeak { 0% { transform: translateX(-55%); } 100% { transform: translateX(55%); } }
@keyframes tpTear { 0%, 15% { transform: translateX(100%); } 60%, 100% { transform: translateX(0); } }
.sx-trs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #151a24; cursor: pointer; }
.sx-trs span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sx-trs b { font-size: 14px; color: #fff; } .sx-trs small { font-size: 12px; color: var(--sm); }
.sx-trs input { position: absolute; opacity: 0; pointer-events: none; }
.sx-trs i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: #2f3648; transition: background .2s; }
.sx-trs i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sx-trs input:checked + i { background: #f5a524; } .sx-trs input:checked + i::after { transform: translateX(18px); }

/* sheet */
.sx-hlb { margin-top: 12px; padding: 12px; border-radius: 14px; background: #10141c; border: 1px solid #1d2230; }
.sx-hlh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sx-hlh span { font-size: 13px; font-weight: 700; color: #e8ebf2; white-space: nowrap; }
.sx-hlh small { font-size: 11.5px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-hla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sx-hla .sx-btn { white-space: nowrap; }
.sx-hla .sx-btn { margin-top: 0; }
.sx-chips[data-chip="f"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sx-chips[data-chip="f"] button { justify-content: center; min-width: 0; padding: 0 4px; font-size: 13px; }
.sx-chips[data-chip="f"] button span { overflow: hidden; text-overflow: clip; }
.sx-szr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 46px; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: #dfe3ec; }
.sx-szr span { white-space: nowrap; }
.sx-szr input { width: 100%; }
.sx-szr em { font-style: normal; text-align: right; color: var(--sm); font-variant-numeric: tabular-nums; }
.sx-h .sx-x { border-color: #38bdf8; background: rgba(56,189,248,.16); color: #bae6fd; }
.sx-h .sx-x.sel { background: rgba(56,189,248,.3); }
.sx-h .sx-x { height: 100%; }
.sx-h .sx-x span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.sx-h .sx-x.tiny { font-size: 10px; padding: 0 6px; }
body.sx-desk .sx-h .sx-x.tiny { font-size: 11px; }
.sx-hla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-hla .sx-btn { padding: 0 8px; font-size: 13.5px; min-width: 0; }
.sx-hlb, .sx-tabc { min-width: 0; max-width: 100%; box-sizing: border-box; }
.sx-szr { grid-template-columns: 72px minmax(0, 1fr) 44px; }
.sx-hlh small { min-width: 0; }
.sx-chips[data-chip="f"] button, body.sx-desk .sx-chips[data-chip="f"] button { font-size: 12px; padding: 0 2px; letter-spacing: -.2px; }
@media (min-width: 1600px) { body.sx-desk .sx-chips[data-chip="f"] button { font-size: 13.5px; } }

/* pay sheet */

/* ---------- AI credits (wallet.js) : CI white + blue gradient ---------- */
:root { --crg: linear-gradient(135deg, #0f1b4c 0%, #1d4ed8 48%, #00c0e8 100%); --crb: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #06b6d4); --crl: #e6edf9; }
.cr-chip { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 6px; border: 1px solid #dbe5f6; border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 10px rgba(29,78,216,.08); }
.cr-chip b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-chip span { color: var(--muted); font-size: 12px; }
.cr-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: #138a43; background: #e8f7ee; padding: 2px 7px; border-radius: 99px; margin-left: 2px; }
.cr-chip.dk { margin-right: 6px; border-color: #262c3b; background: #141821; color: #fff; box-shadow: none; }
.cr-chip.dk span { color: #9aa3b5; }
.cr-chip.dk em { background: rgba(58,175,74,.16); color: #6ee27f; }
.sx:not(.home) .sx-top .cr-chip { display: none; }
.cr-coin { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #7dd3fc, #2563eb 70%); color: #fff; box-shadow: inset 0 -2px 0 rgba(15,27,76,.25), 0 2px 6px rgba(37,99,235,.35); }
.cr-coin svg { width: 14px; height: 14px; stroke-width: 2.6; }
.cr-coin.lg { width: 40px; height: 40px; } .cr-coin.lg svg { width: 22px; height: 22px; }
.cr { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0 !important; background: radial-gradient(120% 50% at 50% -10%, #dbeafe 0%, rgba(219,234,254,0) 60%), #f4f7fd; color: var(--ink); overflow: hidden; }
.cr-top { flex: none; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); }
.cr-top .sx-ic { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,23,42,.06); cursor: pointer; }
.cr-top h2 { margin: 0 0 0 4px; font-size: 19px; font-weight: 800; }
.cr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.cr-body > * { flex: none; }
/* balance card */
.cr-bal { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.cr-bal b { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cr-bal span { font-size: 16px; font-weight: 600; opacity: .9; }
.cr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cr-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.85); border: 1px solid #e3eaf7; box-shadow: 0 6px 18px rgba(29,78,216,.06); backdrop-filter: blur(8px); min-width: 0; }
.cr-stats i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 4px; color: #fff; }
.cr-stats i svg { width: 16px; height: 16px; }
.cr-stats i.s1 { background: linear-gradient(135deg, #34d399, #3AAF4A); } .cr-stats i.s2 { background: linear-gradient(135deg, #7dd3fc, #0ea5e9); } .cr-stats i.s3 { background: var(--crb); }
.cr-stats small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cr-stats b { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-stats b span { font-size: 11px; font-weight: 600; color: var(--muted); }
.cr-trial, .cr-pend { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #ecfdf3; border: 1px solid #bbf0cf; }
.cr-trial > i, .cr-pend > i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #3AAF4A; color: #fff; }
.cr-trial > i svg, .cr-pend > i svg { width: 20px; height: 20px; }
.cr-trial b, .cr-pend b { display: block; font-size: 14px; color: #14532d; }
.cr-trial small, .cr-pend small { display: block; font-size: 12px; color: #4b6b57; margin-top: 1px; }
.cr-pend { background: #fff7ed; border-color: #fed7aa; } .cr-pend > i { background: #f59e0b; } .cr-pend b { color: #7c2d12; } .cr-pend small { color: #9a5b2e; }
.cr-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cr-sec b { font-size: 17px; color: var(--ink); }
.cr-sec small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cr-ti { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--crb); }
.cr-ti svg { width: 18px; height: 18px; }
.cr-ti.t-tts { background: linear-gradient(135deg, #818cf8, #4f46e5); } .cr-ti.t-cap { background: linear-gradient(135deg, #22d3ee, #0ea5e9); } .cr-ti.t-plan { background: linear-gradient(135deg, #60a5fa, #1e40af); } .cr-ti.t-vs { background: linear-gradient(135deg, #ff6b1a, #ffb347); }
.cr-ti.lg { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 10px 24px rgba(37,99,235,.28); } .cr-ti.lg svg { width: 28px; height: 28px; }
/* what 1 credit does: round icons */
.cr-what { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cr-what div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.cr-what .cr-ti { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(37,99,235,.2); margin-bottom: 2px; }
.cr-what .cr-ti svg { width: 22px; height: 22px; }
.cr-what b { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.cr-what small { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* packs */
.cr-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 10px; }
.cr-pk { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 10px 12px; border: 1.5px solid #e3eaf7; border-radius: 22px; background: radial-gradient(120% 70% at 50% 0%, #eef5ff, #fff 62%); color: var(--ink); font: inherit; cursor: pointer; text-align: center; box-shadow: 0 8px 22px rgba(29,78,216,.07); transition: transform .15s, box-shadow .2s; }
.cr-pk:active { transform: scale(.98); }
.cr-pk.on { border: 2px solid transparent; background: radial-gradient(120% 70% at 50% 0%, #e6f0ff, #fff 62%) padding-box, var(--crg) border-box; box-shadow: 0 14px 32px rgba(29,78,216,.22); }
.cr-pk em { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 11px; border-radius: 99px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; white-space: nowrap; box-shadow: 0 4px 10px rgba(249,115,22,.3); }
.cr-pk em.g { background: linear-gradient(135deg, #3AAF4A, #16a34a); box-shadow: 0 4px 10px rgba(58,175,74,.3); }
.cr-art { display: block; width: 100%; height: 58px; margin-bottom: 2px; }
.cr-art svg { width: 100%; height: 100%; overflow: visible; }
.cr-art .sp { transform-box: fill-box; transform-origin: center; animation: crTw 2.4s ease-in-out infinite; } .cr-art .s2 { animation-delay: -1.2s; }
@keyframes crTw { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.cr-pn { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; background: var(--crg); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cr-pk > small { font-size: 12px; color: var(--muted); }
.cr-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.cr-meta i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cr-meta .cr-save { padding: 2px 7px; border-radius: 99px; background: #e8f7ee; color: #138a43; font-weight: 700; }
.cr-meta .cr-save.z { background: #eef2f8; color: #64748b; font-weight: 600; }
.cr-pp { width: 100%; margin-top: 10px; padding: 8px; border-radius: 12px; background: #eaf2ff; color: #1d4ed8; font-size: 16px; font-weight: 800; }
.cr-pk.on .cr-pp { background: var(--crb); color: #fff; box-shadow: 0 6px 14px rgba(37,99,235,.3); }
.cr-pd { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.cr-pd svg { width: 13px; height: 13px; }
.cr-btn { display: block; width: 100%; height: 52px; border: 0; border-radius: 16px; background: var(--crb); color: #fff; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(37,99,235,.3); white-space: nowrap; }
.cr-btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.cr-btn:active:not(:disabled) { transform: scale(.99); }
.cr-btn.gh { margin-top: 8px; background: #eef2f8; color: #334155; box-shadow: none; }
.cr-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 2px -16px 0; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-top: 1px solid #e3eaf7; box-shadow: 0 -10px 30px rgba(29,78,216,.08); }
.cr-bsel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cr-bsel small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cr-bsel b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; }
.cr-bar .cr-btn { flex: 1; height: 50px; }
/* history */
.cr-hist { border-radius: 20px; background: #fff; border: 1px solid #e3eaf7; box-shadow: 0 6px 18px rgba(29,78,216,.05); overflow: hidden; margin-bottom: 8px; }
.cr-hi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cr-hi + .cr-hi { border-top: 1px solid #eef2f8; }
.cr-hi > i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #eaf2ff; color: #1d4ed8; }
.cr-hi > i svg { width: 18px; height: 18px; }
.cr-hi > i.k-buy { background: #e8f7ee; color: #138a43; } .cr-hi > i.k-trial { background: #fff4e5; color: #c2410c; } .cr-hi > i.k-adj { background: #f3e8ff; color: #7e22ce; }
.cr-hi > div { flex: 1; min-width: 0; }
.cr-hi b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-hi small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-hi strong { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-hi strong.p { color: #138a43; } .cr-hi strong.m { color: #dc2626; } .cr-hi strong.z { color: #c2410c; font-size: 13px; }
.cr-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 10px; margin-bottom: 8px; border-radius: 20px; background: #fff; border: 1px dashed #cfdbf0; color: var(--muted); text-align: center; }
.cr-empty svg { width: 34px; height: 34px; opacity: .6; margin-bottom: 4px; }
.cr-empty p { margin: 0; font-size: 14px; color: var(--ink); }
.cr-empty small { font-size: 12px; }
.cr-load { display: flex; justify-content: center; gap: 6px; padding: 60px 0; }
.cr-load i { width: 9px; height: 9px; border-radius: 50%; background: #2563eb; animation: crDot 1s ease-in-out infinite; }
.cr-load i:nth-child(2) { animation-delay: .15s; } .cr-load i:nth-child(3) { animation-delay: .3s; }
@keyframes crDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
/* sheets */
body.cr-lock { overflow: hidden; }
.cr-sh { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,27,76,0); transition: background .22s; }
.cr-sh.on { background: rgba(15,27,76,.42); }
.cr-shp { position: relative; width: 100%; max-width: 430px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding: 12px 18px calc(22px + var(--safe-b)); border-radius: 28px 28px 0 0; background: #fff; color: var(--ink); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); -webkit-user-select: text; user-select: text; box-shadow: 0 -20px 50px rgba(15,27,76,.18); }
.cr-sh.on .cr-shp { transform: none; }
.cr-grab { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 9px; background: #dbe3f0; }
.cr-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f1f5fb; color: #64748b; cursor: pointer; }
.cr-x svg { width: 16px; height: 16px; }
.cr-shp h4 { margin: 20px 0 10px; font-size: 14px; color: var(--ink); }
.cr-fine { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.cr-fine.c { text-align: center; } .cr-fine.t { margin: -4px 0 10px; } .cr-fine b { color: var(--ink); }
.cr-dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 40px 0 0; }
.cr-dhead small { font-size: 12px; color: var(--muted); }
.cr-dhead h3 { margin: 2px 0 0; font-size: 28px; font-weight: 800; white-space: nowrap; background: var(--crg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-dprice { text-align: right; } .cr-dprice b { display: block; font-size: 24px; font-weight: 800; color: #1d4ed8; } .cr-dprice small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cr-big { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--crg); color: #fff; box-shadow: 0 12px 28px rgba(29,78,216,.25); }
.cr-big .cr-ti { width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cr-big small { display: block; font-size: 12px; opacity: .85; } .cr-big b { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; } .cr-big span { display: block; font-size: 11.5px; opacity: .8; }
.cr-tbl { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; border: 1px solid #e3eaf7; font-size: 13px; }
.cr-tbl th { padding: 9px 12px; background: #f4f7fd; color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: left; }
.cr-tbl td { padding: 10px 12px; border-top: 1px solid #eef2f8; color: #334155; white-space: nowrap; }
.cr-tbl th:last-child, .cr-tbl td:last-child { text-align: right; }
.cr-tbl td b { color: #1d4ed8; font-size: 15px; font-variant-numeric: tabular-nums; }
.cr-ot { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: #f8fafe; border: 1px solid #e3eaf7; }
.cr-ot + .cr-ot { margin-top: 8px; } .cr-ot > div { flex: 1; min-width: 0; }
.cr-ot b { display: block; font-size: 13.5px; color: var(--ink); } .cr-ot small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-ot strong { flex: none; font-size: 18px; font-weight: 800; color: #1d4ed8; font-variant-numeric: tabular-nums; } .cr-ot strong span { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.cr-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cr-use { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; background: #f8fafe; border: 1px solid #e3eaf7; text-align: center; }
.cr-use span { font-size: 11.5px; color: var(--muted); white-space: nowrap; } .cr-use b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; } .cr-use small { font-size: 10.5px; color: #138a43; white-space: nowrap; } .cr-use small.lo { color: var(--faint); }
.cr-notes { list-style: none; margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: #f0fbf4; display: flex; flex-direction: column; gap: 7px; }
.cr-notes li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #334155; } .cr-notes svg { width: 16px; height: 16px; color: #3AAF4A; stroke-width: 2.6; }
.cr-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 40px 16px 0; padding: 0; }
.cr-steps li { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; background: #f1f5fb; color: var(--faint); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cr-steps li i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #dfe7f3; font-style: normal; font-size: 11px; color: #64748b; }
.cr-steps li.on { background: #eaf2ff; color: #1d4ed8; } .cr-steps li.on i { background: var(--crb); color: #fff; }
.cr-ptop small { font-size: 12px; color: var(--muted); }
.cr-psum { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 14px; border-radius: 16px; background: #f8fafe; border: 1px solid #e3eaf7; }
.cr-psum > div { display: flex; align-items: center; gap: 12px; min-width: 0; } .cr-psum b { display: block; font-size: 15px; } .cr-psum small { display: block; font-size: 11.5px; color: var(--muted); } .cr-psum strong { font-size: 22px; font-weight: 800; color: #1d4ed8; }
.cr-bank { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; background: var(--crg); color: #fff; box-shadow: 0 12px 28px rgba(29,78,216,.22); }
.cr-bank::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); }
.cr-bk1 { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.cr-bk1 i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.18); color: #fff; } .cr-bk1 i svg { width: 20px; height: 20px; }
.cr-bk1 b { display: block; font-size: 14.5px; } .cr-bk1 small { font-size: 12px; opacity: .8; }
.cr-bk2 { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 10px; }
.cr-bk2 small { display: block; font-size: 11px; opacity: .8; } .cr-bk2 b { font-size: 21px; letter-spacing: .04em; }
.cr-bk2 button, .cr-amt button { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.2); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cr-bk2 button svg, .cr-amt button svg { width: 15px; height: 15px; }
.cr-bk2 button.ok { background: rgba(58,175,74,.5); }
.cr-amt { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #eaf2ff; border: 1px solid #cfe0fb; }
.cr-amt > span { font-size: 12px; color: #334155; white-space: nowrap; } .cr-amt b { flex: 1; font-size: 22px; font-weight: 800; color: #1d4ed8; font-variant-numeric: tabular-nums; }
.cr-amt button { background: var(--crb); } .cr-amt button span { color: inherit; } .cr-amt button.ok { background: #3AAF4A; }
.cr-up { display: block; border: 1.5px dashed #9db8e6; border-radius: 16px; background: #f8fbff; cursor: pointer; } .cr-up.has { border-style: solid; border-color: #e3eaf7; background: #fff; }
.cr-up0 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; color: #1d4ed8; text-align: center; } .cr-up0 svg { width: 26px; height: 26px; margin-bottom: 2px; } .cr-up0 b { font-size: 14.5px; } .cr-up0 small { font-size: 11.5px; color: var(--muted); }
.cr-up1 { display: flex; align-items: center; gap: 12px; padding: 10px; } .cr-up1 img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #f1f5f9; }
.cr-up1 > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .cr-up1 b { font-size: 14px; color: #138a43; } .cr-up1 small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cr-up1 em { font-style: normal; font-size: 12px; color: #1d4ed8; font-weight: 600; }
.cr-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }
.cr-pay .cr-btn, .cr-det .cr-btn { margin-top: 16px; }
.cr-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 6px 4px; }
.cr-done > i { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #3AAF4A; color: #fff; box-shadow: 0 0 0 10px rgba(58,175,74,.14); animation: crPop .4s cubic-bezier(.2,1.4,.4,1) both; }
.cr-done.wait > i { background: #f59e0b; box-shadow: 0 0 0 10px rgba(245,158,11,.14); } .cr-done > i svg { width: 36px; height: 36px; stroke-width: 2.6; }
.cr-done h3 { margin: 20px 0 6px; font-size: 21px; } .cr-done p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@keyframes crPop { from { transform: scale(.4); opacity: 0; } }
.cr-cf { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; } .cr-cf h3 { margin: 12px 0 4px; font-size: 19px; } .cr-cf p { margin: 0; font-size: 13px; color: var(--muted); }
.cr-cost { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f4f7fd; border: 1px solid #e3eaf7; font-size: 13.5px; color: #334155; }
.cr-cost b { display: flex; align-items: center; gap: 7px; font-size: 18px; color: var(--ink); }
.cr-lines { margin: 10px 4px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.9; } .cr-lines div { display: flex; justify-content: space-between; gap: 8px; } .cr-lines b { color: var(--ink); }
.cr-short { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; } .cr-short svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .cr-art .sp { animation: none; } }
@media (max-width: 360px) { .cr-what b { font-size: 11px; } .cr-pn { font-size: 28px; } .cr-bal b { font-size: 40px; } .cr-stats b { font-size: 16px; } .cr-meta i:last-child { display: none; } .cr-ring { width: 78px; height: 78px; } }
@media (min-width: 1000px) { .cr-body { padding: 16px max(16px, calc(50% - 260px)) 0; } .cr-bar { margin: 2px calc(-1 * max(16px, calc(50% - 260px))) 0; padding-left: max(16px, calc(50% - 260px)); padding-right: max(16px, calc(50% - 260px)); } }
/* wallet pocket (Credit Balance) */
/* balance details sheet */
.cr-dt { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; }
.cr-dring { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.cr-dring svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(37,99,235,.18)); }
.cr-dring > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cr-dring small { font-size: 12px; color: var(--muted); }
.cr-dt h3 { margin: 14px 0 2px; font-size: 20px; }
.cr-dt > p { margin: 0; font-size: 12.5px; letter-spacing: .12em; color: var(--muted); }
.cr-dbal { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 16px; }
.cr-dbal b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; background: var(--crg); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cr-dbal span { font-size: 15px; color: var(--muted); font-weight: 600; }
.cr-dgrid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.cr-dgrid > div { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; border-radius: 16px; background: #f6f9ff; border: 1px solid #e3eaf7; min-width: 0; }
.cr-dgrid i { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 6px; }
.cr-dgrid i.d1 { background: linear-gradient(135deg, #1d4ed8, #00c0e8); } .cr-dgrid i.d2 { background: #7dd3fc; } .cr-dgrid i.d3 { background: #3AAF4A; } .cr-dgrid i.d4 { background: #cbd5e1; }
.cr-dgrid small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cr-dgrid b { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-dgrid span { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-dts .cr-btn { margin-top: 16px; } .cr-dts .cr-btn.gh { margin-top: 8px; }
.cr-dt h4 { align-self: stretch; text-align: left; margin: 20px 0 10px; }
.cr-dt > h3 { margin: 4px 0 2px; }
.cr-dt > p { margin-bottom: 12px; }
.cr-dring > div { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cr-dring > div small { font-size: 12px; color: var(--muted); }
.cr-dring > div b { font-size: 36px; line-height: 1.1; font-weight: 800; background: var(--crg); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cr-dring > div span { font-size: 12px; color: var(--muted); }
.cr-d3 { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-radius: 16px; background: #f6f9ff; border: 1px solid #e3eaf7; }
.cr-d3 > div { padding: 12px 6px; text-align: center; }
.cr-d3 > div + div { border-left: 1px solid #e3eaf7; }
.cr-d3 small { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cr-d3 small i { width: 8px; height: 8px; border-radius: 50%; } .cr-d3 small i.u { background: #cbd5e1; } .cr-d3 small i.l { background: linear-gradient(135deg, #1d4ed8, #00c0e8); }
.cr-d3 b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; } .cr-d3 b.g { color: #1d4ed8; }
.cr-duse { align-self: stretch; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.cr-duse > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3eaf7; }
.cr-duse > div.off { opacity: .5; }
.cr-duse > div > div { flex: 1; min-width: 0; }
.cr-duse b { font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.cr-dbar { display: block; height: 6px; margin-top: 6px; border-radius: 9px; background: #eef2f8; overflow: hidden; }
.cr-dbar i { display: block; height: 100%; border-radius: 9px; background: var(--crb); }
.cr-duse em { flex: none; font-style: normal; text-align: right; font-size: 11.5px; color: var(--muted); }
.cr-duse em b { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-duse em small { display: block; font-size: 11px; color: var(--faint); }
.cr-dnone { margin: 0; padding: 16px; border-radius: 14px; background: #f6f9ff; color: var(--muted); font-size: 13px; text-align: center; }
.cr-dgrid > div.w { grid-column: 1 / -1; }
/* credit wallet = the exam wallet (brushed silver pocket + navy card) */
.cr-tk { margin-top: 4px; }
body .cr-tk .tk-card { background: radial-gradient(220px 220px at 30% 45%, rgba(0,229,255,.2), transparent 65%), linear-gradient(90deg, #0f172a, #2563eb) !important; box-shadow: 0 12px 26px rgba(15,23,42,.3), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(125,211,252,.25) !important; cursor: pointer; }
.cr-tkno { position: relative; display: block; margin: 3px 18px 0; font-size: 11.5px; letter-spacing: .14em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.cr-tkg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.cr-tkg .w { grid-column: 1 / -1; }
.cr-tkg small { display: block; font-size: 12px; color: #64748b; white-space: nowrap; }
.cr-tkg b { display: block; font-size: 20px; font-weight: 800; color: #0f1f4d; text-shadow: 0 1px 0 rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.cr-tkg .w b { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; background: linear-gradient(90deg, #0f172a, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.cr-tkg .w b span { margin-left: 6px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: #334155; -webkit-text-fill-color: #334155; }
body .cr-tk .cr-tkf { justify-content: space-between; gap: 10px; }
.cr-tadd { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #0f172a, #2563eb); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.cr-tadd svg { width: 16px; height: 16px; }
/* headers: back button same place and look on every screen; chip never squeezes the title */
.cr-top { padding: 0 12px; gap: 4px; }
.cr-top .sx-ic { width: 40px; height: 40px; background: transparent; box-shadow: none; border-radius: 12px; color: var(--ink); }
.cr-top .sx-ic:active { background: rgba(15,23,42,.06); }
.cr-top h2 { margin: 0; font-size: 18px; }
.sx-top .cr-chip.dk { height: 32px; padding: 0 10px 0 4px; gap: 4px; font-size: 12px; }
.sx-top .cr-chip.dk .cr-coin { width: 22px; height: 22px; }
.sx-top .cr-chip.dk em { padding: 2px 6px; }
@media (max-width: 400px) { .sx-top .cr-chip span { display: none; } }
.sx-ttl { flex: 1 1 auto; }
.sx.home { padding: 0; }
/* tool categories (CapCut style) */
.sx-tools.sub .sx-tback span { background: transparent; border: 1px solid #2a3142; }
.sx-tools.sub .sx-tback small { color: #fff; font-weight: 700; }
.sx-tools.sub { animation: sxSub .22s ease both; }
@keyframes sxSub { from { opacity: 0; transform: translateX(14px); } }
@media (min-width: 1000px) {
  body.sx-desk .sx-tools.cat, body.sx-desk .sx-work.live .sx-tools.cat { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  body.sx-desk .sx-tools.cat::before { display: none; }
  body.sx-desk .sx-catw { flex: none; position: relative; border-bottom: 1px solid #1a1f2b; background: #0d1016; }
  body.sx-desk .sx-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 10px 6px; scroll-behavior: smooth; }
  body.sx-desk .sx-cats::-webkit-scrollbar { display: none; }
  body.sx-desk .sx-cats button { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 7px; border: 0; border-radius: 9px; background: none; color: #9aa3b5; font: inherit; cursor: pointer; }
  body.sx-desk .sx-cats button span { display: grid; place-items: center; } body.sx-desk .sx-cats svg { width: 21px; height: 21px; }
  body.sx-desk .sx-cats small { font-size: 12px; white-space: nowrap; }
  body.sx-desk .sx-cats button:hover { color: #fff; background: #151a24; }
  body.sx-desk .sx-cats button[aria-selected="true"] { color: #00d2ff; background: rgba(0,210,255,.08); }
  body.sx-desk .sx-cnav-b { position: absolute; top: 50%; z-index: 2; width: 22px; height: 40px; margin-top: -20px; display: grid; place-items: center; padding: 0; border: 1px solid #262c3a; border-radius: 7px; background: #1a1f2b; color: #cfd6e4; cursor: pointer; box-shadow: 0 0 14px 8px #0d1016; }
  body.sx-desk .sx-cnav-b[hidden] { display: none; }
  body.sx-desk .sx-cnav-b:hover { color: #fff; border-color: #00d2ff; }
  body.sx-desk .sx-cnav-b svg { width: 15px; height: 15px; }
  body.sx-desk .sx-cnav-b.prev { left: 4px; } body.sx-desk .sx-cnav-b.next { right: 4px; } body.sx-desk .sx-cnav-b.next svg { transform: scaleX(-1); }
  body.sx-desk .sx-cbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  body.sx-desk .sx-cnav, body.sx-desk .sx-cstk .sx-stabs { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 6px; overflow-y: auto; border-right: 1px solid #1a1f2b; background: #0d1016; border-radius: 0; }
  body.sx-desk .sx-cnav button, body.sx-desk .sx-cstk .sx-stabs button { flex: none; height: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: #9aa3b5; font: inherit; font-size: 12.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: none; }
  body.sx-desk .sx-cnav button:hover, body.sx-desk .sx-cstk .sx-stabs button:hover { color: #fff; background: #151a24; }
  body.sx-desk .sx-cnav button.on, body.sx-desk .sx-cstk .sx-stabs button.on { color: #00d2ff; background: rgba(0,210,255,.1); }
  body.sx-desk .sx-clist { display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; align-content: start; }
  body.sx-desk .sx-ccard { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid #1f2533; border-radius: 12px; background: #131722; color: #e8ebf2; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
  body.sx-desk .sx-ccard:hover { border-color: #00d2ff; background: #161c29; }
  body.sx-desk .sx-ccard span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #1b2130; color: #cfd6e4; }
  body.sx-desk .sx-ccard.ai span { background: linear-gradient(135deg, #2f7bff, #00d2ff); color: #fff; }
  body.sx-desk .sx-ccard svg { width: 20px; height: 20px; }
  body.sx-desk .sx-ccard b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-ccard small { font-size: 12px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-cstk { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  body.sx-desk .sx-cstk .sx-sws { flex-wrap: wrap; overflow: visible; }
  body.sx-desk .sx-cstk [data-stkbody] { min-width: 0; padding: 12px; overflow-y: auto; }
  body.sx-desk .sx-cstk .sx-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  body.sx-desk .sx-sdh { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  body.sx-desk .sx-sdh li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #1f2533; border-radius: 12px; background: #131722; }
  body.sx-desk .sx-sdh i { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,210,255,.12); color: #00d2ff; font-style: normal; font-weight: 700; font-size: 13px; }
  body.sx-desk .sx-sdh span { color: #e8ebf2; font-size: 14px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-sdh small { color: var(--sm); font-size: 12.5px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1000px) {
  body.sx-desk .sx-sheet .sx-tabs { flex-wrap: wrap; row-gap: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  body.sx-desk .sx-sheet .sx-tabs button { flex: none; }
}
@media (min-width: 1000px) {
  body.sx-desk .sx-lpanel { min-width: 0; min-height: 0; overflow-y: auto; padding: 12px 14px 20px; color: #e8ebf2; font-size: 14px; }
  body.sx-desk .sx-lpanel .sx-shh { display: none; }
  body.sx-desk .sx-lpanel .sx-tabs { flex-wrap: wrap; row-gap: 6px; margin: 0 0 4px; padding: 0 0 10px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  body.sx-desk .sx-lpanel .sx-tabs button { flex: none; }
  body.sx-desk .sx-lpanel .sx-trl { max-height: none; overflow: visible; }
  body.sx-desk .sx-lpanel .sx-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.sx-desk .sx-lpanel .sx-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.sx-desk .sx-lpanel .sx-trg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.sx-desk .sx-selb { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #1a1f2b; background: rgba(0,210,255,.06); overflow-x: auto; scrollbar-width: none; }
  body.sx-desk .sx-selb::-webkit-scrollbar { display: none; }
  body.sx-desk .sx-selb > span { flex: none; padding: 0 6px 0 4px; font-size: 12px; color: #00d2ff; white-space: nowrap; }
  body.sx-desk .sx-selb button { flex: none; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: #cfd6e4; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
  body.sx-desk .sx-selb button:hover { background: #1a2030; color: #fff; }
  body.sx-desk .sx-selb button svg { width: 16px; height: 16px; }
  body.sx-desk .sx-selb button.x { order: 99; margin-left: auto; padding: 0 7px; }
  body.sx-desk .sx-selb button.x b { font-size: 18px; font-weight: 400; line-height: 1; }
}

/* Video Studio home (CapCut-like): phones = blue hero, 2 big cards, recent row, icon tools; computer = side menu, banner, tool cards, project grid */
.sx.home:not(.x) { background: linear-gradient(180deg, #0a3bd1 0, #1673ff 150px, #0d64e8 230px, #0b0d12 430px) var(--sb); }
.sx-hnav { display: none; }
.sx-pick { gap: 0; padding: 0 0 28px; }
.sx-hmain { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px 0; }
.sx-hhead { display: flex; flex-direction: column; gap: 2px; padding: 26px 2px 4px; }
.sx-hhead small { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.78); }
.sx-hhead b { font-size: 30px; font-weight: 800; line-height: 1.2; color: #fff; }
.sx-hero { grid-template-columns: 1.6fr 1fr; gap: 10px; }
.sx-new, .sx-new.sx-cam { min-height: 128px; border: 0; border-radius: 20px; background: rgba(255,255,255,.95); color: #0b1020; box-shadow: 0 10px 28px rgba(5,20,60,.28); }
.sx-new i, .sx-new.sx-cam i { width: 40px; height: 40px; border-radius: 11px; background: #0b1020; color: #fff; }
.sx-new i svg { width: 22px; height: 22px; stroke: #fff; }
.sx-new b { font-size: 17px; font-weight: 700; }
.sx-new small { font-size: 12px; color: #4b5568; opacity: 1; }
.sx-phd { margin: 4px 2px 0; } .sx-phd .d { display: none; }
.sx-projs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; }
.sx-projs::-webkit-scrollbar { display: none; }
.sx-projs .sx-proj { flex: none; width: 100px; scroll-snap-align: start; }
.sx-projs .sx-proj .th { aspect-ratio: 1; border-radius: 16px; }
.sx-projs .sx-proj .th::after { content: ""; position: absolute; inset: 45% 0 0; border-radius: 0 0 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.sx-projs .sx-proj .th em { left: 6px; top: 6px; bottom: auto; font-size: 10.5px; }
.sx-projs .sx-proj b { position: absolute; left: 9px; right: 9px; bottom: 8px; z-index: 1; color: #fff; font-size: 12.5px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sx-projs .sx-proj small { display: none; }
.sx-projs .sx-proj .del { top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 8px; }
.sx-projs .sx-proj .del svg { width: 14px; height: 14px; }
.sx-projs .sx-empty { flex: 1; padding: 18px 10px 8px; }
.sx-hsec { margin: 8px 2px -4px; font-size: 17px; font-weight: 700; }
.sx-qt { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; }
.sx-qt span { aspect-ratio: auto; height: 46px; background: none; border: 0; border-radius: 0; color: #e8ebf2; }
.sx-qt svg { width: 28px; height: 28px; }
.sx-qt small { font-size: 12.5px; }
.sx-qt em { display: none; }
.sx-dlg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.sx-dlg[hidden] { display: none; }
.sx-dlgb { width: 100%; max-width: 360px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 22px 20px; border: 1px solid #262c3a; border-radius: 20px; background: #151a24; text-align: center; animation: sxSub .18s ease both; }
.sx-dlgb i { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: rgba(225,29,72,.14); color: #fb7185; }
.sx-dlgb i svg { width: 26px; height: 26px; }
.sx-dlgb b { font-size: 17px; }
.sx-dlgb small { font-size: 13px; line-height: 1.55; color: var(--sm); }
.sx-dlgb div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sx-dlgb .sx-btn { height: 44px; font-size: 14.5px; }
.sx-btn.dng { border-color: #e11d48; background: #e11d48; }
@media (min-width: 1000px) {
  body.sx-desk .sx.home:not(.x) { background: var(--sb); }
  body.sx-desk .sx-pick { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  body.sx-desk .sx-hnav { display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow-y: auto; padding: 18px 14px; border-right: 1px solid #1a1f2b; background: #0d1016; }
  body.sx-desk .sx-hnav button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #c3cad8; font: inherit; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
  body.sx-desk .sx-hnav button svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body.sx-desk .sx-hnav button:hover { background: #151a24; color: #fff; }
  body.sx-desk .sx-hnav button.on { background: #1a2030; color: #fff; }
  body.sx-desk .sx-hnav p { margin: 18px 12px 6px; padding-top: 14px; border-top: 1px solid #1a1f2b; font-size: 12px; color: var(--sm); }
  body.sx-desk .sx-hmain { min-height: 0; overflow-y: auto; gap: 16px; padding: 24px clamp(24px, 2.4vw, 44px) 48px; }
  body.sx-desk .sx-hhead { display: none; }
  body.sx-desk .sx-hero { order: 1; grid-template-columns: minmax(0, 1fr) clamp(240px, 22%, 320px); gap: 16px; }
  body.sx-desk .sx-new { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-content: center; justify-content: center; min-height: 170px; border-radius: 20px; background: linear-gradient(100deg, #2f7bff 0%, #18a8ff 55%, #00d2ff 100%); color: #fff; box-shadow: 0 14px 34px rgba(0,120,255,.25); cursor: pointer; transition: transform .15s, box-shadow .15s; }
  body.sx-desk .sx-new:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,120,255,.32); }
  body.sx-desk .sx-new i { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.95); }
  body.sx-desk .sx-new i svg { width: 26px; height: 26px; stroke: #1556e0; }
  body.sx-desk .sx-new b { align-self: end; font-size: 24px; color: #fff; }
  body.sx-desk .sx-new small { align-self: start; font-size: 13px; color: rgba(255,255,255,.85); }
  body.sx-desk .sx-new.sx-cam { background: #131722; border: 1px solid #222838; box-shadow: none; color: #e8ebf2; }
  body.sx-desk .sx-new.sx-cam:hover { border-color: #00d2ff; }
  body.sx-desk .sx-new.sx-cam i { background: #1d2433; } body.sx-desk .sx-new.sx-cam i svg { stroke: #00d2ff; }
  body.sx-desk .sx-new.sx-cam b { font-size: 19px; color: #fff; } body.sx-desk .sx-new.sx-cam small { color: var(--sm); }
  body.sx-desk .sx-hsec { order: 2; margin: 14px 2px 0; font-size: 16px; }
  body.sx-desk .sx-qt { order: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  body.sx-desk .sx-qt button { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid #1f2533; border-radius: 14px; background: #131722; text-align: left; transition: border-color .15s, background .15s; }
  body.sx-desk .sx-qt button:hover { border-color: #00d2ff; background: #161c29; }
  body.sx-desk .sx-qt span { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 11px; background: #1b2130; }
  body.sx-desk .sx-qt button:nth-child(-n+3) span { background: linear-gradient(135deg, #2f7bff, #00d2ff); color: #fff; }
  body.sx-desk .sx-qt svg { width: 22px; height: 22px; }
  body.sx-desk .sx-qt small { font-size: 14px; font-weight: 600; color: #fff; }
  body.sx-desk .sx-qt em { display: block; font-style: normal; font-size: 12px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-hsec-t { order: 4; } body.sx-desk .sx-tpl { order: 5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.sx-desk .sx-tpl button:hover { border-color: #00d2ff; }
  body.sx-desk .sx-phd { order: 6; margin: 18px 2px 0; } body.sx-desk .sx-phd b { font-size: 16px; } body.sx-desk .sx-phd .m { display: none; } body.sx-desk .sx-phd .d { display: inline; }
  body.sx-desk .sx-projs { order: 7; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; margin: 0; padding: 0; overflow: visible; }
  body.sx-desk .sx-projs .sx-proj { width: auto; }
  body.sx-desk .sx-projs .sx-proj .th { aspect-ratio: 3 / 4; border-radius: 12px; transition: border-color .15s; }
  body.sx-desk .sx-projs .sx-proj:hover .th { border-color: #00d2ff; }
  body.sx-desk .sx-projs .sx-proj .th::after { display: none; }
  body.sx-desk .sx-projs .sx-proj .th em { top: auto; bottom: 6px; }
  body.sx-desk .sx-projs .sx-proj b { position: static; padding: 4px 2px 0; color: #e8ebf2; font-size: 13.5px; text-shadow: none; }
  body.sx-desk .sx-projs .sx-proj small { display: block; padding: 0 2px; }
  body.sx-desk .sx-projs .sx-proj .del { opacity: 0; transition: opacity .15s; }
  body.sx-desk .sx-projs .sx-proj:hover .del, body.sx-desk .sx-projs .sx-proj .del:focus-visible { opacity: 1; }
  body.sx-desk .sx-projs .sx-empty { padding: 30px 10px; }
}
@media (max-width: 999px) { .sx.home .sx-ttl { visibility: hidden; } }
body:not(.sx-desk) .sx.home .sx-ttl { visibility: hidden; }
@media (min-width: 1000px) {
  body.sx-desk .sx-media { display: flex; flex-direction: column; gap: 12px; }
  body.sx-desk .sx-mcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid #1f2533; border-radius: 14px; background: #131722; cursor: pointer; transition: border-color .15s; }
  body.sx-desk .sx-mcard:hover { border-color: #00d2ff; }
  body.sx-desk .sx-mcard span { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 9px; background: #1b2130 center / cover no-repeat; }
  body.sx-desk .sx-mcard em { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.65); font-style: normal; font-size: 10.5px; }
  body.sx-desk .sx-mcard div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  body.sx-desk .sx-mcard b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-mcard small { font-size: 12px; color: var(--sm); white-space: nowrap; }
  body.sx-desk .sx-media .sx-hint { margin: 0; font-size: 12.5px; line-height: 1.6; }
}
/* phones: editor closer to CapCut mobile — plain icon bar, plain play, head column + track icons on the timeline */
body:not(.sx-desk) .sx-tools { gap: 0; padding-top: 10px; background: #0b0d12; }
body:not(.sx-desk) .sx-tool { width: 66px; gap: 5px; }
body:not(.sx-desk) .sx-tool span, body:not(.sx-desk) .sx-tool.ai span { width: 34px; height: 30px; border-radius: 0; background: none; color: #f2f4f8; }
body:not(.sx-desk) .sx-tool.ai span { color: #00d2ff; }
body:not(.sx-desk) .sx-tool svg { width: 25px; height: 25px; stroke-width: 1.6; }
body:not(.sx-desk) .sx-tool small { font-size: 12px; color: #e3e7ef; }
body:not(.sx-desk) .sx-tools.sub .sx-tback span { border: 0; background: #1a1f2b; border-radius: 10px; }
body:not(.sx-desk) .sx-play { width: 44px; height: 44px; background: none; color: #fff; }
body:not(.sx-desk) .sx-play svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
body:not(.sx-desk) .sx-play .pa { fill: #fff; stroke: none; }
.sx-tlh { position: absolute; top: 0; bottom: 0; z-index: 2; display: flex; gap: 6px; align-items: stretch; }
.sx-tlh button { width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 2px; border: 0; border-radius: 10px; background: none; color: #e3e7ef; font: inherit; cursor: pointer; }
.sx-tlh button svg { width: 20px; height: 20px; }
.sx-tlh button small { font-size: 10.5px; line-height: 1.2; white-space: nowrap; }
.sx-tlh button.ai { background: #1a1f2b; border: 1px solid #262c3a; } .sx-tlh button.ai svg { color: #00d2ff; }
.sx-tlh button.on { color: #f87171; }
.sx-tic { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 7px; background: #1a1f2b; color: #8f98ab; pointer-events: none; }
.sx-tic svg { width: 15px; height: 15px; }
body.sx-desk .sx-tlh, body.sx-desk .sx-tic { display: none; }
.sx-bhl { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.sx-bhr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #262c3a; border-radius: 12px; background: #10141c; cursor: pointer; }
.sx-bhr input { width: 20px; height: 20px; margin: 0; accent-color: #00d2ff; }
.sx-bhr span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-bhr em { font-style: normal; font-size: 12px; color: var(--sm); white-space: nowrap; }
.sx-bhr:has(input:checked) { border-color: rgba(0,210,255,.55); background: rgba(0,210,255,.07); }
.sx-bhr:has(input:checked) em { color: #00d2ff; }
.sx-bha { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.sx-bha .sx-btn { height: 42px; font-size: 13px; padding: 0 6px; white-space: nowrap; }
.sx-hint b { color: #00d2ff; font-weight: 600; margin-left: 4px; }
.sx-bhw { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; padding: 12px; border: 1px solid #262c3a; border-radius: 14px; background: #10141c; }
.sx-bhw > div { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-bhw button { height: 36px; padding: 0 12px; border: 1px solid #2f3648; border-radius: 10px; background: #171c27; color: #e8ebf2; font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; }
.sx-bhw button.on { border-color: #00d2ff; background: rgba(0,210,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(0,210,255,.5); }
/* AI credit wallet: smooth on phones — no layout-changing pull-out, no full-card repaint loops (only transform / opacity move) */
.cr-tk.tk.wl, .cr-tk.tk.wl .tk-shell, .cr-tk.tk.wl .tk-back { transition: none; }
.cr-tk.tk.wl.pop { padding-top: 78px; }
.cr-tk.tk.wl.pop .tk-shell { top: 52px; }
.cr-tk.tk.wl.pop .tk-back { transform: none; }
.cr-tk.tk.wl .tk-cards { transition: transform .22s ease-out; will-change: transform; }
.cr-tk.tk.wl.pop .tk-cards { transform: translateY(-16px); }
.cr-tk.tk.wl .tk-card { will-change: translate; }
.cr-tk.tk.wl::before, .cr-tk .tk-gloss, .cr-tk .tk-tap { animation: none !important; }
.cr-tk .tk-st { animation: none !important; }
.cr-shp { will-change: transform; contain: layout paint; }
/* X-LEAD ring = same as X-VISOR (bright arc, glow, end dot), in gold */
.ring.hx-ring svg .track { stroke: rgba(90,60,0,.16); }
.ring .bar.hx-bar { stroke: url(#hxg); filter: none; }
.ring .glow.hx-glow { stroke: #ffd257; opacity: .6; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.9,.3,1); }
.ring .cap.hx-cap { fill: #fffbea; filter: drop-shadow(0 0 5px #ffd257) drop-shadow(0 0 10px #f5b82e); transition: opacity .3s; }
.sx-wml { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 12px; }
.sx-wml img { object-fit: contain; background: repeating-conic-gradient(#1b2130 0 25%, #222938 0 50%) 0 0 / 14px 14px; }
.sx-wmr { display: grid; grid-template-columns: 54px auto minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid #262c3a; border-radius: 12px; background: #10141c; }
.sx-wmr img { width: 54px; height: 34px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#1b2130 0 25%, #222938 0 50%) 0 0 / 10px 10px; }
.sx-wmr span { font-size: 13px; white-space: nowrap; }
.sx-wmr input { width: 100%; }
.sx-wmr button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #1d2230; color: #f87171; font-size: 18px; cursor: pointer; }
.sx-sps { display: grid; gap: 6px; width: min(100%, 150px); aspect-ratio: 9 / 16; margin: 4px auto 12px; padding: 6px; border-radius: 14px; background: #0b0d12; border: 1px solid #262c3a; }
.sx-sps.l-2h { grid-template-rows: 1fr 1fr; } .sx-sps.l-2v { grid-template-columns: 1fr 1fr; } .sx-sps.l-g4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .sx-sps.l-g9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.sx-sps button { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 0; border: 1.5px dashed #3a4256; border-radius: 8px; background: #141821; color: #9aa3b5; font: inherit; font-size: 11.5px; cursor: pointer; }
.sx-sps button.has { border-style: solid; border-color: #00d2ff; }
.sx-sps button.main { border: 1.5px solid #2f7bff; background: rgba(47,123,255,.14); color: #cfe0ff; cursor: default; }
.sx-sps img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-sps em { font-style: normal; color: #00d2ff; }
.sx-sps i { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-style: normal; font-size: 14px; }
.sx-x.sp { background: linear-gradient(90deg, #7c3aed, #2f7bff); }
.sx-x.sp svg { width: 14px; height: 14px; flex: none; }
/* brand templates on the home + step-by-step wizard */
.sx-tpk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sx-tpk button { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #1d2230; border-radius: 16px; background: #141821; color: #e8ebf2; font: inherit; text-align: left; cursor: pointer; }
.sx-tpk button > span { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; }
.sx-tpk button > span svg { width: 24px; height: 24px; }
.sx-tpk div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-tpk b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tpk small { font-size: 12px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tpk em { font-style: normal; font-size: 11.5px; color: #00d2ff; }
.sx-wiz { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: center; background: rgba(0,0,0,.6); }
.sx-wiz[hidden] { display: none; }
.sx-wizb { width: 100%; max-width: 560px; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: #0b0d12; color: #e8ebf2; animation: sxSub .2s ease both; }
.sx-wh { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.sx-wh small { display: block; font-size: 12px; color: var(--sm); } .sx-wh b { font-size: 18px; }
.sx-wst { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sx-wst li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid #1f2533; border-radius: 16px; background: #131722; }
.sx-wst li > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #1d2433; color: #9aa3b5; font-style: normal; font-weight: 700; font-size: 13px; }
.sx-wst li.ok > i { background: #16a34a; color: #fff; }
.sx-wst li > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-wst b { font-size: 14.5px; } .sx-wst b em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--sm); }
.sx-wst small { font-size: 12.5px; color: var(--sm); }
.sx-wst .sx-sw { margin-top: 0; }
.sx-win { height: 44px; padding: 0 12px; border: 1px solid #2a3142; border-radius: 12px; background: #0f1218; color: #fff; font: inherit; font-size: 15px; }
.sx-win:focus { outline: none; border-color: #00d2ff; }
.sx-wf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0f1218; border: 1px solid #2a3142; }
.sx-wf svg { flex: none; width: 20px; height: 20px; color: #00d2ff; } .sx-wf span { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-wbtn { flex: none; padding: 6px 12px; border-radius: 99px; background: #1d2230; font-size: 12.5px; cursor: pointer; }
.sx-wim, .sx-wlg { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-wim span, .sx-wadd, .sx-wlg button { position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 1.5px dashed #3a4256; border-radius: 12px; background: #0f1218; color: #9aa3b5; font: inherit; font-size: 24px; cursor: pointer; }
.sx-wim span { border-style: solid; border-color: #2a3142; }
.sx-wim img, .sx-wadd img { width: 100%; height: 100%; object-fit: cover; } .sx-wlg img { width: 90%; height: 90%; object-fit: contain; }
.sx-wlg button { border-style: solid; border-color: #2a3142; background: repeating-conic-gradient(#1b2130 0 25%, #222938 0 50%) 0 0 / 12px 12px; }
.sx-wlg button.on, .sx-wadd.on { border-color: #00d2ff; box-shadow: 0 0 0 2px rgba(0,210,255,.35); }
.sx-wim i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-style: normal; font-size: 13px; }
.sx-wizb .sx-btn[disabled] { opacity: .45; }
@media (min-width: 1000px) {
  body.sx-desk .sx-hsec-k, body.sx-desk .sx-tpk { order: 4; }
  body.sx-desk .sx-tpk { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  body.sx-desk .sx-tpk button:hover { border-color: #00d2ff; }
  body.sx-desk .sx-wiz { align-items: center; padding: 24px; }
  body.sx-desk .sx-wizb { height: auto; max-height: 92vh; border-radius: 20px; border: 1px solid #222838; }
}
.sx-vfl { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sx-vfl button { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border: 1px solid #262c3a; border-radius: 14px; background: #10141c; color: #e8ebf2; font: inherit; text-align: left; cursor: pointer; }
.sx-vfl button:active, .sx-vfl button:hover { border-color: #00d2ff; }
.sx-vfl span { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 10px; background-size: cover; }
.sx-vfl b { font-size: 14.5px; } .sx-vfl small { font-size: 12px; color: var(--sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-glow { background: radial-gradient(circle at 50% 45%, #fff 0 12%, #ffe9a8 22%, rgba(255,180,90,.5) 45%, #1d2230 75%); }
.vf-lag { background: linear-gradient(90deg, rgba(255,40,80,.6) 0 12%, transparent 12%), repeating-linear-gradient(0deg, #2f7bff 0 8px, #1d2230 8px 16px); }
.vf-bgx { background: radial-gradient(ellipse 22% 38% at 50% 62%, #111 0 98%, transparent 100%), linear-gradient(180deg, #0b1033, #3a1d5c 60%, #f08a4b); }
.sx-bgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sx-bgs button, .sx-bgu { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px; border: 1.5px solid #262c3a; border-radius: 12px; background: #10141c; color: #c9cfdc; font: inherit; font-size: 11px; cursor: pointer; }
.sx-bgs button.on, .sx-bgu.on { border-color: #00d2ff; }
.sx-bgs i { display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 14; border-radius: 8px; font-style: normal; font-size: 22px; color: #9aa3b5; background: #1b2130; }
.sx-bgs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sx-x.vf { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.sx-x.vf svg { width: 14px; height: 14px; flex: none; }
/* previews for the new transitions */
.sx-trg .tp-pull i:first-child { inset: 26%; border: 3px solid #fff; border-radius: 6px; animation: tpPull 1.4s ease-in infinite; }
@keyframes tpPull { from { transform: scale(.55); opacity: .2; } 70% { opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.sx-trg .tp-swipe i:first-child { top: 20%; bottom: 20%; width: 45%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85)); animation: tpSwipe 1.3s ease-in-out infinite; }
@keyframes tpSwipe { to { left: 110%; } }
.sx-trg .tp-blur i:first-child { inset: 28%; border-radius: 50%; background: #fff; animation: tpBlur 1.6s ease-in-out infinite; }
@keyframes tpBlur { 0%, 100% { filter: blur(0); } 50% { filter: blur(9px); } }
.sx-trg .tp-shake i:first-child { inset: 30%; border-radius: 6px; background: #fff; animation: tpShake .5s linear infinite; }
@keyframes tpShake { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-4px, 2px) rotate(-5deg); } 50% { transform: translate(3px, -3px) rotate(4deg); } 75% { transform: translate(-2px, -2px) rotate(-3deg); } }
.sx-trg .tp-burn i:first-child { inset: -20%; background: radial-gradient(circle, rgba(255,240,200,.95), rgba(255,120,20,.8) 30%, rgba(200,20,0,.4) 60%, transparent 75%); animation: tpBurn 1.6s ease-in-out infinite; }
@keyframes tpBurn { 0%, 100% { opacity: 0; transform: translateX(-30%); } 50% { opacity: 1; transform: translateX(10%); } }
.sx-trg .tp-wipe i:first-child { top: 0; bottom: 0; width: 70%; left: -80%; background: repeating-linear-gradient(-55deg, #ffd400 0 7px, #111 7px 14px); transform: skewX(-15deg); animation: tpWipe 1.4s ease-in-out infinite; }
@keyframes tpWipe { to { left: 120%; } }
.sx-trg .tp-spin i:first-child { inset: 28%; border-radius: 6px; border: 3px solid #fff; animation: tpSpin 1.2s ease-in infinite; }
@keyframes tpSpin { from { transform: rotate(0) scale(.8); } to { transform: rotate(200deg) scale(1.3); opacity: 0; } }
.sx-trg .tp-fade i:first-child { inset: 0; background: #000; animation: tpFade 1.6s ease-in-out infinite; }
@keyframes tpFade { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }
.vf-fb { background: radial-gradient(circle at 50% 50%, #d8d0c0, #7a7468 60%, #2a2622); filter: grayscale(.6); }
.sx-mmp { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; margin: 6px 0 10px; padding: 10px; border: 1.5px dashed #3a4256; border-radius: 14px; background: #10141c; color: #9aa3b5; font-size: 14px; cursor: pointer; }
.sx-mmp img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.sx-mms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sx-mms button { height: 34px; padding: 0 12px; border: 1px solid #2f3648; border-radius: 99px; background: #171c27; color: #e8ebf2; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.sx-mms button.on { border-color: #00d2ff; background: rgba(0,210,255,.14); }
.sx-rvs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.sx-rvs button, .sx-rvu { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 0; border: 1.5px solid #262c3a; border-radius: 10px; background: #f4f6fa; cursor: pointer; }
.sx-rvu { background: #10141c; border-style: dashed; color: #9aa3b5; font-size: 22px; }
.sx-rvs button.on, .sx-rvu.on { border-color: #00d2ff; box-shadow: 0 0 0 2px rgba(0,210,255,.35); }
.sx-rvs img { width: 88%; height: 88%; object-fit: contain; }
.vf-rev { background: radial-gradient(circle at 60% 60%, #fff 0 18%, transparent 19%), linear-gradient(135deg, #ff6b1a, #ffb347); }
.vf-aura { background: radial-gradient(ellipse 22% 38% at 50% 62%, #fff 0 90%, transparent 100%), radial-gradient(ellipse 32% 48% at 50% 62%, rgba(255,255,255,.5), transparent 70%), #1d2230; }
.sx-cmh { margin: 14px 2px 2px; font-size: 13px; font-weight: 700; color: var(--sm); }
.sx-cmh:first-child { margin-top: 4px; }
.vf-tx { display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 2px 0 #000; overflow: hidden; white-space: nowrap; }
.tx-click { background: linear-gradient(135deg, #2f7bff, #00d2ff); }
.tx-slam { background: radial-gradient(circle, #fff 0 8%, #444 40%, #111); font-size: 19px; letter-spacing: 1px; }
.tx-type { background: #1d2230; color: #7cf29c; font-family: monospace; font-size: 18px; }
.tx-swipe { background: linear-gradient(180deg, #1d2230, #3a4560); font-size: 26px; }
.tx-cheer { background: linear-gradient(135deg, #f97316, #facc15); color: #fff; font-size: 13px; }
.tx-check { background: #16a34a; font-size: 30px; }
.tx-cta { background: linear-gradient(135deg, #fe2c55, #ff7a45); font-size: 12px; }
.sx-wpk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sx-wpk button { height: 36px; padding: 0 14px; border: 1px solid #2a3142; border-radius: 18px; background: #1d2230; color: #dfe3ec; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.sx-wpk button.on { border-color: var(--sa); background: rgba(47,123,255,.18); color: #fff; }
.sx-wsel { display: block; width: 100%; margin-top: 8px; appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background: #0f1218 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab2c5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.sx-wsel option { background: #10141c; color: #fff; }
.sx-wck { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; max-height: 46vh; overflow: auto; }
.sx-wck button { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #5c2a2a; border-radius: 12px; background: #1c1214; color: #e8ebf2; font: inherit; text-align: left; cursor: pointer; }
.sx-wck button:hover { border-color: #ff6b6b; }
.sx-wck b { font-size: 14px; }
.sx-wck span { font-size: 12.5px; color: #ffb4b4; } .sx-wck span em { font-style: normal; font-weight: 700; color: #ff6b6b; }
.sx-wck small { font-size: 12px; color: #9fe3b0; }
.sx-trw{touch-action:pan-y}.sx-trw>span{cursor:grab}
.sx-dragsf{position:fixed;z-index:9999;pointer-events:none;padding:8px 12px;border-radius:10px;background:#1b2330;color:#e8eef5;border:1px solid #3a4658;font-size:13px;white-space:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.sx-dragsf.ok{border-color:#c8ff3d;color:#c8ff3d}
/* "?" help badges + explanation pop-up (strong selectors: they sit inside buttons that style every span) */
.cxq-on{position:relative}
html body span.cxq.cxq.cxq{position:absolute;top:4px;right:4px;left:auto;bottom:auto;z-index:3;width:14px;height:14px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(6px) saturate(160%);backdrop-filter:blur(6px) saturate(160%);color:#fff;font:700 9.5px/1 system-ui,sans-serif;text-align:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),inset 0 1px 1px rgba(255,255,255,.35),0 2px 6px rgba(0,0,0,.25);text-shadow:0 1px 1px rgba(0,0,0,.35);cursor:help;transition:transform .15s;pointer-events:auto}
html body span.cxq.cxq.cxq::after{content:"";position:absolute;inset:-9px}
html body span.cxq.cxq.cxq:hover,html body span.cxq.cxq.cxq.on{transform:scale(1.2);background:rgba(255,255,255,.3)}
.cxq-pop{position:fixed;z-index:10000;width:max-content;max-width:calc(100vw - 24px);padding:12px 14px 13px;border-radius:14px;background:#151b24;border:1px solid #2b3545;color:#c9d2de;text-align:left;box-shadow:0 14px 40px rgba(0,0,0,.45);opacity:0;transform:translateY(4px) scale(.97);transition:opacity .15s,transform .15s}
.cxq-pop.in{opacity:1;transform:none}
.cxq-pop::before{content:"";position:absolute;left:calc(var(--ax) - 7px);width:12px;height:12px;background:#151b24;border:1px solid #2b3545;transform:rotate(45deg)}
.cxq-pop.dn::before{top:-7px;border-right:0;border-bottom:0}.cxq-pop.up::before{bottom:-7px;border-left:0;border-top:0}
html body .cxq-pop .cxq-h{display:flex;align-items:center;gap:8px;margin:0 0 6px}
html body .cxq-pop .cxq-h i{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:transparent;box-shadow:inset 0 0 0 1.5px #fff;color:#fff;font:800 13px/1 system-ui,sans-serif;font-style:normal}
html body .cxq-pop .cxq-h b{flex:1;color:#fff;font-size:14.5px;white-space:nowrap;text-align:left}
html body .cxq-pop .cxq-x{flex:none;border:0;background:none;color:#8b96a8;font-size:20px;line-height:1;cursor:pointer;padding:0 2px}
html body .cxq-pop p{margin:0;font-size:13px;line-height:1.6;color:#c9d2de;white-space:pre;text-align:left}
html body .cxq-pop small{display:block;margin-top:7px;font-size:12px;line-height:1.5;color:#c8ff3d;white-space:nowrap;text-align:left}
html body.sx-desk .sx-tool > span.cxq.cxq.cxq{top:-5px;right:-5px}
html body div.cxq-pop.cxq-pop{display:block;align-items:initial}
html body .cr-what span.cxq.cxq.cxq{color:#334155;text-shadow:none;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 2px 8px rgba(15,23,42,.18)}
/* studio desktop: subtitle list in the right panel */
@media (min-width: 1000px) {
  body.sx-desk .sx-side[data-sl] { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  body.sx-desk .sx-sheet:not([hidden]) ~ .sx-side[data-sl], body.sx-desk .sx-work[hidden] ~ .sx-side[data-sl] { display: none; }
  body.sx-desk .sx-side .sx-slh { margin: -6px 0 12px; color: var(--sm); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.sx-desk .sx-sl { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; scrollbar-width: thin; }
  body.sx-desk .sx-sli { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 6px; padding: 10px 10px 10px 12px; border: 1px solid #1f2533; border-radius: 12px; background: #131722; transition: border-color .15s, background .15s; }
  body.sx-desk .sx-sli.now { border-color: rgba(0,210,255,.35); }
  body.sx-desk .sx-sli.on { border-color: #00d2ff; background: #142030; }
  body.sx-desk .sx-slt { justify-self: start; padding: 3px 8px; border: 0; border-radius: 6px; background: rgba(0,210,255,.12); color: #00d2ff; font: 600 12px/1.4 Inter, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
  body.sx-desk .sx-slt:hover { background: rgba(0,210,255,.22); }
  body.sx-desk .sx-sld { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #8a93a6; cursor: pointer; }
  body.sx-desk .sx-sld:hover { background: rgba(255,90,90,.14); color: #ff6b6b; }
  body.sx-desk .sx-sld svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.sx-desk .sx-slx { grid-column: 1 / -1; width: 100%; box-sizing: border-box; min-height: 38px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: #0f1218; color: #e8ebf2; font: 14px/1.5 "Noto Sans Thai", Inter, sans-serif; resize: none; field-sizing: content; overflow: hidden; }
  body.sx-desk .sx-slx:hover { border-color: #263044; }
  body.sx-desk .sx-slx:focus { outline: none; border-color: #00d2ff; }
}
/* ---------- Bot CloverX (บริการทั้งหมด > Bot CloverX > Bot Sales) ---------- */
.bt { background: #f4f7fc; min-height: 100vh; min-height: 100dvh; }
.bt-pad { max-width: 720px; margin: 0 auto; padding-bottom: calc(28px + var(--safe-b, 0px)); }
.bt svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-lead { margin: 2px 2px 12px; color: #64748b; font-size: 13.5px; }
.bt-card, .bt-room { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px; padding: 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); text-align: left; color: inherit; cursor: pointer; transition: transform .15s; }
.bt-card:active, .bt-room:active { transform: scale(.985); }
.bt-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; }
.bt-ic svg { width: 24px; height: 24px; }
.bt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-tx b { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-tx small { font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-go { flex: none; color: #94a3b8; } .bt-go svg { width: 20px; height: 20px; }
.bt-soon { flex: none; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: #64748b; font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.bt-how { margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
.bt-how b { font-size: 14.5px; } .bt-how ol { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: #dbeafe; } .bt-how li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; color: #0f172a; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bt-btn svg { width: 18px; height: 18px; } .bt-btn.sm { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.bt-btn.pri { border-color: transparent; background: var(--spb); color: #fff; } .bt-btn.pri:disabled { opacity: .45; }
.bt-btn.dg { color: #dc2626; border-color: #fbd5d5; } .bt-btn.wide { width: 100%; margin-bottom: 10px; }
.bt-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 10px; font-size: 15px; font-weight: 700; } .bt-h small { color: #94a3b8; font-size: 12px; font-weight: 500; }
.bt-empty, .bt-load { margin: 18px 0; color: #64748b; font-size: 13.5px; text-align: center; }
.bt-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; } .bt-dot.on { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
.bt-amt { flex: none; font-weight: 700; color: #0f172a; font-size: 14px; }
.bt-live { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.05); }
.bt-qr svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.bt-lk { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-url { margin: 0; font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-row { display: flex; gap: 8px; flex-wrap: wrap; } .bt-row.end { justify-content: space-between; margin-top: 18px; }
.bt-sw { display: flex; align-items: center; gap: 10px; cursor: pointer; } .bt-sw input { position: absolute; opacity: 0; pointer-events: none; }
.bt-sw span { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; transition: background .2s; } .bt-sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.bt-sw input:checked + span { background: #16a34a; } .bt-sw input:checked + span::after { transform: translateX(18px); } .bt-sw b { font-size: 14px; }
.bt-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.bt-stat span { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); } .bt-stat b { font-size: 18px; } .bt-stat small { color: #64748b; font-size: 12px; }
.bt-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bt-code, .bt-ord { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.bt-code > b { flex: none; min-width: 40px; padding: 4px 6px; border-radius: 8px; background: #0f172a; color: #fff; text-align: center; font-size: 14px; }
.bt-ord { margin-bottom: 6px; } .bt-tm { flex: none; color: #64748b; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bt-st { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.bt-st.gr { background: #dcfce7; color: #15803d; } .bt-st.am { background: #fef3c7; color: #b45309; } .bt-st.bl { background: #dbeafe; color: #1d4ed8; } .bt-st.rd { background: #fee2e2; color: #b91c1c; } .bt-st.gy { background: #f1f5f9; color: #64748b; }
/* editor sheet */
body.bt-lock { overflow: hidden; }
.bt-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); }
.bt-sb { width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding: 16px 16px calc(16px + var(--safe-b, 0px)); border-radius: 20px 20px 0 0; background: #fff; }
@media (min-width: 700px) { .bt-sheet { align-items: center; } .bt-sb { border-radius: 20px; } }
.bt-sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .bt-sh b { font-size: 17px; }
.bt-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f1f5f9; color: #475569; cursor: pointer; } .bt-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-lab { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #334155; }
.bt-in { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: #0f172a; } .bt-in.wide { width: 100%; box-sizing: border-box; }
.bt-in:focus { outline: none; border-color: var(--spb); }
.bt-chd, .bt-crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 70px 64px 36px; gap: 6px; align-items: center; } .bt-chd { margin-bottom: 4px; color: #94a3b8; font-size: 11.5px; } .bt-crow { margin-bottom: 6px; }
.bt-in.code { text-transform: uppercase; text-align: center; font-weight: 700; padding: 0 4px; } .bt-in.cap, .bt-in.pr { text-align: center; padding: 0 4px; }
.bt-err { margin: 4px 0 10px; color: #dc2626; font-size: 13px; } .bt-err:empty { display: none; }
/* page link, shop, order detail */
.bt-pg { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.05); }
.bt-pg .bt-tx { flex: 1 1 160px; } .bt-pg.on { border: 1.5px solid #bfdbfe; } .bt-pg.on .bt-tx { flex-basis: calc(100% - 60px); } .bt-pg.on .bt-btn { flex: 1; }
.bt-ic.fb { background: #1877f2; font: 800 24px/1 Arial, sans-serif; }
.bt-p { margin: 4px 0 10px; color: #475569; font-size: 13.5px; line-height: 1.6; }
.bt-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-ck { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; font-size: 13.5px; color: #334155; cursor: pointer; } .bt-ck input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--spb); flex: none; }
.bt-box { padding: 10px 12px; border-radius: 12px; background: #f8fafc; }
.bt-li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; } .bt-li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bt-li.tot { margin-top: 4px; padding-top: 8px; border-top: 1px solid #e2e8f0; font-size: 15px; }
.bt-addr { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #0f172a; }
.bt-slip { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid #e2e8f0; }
.bt-live1 { padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.05); } .bt-live1 .bt-p { margin: 8px 0 10px; }
button.bt-ord { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
/* on-screen board for the live stream */
.bt-show { min-height: 100vh; min-height: 100dvh; background: radial-gradient(70% 60% at 30% 30%, #12306e 0%, #050b1c 70%); color: #fff; }
.bw-x { position: fixed; top: calc(12px + var(--safe-t, 0px)); right: 12px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; } .bw-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.bw { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; min-height: 100vh; min-height: 100dvh; padding: 28px 20px; box-sizing: border-box; }
.bw-l { display: flex; flex-direction: column; align-items: center; gap: 8px; } .bw-qr { width: min(300px, 70vw); padding: 12px; border-radius: 18px; background: #fff; } .bw-qr svg { display: block; width: 100%; height: auto; }
.bw-l b { font-size: 22px; } .bw-l small { color: #9fb4dc; font-size: 13px; }
.bw-r { width: min(460px, 100%); } .bw-r h2 { margin: 0 0 14px; font-size: clamp(20px, 3vw, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-c { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); }
.bw-c b { flex: none; min-width: 54px; padding: 4px 8px; border-radius: 10px; background: #facc15; color: #0b1b4d; text-align: center; font-size: 20px; } .bw-c span { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bw-c em { flex: none; font-style: normal; font-weight: 700; font-size: 17px; color: #fde68a; }
.bw-how { margin: -4px 0 14px; color: #c7d7f5; font-size: 16px; } .bw-how b { color: #facc15; } .bw-c.out { opacity: .45; }

.bt-lockc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: #fff7ed; border: 1px solid #fed7aa; }
.bt-lockc .bt-ic { background: linear-gradient(135deg, #f59e0b, #f97316); } .bt-lockc .bt-tx { flex: 1 1 180px; }
.bt-card[data-bt-lock] { opacity: .6; }
/* studio desktop: style every text at once (right panel) */
@media (min-width: 1000px) {
  body.sx-desk .sx-slhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
  body.sx-desk .sx-slhd b { margin: 0; }
  body.sx-desk .sx-slst { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px; border: 1px solid #263044; border-radius: 999px; background: #131722; color: #e8ebf2; font: 600 12.5px/1.2 inherit; cursor: pointer; }
  body.sx-desk .sx-slst svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  body.sx-desk .sx-slst.on, body.sx-desk .sx-slst:hover { border-color: #00d2ff; color: #00d2ff; }
  body.sx-desk .sx-slp { flex: none; max-height: 58%; overflow-y: auto; margin: 6px 0 12px; padding: 4px 12px 12px; border: 1px solid #1f2533; border-radius: 12px; background: #131722; scrollbar-width: thin; }
  body.sx-desk .sx-slp .sx-lab { margin: 12px 0 6px; } body.sx-desk .sx-slp .sx-lab small { color: #6b7488; font-size: 11.5px; }
  body.sx-desk .sx-slg { margin-top: 12px; padding-top: 10px; border-top: 1px solid #1f2533; } body.sx-desk .sx-slg > b { display: block; margin: 0 0 2px; color: #e8ebf2; font-size: 13.5px; } body.sx-desk .sx-slg > b small { color: #6b7488; font-weight: 500; }
  body.sx-desk .sx-slp input[type=range] { width: 100%; accent-color: #00d2ff; }
  body.sx-desk .sx-slp .sx-sws { flex-wrap: wrap; overflow: visible; }
  body.sx-desk .sx-slp .sx-chips { gap: 6px; margin-top: 8px; } body.sx-desk .sx-slp .sx-chips button { padding: 6px 10px; font-size: 12.5px; }
  body.sx-desk .sx-tst.sm { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; padding-top: 4px; }
  body.sx-desk .sx-slp .sx-btn.wide { margin-top: 14px; }
}
.bt-view { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.bt-vk { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; } .bt-vk svg { width: 17px; height: 17px; } .bt-vk.on { color: #dc2626; font-weight: 600; }
.bt-view > b { font-size: 22px; } .bt-view > small { color: #64748b; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bot Sales : ตอบคอมเมนต์ */
.bt-rule { margin-bottom: 10px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.bt-rule.off { opacity: .6; } .bt-rh { display: flex; align-items: center; gap: 10px; }
.bt-rm { margin: 8px 0 10px; color: #64748b; font-size: 12.5px; }
.bt-sw.sm span { width: 40px; height: 24px; } .bt-sw.sm span::after { width: 18px; height: 18px; } .bt-sw.sm input:checked + span::after { transform: translateX(16px); }
.bt-in.ta { height: auto; padding: 10px; line-height: 1.6; resize: vertical; font-size: 14px; }
.bt-lab small { color: #94a3b8; font-weight: 500; font-size: 11.5px; margin-left: 4px; }
.bt-p.sm { font-size: 12px; color: #64748b; margin: 10px 0 4px; }
.bt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: #f1f5f9; }
.bt-seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; } .bt-seg button.on { background: #fff; color: var(--spb); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.bt-posts { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; margin-top: 8px; }
.bt-post { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.bt-post img, .bt-noimg { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.bt-post .bt-tx b { font-size: 13px; font-weight: 600; } .bt-post.on { border-color: var(--spb); background: #eff6ff; }
.bt-ck2 { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; } .bt-post.on .bt-ck2 { border-color: var(--spb); background: var(--spb); box-shadow: inset 0 0 0 3px #fff; }
.bt-ih { display: block; margin: 8px 0 6px; font-size: 11.5px; color: #64748b; }
.bt-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-im { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #f1f5f9; border: 1px solid #e2e8f0; }
.bt-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-imx { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; padding: 5px; border: 0; border-radius: 50%; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; }
.bt-imx svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bt-iadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 72px; height: 72px; border: 1.5px dashed #94a3b8; border-radius: 10px; color: #475569; font-size: 11.5px; font-weight: 600; cursor: pointer; background: #fff; }
.bt-iadd svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-iadd small { font-size: 10.5px; color: #94a3b8; font-weight: 500; } .bt-iadd.busy { opacity: .6; pointer-events: none; }
.bt-msg { padding: 2px 0 12px; border-bottom: 1px solid #eef2f7; } .bt-msg:last-of-type { border-bottom: 0; }
.bt-lnk { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--spb); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bt-chat { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; min-height: 160px; overflow-y: auto; padding: 12px; margin: 8px 0 10px; background: #f1f5f9; border-radius: 14px; }
.bt-msg2 { display: flex; flex-direction: column; max-width: 84%; align-self: flex-start; }
.bt-msg2 span { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #fff; color: #0f172a; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.bt-msg2.u { align-self: flex-end; } .bt-msg2.u span { background: var(--spb); color: #fff; border-radius: 16px 16px 4px 16px; }
.bt-msg2 small { margin: 3px 6px 0; font-size: 11px; color: #64748b; } .bt-msg2.u small { text-align: right; }
.bt-msg2.wait span { color: #64748b; font-style: italic; }
.bt-ask { display: flex; gap: 8px; } .bt-ask .bt-in { flex: 1; min-width: 0; min-height: 44px; }
.bt-h .bt-st { margin-left: 6px; vertical-align: 2px; }
.bt-segs { margin: 14px 0 8px; } .bt-segs button { font-size: 12.5px; padding: 0 4px; }
.bt-dgr { display: flex; align-items: center; gap: 8px; } .bt-dgr .bt-ord { flex: 1; min-width: 0; } .bt-dgc, .bt-all input { width: 20px; height: 20px; flex: none; accent-color: var(--spb); }
.bt-all { margin: 4px 0 6px; }
.bt-pgn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; font-size: 13px; color: #475569; }
.bt-steps { margin: 12px 0; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid #bfdbfe; }
.bt-steps > b { display: block; font-size: 15px; margin-bottom: 8px; }
.bt-steps ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-steps li { display: flex; align-items: center; gap: 10px; color: #64748b; }
.bt-steps li i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; font-style: normal; font-weight: 700; font-size: 13px; }
.bt-steps li span { display: flex; flex-direction: column; } .bt-steps li b { font-size: 14px; color: #334155; } .bt-steps li small { font-size: 12px; }
.bt-steps li.now i { background: var(--spb); color: #fff; } .bt-steps li.now b { color: #0f172a; }
.bt-steps li.ok i { background: #dcfce7; color: #15803d; }
.bt-more { margin-top: 14px; border-top: 1px solid #eef2f7; padding-top: 8px; } .bt-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--spb); padding: 6px 0; }
.bt-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.bt-cat .bt-imgs { flex: none; } .bt-catf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .bt-catf .bt-in { width: 100%; min-height: 38px; }
.bt-cards { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; align-self: stretch; scroll-snap-type: x mandatory; }
.bt-card2 { flex: none; width: 170px; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.1); scroll-snap-align: start; }
.bt-card2 img, .bt-card2 .bt-noimg { width: 100%; height: 110px; object-fit: cover; border-radius: 0; }
.bt-card2 b { padding: 8px 10px 0; font-size: 13.5px; } .bt-card2 small { padding: 2px 10px 8px; font-size: 12px; color: #64748b; }
.bt-card2 button { margin-top: auto; border: 0; border-top: 1px solid #eef2f7; background: #fff; color: var(--spb); font: inherit; font-weight: 700; font-size: 13.5px; min-height: 40px; cursor: pointer; }
.bt-qpre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bt-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1.5px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bt-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bt-qa { display: flex; gap: 8px; align-items: flex-start; padding: 10px; margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.bt-qa .bt-in { width: 100%; min-height: 38px; } .bt-qa .bt-imgs .bt-im, .bt-qa .bt-imgs .bt-iadd { width: 56px; height: 56px; }
.bt-mimg { max-width: 180px; border-radius: 12px; display: block; }
.bt-ql { font-size: 11.5px; color: #64748b; font-weight: 600; margin-bottom: -2px; }
.bt-qrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .bt-ck.sm { margin: 0; font-size: 12.5px; }
#acQg { margin: 4px 0 10px; } #acQg em { font-style: normal; font-size: 11.5px; color: #64748b; margin-left: 2px; }
.bt-qgt { font-style: normal; font-weight: 600; font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.bt-qbtn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .bt-qbtn .bt-in { flex: 1; min-width: 140px; width: auto; }
.bt-ib { align-items: center; } .bt-ib.new .bt-tx b { color: #0f172a; } .bt-ib.new { border-color: #bfdbfe; background: #f8fbff; }
.bt-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-weight: 700; }
.bt-ibm { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .bt-ibm small { font-size: 11px; color: #94a3b8; }
.bt-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.bt-sheet.ib-full .bt-sb { display: flex; flex-direction: column; height: min(92vh, 860px); }
.bt-chat.ib { flex: 1; max-height: none; min-height: 0; }
.bt-ask.ib { align-items: flex-end; } .bt-ask.ib textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; }
.bt-icb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; color: #334155; cursor: pointer; }
.bt-icb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-msg2.me span { background: #dcfce7; } .bt-msg2.b .bt-mimg, .bt-msg2.u .bt-mimg { margin-bottom: 4px; }
.bt-warn { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12.5px; }
.bt-aisw { margin: 4px 0; }
.bt-sh .bt-x.dg { margin-left: auto; color: #dc2626; } .bt-sh .bt-x.dg + .bt-x { margin-left: 6px; }
.bt-chat.ib .bt-msg2.u { align-self: flex-start; } .bt-chat.ib .bt-msg2.u span { background: #fff; color: #0f172a; border-radius: 16px 16px 16px 4px; } .bt-chat.ib .bt-msg2.u small { text-align: left; }
.bt-chat.ib .bt-msg2.b { align-self: flex-end; } .bt-chat.ib .bt-msg2.b span { background: var(--spb); color: #fff; border-radius: 16px 16px 4px 16px; } .bt-chat.ib .bt-msg2.b small { text-align: right; }
.bt-chat.ib .bt-msg2.b.me span { background: #16a34a; }
.bt-av svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tabbar .tab .tb-badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.gi .ic.fbl { stroke: none; display: block; border-radius: 50%; }
.bt-segl { display: flex; flex-wrap: wrap; gap: 6px; } .bt-segl .bt-chip { background: #fff; border-color: #dbe3ef; color: #334155; } .bt-segl .bt-chip b { margin-left: 4px; color: #1d4ed8; } .bt-segl .bt-chip.on { background: var(--spb); border-color: var(--spb); color: #fff; } .bt-segl .bt-chip.on b { color: #fff; }

.bt-rbr { flex: 1; min-width: 0; margin-bottom: 8px; } .bt-rbr .bt-tx small { white-space: normal; } .bt-rbr > small { display: block; margin-top: 6px; font-size: 12.5px; color: #64748b; } .bt-rbr > small.bt-ok { color: #15803d; } .bt-rba { margin-top: 10px; } .bt-rba .bt-btn { text-decoration: none; } .bt-rbm { margin: 4px 0; }
.bt-how.wr li { white-space: normal; } .bt-rba { flex-wrap: nowrap; } .bt-rba .bt-btn { padding: 0 10px; flex: none; } .bt-rba .bt-btn.dg { margin-left: auto; }
.bt-nagc .bt-tx small { white-space: normal; }
.bt-lnr .bt-rule { flex: 1; min-width: 0; margin-bottom: 8px; } .bt-lnr { align-items: flex-start; } .bt-lnr > input { margin-top: 16px; } .bt-lnr .bt-lab { margin-top: 8px; }

.pg-hd { margin-bottom: 12px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.pg-cv { height: 120px; background: linear-gradient(135deg, #1e3a8a, #2563eb) center / cover no-repeat; }
.pg-hb { display: flex; align-items: flex-start; gap: 12px; padding: 0 14px; } .pg-hb .pg-av { margin-top: -38px; } .pg-hb .bt-tx { padding-top: 8px; }
.pg-av { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; border: 4px solid #fff; background: #e2e8f0; overflow: hidden; color: #64748b; }
.pg-av img { width: 100%; height: 100%; object-fit: cover; } .pg-av svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pg-av.sm { width: 38px; height: 38px; border-width: 0; } .pg-av.sm svg { width: 20px; height: 20px; }
.pg-hb .bt-tx { min-width: 0; } .pg-hb .bt-tx b { font-size: 17px; }
.pg-ab { padding: 0 14px; margin: 8px 0 0; } .pg-act { padding: 10px 14px 14px; } .pg-act .bt-btn { text-decoration: none; }
.pg-post { margin-bottom: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.pg-ph { display: flex; align-items: center; gap: 10px; } .pg-ph .bt-tx { flex: 1; min-width: 0; } .pg-ph a.bt-x { text-decoration: none; }
.pg-txt { margin: 10px 0 6px; font-size: 14px; line-height: 1.6; color: #1e293b; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-txt.cl { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pg-img { display: block; width: calc(100% + 28px); max-height: 520px; margin: 10px -14px 0; object-fit: cover; background: #f1f5f9; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px -14px 0; } .pg-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1f5f9; } .pg-grid.n3 img:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.pg-st { display: flex; gap: 14px; margin: 10px 0; font-size: 12.5px; color: #64748b; }
.pg-end { text-align: center; } .pg-snip { padding: 8px 10px; border-radius: 10px; background: #f8fafc; }
.pg-rbox { display: flex; gap: 8px; align-items: flex-end; margin: 8px 0; } .pg-rbox .bt-in { flex: 1; min-width: 0; } .pg-rbox[hidden] { display: none; }
.pg-cm { padding: 10px 0; border-top: 1px solid #eef2f7; } .pg-cm.rp { margin-left: 22px; padding: 8px 0 0; border-top: 0; } .pg-cm.hid .pg-cb { opacity: .6; }
.pg-cb { padding: 9px 12px; border-radius: 14px; background: #f1f5f9; } .pg-cb b { font-size: 13px; } .pg-cb p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; } .pg-cb img { display: block; max-width: 180px; margin-top: 6px; border-radius: 10px; }
.pg-ca { display: flex; align-items: center; gap: 12px; padding: 4px 6px 0; font-size: 12px; color: #64748b; } .pg-ca .bt-lnk { font-size: 12.5px; } .pg-ca .bt-lnk.dg { color: #dc2626; } .pg-more { display: block; margin: 6px 0 0 28px; color: #64748b; font-size: 12px; }
.nw-pglink { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 8px 16px 0; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; } .nw-pglink[hidden] { display: none; }
.nw-pglink img { border-radius: 50%; flex: none; } .nw-pglink span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nw-pglink b { font-size: 14px; color: #0f172a; } .nw-pglink small { font-size: 12px; color: #64748b; } .nw-pglink svg { width: 18px; height: 18px; fill: none; stroke: #94a3b8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sc-txt { margin: 8px 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #1e293b; } .sc-txt mark { background: #fee2e2; color: #b91c1c; border-radius: 4px; padding: 0 2px; } .sc-why { margin: 4px 0; font-size: 12.5px; color: #92400e; } .sc-fix { margin-top: 8px; } .sc-st { margin: 4px 0 0; } .sc-ok { color: #15803d; } .bt-rba .bt-btn[hidden] { display: none; }
.bt-rba.sc-act { flex-wrap: wrap; }
.lk-url { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; font-family: ui-monospace, monospace; font-size: 12px; color: #334155; overflow-wrap: anywhere; } .lk-qr { display: grid; place-items: center; padding: 12px; } .lk-qr img { width: min(260px, 70vw); height: auto; border-radius: 12px; background: #fff; } .bt-qgt.lk { background: #ecfdf5; color: #047857; } a.bt-btn.wide { text-decoration: none; }
.bt-pk { align-items: center; margin: 8px 0; } .bt-pk img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; } .bt-pk span { min-width: 0; display: flex; flex-direction: column; } .bt-pk b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bt-pk small { color: #64748b; font-size: 12px; } #btPostBox[hidden] { display: none; }

/* โพสต์ลงเพจ Facebook จากแอป */
.tp-fb { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 8px 10px; border: 1px solid #dbe3ef; border-radius: 12px; font-size: 14px; color: #0f172a; cursor: pointer; } .tp-fb[hidden] { display: none; }
.tp-fb input { width: 18px; height: 18px; accent-color: #1877f2; flex: none; } .tp-fb img { border-radius: 50%; flex: none; } .tp-fb span { min-width: 0; overflow-wrap: anywhere; }
.tp-fda, .tp-fb { white-space: normal; }
.tp-fda { margin: 0 12px 8px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.5; } .tp-fda[hidden] { display: none; }
.tp-fda p { margin: 0 0 8px; overflow-wrap: anywhere; } .tp-fda div { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-fx, .tp-fx2 { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid #fdba74; background: #fff; color: #9a3412; cursor: pointer; } .tp-fx { background: #ea580c; border-color: #ea580c; color: #fff; } .tp-fx:disabled { opacity: .6; }
.pg-new { margin: 12px 0 4px; }
.pg-pa { gap: 8px; } .pg-pa .bt-btn:first-child { flex: 1; }
.pg-sc { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); } .pg-sc > .bt-row { flex-wrap: wrap; gap: 6px; } .pg-sc .bt-grow { flex: 1; font-size: 14px; }
.pg-si { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f7; } .pg-si input { width: 18px; height: 18px; flex: none; } .pg-si .bt-tx { flex: 1; min-width: 0; } .pg-si small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .pc-imgs:empty { display: none; }
#pqAdd[hidden] { display: none; } #pqWhen[hidden] { display: none; } #pqFda[hidden] { display: none; } #pqFda p { margin: 0 0 8px; overflow-wrap: anywhere; }

/* Bot Sales : grouped tiles instead of a long list */
.bt-gh { margin: 16px 2px 8px; font-size: 13px; font-weight: 600; color: #64748b; }
.bt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 92px; padding: 14px 6px 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); font: inherit; color: #0f172a; cursor: pointer; transition: transform .15s; }
.bt-tile:active { transform: scale(.97); }
.bt-tile b { font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.bt-tile.lk { opacity: .6; } .bt-tile em { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; } .bt-tile em svg { width: 16px; height: 16px; fill: none; stroke: #94a3b8; stroke-width: 2; }
#bsPg .bt-pg { margin-bottom: 0; }

/* ตัวอย่างการแสดงผลรูปบนเพจ Facebook + ไกด์ขนาดรูป */
.fbl-w { margin: 10px 0; padding: 10px; border: 1px solid #dbe3ef; border-radius: 14px; background: #f8fafc; } .fbl-w[hidden] { display: none; }
.tp-fbp { margin: 0 12px 8px; white-space: normal; }
.fbl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #0f172a; }
.fbl { position: relative; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #e2e8f0; }
.fbl-c { position: absolute; box-sizing: border-box; border: 1px solid #fff; overflow: hidden; display: grid; place-items: center; background: #2563eb; }
.fbl-c.s { background: #60a5fa; } .fbl-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbl-c b { color: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; text-align: center; padding: 2px; }
.fbl-c em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,.55); color: #fff; font-style: normal; font-size: 20px; font-weight: 700; }
.fbl-n { display: block; margin-top: 6px; font-size: 12px; color: #475569; text-align: center; }
.fbg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.fbg-i { display: flex; flex-direction: column; gap: 6px; } .fbg-i > b { font-size: 13px; color: #0f172a; } .fbg-i small { font-size: 11px; color: #64748b; line-height: 1.4; }
.fbg .fbl { max-width: none; }
.tp-fbp { display: grid; grid-template-columns: 112px 1fr; gap: 4px 12px; align-items: center; padding: 8px 10px; }
.tp-fbp .fbl { grid-row: 1 / 3; grid-column: 1; max-width: none; }
.tp-fbp .fbl-h { grid-column: 2; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
.tp-fbp .fbl-n { grid-column: 2; margin: 0; text-align: left; }
.tp-fbp[hidden] { display: none; }
/* ขุดแชต : เกณฑ์และข้อความที่ตั้งเอง */
.dg-set { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.dg-sl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .dg-sl b { font-size: 14px; color: #0f172a; } .dg-sl span { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-set .bt-btn { flex: none; }
.dg-h { margin: 18px 0 8px; font-size: 15px; color: #0f172a; } .dg-h:first-of-type { margin-top: 6px; }
.dg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .dg-2 .bt-lab, .bt-sb > .bt-lab { display: flex; flex-direction: column; gap: 6px; }
.dg-ck { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 6px; }
.dg-g { margin: 8px 0; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; } .dg-g .bt-in { margin-top: 8px; background: #fff; }
.dg-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .dg-gh b { font-size: 13px; color: #0f172a; }
.dg-gh .bt-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #e2e8f0; } .dg-gh .bt-seg button { font: inherit; font-size: 12px; padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: #475569; cursor: pointer; } .dg-gh .bt-seg button.on { background: #fff; color: #1d4ed8; font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.dg-tms { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; } .dg-tm { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600; }
.dg-tm button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #dbeafe; cursor: pointer; } .dg-tm svg { width: 12px; height: 12px; fill: none; stroke: #1d4ed8; stroke-width: 2.4; }
#dsAutoB[hidden] { display: none; } #dsAutoB .bt-row input[type=time] { flex: 1; }
.dg-job { padding: 8px 12px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; }
[data-dg-many] { margin-top: 10px; }
/* Bot Sales : ครั้งตอบ AI (botwallet.js) */
.bc-strip { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 10px 14px; border: 1px solid #dbe7fb; border-radius: 14px; background: linear-gradient(135deg, #f5f9ff, #eaf3ff); font: inherit; color: #0f172a; text-align: left; cursor: pointer; }
.bc-strip[hidden] { display: none; } .bc-strip.low { border-color: #fdba74; background: #fff7ed; }
.bc-strip .cr-coin { flex: none; } .bc-strip > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bc-strip small { font-size: 12px; color: #64748b; } .bc-strip b { font-size: 15px; }
.bc-strip em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 13px; font-weight: 600; color: #1d4ed8; white-space: nowrap; } .bc-strip em svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.bc-packs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.bc-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 4px; height: 120px; padding: 12px 12px 4px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.bc-chart span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; } .bc-chart i { width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #38bdf8, #1d4ed8); } .bc-chart small { font-size: 10px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.bc-uses { display: grid; gap: 6px; margin-top: 10px; } .bc-uses div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; } .bc-uses div.off { opacity: .55; } .bc-uses b { flex: 1; font-size: 13.5px; } .bc-uses em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-uses .cr-ti, .bc-what .cr-ti { width: 30px; height: 30px; }
.bc-what { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; } .bc-what p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #334155; } .bc-what p b { color: #1d4ed8; }
.bc-what > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .bc-what > div span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: #f1f6ff; text-align: center; } .bc-what > div b { font-size: 12px; line-height: 1.3; } .bc-what > div small { font-size: 12px; color: #1d4ed8; font-weight: 700; }
.bc-adv { display: grid; gap: 10px; margin-bottom: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #dbe7fb; }
.bc-ah { display: flex; gap: 10px; align-items: flex-start; } .bc-ah > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #2563eb); } .bc-ah > i svg, .bc-note i svg, .bc-ai svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.bc-ah b { display: block; font-size: 15px; } .bc-ah small { font-size: 12.5px; color: #64748b; line-height: 1.45; }
.bc-q { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; margin-top: 2px; } .bc-q output { font-variant-numeric: tabular-nums; color: #1d4ed8; }
.bc-adv input[type=range] { width: 100%; accent-color: #1d4ed8; }
.bc-tg { display: flex; flex-wrap: wrap; gap: 8px; } .bc-tg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; font-size: 13px; cursor: pointer; } .bc-tg input { accent-color: #1d4ed8; }
.bc-res { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #1d4ed8, #0891b2); color: #fff; } .bc-res small { opacity: .8; font-size: 12px; } .bc-res b { font-size: 20px; } .bc-res span { font-size: 12.5px; opacity: .9; }
.bc-ar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; } .bc-ar.on { border: 2px solid #1d4ed8; background: #f5f9ff; }
.bc-ar > span { display: flex; flex-direction: column; } .bc-ar > span:last-of-type { text-align: right; } .bc-ar b { font-size: 14px; } .bc-ar small { font-size: 12px; color: #64748b; }
.bc-ar em { position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 999px; background: #1d4ed8; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.bc-ai { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .bc-ai svg { stroke: #1d4ed8; }
.bc-note { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: #f5f3ff; } .bc-note i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #7c3aed; } .bc-note p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #3b0764; }

/* catalogue : product detail page fields */
.bt-pdp { grid-column: 1 / -1; margin-top: 2px; border-top: 1px dashed #dbe3ef; padding-top: 8px; }
.bt-pdp summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #1d4ed8; list-style: none; display: flex; justify-content: space-between; gap: 8px; } .bt-pdp summary::-webkit-details-marker { display: none; }
.bt-pdp summary small { font-weight: 400; color: #64748b; } .bt-pdp[open] summary { margin-bottom: 8px; } .bt-pdp .bt-imgs { margin: 6px 0; } .bt-pdp .bt-lnk { display: inline-block; margin-top: 4px; }

/* บริการทั้งหมด / Bot CloverX : same cards as AI Tools */
.svx .sp-bar { display: flex; align-items: center; gap: 8px; } .svx .sp-bar .bc-chip { margin-left: auto; }
.svx .cs-sub1 { margin: 2px 2px 14px; }
.cs-ti.t-bot { background: linear-gradient(135deg, #1d4ed8, #22d3ee); --tc: rgba(29,78,216,.7); }
.cs-ti.t-sales { background: linear-gradient(135deg, #047857, #34d399); --tc: rgba(5,150,105,.7); }
.cs-ti.t-cr { background: linear-gradient(135deg, #b45309, #fbbf24); --tc: rgba(217,119,6,.7); }
.svx .cs-ti svg { stroke: #fff; } .svx .cs-ti .s { fill: #fff; stroke: none; } .svx .cs-ti .f { fill: rgba(255,255,255,.2); } .svx .cs-go { stroke: var(--faint, #94a3b8); fill: none; }
/* svc / bot screens : design ก on the X-VISOR card background + credit block + shortcuts */
.bh-wrap { margin: 2px 0 12px; }
.bh-card .hero { height: auto; aspect-ratio: auto; padding: 18px 20px 20px; border-radius: 24px; }
.hslide.bh-card::before, .hslide.bh-card::after { height: auto; bottom: -3px; border-radius: 27px; }
.bh-in { position: relative; z-index: 1; }
.bh-in > small { font-size: 12px; opacity: .85; }
.bh-card .hero-title { margin: 2px 0 6px; gap: 6px; } .bh-card .hero-title b { font-size: 24px; } .bh-card .star { width: 12px; height: 12px; }
.bh-in > p { margin: 0 0 14px; font-size: clamp(11px, 3.5vw, 13px); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-st { display: flex; gap: 8px; margin-bottom: 14px; } .bh-st div { min-width: 0; max-width: 60%; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.bh-st small { display: block; font-size: 11px; opacity: .85; } .bh-st b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-cta { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px 10px 18px; border: 0; border-radius: 12px; background: #fff; color: #1d4ed8; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,229,255,.6); }
.bh-cta .cs-go { width: 18px; height: 18px; fill: none; stroke: currentColor !important; stroke-width: 2.4; }
.bh-art { position: absolute; z-index: 1; right: -12px; bottom: -16px; width: 128px; height: 128px; fill: none; stroke: rgba(191,233,255,.35); stroke-width: 1.1; opacity: .7; pointer-events: none; } .bh-art .f { fill: rgba(191,233,255,.06); } .bh-art .s { fill: rgba(191,233,255,.35); stroke: none; }
.bh-cr { display: flex; flex-direction: column; width: 100%; padding: 16px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #0f1b4c, #1e3a8a); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(15,27,76,.7); }
.bh-cr.low { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.bh-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bh-ct small { font-size: 12px; opacity: .8; } .bh-ct em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #d4ff3a; color: #1a2e05; }
.bh-n { margin: 4px 0 10px; font-size: 30px; line-height: 1.1; font-weight: 800; } .bh-n span { margin-left: 6px; font-size: 13px; font-weight: 500; opacity: .7; }
.bh-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; } .bh-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #d4ff3a); }
.bh-ft { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; opacity: .85; white-space: nowrap; } .bh-ft span { font-weight: 700; color: #d4ff3a; }
.bh-sec { margin: 18px 2px 10px; font-size: 13px; font-weight: 600; color: var(--muted, #64748b); }
.bh-rows { display: flex; flex-direction: column; gap: 10px; }
.bh-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 18px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15,23,42,.05); }
.bh-row .cs-ti { width: 44px; height: 44px; border-radius: 13px; } .bh-row .cs-tt { flex: 1; min-width: 0; } .bh-row .cs-tt b { display: block; font-size: 15px; } .bh-row .cs-tt small { display: block; font-size: 12px; color: var(--muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-row .cs-go { flex: none; width: 18px; height: 18px; fill: none; stroke: #94a3b8; stroke-width: 2.2; }
.cs-ti.t-chat { background: linear-gradient(135deg, #047857, #34d399); --tc: rgba(5,150,105,.7); } .cs-ti.t-live { background: linear-gradient(135deg, #b91c1c, #f87171); --tc: rgba(220,38,38,.7); }
.svx .cs-ti.t-chat svg, .svx .cs-ti.t-live svg { stroke: #fff; fill: none; } .svx .cs-ti.t-chat .f, .svx .cs-ti.t-live .f { fill: rgba(255,255,255,.2); }
.svx .sp-bar .bc-chip { display: none !important; }
.svx .bh-card .star { fill: #fff; stroke: none; }
.svx .bh-card .bh-art { stroke: rgba(191,233,255,.4); stroke-width: 1; opacity: .45; } .svx .bh-card .bh-art .f { fill: rgba(191,233,255,.05); } .svx .bh-card .bh-art .s { fill: rgba(191,233,255,.4); }
/* บริการทั้งหมด : 3 main groups : single cards on the X-VISOR card background (blue = open, grey = coming soon) */
.bp-list { display: flex; flex-direction: column; gap: 12px; }
.bp-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 20px; color: #fff; font: inherit; text-align: left; cursor: pointer; background: radial-gradient(70% 140% at 30% 45%, rgba(0,229,255,.18), transparent 65%), linear-gradient(90deg, #0f172a, #2563eb); box-shadow: 0 12px 24px -12px rgba(15,23,42,.55); transition: transform .15s; }
.bp-card:active { transform: scale(.985); }
.bp-card > * { position: relative; z-index: 1; }
.bp-card > .bp-fx { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; stroke: none; }
.bp-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.bp-ic svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .bp-ic .f { fill: rgba(255,255,255,.15); } .bp-ic .s { fill: #fff; stroke: none; } .bp-ic .s.o { fill: rgba(255,255,255,.6); }
.bp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .bp-tx b { font-size: 18px; } .bp-tx small { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svx .bp-card .cs-go { flex: none; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; opacity: .9; }
.bp-card.soon { background: linear-gradient(90deg, #334155, #64748b); box-shadow: 0 8px 18px -12px rgba(15,23,42,.5); opacity: .85; }
.bp-soon { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.2); color: #fff; }
.gi-pts:active .a-star, .gi-pts.tap .a-star { animation: ptsSpin .6s ease; transform-box: fill-box; transform-origin: center; }
@keyframes ptsSpin { 50% { transform: scale(1.25) rotate(36deg); } }
/* install the app on the home screen */
.pwa-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: linear-gradient(90deg, #0f172a, #2563eb); color: #fff; box-shadow: 0 10px 20px -12px rgba(37,99,235,.7); }
.pwa-bar[hidden] { display: none; }
.pwa-bar img { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; }
.pwa-bar > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pwa-bar b { font-size: 14px; } .pwa-bar small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-go { flex: none; padding: 8px 14px; border: 0; border-radius: 10px; background: #fff; color: #1d4ed8; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pwa-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.pwa-sh { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; background: rgba(2,6,23,.55); padding: 16px; }
.pwa-card { width: 100%; max-width: 420px; padding: 20px; border-radius: 20px; background: #fff; color: #0f172a; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.pwa-card > b { display: block; font-size: 17px; margin-bottom: 8px; } .pwa-card ol { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.pwa-ok { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #1e3a8a, #2563eb); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
/* ---------- performance: decorative loops only run where someone can see them ---------- */
/* while the page scrolls, hidden in the background, or a block is off screen : freeze the decoration (keeps 60fps on mid phones) */
html.fx-hidden *, html.fx-hidden *::before, html.fx-hidden *::after,
.fx-off, .fx-off *, .fx-off *::before, .fx-off *::after, .fx-off::before, .fx-off::after { animation-play-state: paused !important; }
/* the card waiting behind the front card does not animate */
.hero-wrap:not(.alt) .hs-xl *, .hero-wrap:not(.alt) .hs-xl::before, .hero-wrap:not(.alt) .hs-xl::after,
.hero-wrap.alt .hs-xv *, .hero-wrap.alt .hs-xv::before, .hero-wrap.alt .hs-xv::after { animation-play-state: paused !important; }

/* ---------- GPU-only effects: same look, nothing repainted per frame ----------
   neon edge : the conic light is drawn once on a square that turns (transform), clipped to the card outline;
   the soft glow is the same square, blurred once (filter is applied before the turn, so it is not redrawn)
   film grain : the noise tile is drawn once on an oversized layer that jumps around (transform) */
.hslide.hs-xv::before, .hslide.hs-xv::after { display: none !important; }
.edgefx { position: absolute; left: -3px; right: -3px; top: -3px; bottom: -3px; border-radius: calc(7.9cqw + 3px); overflow: hidden; pointer-events: none; z-index: 0; }
.edgefx.glow { z-index: -1; opacity: .85; filter: blur(12px); } /* blurred on the GPU: the light inside only turns */
.bh-card .edgefx { border-radius: 27px; }
.edgefx > i { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; background: conic-gradient(from 0deg, transparent 0 62%, rgba(0,229,255,.2) 70%, #00e5ff 80%, #9ee8ff 83%, rgba(96,165,250,.6) 88%, transparent 94%); transform: translate(-50%, -50%) rotate(0deg); animation: edgeSpin 6s linear infinite; will-change: transform; }
@keyframes edgeSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero::after, .slide::after { inset: -160px; border-radius: 0; animation-name: grainMove; will-change: transform; }
@keyframes grainMove { 0% { transform: translate(0, 0); } 17% { transform: translate(-37px, 21px); } 33% { transform: translate(52px, -14px); } 50% { transform: translate(-18px, -46px); } 67% { transform: translate(29px, 58px); } 83% { transform: translate(-61px, 7px); } 100% { transform: translate(0, 0); } }
.hero-fx .mc, .mascot { will-change: transform; }
/* ---------- Knowledge : bookshelf ---------- */
.kn-pad { padding-bottom: 120px; }
.kn-sub { margin: 4px 2px 16px; font-size: 13px; color: var(--muted, #64748b); }
.kn-chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.kn-chips::-webkit-scrollbar { display: none; }
.kn-chips button { flex: 0 0 auto; height: 36px; padding: 0 16px; border: 1px solid #dbe3ee; border-radius: 999px; background: #fff; color: #334155; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.kn-chips button.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.kn-cab { position: relative; margin: 66px 6px 26px; filter: drop-shadow(0 18px 18px rgba(15,23,42,.22)); }
.kn-top { position: absolute; left: 18px; right: 18px; bottom: 100%; display: flex; align-items: flex-end; justify-content: space-between; height: 44px; pointer-events: none; }
.kn-top .kn-deco { width: 46px; } .kn-top .kn-mini { width: 54px; }
.kn-crown { position: relative; height: 16px; margin: 0 -6px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #ffffff 0 5px, #f1f5f9 5px 9px, #ffffff 9px 11px, #dfe6ef 11px); box-shadow: inset 0 -1px 0 #cbd5e1, 0 0 0 1px rgba(203,213,225,.6); z-index: 2; }
.kn-body { position: relative; padding: 0 13px; background: linear-gradient(90deg, #e3e9f1 0, #ffffff 4px, #f8fafc 9px, #e9eef5 13px, #e9eef5 calc(100% - 13px), #f8fafc calc(100% - 9px), #ffffff calc(100% - 4px), #d7dfea 100%); box-shadow: 0 0 0 1px rgba(203,213,225,.6); }
.kn-base { position: relative; height: 22px; margin: 0 -2px; border-radius: 2px 2px 3px 3px; background: linear-gradient(180deg, #ffffff 0 4px, #eef2f7 4px, #d9e1eb); box-shadow: inset 0 1px 0 #cbd5e1, 0 0 0 1px rgba(203,213,225,.6); }
.kn-base i { position: absolute; top: 100%; width: 16px; height: 8px; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, #cfd8e3, #b6c2d1); }
.kn-base i:first-child { left: 10px; } .kn-base i:last-child { right: 10px; }
.kn-shelf { position: relative; margin: 0; }
.kn-shelf[hidden] { display: none; }
.kn-gap { display: block; aspect-ratio: 3 / 4.3; }
.kn-empty .kn-row { min-height: 128px; }
.kn-frame svg { width: 88%; margin: 0 auto; } .kn-lean svg { width: 82%; }
.kn-cell { position: relative; overflow: hidden; background: radial-gradient(90% 60% at 50% 15%, rgba(96,165,250,.2), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 38px), linear-gradient(180deg, #0f172a, #172f6e); }
.kn-cell > i { position: absolute; z-index: 0; }
.kn-wl, .kn-wr { top: 0; bottom: 0; width: 13px; }
.kn-wl { left: 0; clip-path: polygon(0 0, 100% 11px, 100% calc(100% - 12px), 0 100%); background: linear-gradient(90deg, #aebbcc, #8d9cb2); }
.kn-wr { right: 0; clip-path: polygon(0 11px, 100% 0, 100% 100%, 0 calc(100% - 12px)); background: linear-gradient(90deg, #7f8fa7, #a3b1c4); }
.kn-wt { left: 0; right: 0; top: 0; height: 11px; clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 13px 100%); background: linear-gradient(180deg, #6b7c96, #8494ab); }
.kn-wb { left: 0; right: 0; bottom: 0; height: 12px; clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #c9d3df, #eef2f7); }
.kn-cell::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 14px 16px -12px rgba(0,0,0,.55); pointer-events: none; z-index: 3; }
.kn-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; align-items: end; padding: 26px 17px 6px; }
.kn-book { --c: #2563eb; --f: #bfdbfe; position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.3; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: #fff; isolation: isolate; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3,1.3,.5,1); -webkit-tap-highlight-color: transparent; }
.kn-book:hover, .kn-book:focus-visible { transform: translateY(-6px); outline: 0; }
.kn-book:active { transform: translateY(-3px) scale(.98); }
.kn-book::after { content: ""; position: absolute; left: 4%; right: 2%; bottom: -3px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.6); filter: blur(4px); z-index: -1; transition: opacity .35s; }
.kn-book:hover::after { opacity: .4; }
.kn-fc, .kn-cf { background: linear-gradient(90deg, rgba(0,0,0,.34) 0, rgba(255,255,255,.16) 3.5%, rgba(0,0,0,.2) 6.5%, transparent 11%), linear-gradient(135deg, rgba(255,255,255,.2) 0, rgba(255,255,255,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,.24) 100%), var(--c); }
.kn-fc { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9px 5px 8px 9px; border-radius: 2px 5px 5px 2px; text-align: left; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 2px 0 0 #f6f2e8, 3px 1px 0 #d9d2c0; }
.kn-fc::after, .kn-cf::after { content: ""; position: absolute; top: 0; bottom: 0; left: 38%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); transform: skewX(-12deg); pointer-events: none; }
.kn-fc small, .kn-cf small { font-size: 6.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--f); opacity: .9; }
.kn-fc i, .kn-cf i { display: block; width: 12px; height: 2px; margin: 5px 0 0; border-radius: 1px; background: var(--f); opacity: .8; }
.kn-fc b { margin-top: auto; font-size: 11.5px; letter-spacing: -.01em; font-weight: 800; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-deco { display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.kn-deco svg * { stroke-width: inherit; } .kn-deco svg { display: block; stroke: none; width: 100%; height: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.kn-stack svg { width: 104%; }
.kn-plank { position: relative; height: 16px; margin: 0 -13px; background: linear-gradient(180deg, #ffffff 0 3px, #f3f6fa 3px, #e2e8f0); box-shadow: inset 0 -1px 0 #cbd5e1, inset 0 1px 0 #fff; z-index: 2; }
.kn-plank span { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); padding: 1px 8px; border-radius: 2px; background: linear-gradient(180deg, #1e3a8a, #0f172a); box-shadow: 0 0 0 1px #94a3b8, inset 0 1px 0 rgba(255,255,255,.15); font-size: 7px; font-weight: 800; line-height: 9px; letter-spacing: .18em; text-transform: uppercase; color: #dbeafe; }
.kb1 { --c: #2563eb; } .kb2 { --c: #0f2e7a; } .kb3 { --c: #1e40af; }
.kb4 { --c: #1b2b52; } .kb5 { --c: #1d4ed8; } .kb6 { --c: #0369a1; --f: #bae6fd; }
/* open book */
.kn-open { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 24px; background: rgba(15,23,42,0); transition: background .4s ease; }
.kn-open.in { background: rgba(15,23,42,.62); }
.kn-stage { --bw: min(156px, 42vw); width: var(--bw); height: calc(var(--bw) * 1.42); perspective: 1600px; transform-origin: 50% 50%; will-change: transform; }
.kn-stage.fly { transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.kn-bk { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45,.05,.2,1); }
.kn-open.opened .kn-bk { transform: translateX(50%); }
.kn-page { position: absolute; inset: 3px 5px 3px 0; display: flex; flex-direction: column; padding: 16px 14px 12px; border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, rgba(0,0,0,.09), transparent 12%), #fffdf7; color: #1e293b; text-align: left; cursor: pointer; box-shadow: 2px 0 0 #f1ece0, 4px 0 0 #e7e1d2, 5px 1px 6px rgba(0,0,0,.25); -webkit-tap-highlight-color: transparent; }
.kn-page small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; } .kn-page h4 { margin: 4px 0 10px; font-size: 17px; color: #0f172a; }
.kn-ln { display: block; height: 5px; margin: 0 0 7px; border-radius: 3px; background: #ece7db; } .kn-ln.s { width: 64%; }
.kn-page p { margin: 6px 0 auto; font-size: 11px; line-height: 1.5; color: #475569; white-space: nowrap; } .kn-page p b { display: block; font-weight: 700; color: #2563eb; }
.kn-page em { align-self: center; font-style: normal; font-size: 10px; font-weight: 700; color: #2563eb; opacity: 0; transition: opacity .3s .6s; } .kn-open.opened .kn-page em { opacity: 1; }
.kn-cv { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.5,.05,.2,1); }
.kn-open.opened .kn-cv { transform: rotateY(-178deg); }
.kn-cf, .kn-cb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kn-cf { display: flex; flex-direction: column; padding: 20px 16px 18px 24px; border-radius: 3px 8px 8px 3px; color: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 44px rgba(0,0,0,.4); }
.kn-cf small { font-size: 10px; } .kn-cf i { width: 24px; margin-top: 10px; }
.kn-cf h3 { margin: auto 0 0; font-size: 24px; font-weight: 800; line-height: 1.1; color: #fff; }
.kn-cb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kn-cb { transform: rotateY(180deg); border-radius: 8px 3px 3px 8px; background: var(--c); }
.kn-cb::before { content: ""; position: absolute; inset: 3px 0 3px 3px; border-radius: 6px 0 0 6px; background: linear-gradient(270deg, rgba(0,0,0,.16), transparent 14%), #f5f1e7; }
.kn-close { border: 0; border-radius: 999px; padding: 10px 22px; background: rgba(255,255,255,.95); color: #0f172a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.kn-open.opened .kn-close { opacity: 1; transform: none; transition-delay: .5s; }
.kn-read { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: #fffdf7; transform-origin: 0 0; will-change: transform; }
.kn-read.fly { transition: transform .45s cubic-bezier(.2,.8,.2,1), border-radius .45s; }
.kn-rh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #eee7d8; touch-action: none; }
.kn-rh::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #e2dccd; }
.kn-rh div { flex: 1; min-width: 0; } .kn-rh small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.kn-rh b { display: block; font-size: 17px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-rx { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1ece0; color: #0f172a; font-size: 20px; line-height: 1; cursor: pointer; }
.kn-rb { flex: 1; overflow-y: auto; padding: 22px 20px 40px; color: #334155; font-size: 14px; line-height: 1.7; }
.kn-rb .kn-ln { height: 8px; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .kn-stage.fly, .kn-bk, .kn-cv, .kn-read.fly { transition-duration: .01s; } }
.kn-fc.kn-pic, .kn-cf.kn-pic { background-color: var(--c); background-size: cover; background-position: center; }
.kn-fc.kn-pic::after, .kn-cf.kn-pic::after { background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 4%, rgba(0,0,0,.14) 7%, transparent 12%); left: 0; width: 100%; transform: none; }
/* Link Page (บริการทั้งหมด > Link Page) */
.ml .bt-pad { padding-bottom: calc(96px + var(--safe-b, 0px)); }
.ml svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ml-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.ml-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ml-it b { font-size: 16px; } .ml-it small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ml-ph { flex: none; position: relative; width: 58px; height: 92px; border-radius: 14px; background: linear-gradient(165deg, #0027a6, #0350f5 50%, #00b4e6); box-shadow: 0 8px 18px -8px rgba(3,80,245,.7); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; overflow: hidden; }
.ml-ph .a { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.ml-ph b { width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.9); } .ml-ph s { width: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.55); margin-bottom: 3px; }
.ml-ph span { width: 42px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); animation: mlPh 2.4s ease-in-out infinite; } .ml-ph span:nth-of-type(2) { animation-delay: .3s; } .ml-ph span:nth-of-type(3) { animation-delay: .6s; }
@keyframes mlPh { 0%, 70%, 100% { background: rgba(255,255,255,.22); } 35% { background: rgba(255,255,255,.55); } }
.ml-sec { margin-bottom: 12px; padding: 16px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05); }
.ml-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; } .ml-sec h3 em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ml-hint { display: block; margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; } p.ml-hint { margin: -6px 0 10px; }
.ml-hint.ok { color: #059669; } .ml-hint.bad { color: #dc2626; }
.ml-f { display: block; margin-top: 12px; } .ml-f > span { display: flex; align-items: center; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: #334155; } .ml-f > span em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--faint); }
.ml-f input, .ml-f textarea, .ml-so input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dbe3ef; border-radius: 12px; background: #f8fafc; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, background .15s; }
.ml-f textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.ml-f input:focus, .ml-f textarea:focus, .ml-so input:focus, .ml-slug:focus-within { border-color: var(--spb); background: #fff; }
.ml-slug { display: flex; align-items: center; min-height: 48px; border: 1px solid #dbe3ef; border-radius: 12px; background: #f8fafc; overflow: hidden; transition: border-color .15s; }
.ml-slug span { flex: none; padding: 0 2px 0 13px; font-size: 15px; font-weight: 700; color: var(--muted); }
.ml-slug input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; padding: 0 12px 0 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--spb); outline: none; }
.ml-hero { position: relative; overflow: hidden; margin-bottom: 12px; padding: 16px; border-radius: 22px; color: #fff; background: radial-gradient(70% 120% at 85% 0%, rgba(0,229,255,.28), transparent 60%), linear-gradient(140deg, #0f1b4c, #1d4ed8 60%, #0891b2); box-shadow: 0 16px 30px -16px rgba(29,78,216,.8); }
.ml-hero > :not(.hero-fx) { position: relative; z-index: 1; }
.ml-hero > small { font-size: 12.5px; opacity: .8; }
.ml-url { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; color: #fff; text-align: left; }
.ml-url span { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; } .ml-url b { font-size: 19px; opacity: 1; color: #fff; }
.ml-url svg { flex: none; width: 18px; height: 18px; opacity: .8; }
.ml-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.ml-acts > * { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.ml-acts > *:active { transform: scale(.95); background: rgba(255,255,255,.24); } .ml-acts svg { width: 21px; height: 21px; }
.ml-st { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(4,12,40,.28); }
.ml-st > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ml-st small { font-size: 11.5px; opacity: .78; white-space: nowrap; } .ml-st b { font-size: 18px; }
.ml-on { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; cursor: pointer; }
.ml-on input, .ml-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.ml-on i, .ml-sw i { position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.3); transition: background .2s; }
.ml-on i::after, .ml-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.ml-on input:checked + i { background: #22c55e; } .ml-on input:checked + i::after, .ml-sw input:checked + i::after { transform: translateX(18px); }
.ml-on input:focus-visible + i, .ml-sw input:focus-visible + i { outline: 2px solid #93c5fd; outline-offset: 2px; }
.ml-ban { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(220,38,38,.85); font-size: 13px; }
.ml-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 14px; background: #e2e8f0; }
.ml-seg button { min-height: 40px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: #475569; transition: background .2s, color .2s; } .ml-seg button[aria-pressed="true"] { background: #fff; color: var(--spb); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ml-prof { display: flex; align-items: center; gap: 14px; }
.ml-av { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #2563eb, #00e5ff, #2563eb); }
.ml-av > img, .ml-av > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #fff; border: 2px solid #fff; color: #1d4ed8; font-size: 28px; font-weight: 800; }
.ml-av i { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--spb); color: #fff; border: 2px solid #fff; } .ml-av i svg { width: 15px; height: 15px; }
.ml-pa { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .ml-pa small { font-size: 12.5px; color: var(--muted); }
.ml-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ml-li { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 4px; border-radius: 14px; background: #f8fafc; border: 1px solid #e8eef6; transition: opacity .2s; }
.ml-li.off .ml-lt { opacity: .45; }
.ml-mv { flex: none; display: flex; flex-direction: column; } .ml-mv button { width: 30px; height: 24px; display: grid; place-items: center; color: #64748b; border-radius: 8px; } .ml-mv button:disabled { opacity: .25; } .ml-mv svg { width: 18px; height: 18px; }
.ml-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 0; text-align: left; }
.ml-lt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-lt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-lt em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11.5px; color: var(--spb); font-weight: 600; } .ml-lt em svg { width: 13px; height: 13px; }
.ml-sw { flex: none; cursor: pointer; display: flex; } .ml-sw i { background: #cbd5e1; } .ml-sw input:checked + i { background: var(--spb); }
.ml-del { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #dc2626; } .ml-del svg { width: 19px; height: 19px; } .ml-del:active { background: #fee2e2; }
.ml-empty { margin: 0 0 10px; padding: 18px 12px; border-radius: 14px; border: 1.5px dashed #cbd5e1; text-align: center; font-size: 13.5px; color: var(--muted); }
.ml-add { margin-bottom: 0; color: var(--spb); border-style: dashed; border-color: #93c5fd; background: #eff6ff; } .ml-add:disabled { color: var(--muted); border-color: #e2e8f0; background: #f8fafc; }
.ml-so { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ml-so span { flex: none; width: 104px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #334155; white-space: nowrap; } .ml-so span svg { width: 19px; height: 19px; color: var(--spb); }
.ml-so input { flex: 1; min-width: 0; min-height: 44px; font-size: 14.5px; }
.ml-th { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ml-th button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid transparent; background: #f8fafc; font-size: 11.5px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; }
.ml-th button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ml-th button[aria-pressed="true"] { border-color: var(--spb); background: #eff6ff; }
.ml-th i { width: 100%; height: 76px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ml-th s { width: 64%; height: 9px; border-radius: 5px; } .ml-th s:first-child { width: 16px; height: 16px; border-radius: 50%; margin-bottom: 2px; }
.ml-th .t-blue i { background: linear-gradient(165deg, #0027a6, #0350f5 50%, #00b4e6); } .ml-th .t-blue s { background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); }
.ml-th .t-gold i { background: radial-gradient(120% 70% at 50% 0%, #24306b, #0f1838 60%, #070b1d); } .ml-th .t-gold s { background: rgba(255,215,90,.12); border: 1px solid #ffd257; }
.ml-th .t-light i { background: #f1f5f9; border: 1px solid #e2e8f0; } .ml-th .t-light s { background: #fff; border: 1px solid #dbe3ef; } .ml-th .t-light s:first-child { background: #2563eb; }
.ml-th .t-dark i { background: radial-gradient(100% 60% at 50% 0%, #12305f, #0b1220 60%, #05080f); } .ml-th .t-dark s { background: rgba(0,229,255,.1); border: 1px solid rgba(0,229,255,.5); }
.ml-th .t-blue s:first-child, .ml-th .t-dark s:first-child { background: #fff; } .ml-th .t-gold s:first-child { background: #ffd257; }
.ml-th em { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--spb); color: #fff; } .ml-th em svg { width: 13px; height: 13px; stroke-width: 3; }
.ml-dz h3 { color: #b91c1c; }
.ml-prev { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ml-warn { align-self: stretch; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; }
.ml-phone { width: min(100%, 340px); height: min(640px, 70vh); padding: 10px; border-radius: 34px; background: #0f172a; box-shadow: 0 20px 40px -16px rgba(15,23,42,.6), inset 0 0 0 2px #334155; }
.ml-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: #fff; }
.ml-save { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b, 0px)); transform: translateX(-50%); z-index: 50; width: min(calc(100% - 24px), 560px); display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 18px; background: #0f172a; color: #fff; box-shadow: 0 14px 30px -10px rgba(15,23,42,.6); animation: mlUp .25s ease; }
.ml-save span { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-save .bt-btn:not(.pri) { background: transparent; color: #cbd5e1; border-color: #334155; }
@keyframes mlUp { from { transform: translate(-50%, 20px); opacity: 0; } }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ml-chips button { padding: 6px 11px; border-radius: 99px; background: #eff6ff; color: #1d4ed8; font-size: 12.5px; font-weight: 600; }
.ml-sbtn { display: flex; gap: 8px; margin-top: 16px; } .ml-sbtn > * { flex: 1; text-decoration: none; } .ml-sbtn .dg { flex: 0 0 auto; }
.ml-sheet svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ml-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; text-align: center; } .ml-qr img { width: 240px; height: 240px; border-radius: 16px; border: 1px solid #e2e8f0; } .ml-qr b { margin-top: 6px; font-size: 15px; } .ml-qr small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 380px) { .ml-so span { width: 92px; font-size: 12.5px; } .ml-acts > * { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .ml-ph span, .ml-save { animation: none; } }

/* Knowledge : reading a book made of page pictures */
.kn-pn { flex: none; padding: 4px 10px; border-radius: 99px; background: #f1ece0; color: #64748b; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kn-pgs { padding: 12px 10px 40px; background: #efe9dc; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kn-pi { flex: none; position: relative; margin: 0; width: 100%; max-width: 760px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(60,40,10,.14); cursor: zoom-in; }
.kn-pi img { display: block; width: 100%; height: auto; min-height: 120px; background: #f8f5ee; }
.kn-pi figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(15,23,42,.55); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none; }
.kn-pi.zm { overflow-x: auto; cursor: zoom-out; -webkit-overflow-scrolling: touch; }
.kn-pi.zm img { width: 230%; max-width: none; }
.kn-pi.zm figcaption { display: none; }
.kn-zh { margin: 0; font-size: 12px; color: #8a7f6a; }
/* Link Page v2 : Openlink-style editor (design list, block sheets) */
.ml-seg { grid-template-columns: repeat(4, 1fr); }
.ml-art { flex: none; width: 46px; height: 46px; fill: #d4d9e2; stroke: none; }
.ml-art rect, .ml-art circle, .ml-art path { stroke: none; } .ml-art path[fill="none"] { stroke: #d4d9e2; fill: none; stroke-linecap: round; }
.ml-dsg { padding: 12px; }
.ml-cover { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; background: #f1f5f9; }
.ml-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-cover span { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.ml-cover span button { padding: 5px 11px; border-radius: 10px; background: rgba(15,23,42,.72); color: #fff; font-size: 12.5px; font-weight: 600; }
.ml-cover.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #cbd5e1; color: #64748b; font-size: 13.5px; font-weight: 600; background: linear-gradient(135deg, #f8fafc, #eef4ff); }
.ml-cover.add svg { width: 26px; height: 26px; }
.ml-prow { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #eef2f7; }
.ml-pav { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #dbeafe, #e0f2fe); color: #1d4ed8; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dbe3ef; }
.ml-pav img { width: 100%; height: 100%; object-fit: cover; } .ml-pav.big { width: 76px; height: 76px; font-size: 28px; }
.ml-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; } .ml-pt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-pt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-ed { flex: none; padding: 6px 2px; font-size: 13px; font-weight: 700; color: #0f172a; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ml-blist { list-style: none; margin: 0; padding: 0; }
.ml-br { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #eef2f7; transition: opacity .2s; }
.ml-br.off .ml-bt, .ml-br.off .ml-art { opacity: .4; }
.ml-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 2px 0; text-align: left; }
.ml-bt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-bt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-addb { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; text-align: left; }
.ml-addb > span:first-child { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; color: #0f172a; } .ml-addb > span:first-child svg { width: 22px; height: 22px; }
.ml-addb:disabled { opacity: .5; }
.ml-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 2px; font-size: 13px; color: #334155; }
.ml-foot button { display: inline-flex; align-items: center; gap: 5px; color: #4f46e5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; } .ml-foot button svg { width: 16px; height: 16px; }
.ml-foot > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ml-ring { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#0f172a calc(var(--p) * 1%), #e2e8f0 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.ml-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .ml-kpi div { padding: 10px; border-radius: 12px; background: #f8fafc; } .ml-kpi small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; } .ml-kpi b { font-size: 19px; }
.ml-clk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ml-clk li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #f8fafc; overflow: hidden; }
.ml-clk li > span { flex: 1; min-width: 0; position: relative; z-index: 1; } .ml-clk b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-clk small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-clk em { position: relative; z-index: 1; font-style: normal; font-weight: 800; color: var(--spb); }
.ml-clk i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(37,99,235,.12), rgba(6,182,212,.1)); border-radius: 12px; }
.ml-mt { margin-top: 12px; margin-bottom: 0; }
.ml-pf { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; } .ml-pf > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ml-h4 { margin: 18px 0 8px; font-size: 14.5px; color: #0f172a; }
.ml-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ml-kinds button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 14px; background: #f4f6f9; transition: background .15s, transform .15s; min-width: 0; }
.ml-kinds button:active { transform: scale(.96); background: #eaf1ff; }
.ml-kinds button .ml-art { width: 42px; height: 42px; margin-bottom: 2px; } .ml-kinds b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .ml-kinds small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ml-kinds .wide { grid-column: 1 / -1; flex-direction: row; gap: 10px; padding: 12px; text-align: left; border: 1px solid #dbe3ef; background: linear-gradient(135deg, #fff, #f1f5ff); }
.ml-kinds .wide .ml-art { width: 54px; height: 54px; } .ml-kinds .wide b { font-size: 14px; } .ml-kinds .wide small { white-space: normal; }
.ml-sw2 { margin-left: auto; margin-right: 8px; font-size: 12.5px; font-weight: 700; color: #4f46e5; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ml-ilist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid #eef2f7; }
.ml-ilist li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f7; } .ml-ilist li.off .ml-bt { opacity: .45; }
.ml-ith { flex: none; width: 42px; height: 42px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #f1f5f9; color: #334155; font-size: 22px; }
.ml-ith img { width: 100%; height: 100%; object-fit: cover; } .ml-ith svg { width: 20px; height: 20px; } .ml-ith em { font-style: normal; }
.ml-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #4f46e5; background: #f5f3ff; } .ml-more svg { width: 18px; height: 18px; } .ml-more:disabled { color: var(--muted); background: #f8fafc; }
.ml-pk { margin-top: 12px; } .ml-pk button { width: 100%; aspect-ratio: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; border: 1.5px dashed #cbd5e1; background: #f8fafc; color: #64748b; font-size: 13px; font-weight: 600; overflow: hidden; }
.ml-pk.r-tall button { aspect-ratio: 4 / 5; } .ml-pk.r-free button { max-width: none; aspect-ratio: 16 / 10; }
.ml-pk button svg { width: 26px; height: 26px; } .ml-pk button img { width: 100%; height: 100%; object-fit: cover; } .ml-pk.r-free button img { object-fit: contain; background: #fff; }
.ml-pk small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ml-pvh { margin: 6px 0 6px; text-align: center; font-size: 11px; letter-spacing: .2em; color: #94a3b8; font-weight: 700; }
.ml-pv { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 52px; border-radius: 16px; background: #f8f7f6; border: 1px solid #e3e1de; box-shadow: 0 2px 6px rgba(40,30,20,.08); }
.ml-pv b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-pvi { position: absolute; left: 9px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; overflow: hidden; } .ml-pvi img { width: 100%; height: 100%; object-fit: cover; } .ml-pvi svg { width: 20px; height: 20px; }
.ml-seg2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f1f5f9; }
.ml-seg2 button { min-height: 38px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #475569; } .ml-seg2 button[aria-pressed="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ml-emo { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 8px; } .ml-emo button { aspect-ratio: 1; border-radius: 10px; font-size: 21px; background: #f8fafc; } .ml-emo button[aria-pressed="true"] { background: #dbeafe; box-shadow: inset 0 0 0 2px var(--spb); }
.ml-th { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ml-th .t-cream i { background: #f3f2f1; border: 1px solid #e3e1de; } .ml-th .t-cream s { background: #f8f7f6; border: 1px solid #d9d5cf; } .ml-th .t-cream s:first-child { background: #2b2a28; }
.ml-sheet .bt-sb { padding-bottom: calc(18px + var(--safe-b, 0px)); }
.ml-sheet .ml-phone { margin: 4px auto 0; }
.ml .ml-art, .ml-sheet .ml-art { fill: #d4d9e2; stroke: none; }
.ml .ml-art path[fill="none"], .ml-sheet .ml-art path[fill="none"] { fill: none; stroke: #d4d9e2; }
body.bt-lock .toast { z-index: 260; width: max-content; max-width: calc(100vw - 32px); white-space: normal; text-align: center; } /* messages stay above pop-up sheets */
/* Knowledge : flip book (two pages side by side, turn around the spine) */
.kn-read .kn-md { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f1ece0; color: #64748b; }
.kn-read .kn-md svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; } .kn-read .kn-md.on { background: #1e3a8a; color: #fff; }
.kn-fbw { flex: 1; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 40%, #33406b 0%, #222b4a 55%, #161c33 100%); }
.kn-fbw[hidden], .kn-pgs[hidden] { display: none; }
.kn-fb { flex: 1; min-height: 0; display: grid; place-items: center; perspective: 1600px; perspective-origin: 50% 45%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; overflow: hidden; }
.kn-bkk { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.kn-bkk::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 26px; background: radial-gradient(50% 50% at 50% 0%, rgba(0,0,0,.45), transparent 70%); transform: translateZ(-60px); pointer-events: none; }
.kn-lf { position: absolute; left: 50%; top: 0; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,.7,.2,1); will-change: transform; }
.kn-pf { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff center / 100% 100% no-repeat; border-radius: 1px 7px 7px 1px; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; }
.kn-pf.bk { transform: rotateY(180deg); border-radius: 7px 1px 1px 7px; }
.kn-pf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.06) 6%, transparent 14%, transparent 94%, rgba(255,255,255,.12) 100%); }
.kn-pf.bk::after { background: linear-gradient(270deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.06) 6%, transparent 14%, transparent 94%, rgba(255,255,255,.12) 100%); }
.kn-lf.turn .kn-pf::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 60%); pointer-events: none; }
.kn-fbn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px 4px; }
.kn-fbn button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 14px; font-weight: 600; transition: transform .15s, opacity .2s; }
.kn-fbn button:active { transform: scale(.92); } .kn-fbn button:disabled { opacity: .3; }
.kn-fbn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kn-fbw .kn-zh { padding: 2px 16px calc(14px + var(--safe-b, 0px)); text-align: center; color: rgba(255,255,255,.6); }
.kn-zv { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #efe9dc; opacity: 0; transform: scale(.96); transition: opacity .25s, transform .25s; }
.kn-zv.in { opacity: 1; transform: none; }
.kn-zh2 { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fffdf7; border-bottom: 1px solid #eee7d8; } .kn-zh2 b { font-size: 15px; color: #0f172a; }
.kn-zh2 button { width: 36px; height: 36px; border-radius: 50%; background: #f1ece0; font-size: 22px; color: #475569; }
.kn-zv .kn-pi { margin: 12px auto 0; width: calc(100% - 20px); flex: none; max-height: none; overflow-y: visible; }
.kn-zv { overflow-y: auto; } .kn-zv .kn-zh { text-align: center; padding: 10px 16px 20px; }
@media (prefers-reduced-motion: reduce) { .kn-lf, .kn-bkk { transition-duration: .01s; } }
.ml-cover.add em { font-style: normal; }
#mlCreate { margin-top: 16px; }

/* Knowledge : two-finger zoom in the reader */
.kn-fb, .kn-zb { touch-action: none; }
.kn-zw { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: 0 0; transform-style: preserve-3d; will-change: transform; }
.kn-zz { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.kn-fb.kn-zoomed { cursor: move; }
.kn-fbn.zoomed .kn-fp, .kn-fbn.zoomed .kn-fn { opacity: .3; pointer-events: none; }
.kn-zv { overflow: hidden; }
.kn-zb { flex: 1; min-height: 0; overflow: hidden; position: relative; background: #2a2f45; }
.kn-zw2 { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: 0 0; will-change: transform; }
.kn-zw2 img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.kn-zv .kn-zh { color: #8a7f6a; }
/* Knowledge : reading on the shelf (the bookcase stays behind, dimmed) */
.kn-fo { gap: 14px; padding: 12px 10px calc(16px + var(--safe-b, 0px)); }
.kn-fo.in { background: rgba(15,23,42,.7); }
.kn-fstage { position: relative; flex: none; transform-origin: 50% 50%; will-change: transform; }
.kn-fstage.fly { transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.kn-fstage .kn-fb { position: absolute; inset: -40px -10px -40px -46px; display: grid; place-items: center; overflow: visible; }
.kn-fo.kn-fzm .kn-fstage .kn-fb { overflow: hidden; }
.kn-fstage .kn-zw { display: grid; place-items: center; }
.kn-fctl { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .3s .45s, transform .3s .45s; }
.kn-fo.opened .kn-fctl, .kn-fo.opened .kn-fhint { opacity: 1; transform: none; }
.kn-fctl button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; transition: transform .15s, opacity .2s; }
.kn-fctl button:active { transform: scale(.9); } .kn-fctl button:disabled { opacity: .3; }
.kn-fctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kn-fpn { min-width: 86px; text-align: center; color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kn-fhint { margin: -6px 0 0; font-size: 12px; color: rgba(255,255,255,.65); opacity: 0; transition: opacity .3s .5s; }
.kn-fo .kn-close { margin-top: 2px; }
.kn-fo.kn-fzm .kn-fp, .kn-fo.kn-fzm .kn-fn { opacity: .3; pointer-events: none; }
/* Knowledge : one big page at a time, a turned page stands up at the left like paper */
.kn-fstage .kn-lf { left: 0; }
.kn-fstage .kn-pf.fr { border-radius: 2px 8px 8px 2px; }
.kn-fstage .kn-pf.bk { background: linear-gradient(90deg, #ece7dc, #f7f4ee 30%, #f3efe6); border-radius: 8px 2px 2px 8px; }
.kn-fstage .kn-pf.bk i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; transform: scaleX(-1); opacity: .1; filter: grayscale(1); }
.kn-fstage .kn-pf.fr::after { background: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.07) 4%, transparent 10%, transparent 96%, rgba(255,255,255,.14) 100%); }
.kn-fstage .kn-lf.turn .kn-pf.fr::before { background: linear-gradient(270deg, rgba(0,0,0,.2), transparent 55%); }

/* realistic page turn : the sheet is a chain of thin strips that bend like paper, shaded by how far each strip faces away from the light */
.kn-fstage .kn-st { position: absolute; top: 0; left: 0; width: var(--sw); height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.kn-fstage .kn-st .kn-st { left: var(--sw); }
.kn-fstage .kn-sf, .kn-fstage .kn-sb { position: absolute; top: 0; bottom: 0; left: 0; right: -.6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.kn-fstage .kn-sf { background: #fff no-repeat; background-size: var(--pw) var(--ph); background-position: calc(var(--i) * var(--sw) * -1) 0; }
.kn-fstage .kn-sb { transform: rotateY(180deg); background: linear-gradient(90deg, #f3efe6, #f7f4ee); }
.kn-fstage .kn-sb i { position: absolute; inset: 0; background: no-repeat; background-size: var(--pw) var(--ph); background-position: calc(var(--i) * var(--sw) * -1) 0; transform: scaleX(-1); opacity: .1; filter: grayscale(1); }
.kn-fstage .kn-sf b, .kn-fstage .kn-sb b { position: absolute; inset: 0; background: #1c1a17; opacity: 0; pointer-events: none; z-index: 1; }
.kn-fstage .kn-st.s0 > .kn-sf { border-radius: 2px 0 0 2px; }
.kn-fstage .kn-st.s0 > .kn-sf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.06) 45%, transparent); pointer-events: none; }
.kn-fstage .kn-st.se > .kn-sf { border-radius: 0 8px 8px 0; right: 0; }
.kn-fstage .kn-st.se > .kn-sb { border-radius: 8px 0 0 8px; right: 0; }
.kn-fstage .kn-bkk::before { content: ""; position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateZ(-20px); pointer-events: none; }
.kn-fstage .kn-cast { position: absolute; top: 0; left: 0; width: 70px; height: 100%; opacity: 0; pointer-events: none; z-index: 55; background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,.1) 40%, transparent); }

/* E-Learning exam clips (สอบทีละพาร์ต): own controls, no seeking, no speed-up */
.el-shield { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.el-big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,42,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.el-shield.paused .el-big { opacity: 1; transform: none; }
.el-big svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.el-sc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0f172a; color: #e2e8f0; }
.el-pp { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.el-pp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#elPlay svg { fill: currentColor; stroke: none; }
.el-sbar { flex: 1; min-width: 0; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.el-sbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #22d3ee); box-shadow: 0 0 8px rgba(34,211,238,.6); transition: width .5s linear; }
.el-time { flex: none; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-rule { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #fed7aa; }
.el-rule svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.el-player.el-fs { position: fixed; inset: 0; z-index: 900; aspect-ratio: auto; background: #000; }
.el-player:fullscreen { aspect-ratio: auto; background: #000; }
.el-fsbar { display: none; }
.el-player.el-fs .el-fsx, .el-player:fullscreen .el-fsx { display: grid; }
.el-fsx { display: none; position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; place-items: center; background: rgba(15,23,42,.6); color: #fff; }
.el-fsx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#elExam { background: linear-gradient(135deg, #1f6fdc, #00b4e0); color: #fff; box-shadow: 0 8px 20px rgba(31,111,220,.4); }
.el-end { gap: 10px; }
.el-list li.lock button { opacity: .55; }
.el-list li.lock .el-n { background: #e2e8f0; color: #64748b; }
.el-pt { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: #eaf2fe; color: #1f6fdc; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.el-list li.passed .el-pt { background: #dcfce7; color: #15803d; }
.er-cta.ghost { background: #fff; color: #1f6fdc; border: 1.5px solid #bfd6fb; box-shadow: none; }

/* under an exam clip that has been watched : take that part's exam right here */
.el-go { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; background: linear-gradient(135deg, #eef6ff, #e0f2fe); border-bottom: 1px solid #bfdbfe; }
.el-goi { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1f6fdc, #00b4e0); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px rgba(31,111,220,.3); }
.el-goi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.el-got { flex: 1; min-width: 0; }
.el-got b { display: block; font-size: 14px; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-got small { display: block; margin-top: 1px; font-size: 12px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#elGoB { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: linear-gradient(135deg, #1f6fdc, #00b4e0); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(31,111,220,.32); white-space: nowrap; animation: elGoP 2.2s ease-in-out infinite; }
#elGoB:disabled { opacity: .6; animation: none; }
@keyframes elGoP { 0%, 100% { box-shadow: 0 8px 18px rgba(31,111,220,.32); } 50% { box-shadow: 0 8px 26px rgba(0,180,224,.5), 0 0 0 4px rgba(31,111,220,.15); } }
.el-go.ok { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-bottom-color: #bbf7d0; }
.el-go.ok .el-goi { background: linear-gradient(135deg, #22c55e, #16a34a); }
.el-go.wait { background: #f8fafc; border-bottom-color: #e2e8f0; }
.el-go.wait .el-goi { background: #94a3b8; box-shadow: none; }
.el-go.wait #elGoB { background: #fff; color: #1f6fdc; border: 1.5px solid #bfd6fb; box-shadow: none; animation: none; }
@media (prefers-reduced-motion: reduce) { #elGoB { animation: none; } }
/* Link Page : look editor (templates, background, buttons, font) and detailed stats */
.ml-tpl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ml-tpl button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 5px 4px 8px; border-radius: 14px; border: 2px solid transparent; background: #f8fafc; font-size: 12px; font-weight: 600; color: #334155; min-width: 0; }
.ml-tpl button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tpl button[aria-pressed="true"] { border-color: var(--spb); background: #eff6ff; }
.ml-tpl i { width: 100%; height: 92px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.ml-tpl u { width: 16px; height: 16px; border-radius: 50%; margin-bottom: 2px; }
.ml-tpl s { width: 70%; height: 11px; box-sizing: border-box; }
.ml-tpl em { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--spb); color: #fff; } .ml-tpl em svg { width: 13px; height: 13px; stroke-width: 3; }
.ml-look { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.ml-mini { width: 150px; height: 280px; padding: 5px; border-radius: 22px; background: #0f172a; box-shadow: 0 12px 24px -12px rgba(15,23,42,.55), inset 0 0 0 2px #334155; overflow: hidden; }
.ml-mini iframe { width: 350px; height: 675px; border: 0; border-radius: 40px; background: #fff; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.ml-lk .ml-th { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ml-lk .ml-th i { height: 56px; }
.ml-seg2.n2 { grid-template-columns: repeat(2, 1fr); } .ml-seg2.n3 { grid-template-columns: repeat(3, 1fr); }
.ml-h4.f { margin-top: 0; }
.ml-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.ml-col { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; cursor: pointer; min-width: 0; }
.ml-col input { width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.ml-col input::-webkit-color-swatch-wrapper { padding: 0; } .ml-col input::-webkit-color-swatch { border: 1px solid rgba(15,23,42,.15); border-radius: 9px; }
.ml-col span { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-col b { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ml-bgi { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .ml-bgi img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.ml-sw3 { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-sw3 button, .ml-cc { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(15,23,42,.15); cursor: pointer; }
.ml-sw3 button.auto { width: auto; padding: 0 12px; border-radius: 99px; background: #f1f5f9; font-size: 12.5px; font-weight: 600; color: #334155; }
.ml-sw3 [aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--spb); }
.ml-cc { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #ec4899, #ef4444); }
.ml-cc[aria-pressed="true"] { background: var(--c); }
.ml-cc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ml-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ml-fonts button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: #f8fafc; border: 2px solid transparent; min-width: 0; }
.ml-fonts b { font-size: 15px; color: #0f172a; white-space: nowrap; } .ml-fonts small { max-width: 100%; font-family: inherit; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-fonts [aria-pressed="true"] { border-color: var(--spb); background: #eff6ff; }
.ml-fxr { display: flex; align-items: center; gap: 12px; cursor: pointer; } .ml-fxr > span { flex: 1; min-width: 0; } .ml-fxr b { display: block; font-size: 15px; } .ml-fxr small { display: block; font-size: 12.5px; color: var(--muted); }
.ml-fxr input { position: absolute; opacity: 0; width: 1px; height: 1px; } .ml-fxr i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: #cbd5e1; transition: background .2s; }
.ml-fxr i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ml-fxr input:checked + i { background: var(--spb); } .ml-fxr input:checked + i::after { transform: translateX(18px); } .ml-fxr input:focus-visible + i { outline: 2px solid var(--spb); outline-offset: 2px; }
.ml-per { margin-bottom: 12px; }
.ml-kpi.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ml-kpi.k4 div { min-width: 0; }
.ml-chart { margin-top: 14px; } .ml-chart svg { display: block; width: 100%; height: 130px; overflow: visible; }
.ml-chart line { stroke: #e2e8f0; stroke-width: 1; } .ml-chart rect { stroke: none; } .ml-chart .v { fill: #3b82f6; } .ml-chart .c { fill: #06b6d4; }
.ml-cx { position: relative; height: 18px; margin-top: 4px; font-size: 11px; color: var(--muted); } .ml-cx span { position: absolute; top: 0; white-space: nowrap; }
.ml-lg { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 12px; color: #475569; } .ml-lg i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; } .ml-lg i.v { background: #3b82f6; } .ml-lg i.c { background: #06b6d4; } .ml-lg em { margin-left: auto; font-style: normal; color: var(--muted); }
.ml-clk em small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; }
.ml-srcs { margin-top: 8px; } .ml-srcs button { display: inline-flex; align-items: center; gap: 5px; } .ml-srcs svg { width: 14px; height: 14px; }
.ml-dev { height: 14px; border-radius: 99px; background: #a5f3fc; overflow: hidden; } .ml-dev i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #3b82f6); border-radius: 99px 0 0 99px; }
.ml-devl { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: #334155; } .ml-devl i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; } .ml-devl i.m { background: #3b82f6; } .ml-devl i.d { background: #a5f3fc; }
@media (max-width: 420px) {
  .ml-look { grid-template-columns: 1fr; } .ml-mini { margin: 0 auto; }
  .ml-kpi.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-tpl i { height: 76px; } .ml-fonts b { font-size: 13.5px; }
}
.er-parts span[data-ep] { cursor: pointer; } .er-parts span[data-ep]:active { transform: scale(.96); } .er-parts span[data-ep]:focus-visible { outline: 2px solid var(--b3); outline-offset: 2px; }

/* v167 : Credit Balance (เครดิต AI) follows the glass concept like the home cards */
.screen.cr { --crg-bg: linear-gradient(160deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.44) 100%); --crg-bd: 1.2px solid rgba(255,255,255,.75); --crg-sh: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 20px -16px rgba(20,50,120,.4); }
.screen.cr .cr-body { scrollbar-width: none; }
.screen.cr .cr-body::-webkit-scrollbar { display: none; }
.screen.cr .cr-stats > div, .screen.cr .cr-trial, .screen.cr .cr-hist, .screen.cr .cr-hist.ov-g, .screen.cr .cr-pk:not(.on):not([aria-pressed="true"]) {
  background: var(--crg-bg) !important; border: var(--crg-bd) !important; box-shadow: var(--crg-sh) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.screen.cr .cr-hist, .screen.cr .cr-hist.ov-g { border-radius: 20px !important; }
.screen.cr .cr-hi + .cr-hi { border-top: 1px solid rgba(255,255,255,.7); }
.screen.cr .cr-pk .cr-pp, .screen.cr .cr-pk:not(.on) .cr-price { background: rgba(255,255,255,.55); }
/* the top-up bar floats as a glass pill instead of a white strip across the screen */
.screen.cr .cr-bar { margin: 4px 0 0; padding: 10px 10px 10px 14px; bottom: calc(10px + var(--safe-b)); border-radius: 22px; border: var(--crg-bd); border-top: var(--crg-bd);
  background: linear-gradient(160deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.6) 100%); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 14px 30px -14px rgba(20,50,120,.45); }
@media (min-width: 1000px) { .screen.cr .cr-bar { margin: 4px 0 0; padding-left: 14px; padding-right: 10px; } }
