/* Reduced CSS generated from current page */

/* From: http://127.0.0.1:5500/styles/main.css */
:root { --bg: #0a0f1a; --card: #0f1625; --soft: #0c1423; --ink: #e5e7eb; --muted: #94a3b8; --border: #0b2a55; --radius: 22px; --shadow: 0 10px 30px rgba(2,6,23,.45); --cta: #3b82f6; --cta-shadow: #1e40af; --cta-grad-start: #2563eb; --cta-grad-end: #1e40af; --chip-bg: rgba(30,58,138,.25); --chip-ink: #e2e8f0; --fx-blue: #60a5fa; --fx-blue-soft: #3b82f6; --fx-grid-stroke: rgba(96,165,250,.35); --fx-trace-grad-1: #93c5fd; --fx-trace-grad-2: #3b82f6; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0px; overflow-x: hidden; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--bg); color: var(--ink); }
.container { max-width: 1120px; margin: 0px auto; padding: 20px 20px 64px; position: relative; z-index: 2; }
header { position: sticky; top: 0px; z-index: 10; backdrop-filter: saturate(120%) blur(6px); }
.hero-left h1 { font-size: clamp(32px, 6vw, 48px); margin: 0px 0px 12px; }
.hero-left p, .hero-left li { color: var(--muted); }
.hero-art { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.btn { cursor: pointer; border: 1px solid var(--border); background: rgb(12, 20, 35); color: rgb(203, 213, 225); border-radius: 12px; padding: 10px 12px; }
footer { margin-top: 18px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.tech-map { position: fixed; inset: 0px; opacity: 0.18; }
.tech-traces { position: fixed; inset-inline: 0px; bottom: 0px; height: 55vh; }
@keyframes fadeUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0px); }
}
.container { padding: 14px 14px 56px; }
@media (max-width: 980px) {
header { backdrop-filter: none; }
.hero { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.hero-art { order: -1; padding: 12px; }
}
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
@keyframes wiggle {
0% { transform: rotate(0deg) translateY(0px); }
25% { transform: rotate(-5deg) translateY(-1px); }
50% { transform: rotate(0deg) translateY(0px); }
75% { transform: rotate(5deg) translateY(-1px); }
100% { transform: rotate(0deg) translateY(0px); }
}
header { transition: box-shadow 0.25s, background 0.25s; }
.btn.btn-primary { background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end)); color: rgb(230, 240, 255); border: 1px solid var(--cta-shadow); box-shadow: rgba(0, 0, 0, 0.28) 0px 8px 18px, rgba(59, 130, 246, 0.35) 0px 0px 12px; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.btn.btn-ghost { background: transparent; color: rgb(191, 219, 254); border: 1px solid rgba(59, 130, 246, 0.35); text-decoration: none; }
.panel { transition: transform 0.18s, box-shadow 0.18s; will-change: transform; }
@media (any-hover: none) {
@keyframes lift-on-enter {
0% { transform: translateY(10px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
40% { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.28) 0px 10px 28px; }
100% { transform: translateY(0px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
}
}
@keyframes drift {
0% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
100% { transform: translateY(0px); }
}
.container, header { position: relative; z-index: 2; }
* { transition-property: opacity, transform, box-shadow, border-color, background, color; transition-duration: 0.4s; transition-timing-function: ease; }
.panel, .btn { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.panel, .btn { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
* { transition: none !important; }
.panel, .btn { transform: none !important; opacity: 1 !important; }
}
select, textarea { width: 100%; background: rgb(12, 20, 35); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, rgb(147, 197, 253) 50%), linear-gradient(135deg, rgb(147, 197, 253) 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
option { background: rgb(12, 20, 35); color: var(--ink); }
.site-shell { max-width: 1120px; margin-inline: auto; padding: 20px 20px 64px; }
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.tech-map { position: fixed; inset: 0px; opacity: 0.18; }
.tech-traces { position: fixed; inset-inline: 0px; bottom: 0px; height: 55vh; }
.tech-glow { position: fixed; left: 50%; top: 33%; transform: translate(-50%, -50%); width: 60vmin; height: 60vmin; border-radius: 9999px; filter: blur(28px); background: radial-gradient(circle, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08) 45%, transparent 60%); }
.tech-particles { position: fixed; inset: 0px; }
@keyframes tech-drift {
0% { transform: translateX(0px); }
100% { transform: translateX(-10%); }
}
@keyframes tech-floatY {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
}
@keyframes tech-twinkle {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
@keyframes fadeSlide {
0% { opacity: 0; transform: translateY(14px); }
100% { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
h1 { font-size: 1.6rem; line-height: 1.25; }
.site-shell { padding: 14px 14px 56px; }
}
.practice-page .site-shell { max-width: 1120px; margin: 0px auto; padding: 20px 20px 64px; }
.practice-page .panel header { padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--border); border-top-left-radius: 18px; border-top-right-radius: 18px; }
.practice-page .panel .content { padding: 16px; }
.practice-page textarea, .practice-page select, .practice-page #prompt { width: 100%; background: rgb(12, 20, 35); color: var(--ink); border: 1px solid var(--border); border-radius: 14px; padding: 12px; font-size: 16px; outline: none; resize: vertical; }
.practice-page #prompt { min-height: 220px; }
.practice-page .toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }
.practice-page .toolbar .meta { color: var(--muted); }
.practice-page .btn.ghost { background: transparent; color: rgb(203, 213, 225); border: 1px solid rgba(59, 130, 246, 0.4); box-shadow: none; }
.practice-page .mv-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.practice-page .mv-head { display: flex; justify-content: space-between; align-items: center; }
.practice-page .mv-who { display: flex; align-items: center; gap: 10px; }
.practice-page .mv-avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.practice-page .mv-title { font-weight: 900; color: var(--ink); }
.practice-page .mv-sub { font-size: 0.92rem; color: var(--muted); }
.practice-page .mv-score { background: rgba(30, 58, 138, 0.3); border: 1px solid var(--border); color: rgb(199, 210, 254); padding: 6px 10px; border-radius: 999px; font-weight: 800; min-width: 64px; text-align: center; }
.practice-page .mv-row { margin-top: 8px; }
.practice-page .mv-pill { display: inline-block; font-size: 0.85rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.practice-page .mv-pill-good { background: var(--good-bg); border: 1px solid var(--good-br); color: var(--good-ink); }
.practice-page .mv-pill-warn { background: var(--warn-bg); border: 1px solid var(--warn-br); color: var(--warn-ink); }
.practice-page .mv-pill-accent { background: var(--accent-bg); border: 1px solid var(--accent-br); color: var(--accent-ink); }
.practice-page .mv-checklist { list-style: disc; padding-left: 20px; margin: 0px; }
.practice-page .mv-rewrite { position: relative; border-radius: 14px; padding: 12px 44px 12px 12px; background: rgb(12, 20, 35); border: 1px solid var(--border); max-height: 150px; overflow-y: auto; }
.practice-page .askai-backdrop { display: none; place-items: center; position: fixed; inset: 0px; background: rgba(0, 0, 0, 0.6); z-index: 1000; padding: 20px; }
.practice-page .askai-card { width: min(900px, 100%); max-width: 600px; margin: auto; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.practice-page .askai-card header { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 10px; margin: 0px 4px 10px; background: var(--soft); border-bottom: 1px solid var(--border); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.practice-page .askai-textarea { min-height: 180px; width: 100%; background: rgb(12, 20, 35); color: var(--ink); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.practice-page .askai-close { border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 10px; padding: 4px 10px; background: transparent; color: rgb(203, 213, 225); font-weight: 800; cursor: pointer; }
.practice-page .askai-status { display: none; margin: 10px 0px; padding: 8px 10px; border-radius: 10px; font-weight: 800; color: rgb(199, 210, 254); background: rgba(30, 58, 138, 0.3); border: 1px solid var(--border); }
.practice-page .askai-output { display: none; margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--soft); white-space: pre-wrap; }
@media (max-width: 640px) {
.practice-page #prompt { min-height: 180px !important; font-size: 15px !important; }
.practice-page .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
.practice-page .toolbar .meta { order: 2; text-align: center; }
.practice-page .toolbar > * { width: 100%; }
.practice-page .btn { width: 100%; padding: 12px 14px; box-shadow: 0 3px 0 var(--cta-shadow); }
}
@keyframes soup-steam {
0% { transform: translate(-50%, 0px) scale(0.6); opacity: 0.6; }
100% { transform: translate(-50%, -100px) scale(1.4); opacity: 0; }
}
@keyframes soup-bub {
0% { transform: translateY(20px) scale(0.4); opacity: 0; }
30% { opacity: 0.9; }
100% { transform: translateY(-60px) scale(1); opacity: 0; }
}
@keyframes soup-pop {
0% { transform: scale(0.9); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
@keyframes soup-shake {
10%, 90% { transform: translateX(-1px); }
20%, 80% { transform: translateX(2px); }
30%, 50%, 70% { transform: translateX(-4px); }
40%, 60% { transform: translateX(4px); }
}
.hidden { display: none !important; }
@keyframes sidebarPulse {
0%, 100% { box-shadow: 0 3px 0 var(--cta-shadow),
      0 0 12px rgba(59,130,246,.3); }
50% { box-shadow: 0 4px 0 var(--cta-shadow),
      0 0 20px rgba(59,130,246,.55),
      0 0 30px rgba(104,181,255,.25) inset; }
}
.btn { cursor: pointer; }
.muted { color: var(--muted); }
.btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; }
.site-shell { padding-top: 70px; }
.techy-title { color: var(--fx-blue); font-weight: 800; letter-spacing: -0.01em; line-height: 1.12; text-shadow: rgba(77, 166, 255, 0.35) 0px 0px 12px, rgba(77, 166, 255, 0.2) 0px 0px 24px; }
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }


@media (max-width: 640px) {
.techy-title { margin-top: 1.25rem; margin-bottom: 0.75rem; font-size: 1.75rem; line-height: 1.2; text-align: center; text-shadow: rgba(80, 140, 255, 0.25) 0px 0px 18px; }
}
@media (max-width: 640px) {
.hero { padding-top: 48px; padding-bottom: 20px; }
}
@media (max-width: 640px) {
.btn, button { min-height: 42px; padding: 10px 14px; }
}
@media (max-width: 640px) {
body { font-size: 1rem; line-height: 1.6; }
}

.btn.btn-primary, #upgrade-btn, #btnRun, #askAiBtnBasic, #heroUpgradeBtn, #geminiBox .saveLib, #claudeBox .saveLib, #loginNowBtn { background: rgb(0, 7, 19) !important; color: rgb(250, 250, 255) !important; border-color: rgb(0, 24, 51) !important; }
footer a { color: rgb(250, 250, 255) !important; text-decoration-color: rgba(250, 250, 255, 0.7); }
@media (prefers-reduced-motion: reduce) {
.tech-bg animate { display: none !important; }
}
@keyframes tech-floatY {
0%, 100% { transform: translateY(-2px); }
50% { transform: translateY(2px); }
}
@keyframes tech-twinkle {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
.login-toast { position: fixed; top: 50%; left: 50%; z-index: 99999; transform: translate(-50%, -40%) scale(0.92); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; background: color-mix(in srgb, var(--card, #020617) 80%, var(--cta, #38bdf8) 20%); border: 1px solid color-mix(in srgb, var(--border, #1f2937) 60%, var(--cta, #38bdf8) 40%); color: var(--ink, #e5e7eb); box-shadow: rgba(56, 189, 248, 0.25) 0px 0px 0px 1px, rgba(15, 23, 42, 0.65) 0px 18px 45px, rgba(56, 189, 248, 0.45) 0px 0px 36px; font-size: 1.05rem; letter-spacing: 0.02em; pointer-events: none; transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes debug-pulse {
0% { transform: translateY(0px); box-shadow: rgba(59, 130, 246, 0.28) 0px 8px 24px; }
50% { transform: translateY(-2px); box-shadow: rgba(59, 130, 246, 0.45) 0px 14px 40px; }
100% { transform: translateY(0px); box-shadow: rgba(59, 130, 246, 0.28) 0px 8px 24px; }
}

/* From: <inline style> */
.slice { padding: 28px 0px; }
.container { max-width: 1120px; margin: 0px auto; padding: 0px 20px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.hero-art img { max-width: 80%; height: auto; max-height: 258px; object-fit: contain; border-radius: var(--radius); margin: 0px auto; display: block; }
.layer-1 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.panel > header { padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 800; color: var(--ink); }
.panel > .content { padding: 14px; }
textarea#prompt { width: 100%; min-height: 160px; resize: vertical; border-radius: 12px; padding: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.toolbar .meta { color: var(--muted); font-size: 13px; }
.mv-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.mv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mv-who { display: flex; align-items: center; gap: 10px; }
.mv-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.mv-title { font-weight: 800; }
.mv-sub { color: var(--muted); font-size: 13px; }
.mv-score { font-weight: 800; }
.mv-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.mv-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip-bg); color: var(--chip-ink); font-size: 12px; font-weight: 700; }
.mv-checklist { margin: 0px; padding: 0px; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.mv-actions { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; background: rgba(0, 0, 0, 0.14); }
.layer-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) {
.layer-2 { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (min-width: 1500px) {
.layer-2 { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
}
.model-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); min-width: 0px; display: flex; flex-direction: column; }
.model-card > header, .model-actions { padding: 12px 16px; }
.model-card > header { display: flex; justify-content: space-between; align-items: center; }
.model-name { font-weight: 800; }
.badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip-bg); color: var(--chip-ink); }
.model-body { padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.model-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; min-width: 0px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px 10px; overflow-wrap: anywhere; }
.rewrite { white-space: pre-wrap; overflow-wrap: anywhere; }
.model-actions { display: flex; gap: 10px; border-top: 1px solid var(--border); }
.layer-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
.layer-3 { grid-template-columns: 1.2fr 1fr 1fr; }
}
.upgrade-callout, .info-card, .weekly-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; }
.with-blue-border { border-color: rgb(30, 58, 138); }
.challenge-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--border); color: var(--chip-ink); font-weight: 800; }
.weekly-card { transition: transform 0.18s, box-shadow 0.22s, border-color 0.22s; }
.btn { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: rgb(232, 235, 255); cursor: pointer; }
.btn.btn-primary { background: var(--cta); color: var(--cta-ink); border: none; box-shadow: 0 2px 6px var(--cta-shadow); font-weight: 700; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 980px) {
.hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
.layer-1 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
header .actions #btnSignIn, header .actions #btnSignOut { display: none !important; }
.mv-actions .btn { flex: 1 1 48%; min-width: 0px; white-space: normal; }
}
@media (min-width: 641px) {
#side-nav #menuSignIn, #side-nav #menuSignOut { display: none !important; }
}


@keyframes spin {
  to { transform: rotate(360deg); }
}

.compare-loading p {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
  /* ---------- LAYOUT BASICS ---------- */
    .slice { padding: 28px 0; }
    .container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

    .hero { display:grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items:start; }
    .hero-art img { max-width: 80%; height: auto; max-height: 258px; object-fit: contain; border-radius: var(--radius); margin: 0 auto; display: block; }

    /* LAYER 1: Prompt + Mini Vara */
    .layer-1 { display:grid; grid-template-columns: 1.1fr 1fr; gap:16px; }
    .panel { background: var(--card); border:1px solid var(--border); border-radius:18px; box-shadow: var(--shadow); }
    .panel > header { padding: 12px 14px; border-bottom:1px solid var(--border); font-weight:800; color: var(--ink); }
    .panel > .content { padding: 14px; }
    textarea#prompt { width:100%; min-height:160px; resize:vertical; border-radius:12px; padding:12px; border:1px solid var(--border); background:rgba(255,255,255,.03); color:var(--ink); }
    .toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }
    .toolbar .meta { color: var(--muted); font-size: 13px; }

    /* Mini Vara card */
    .mv-card { display:grid; grid-template-rows:auto auto 1fr auto; gap:12px; }
    .mv-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
    .mv-who { display:flex; align-items:center; gap:10px; }
    .mv-avatar { width:44px; height:44px; border-radius:12px; object-fit:cover; border:1px solid var(--border); }
    .mv-title { font-weight:800; }
    .mv-sub { color:var(--muted); font-size: 13px; }
    .mv-score { font-weight:800; }
    .mv-row { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px; }
    .mv-pill { display:inline-block; padding:3px 10px; border-radius:999px; border:1px solid var(--border); background:var(--chip-bg); color:var(--chip-ink); font-size:12px; font-weight:700; }
    .mv-checklist { margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:10px; }
    .mv-rewrite pre { margin:0; padding:12px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.04); white-space: pre-wrap; overflow-wrap:anywhere; }
    .mv-actions { border-top:1px solid var(--border); padding:12px; display:flex; gap:8px; flex-wrap:wrap; background:rgba(0,0,0,.14); }

    /* LAYER 2: 3-Model Feedback */
    .layer-2 { display:grid; gap:16px; grid-template-columns:1fr; }
    @media (min-width:1100px){ .layer-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
    @media (min-width:1500px){ .layer-2 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

    .model-card { background: var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); min-width:0; display:flex; flex-direction:column; }
    .model-card > header, .model-actions { padding:12px 16px; }
    .model-card > header { display:flex; justify-content:space-between; align-items:center; }
    .model-name { font-weight:800; }
    .badge { font-size:12px; font-weight:800; padding:4px 10px; border-radius:999px; border:1px solid var(--border); background:var(--chip-bg); color:var(--chip-ink); }
    .model-body { padding: 12px 16px 4px; display:flex; flex-direction:column; gap:14px; overflow:hidden; }
    .model-row { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start; min-width:0; }
    .chip-wrap { display:flex; flex-wrap:wrap; gap:8px 10px; overflow-wrap:anywhere; }
    .rewrite { white-space: pre-wrap; overflow-wrap:anywhere; }
    .model-actions { display:flex; gap:10px; border-top:1px solid var(--border); }

    /* LAYER 3: Upgrade / Info / Weekly */
    .layer-3 { display:grid; gap:16px; grid-template-columns:1fr; }
    @media (min-width:900px){ .layer-3 { grid-template-columns:1.2fr 1fr 1fr; } }
    .upgrade-callout, .info-card, .weekly-card { background:var(--card); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); padding:16px 18px; }
    .with-blue-border { border-color:#1e3a8a; }
    .challenge-badge { display:inline-block; padding:4px 10px; border-radius:999px; background:var(--chip-bg); border:1px solid var(--border); color:var(--chip-ink); font-weight:800; }
    .weekly-card { transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease; }
    .weekly-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(2,6,23,.45); border-color: #93c5fd; }

    /* Buttons */
    .btn { padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:rgba(255,255,255,.06); color:#e8ebff; cursor:pointer; }
    .btn.btn-primary { background: var(--cta); color: var(--cta-ink); border:none; box-shadow:0 2px 6px var(--cta-shadow); font-weight:700; }
    .btn.ghost { background: rgba(255,255,255,.04); }

    /* Mobile specifics */
    @media (max-width: 980px){ .hero{ grid-template-columns:1fr; } }
    @media (max-width: 860px){ .layer-1 { grid-template-columns:1fr; } }
    @media (max-width:640px){
      header .actions #btnSignIn, header .actions #btnSignOut{ display:none !important; }
      .mv-actions .btn { flex:1 1 48%; min-width:0; white-space:normal; }
    }
    @media (min-width:641px){
      #side-nav #menuSignIn, #side-nav #menuSignOut{ display:none !important; }
    }

    .techy-title { color: var(--fx-blue); font-weight:800; letter-spacing:-.01em; line-height:1.12; text-shadow: 0 0 12px rgba(77,166,255,.35), 0 0 24px rgba(77,166,255,.20); }
/* === Mini Vara rewrite layout fix === */
/* Remove any box appearance and force natural flow */
.mv-rewrite-row {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: flex-start;
  gap: 6px;
}

/* Reset rewrite box look */
.mv-rewrite {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  white-space: pre-wrap !important;
  overflow: visible !important;
  color: var(--ink, #e7eefc);
  font: inherit;
  line-height: 1.5;
}
.mv-checklist { margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:10px; }
.mv-checklist li { padding:3px 10px; border-radius:999px; border:1px solid var(--border); background:var(--chip-bg); color:var(--chip-ink); font-size:12px; font-weight:700; }
#mvScores .badge { margin:2px 6px 2px 0; }

/* ---- Plain language display ---- */
.mv-pill,
.mv-chip,
.mv-checklist li,
.chip-wrap span {
  all: unset;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.mv-checklist {
  all: unset;
  display: block;
  margin: 0 0 10px 0;
  padding: 0;
}

.mv-checklist li::marker {
  content: none;
}

.chip-wrap {
  all: unset;
  display: block;
}

.mv-premium-header {
  margin-top: 14px;
  text-align: left;
}

.mv-premium-title {
  font-weight: 600;
  color: var(--cta, #68b5ff);
  margin-top: 6px;
  font-size: 1rem;
}

.mv-divider {
  border: none;
  border-top: 1px solid var(--border, #1e2a44);
  margin: 10px 0 6px 0;
}
/* --- Fixes section spacing --- */
.mv-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mv-checklist li {
  margin-bottom: 10px;       /* space between each fix */
  line-height: 1.5;
  color: var(--ink);
}

/* optional: lighter tone for the teacher note */
.mv-teacher-li {
  margin-top: 14px;
  font-style: italic;
  opacity: 0.8;
}
/* Premium block header under Rewrite */
.premium-break {
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
}

/* Premium rows spacing */
.model-premium-row { margin-top: 10px; }

/* Reuse your clean list + rewrite styles */
.model-fixes { list-style: none; margin: 0; padding: 0; }
.model-fixes li { margin-bottom: 10px; line-height: 1.5; color: var(--ink); }

/* Scores show as small inline chips */
.chip-wrap .badge { margin-right: 8px; margin-bottom: 6px; }

/* Keep rewrites plain (no box) */
.model-rewrite { white-space: pre-wrap; line-height: 1.6; color: var(--ink); }


    /* Prompt Library cards */
    .prompt-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
    .mv-feedback {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px; /* so scrollbar doesn’t hug text */
  scroll-behavior: smooth;
}
/* --- Gemini Feedback Card: auto-expand version --- */

#geminiBox {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-bottom: 24px; /* breathing room below */
}

/* Let the body grow naturally with content */
#geminiBox .model-body {
  height: auto;
  max-height: none;
  overflow: visible;
  padding-bottom: 10px;
}

/* Make text wrap properly inside the card */
#geminiBox .mv-checklist,
#geminiBox .chip-wrap,
#geminiBox .rewrite {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Keep bottom buttons tidy and attached */
#geminiBox .model-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-start;
}

/* Optional polish — same spacing rules for other cards */
.model-card {
  margin-bottom: 28px;
}
/* Hide all premium rows until JS decides to show them */
.premium-row { display: none; }

    /* NEW: below-the-fold sections don’t cost time until scrolled */
    .defer-chunk { content-visibility:auto; contain-intrinsic-size:800px 1px; }


/* Background SVGs/particles shouldn’t affect layout */
  .tech-bg, .tech-hex, .tech-map, .tech-traces, .tech-glow, .tech-particles {
    position: fixed; inset: 0; pointer-events: none;
  }
@media (max-width: 640px) {
  body.practice-page .site-shell {
    margin-top: 0;
    padding-top: 32px; /* or 40px if you like */
  }
}
.compare-loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.compare-loading-box {
  background: var(--card);
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--ink);
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

.compare-loading-box p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--muted);
  border-top-color: var(--fx-blue-soft);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.compare-loading p {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: .6; }
  50% { opacity: 1; }
  100% { opacity: .6; }
}
/* FORCE the login/logout toasts to be visible when .is-visible is present */

#login-toast,
#logout-toast {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 999999 !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.96) !important; /* dark slate */
  color: #e5e7eb !important;

  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

#login-toast.is-visible,
#logout-toast.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.login-toast__icon {
  font-size: 1.1rem;
}

.login-toast__text {
  font-size: 0.9rem;
  line-height: 1.4;
}
.tech-bg,
.tech-map,
.tech-hex,
.tech-trace,
#techParticles {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
/* FORCE toast above EVERYTHING */
#login-toast,
#logout-toast {
  position: fixed !important;
  z-index: 999999999 !important; /* nine 9s */
}
.xp-toast {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -50%);
  background: var(--card);
  color: var(--ink);
  padding: 24px 32px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 999999; /* Above everything */
  width: 80%;
  max-width: 420px;
  line-height: 1.4;
}

.xp-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.xp-toast.hidden {
  display: none;
}

.tech-bg,
.tech-map,
.tech-hex,
.tech-glow,
.tech-particles {
  position: fixed !important;
  inset: 0 !important;
  z-index: -9999 !important;   /* FORCE behind everything */
  pointer-events: none !important;
}
@media (max-width: 640px) {
  .site-shell {
    padding: 8px 14px 48px;
    padding-top: 56px; /* smaller, tighter, cleaner */
  }
}
/* Cookie banner styles */

  .cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #4b5563;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .cookie-banner button {
    margin-right: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
  }
  #acceptCookies { background: #22c55e; color: #022c22; font-weight: 600; }
  #rejectCookies { background: #4b5563; color: #f3f4f6; }

  /* Desktop spacing for hero under navbar */
@media (min-width: 641px) {
  .site-shell,
  .app-shell,
  main {
    padding-top: 70px !important;  /* adjust to taste */
  }
}

/* Streak toast styles */

.toast.streak-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 1200;
}
.toast.streak-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global streak badge – top-left under nav */
/* Global Streak + XP container – fixed under nav */
#streak-container {
  position: fixed;
  top: 4.25rem;   /* just under your navbar */
  left: 1rem;
  z-index: 1100;

  display: flex;
  align-items: center;
  gap: 0.5rem;    /* space between streak + XP */
}

/* Streak badge pill */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  background: rgba(15, 22, 37, 0.95); /* var(--card) vibe */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.streak-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.streak-badge .streak-emoji {
  font-size: 1rem;
}

.streak-badge .streak-text {
  white-space: nowrap;
}

/* Utility hidden */
.hidden {
  display: none !important;
}

/* Slightly nudge position on big screens if you want */
@media (min-width: 1024px) {
  .streak-badge {
    left: 1.5rem;
    top: 4.5rem;
  }
}

/* Utility */
.hidden {
  display: none !important;
}
.streak-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.streak-badge.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
/* Global Streak + XP container – full row under nav */
#streak-container {
  position: fixed;
  top: 4.6rem;           /* just under navbar */
  left: 0;
  right: 0;
  z-index: 950;          /* below nav (1000), above content */

  display: flex;
  align-items: center;
  justify-content: space-between;  /* streak left, XP right */
  padding: 0 1.25rem;   /* match page padding */
}
/* Desktop: keep streak + XP aligned with main content width */
@media (min-width: 980px) {
  #streak-container {
    max-width: 1120px;        /* match your site shell width */
    margin: 0 auto;           /* center it */
    padding-left: 1.25rem;    /* same as your SiteShell left padding */
    padding-right: 1.25rem;   /* same as your SiteShell right padding */
  }
}


@media (max-width: 640px) {
  #streak-container {
    top: 4.1rem;
    padding: 0 0.9rem;
  }
  

  .streak-badge {
    max-width: 70%;
  }

  #xp-total-pill {
    flex-shrink: 0;
  }
}
/* XP pill specific styling */
#xp-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  background: rgba(15, 22, 37, 0.95);   /* match streak badge / card vibe */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.xp-toast.hidden { display:none; }
.xp-toast { opacity:0; transform: translateY(10px); transition: .18s ease; }
.xp-toast.is-visible { opacity:1; transform: translateY(0); }


/* XP Toast (clean + high contrast) */
.xp-toast {
  position: fixed;
 left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(0.98);
  transform: translate(-50%, -50%) scale(0.98);

  background: rgba(2, 6, 23, 0.92);          /* darker than card */
  border: 1px solid rgba(96, 165, 250, 0.55); /* visible blue edge */
  box-shadow:
    0 18px 55px rgba(0,0,0,0.65),
    0 0 0 1px rgba(59,130,246,0.20),
    0 0 28px rgba(59,130,246,0.28);          /* glow */

  backdrop-filter: blur(10px);
  color: var(--ink);

  padding: 22px 28px;
  border-radius: 18px;

  font-size: 22px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;

  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: 9999999;
}

.xp-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.xp-toast.hidden { display: none !important; }

/* =========================
   XP TOAST (center + accents)
   ========================= */

#xpToast.xp-toast{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  z-index: 999999;

  width: min(520px, calc(100% - 28px));
  padding: 18px 20px;
  border-radius: 18px;

  background: rgba(15, 22, 37, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);

  color: var(--ink);
  text-align: center;
  font-weight: 800;
  line-height: 1.35;

  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#xpToast.xp-toast.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

#xpToast.xp-toast.hidden{
  display: none !important;
}

/* Provider accents (via data-provider) */
#xpToast[data-provider="gpt"]{
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(59,130,246,.35);
}
#xpToast[data-provider="gemini"]{
  border-color: rgba(52,211,153,.45);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(52,211,153,.28);
}
#xpToast[data-provider="claude"]{
  border-color: rgba(251,191,36,.55);
  box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 24px rgba(251,191,36,.22);
}

/* Confetti bits */
#xpToast .confetti{
  position:absolute;
  inset: 0;
  pointer-events:none;
  overflow:hidden;
  border-radius: 18px;
}

#xpToast .confetti i{
  position:absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  opacity: .95;
  border-radius: 3px;
  animation: confettiDrop 900ms ease-out forwards;
}

@keyframes confettiDrop{
  to{
    transform: translateY(120px) rotate(220deg);
    opacity: 0;
  }
}


.cap-toast{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99999;
  pointer-events: none;
}

.cap-toast__card{
  pointer-events: auto;
  width: min(560px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(15,22,37,.96), rgba(10,15,26,.96));
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.cap-toast.show .cap-toast__card{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cap-toast__title{
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.cap-toast__sub{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.cap-toast__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.practice-intro-row{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  align-items: start;
}

.practice-main{
  padding: 16px 18px;
}

.practice-main .practice-points p{
  margin: 6px 0;
  line-height: 1.35;
}

.practice-goal{
  margin-top: 8px;
}

.practice-purpose{
  padding: 14px 16px;
}

@media (max-width: 980px){
  .practice-intro-row{
    grid-template-columns: 1fr;
  }
}
.prompt-cue strong{
  font-weight: 500;
}
@media (max-width: 768px){
  .practice-page .mv-card:first-of-type{
    margin-top: 60px;
  }
}


