/* =========================================================
   LittleWiz Studio — app, admin & sales styles
   3 themes: .theme-crayon  .theme-studio  .theme-storybook
   ========================================================= */

:root, .theme-crayon {
  --bg: #fff7ec; --surface: #ffffff; --surface-2: #fff1df; --ink: #2a2238; --muted: #6e6a7c;
  --primary: #ff6b4a; --primary-ink: #ffffff; --primary-soft: #ffe6de;
  --secondary: #2bb3a3; --secondary-soft: #d9f4f0; --accent: #ffc93c; --danger: #e5484d; --success: #2f9e6a;
  --border: #f0e1cb; --radius: 18px; --radius-sm: 12px;
  --shadow: 0 4px 0 #f1dcc0; --shadow-lg: 0 6px 0 #ecd2b0, 0 18px 40px rgba(42,34,56,.08);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif; --font-body: 'Nunito', system-ui, sans-serif;
  --side-bg: #ffffff; --side-ink: #2a2238; --side-muted: #8b8698; --side-active-bg: #ffe6de; --side-active-ink: #e2492a; --side-border: #f0e1cb;
  --btn-shadow: 0 3px 0 #d94f30;
}
.theme-studio {
  --bg: #f5f6fb; --surface: #ffffff; --surface-2: #f1f3f9; --ink: #0f172a; --muted: #64748b;
  --primary: #4f46e5; --primary-ink: #ffffff; --primary-soft: #eef0ff;
  --secondary: #0ea5e9; --secondary-soft: #e0f4fd; --accent: #f59e0b; --danger: #dc2626; --success: #16a34a;
  --border: #e6e8ef; --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.05); --shadow-lg: 0 20px 50px rgba(15,23,42,.10);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --side-bg: #0f172a; --side-ink: #e2e8f0; --side-muted: #94a3b8; --side-active-bg: #1e293b; --side-active-ink: #ffffff; --side-border: #1e293b;
  --btn-shadow: none;
}
.theme-storybook {
  --bg: #f4ede0; --surface: #fffcf5; --surface-2: #f8f1e4; --ink: #2d2a26; --muted: #7a6f60;
  --primary: #2f5d50; --primary-ink: #fffcf5; --primary-soft: #e3ece6;
  --secondary: #c9862b; --secondary-soft: #f6e8d2; --accent: #b5523b; --danger: #b23a3a; --success: #3c7a4e;
  --border: #e2d5bf; --radius: 6px; --radius-sm: 4px;
  --shadow: 0 1px 0 #e2d5bf; --shadow-lg: 0 2px 0 #d8c8ad, 0 24px 40px rgba(45,42,38,.08);
  --font-head: 'Fraunces', Georgia, serif; --font-body: 'Source Sans 3', system-ui, sans-serif;
  --side-bg: #23443b; --side-ink: #f4ede0; --side-muted: #a9bfb3; --side-active-bg: #f4ede0; --side-active-ink: #23443b; --side-border: #2d5348;
  --btn-shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
.theme-storybook h1, .theme-storybook h2 { font-weight: 600; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--font-body); padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; background: var(--primary); color: var(--primary-ink); cursor: pointer; text-decoration: none; box-shadow: var(--btn-shadow); transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.btn.secondary { background: var(--secondary); box-shadow: none; color: #fff; }
.btn.danger { background: var(--danger); box-shadow: none; color: #fff; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.lg { padding: 16px 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.theme-crayon .btn { border-radius: 999px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--side-bg) 0 260px, transparent 260px); }
@media (max-width: 900px) { .shell { background: none; } }
.side { background: var(--side-bg); color: var(--side-ink); border-right: 1px solid var(--side-border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: inherit; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 20px; }
.theme-storybook .brand-mark { background: var(--secondary); border-radius: 50%; }
.brand b { font-family: var(--font-head); font-size: 19px; display: block; line-height: 1.1; }
.brand small { color: var(--side-muted); font-size: 12px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--side-muted); padding: 14px 10px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--side-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: color-mix(in srgb, var(--side-active-bg) 60%, transparent); }
.nav a.active { background: var(--side-active-bg); color: var(--side-active-ink); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a .lock { margin-left: auto; font-size: 11px; background: var(--accent); color: #2a2238; border-radius: 999px; padding: 2px 7px; font-weight: 800; }
.theme-studio .nav a .lock, .theme-storybook .nav a .lock { background: transparent; border: 1px solid var(--side-muted); color: var(--side-muted); }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--side-border); font-size: 13px; color: var(--side-muted); }
.side-foot a { color: var(--side-ink); }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, var(--surface)); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 22px; margin: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.content { padding: 28px 32px 60px; max-width: 1240px; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-105%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-toggle { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}
.impersonate { background: var(--accent); color: #2a2238; text-align: center; padding: 8px; font-weight: 700; font-size: 14px; }
.impersonate a { color: inherit; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2 { font-size: 19px; }
.card h3 { font-size: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.theme-storybook .card { border-width: 1px; }

.stat { display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--primary-soft); }
.stat:nth-child(2) .ico { background: var(--secondary-soft); }
.stat:nth-child(3) .ico { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.stat b { font-family: var(--font-head); font-size: 26px; display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }

.hello { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: stretch; }
.hello .card.hero-card { background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, var(--secondary)) 100%); color: #fff; border: 0; }
.theme-storybook .hello .card.hero-card { background: var(--primary); }
.hero-card h2 { font-size: 26px; color: #fff; }
.hero-card p { opacity: .92; margin: 0 0 16px; max-width: 520px; }
.hero-card .btn { background: #fff; color: var(--primary); box-shadow: none; }
@media (max-width: 900px) { .hello { grid-template-columns: 1fr; } }

.steps-mini { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.steps-mini li:last-child { border: 0; }
.steps-mini li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--secondary-soft); color: var(--secondary); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.steps-mini li.done::before { content: '✓'; background: var(--success); color: #fff; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: 15px var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { min-height: 110px; resize: vertical; }
input[type=color] { width: 54px; height: 40px; border: 1.5px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; }
.theme-storybook .chip span, .theme-studio .chip span { border-radius: var(--radius-sm); }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip.locked span { opacity: .55; cursor: not-allowed; }
.chip small { font-weight: 600; color: var(--muted); }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.act { position: relative; }
.act input { position: absolute; opacity: 0; }
.act label { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; margin: 0; height: 100%; }
.act label .e { font-size: 24px; }
.act label b { display: block; font-size: 14.5px; }
.act label small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.act input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.act.locked label { opacity: .6; cursor: pointer; }
.act .pro-tag { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 800; background: var(--accent); color: #2a2238; border-radius: 999px; padding: 2px 7px; }

/* ---------- alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; border: 1.5px solid; }
.alert.success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, var(--surface)); color: var(--success); }
.alert.warn { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 40%, var(--surface)); color: #b45309; }
.alert.error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, var(--surface)); color: var(--danger); }
.alert.info { background: var(--secondary-soft); border-color: color-mix(in srgb, var(--secondary) 35%, var(--surface)); color: color-mix(in srgb, var(--secondary) 70%, var(--ink)); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); border-color: transparent; }
.badge.warn { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: #7a5a00; border-color: transparent; }
.badge.bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: transparent; }
.badge.brand { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--surface-2); }

/* ---------- projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.proj { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .12s; }
.proj:hover { transform: translateY(-2px); }
.proj-thumb { height: 120px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; font-size: 48px; letter-spacing: 6px; overflow: hidden; }
.proj h3 { margin: 0; font-size: 17px; }
.proj .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.levels-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.levels-bar i { height: 6px; border-radius: 6px; background: var(--border); }
.levels-bar i.on { background: var(--secondary); }

.level-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .level-cards { grid-template-columns: repeat(2, 1fr); } }
.level-card { text-align: center; position: relative; }
.level-card .lv { font-family: var(--font-head); font-size: 36px; color: var(--primary); line-height: 1; }
.level-card .free { position: absolute; top: 10px; right: 10px; }
.level-card .btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

.progress { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .4s; }
.gen-log { font-size: 13px; color: var(--muted); max-height: 200px; overflow: auto; margin-top: 10px; }
.gen-log div::before { content: '• '; }

/* ---------- lock / upsell ---------- */
.lock-card { text-align: center; padding: 40px 28px; background: radial-gradient(circle at top, var(--primary-soft), var(--surface) 70%); }
.lock-card .big { font-size: 46px; }
.lock-card h2 { font-size: 26px; }
.lock-card .problem { max-width: 620px; margin: 8px auto 18px; color: var(--muted); font-size: 16px; }
.lock-card ul { text-align: left; max-width: 520px; margin: 0 auto 22px; padding: 0; list-style: none; }
.lock-card li { padding: 6px 0 6px 30px; position: relative; font-weight: 600; }
.lock-card li::before { content: '✓'; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: #fff; font-size: 12px; display: grid; place-items: center; }

.upg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.upg { display: flex; flex-direction: column; gap: 8px; }
.upg .price { font-family: var(--font-head); font-size: 28px; color: var(--primary); }
.upg.owned { border-color: var(--success); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }

/* ---------- canvas tools ---------- */
.canvas-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.canvas-item { display: flex; flex-direction: column; gap: 8px; }
.canvas-item canvas, .canvas-item img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.copy-box { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 84px 12px 14px; white-space: pre-wrap; font-size: 14px; }
.copy-box .copy { position: absolute; top: 8px; right: 8px; }
.snap-host { position: absolute; left: -10000px; top: 0; width: 816px; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: var(--primary); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.theme-crayon .auth-art { background: linear-gradient(150deg, #ff6b4a, #ff9a5a 55%, #ffc93c); }
.theme-studio .auth-art { background: radial-gradient(circle at 20% 20%, #6366f1, #312e81 70%); }
.theme-storybook .auth-art { background: #23443b; }
.auth-art h2 { font-size: 40px; color: #fff; max-width: 460px; }
.auth-art p { font-size: 17px; opacity: .9; max-width: 440px; }
.auth-art .float { font-size: 54px; position: absolute; opacity: .9; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 30px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- sales pages ---------- */
.s-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.s-top { padding: 18px 0; }
.s-top .s-wrap { display: flex; justify-content: space-between; align-items: center; }
.s-top .brand { color: var(--ink); padding: 0; }
.s-hero { padding: 40px 0 70px; text-align: center; }
.s-pre { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.s-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 900px; margin: 0 auto 18px; }
.s-hero h1 em { font-style: normal; color: var(--primary); }
.theme-crayon .s-hero h1 em { background: linear-gradient(transparent 62%, #ffe08a 62%); color: var(--ink); }
.s-hero p.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.s-demo { margin: 36px auto 0; max-width: 940px; }
.s-demo .frame { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s-demo .sheet { aspect-ratio: 8.5 / 11; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--border); position: relative; }
.s-demo .sheet iframe { width: 816px; height: 1056px; border: 0; transform-origin: 0 0; pointer-events: none; }
.s-sec { padding: 64px 0; }
.s-sec.alt { background: var(--surface); border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.s-sec h2 { font-size: clamp(26px, 3.4vw, 38px); text-align: center; max-width: 800px; margin: 0 auto 14px; }
.s-sec .sub { text-align: center; color: var(--muted); font-size: 18px; max-width: 700px; margin: 0 auto 36px; }
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain .card { border-left: 5px solid var(--danger); }
.feat .card .e { font-size: 30px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: h; }
.how .card { position: relative; padding-top: 34px; }
.how .card::before { counter-increment: h; content: counter(h); position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 20px var(--font-head); display: grid; place-items: center; }
@media (max-width: 800px) { .pain, .how { grid-template-columns: 1fr; } }
.price-box { max-width: 560px; margin: 0 auto; text-align: center; border: 3px dashed var(--primary); background: var(--surface); }
.theme-studio .price-box { border-style: solid; border-width: 2px; }
.price-box .was { text-decoration: line-through; color: var(--muted); font-size: 20px; }
.price-box .now { font-family: var(--font-head); font-size: 64px; color: var(--primary); line-height: 1; margin: 6px 0; }
.price-box ul { text-align: left; list-style: none; padding: 0; margin: 18px 0 22px; }
.price-box li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--border); }
.price-box li::before { content: '✓'; position: absolute; left: 4px; color: var(--success); font-weight: 900; }
.guarantee { display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 0 auto; }
.guarantee .seal { flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 800 15px/1.1 var(--font-head); background: var(--accent); color: #2a2238; border: 4px double #2a2238; }
.faq details { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.s-foot { padding: 30px 0 50px; text-align: center; color: var(--muted); font-size: 13px; }
.cta-btn { font-size: 20px; padding: 20px 34px; }
.oto-bar { background: var(--ink); color: #fff; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; }
.oto-bar span { color: var(--accent); }
.oto-steps { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.oto-steps span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.oto-steps span.on { background: var(--primary); color: #fff; border-color: transparent; }
.oto-steps span.done { background: var(--secondary-soft); color: var(--secondary); }
.problem-box { max-width: 760px; margin: 0 auto 26px; background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--danger) 25%, var(--surface)); border-radius: var(--radius); padding: 22px 26px; text-align: left; }
.problem-box h3 { color: var(--danger); }
.nothanks { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- public lead page ---------- */
.lead-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(circle at 10% 10%, var(--lp1, #ffe6de), transparent 50%), radial-gradient(circle at 90% 90%, var(--lp2, #d9f4f0), transparent 50%), #fffaf3; font-family: 'Nunito', system-ui, sans-serif; color: #2a2238; }
.lead-card { max-width: 980px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; background: #fff; border-radius: 24px; padding: 34px; box-shadow: 0 30px 70px rgba(42,34,56,.12); }
.lead-card h1 { font-family: 'Fredoka', sans-serif; font-size: 38px; line-height: 1.1; }
.lead-card ul { padding: 0; list-style: none; }
.lead-card li { padding: 5px 0 5px 28px; position: relative; font-weight: 700; }
.lead-card li::before { content: '★'; position: absolute; left: 0; color: var(--lp-accent, #ff6b4a); }
.lead-preview { position: relative; height: 420px; }
.lead-preview .pg { position: absolute; width: 62%; aspect-ratio: 8.5/11; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.15); overflow: hidden; border: 1px solid #eee; }
.lead-preview .pg iframe { width: 816px; height: 1056px; border: 0; transform-origin: 0 0; pointer-events: none; }
.lead-preview .pg:nth-child(1) { left: 4%; top: 30px; transform: rotate(-6deg); }
.lead-preview .pg:nth-child(2) { left: 34%; top: 0; transform: rotate(4deg); }
.lead-form input { margin-bottom: 10px; }
.lead-form .btn { width: 100%; background: var(--lp-accent, #ff6b4a); border-radius: 999px; box-shadow: none; font-size: 17px; padding: 16px; }
@media (max-width: 800px) { .lead-card { grid-template-columns: 1fr; } .lead-preview { height: 300px; } }

/* =========================================================
   FRAMED DASHBOARD LAYOUT (Donezo-style) — colors come from the active theme
   ========================================================= */
.theme-crayon  { --page: #f1e6d6; --panel: #fff7ec; --deep: #e2492a; --soft2: #ffb4a3; --dark: #2a2238; --dark2: #3d3150; }
.theme-studio  { --page: #e7e9f2; --panel: #f5f6fb; --deep: #3730a3; --soft2: #a5b4fc; --dark: #0f172a; --dark2: #1e293b; }
.theme-storybook { --page: #e9dfcc; --panel: #f6efe2; --deep: #1f4037; --soft2: #9db8ab; --dark: #23443b; --dark2: #2f5a4e; }

body.framed { background: var(--page); padding: 16px; }
.framed .frame { background: var(--surface); border-radius: 30px; padding: 14px; min-height: calc(100vh - 32px); box-shadow: 0 30px 70px rgba(42, 34, 56, .07); }
.framed .shell { grid-template-columns: 250px minmax(0, 1fr); gap: 14px; min-height: calc(100vh - 60px); background: none; }

/* sidebar panel */
.framed .side { position: sticky; top: 30px; height: calc(100vh - 60px); background: var(--panel); color: var(--ink); border: 0; border-radius: 24px; padding: 24px 0 16px; }
.framed .brand { padding: 0 24px 6px; color: var(--ink); }
.framed .brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.framed .brand b { font-size: 20px; }
.framed .brand small { color: var(--muted); }
.framed .nav-label { padding: 20px 24px 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.framed .nav a { position: relative; border-radius: 0; padding: 10px 24px; color: var(--muted); font-weight: 600; gap: 12px; }
.framed .nav a:hover { background: none; color: var(--ink); }
.framed .nav a.active { background: none; color: var(--ink); font-weight: 800; }
.framed .nav a.active::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 5px; border-radius: 0 6px 6px 0; background: var(--primary); }
.framed .nav a.active svg { color: var(--primary); opacity: 1; }
.framed .nav a .lock { background: var(--dark); color: #fff; border: 0; font-size: 10.5px; padding: 2px 8px; }
.side-promo { margin: auto 14px 0; position: relative; overflow: hidden; border-radius: 20px; padding: 18px 16px 16px; color: #fff;
  background: radial-gradient(circle at 110% -10%, transparent 38%, rgba(255,255,255,.06) 39%, transparent 40%, transparent 48%, rgba(255,255,255,.06) 49%, transparent 50%),
              radial-gradient(circle at 120% 120%, var(--deep) 0, transparent 55%), linear-gradient(160deg, var(--dark2), var(--dark)); }
.side-promo .promo-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); margin-bottom: 10px; }
.side-promo b { display: block; font-family: var(--font-head); font-size: 16px; line-height: 1.25; }
.side-promo small { display: block; opacity: .75; margin: 6px 0 14px; font-size: 12.5px; line-height: 1.45; }
.side-promo .btn { background: var(--primary); color: #fff; box-shadow: none; padding: 10px; }

/* main column */
.framed .main { display: flex; flex-direction: column; gap: 14px; }
.framed .topbar { position: sticky; top: 30px; z-index: 20; background: var(--panel); border: 0; border-radius: 22px; padding: 12px 16px; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 4px 6px 4px 16px; width: min(380px, 100%); color: var(--muted); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { border: 0 !important; box-shadow: none !important; background: transparent; padding: 9px 0; font-size: 14px; }
.search kbd { font: 700 12px var(--font-body); background: var(--panel); border-radius: 8px; padding: 4px 9px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); border: 0; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot-badge { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--surface); }
.me { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.me .avatar { width: 46px; height: 46px; font-size: 18px; background: linear-gradient(140deg, var(--soft2), var(--primary)); }
.me-txt b { display: block; font-size: 15px; line-height: 1.2; }
.me-txt small { color: var(--muted); font-size: 12.5px; }
.framed .content { background: var(--panel); border-radius: 24px; padding: 28px 28px 44px; max-width: none; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 36px; margin: 0; letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.framed .btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.framed .btn { box-shadow: none; }
.framed .btn.primary-deep { background: linear-gradient(140deg, var(--primary), var(--deep)); color: #fff; }

/* flat white cards on the panel */
.framed .card { border: 0; box-shadow: none; border-radius: 22px; background: var(--surface); }
.framed .card-head h2, .framed .card h2 { font-size: 18px; font-weight: 600; }
.theme-crayon.framed .card h2 { font-weight: 600; }

@media (max-width: 900px) {
  body.framed { padding: 0; }
  .framed .frame { border-radius: 0; padding: 8px; }
  .framed .shell { grid-template-columns: 1fr; }
  .framed .side { position: fixed; top: 0; height: 100vh; border-radius: 0 24px 24px 0; }
  .framed .topbar { top: 0; }
  .me-txt, .search kbd { display: none; }
  .framed .content { padding: 20px 16px 36px; }
}

/* ---------- dashboard widgets ---------- */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash .span2 { grid-column: span 2; }
@media (max-width: 1200px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash { grid-template-columns: 1fr; } .dash .span2 { grid-column: auto; } }

.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px; text-decoration: none; color: var(--ink); }
.kpi .k-title { font-size: 16px; font-weight: 700; }
.kpi .k-num { font-family: var(--font-head); font-size: 50px; line-height: 1; font-weight: 600; margin-top: 8px; }
.kpi .k-sub { margin-top: auto; font-size: 12.5px; color: var(--primary); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.kpi .k-sub i { font-style: normal; font-size: 10px; border: 1px solid currentColor; border-radius: 5px; padding: 0 4px; }
.kpi .k-arrow { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; background: var(--surface); }
.kpi .k-arrow svg { width: 16px; height: 16px; }
.kpi.hl { color: #fff; background: radial-gradient(circle at 100% 100%, rgba(255,255,255,.14) 0 22%, transparent 23% 34%, rgba(255,255,255,.08) 35% 36%, transparent 37%), linear-gradient(145deg, var(--primary), var(--deep)); }
.kpi.hl .k-sub { color: #fff; opacity: .9; }
.kpi.hl .k-arrow { border-color: transparent; background: #fff; color: var(--ink); }
.kpi:hover .k-arrow { transform: rotate(45deg); transition: transform .2s; }

/* pill bar chart */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: end; height: 170px; margin-top: 12px; }
.bar { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 54px; border-radius: 999px; background: var(--primary); min-height: 46px; }
.bar i.empty { height: 100% !important; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 55%, transparent) 6px 8px); border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); }
.bar i.soft { background: var(--soft2); }
.bar i.max { background: var(--deep); }
.bar span { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.bar i { position: relative; }
.bar em { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; white-space: nowrap; color: var(--ink); }
.bar em::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 1px; height: 11px; background: var(--muted); }

.remind h3 { font-family: var(--font-head); font-size: 24px; line-height: 1.2; color: var(--deep); margin: 6px 0 4px; }
.remind .btn { margin-top: auto; width: 100%; padding: 14px; background: linear-gradient(140deg, var(--primary), var(--deep)); color: #fff; }

.plist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plist a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.plist .pi { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--primary-soft); }
.plist li:nth-child(2n) .pi { background: var(--secondary-soft); }
.plist li:nth-child(3n) .pi { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.plist b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.plist small { color: var(--muted); font-size: 11.5px; }

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.people li { display: flex; align-items: center; gap: 12px; }
.people .pa { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--secondary-soft); }
.people li:nth-child(2n) .pa { background: var(--primary-soft); }
.people li:nth-child(3n) .pa { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.people .pt { flex: 1; min-width: 0; }
.people .pt b { display: block; font-size: 14px; }
.people .pt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pill { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.pill.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.pill.warn { color: #a06d00; background: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.pill.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }

.gauge { position: relative; display: grid; place-items: center; margin-top: 4px; }
.gauge svg { width: 100%; max-width: 260px; }
.gauge .g-val { position: absolute; bottom: 6px; text-align: center; }
.gauge .g-val b { font-family: var(--font-head); font-size: 44px; line-height: 1; display: block; }
.gauge .g-val small { color: var(--muted); font-size: 12px; }
.legend { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.plan { color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: repeating-radial-gradient(circle at 80% 120%, rgba(255,255,255,.05) 0 2px, transparent 2px 14px), radial-gradient(circle at 90% 110%, var(--deep), transparent 60%), linear-gradient(160deg, var(--dark2), var(--dark)) !important; }
.plan h2 { color: #fff; }
.plan .p-big { font-family: var(--font-head); font-size: 54px; line-height: 1; text-align: center; margin: 14px 0 4px; letter-spacing: .02em; }
.plan .p-sub { text-align: center; opacity: .75; font-size: 13px; }
.plan .p-btns { display: flex; justify-content: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.plan .p-btns a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--dark); font-size: 18px; text-decoration: none; font-weight: 800; }
.plan .p-btns a.red { background: var(--primary); color: #fff; }
.dash .card { display: flex; flex-direction: column; }
.card-head .btn.outline { padding: 7px 12px; font-size: 13px; }

.framed .menu-toggle { display: none; }
@media (max-width: 900px) { .framed .menu-toggle { display: grid; } }
.framed .nav a { padding: 8px 24px; }
.framed .nav-label { padding: 16px 24px 6px; }
.side-promo { flex: none; margin-top: 18px; }
.bars { margin-top: 34px; }
@media (min-width: 901px) { .framed .side { position: relative; top: 0; height: auto; overflow: visible; } .side-promo { margin-top: auto; } .framed .nav { flex: none; } }

/* locked nav items (feature needs an upgrade) */
.framed .nav a.locked { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.framed .nav a.locked > svg:first-child { opacity: .55; }
.nav-lock { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); color: #8a5a00; flex: none; }
.nav-lock svg { width: 14px !important; height: 14px !important; opacity: 1 !important; }
.framed .nav a.locked:hover .nav-lock { background: var(--primary); color: #fff; }
.act.locked .pro-tag::before { content: ''; }

/* AI suggestion chips (Create Skill Path) */
.ai-chips .badge { border: 1.5px solid transparent; font-size: 13px; padding: 6px 12px; }
.ai-chips .badge.on { border-color: currentColor; box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.field .row.between label { margin-bottom: 0; }
.field .row.between { margin-bottom: 6px; }

/* Lite (front-end trial) features */
.nav-lite { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--secondary, #2bb3a3) 18%, var(--surface)); color: var(--secondary, #2bb3a3); flex: none; }
.lite-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, var(--surface)); font-size: 14px; }
.lite-note > span:nth-child(2) { flex: 1; min-width: 240px; }
.lite-note a { font-weight: 800; white-space: nowrap; }
.lite-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #5a3a00; }
.lock-tile { display: grid; place-items: center; align-content: center; gap: 4px; width: 100%; height: 170px; border-radius: 14px; border: 2px dashed var(--border); background: var(--surface-2); color: var(--muted); text-decoration: none; text-align: center; }
.lock-tile.tall { height: 330px; }
.lock-tile span { font-size: 26px; } .lock-tile b { color: var(--text); }
.lock-tile:hover { border-color: var(--primary); color: var(--primary); }
.lock-mini { display: block; text-decoration: none; color: inherit; border: 2px dashed var(--border); background: var(--surface-2); }
.lock-mini > span { font-size: 22px; } .lock-mini:hover { border-color: var(--primary); }
.tabs a.tab-locked { opacity: .65; }
.dlg { border: 0; border-radius: 18px; padding: 24px; width: min(520px, 92vw); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(30,20,10,.45); }
.level-card .btns { flex-wrap: wrap; }

/* Help & Guide pages */
.help-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.help-toc { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.help-toc input { margin-bottom: 8px; width: 100%; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); }
.help-toc input:focus { outline: none; border-color: var(--primary); }
.help-toc > a:not(.btn) { padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.help-toc > a:not(.btn):hover { background: var(--primary-soft); color: var(--primary); }
.help-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.help-sec { scroll-margin-top: 18px; }
.help-sec h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help-sec p, .help-sec li { line-height: 1.65; }
.help-steps { counter-reset: hs; list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.help-steps li { counter-increment: hs; position: relative; padding: 10px 14px 10px 50px; background: var(--surface-2); border-radius: 12px; }
.help-steps li::before { content: counter(hs); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.help-list { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-tbl { margin: 12px 0; } .help-tbl td, .help-tbl th { vertical-align: top; }
.help-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.help-acts > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.help-acts > div span { grid-row: span 2; font-size: 20px; } .help-acts small { color: var(--muted); }
.help-acts > div.off { opacity: .55; }
.help-sec details { padding: 10px 0; border-top: 1px solid var(--border); }
.help-sec details summary { cursor: pointer; font-weight: 700; }
.help-sec code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.help-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.help-check a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; border: 1.5px dashed var(--border); }
.help-check a small { margin-left: auto; color: var(--primary); }
.help-check a.ok { border-style: solid; border-color: color-mix(in srgb, var(--success) 40%, var(--surface)); } .help-check a.ok small { color: var(--success); }
@media (max-width: 900px) { .help-wrap { grid-template-columns: 1fr; } .help-toc { position: static; } }

/* 5-level cards (L1–L4 + Master) */
.level-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.level-card.master { border: 2px dashed color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.level-card.master .lv { color: var(--secondary); }
.level-card.is-locked { opacity: .85; }
@media (max-width: 1200px) { .level-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .level-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Image preview (mockups, pins, slides) */
.ci-thumb { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); }
.ci-thumb img { display: block; transition: transform .15s ease, box-shadow .15s ease; }
.ci-thumb:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.lw-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,18,30,.88); display: none; align-items: center; justify-content: center; }
.lw-lightbox.open { display: flex; }
.lb-stage { position: absolute; inset: 64px 80px 40px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-in; background: #fff; }
.lw-lightbox.zoomed .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lw-lightbox.zoomed .lb-stage img { max-width: none; max-height: none; width: auto; cursor: zoom-out; margin: auto; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 20px; color: #fff; }
.lb-name { font-weight: 800; font-size: 16px; } .lb-count { opacity: .7; font-size: 14px; margin-right: auto; }
.lb-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: var(--primary); } .lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 13px; }
body.lb-lock { overflow: hidden; }
@media (max-width: 700px) { .lb-stage { inset: 64px 10px 40px; } .lb-nav { width: 42px; height: 42px; font-size: 26px; } }

/* ---------- per-page "How to use" guide (collapsible) ---------- */
.page-guide { margin: 0 0 18px; background: color-mix(in srgb, var(--primary) 8%, #fff); border: 1.5px solid color-mix(in srgb, var(--primary) 28%, transparent); border-radius: 18px; padding: 0 18px; }
.page-guide summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 12px 0; user-select: none; }
.page-guide summary::-webkit-details-marker { display: none; }
.page-guide .pg-ico { font-size: 20px; }
.page-guide summary b { flex: 1; font-size: 15px; }
.page-guide .pg-toggle { font-size: 13px; font-weight: 700; color: var(--primary); background: #fff; border-radius: 999px; padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.page-guide[open] .pg-show, .page-guide:not([open]) .pg-hide { display: none; }
.page-guide[open] .pg-toggle { }
.page-guide:not([open]) { background: #fff; }
.pg-steps { list-style: none; margin: 0 0 6px; padding: 0 0 4px; display: grid; gap: 8px; }
.pg-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.pg-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pg-tip { margin: 6px 0 4px; font-size: 13px; color: var(--muted); }
.pg-more { margin: 0 0 12px; font-size: 13px; }
/* background color swatches for mockups / social images */
.theme-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-right: 6px; }
.theme-pick .sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; position: relative; }
.theme-pick .sw i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.theme-pick .sw.on { box-shadow: 0 0 0 3px var(--accent, #ff6b4a); transform: scale(1.08); }
/* policy & support pages */
.s-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.s-legal a, .s-foot a { color: inherit; }
.s-sec.lg { padding-top: 36px; }
.lg-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.lg-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; }
.lg-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.lg-nav a.on, .lg-nav a:hover { background: var(--surface-2); color: var(--accent, #ff6b4a); }
.lg-doc { background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; padding: 30px 36px; max-width: 820px; line-height: 1.7; }
.lg-doc h1 { margin: 0 0 4px; font-size: 32px; }
.lg-doc h2 { font-size: 20px; margin: 26px 0 8px; text-align: left; max-width: none; }
.lg-doc li { margin-bottom: 6px; }
.lg-card { background: var(--surface-2); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.lg-card p { margin: 4px 0; }
@media (max-width: 760px) { .lg-wrap { grid-template-columns: 1fr; } .lg-nav { position: static; flex-direction: row; flex-wrap: wrap; } .lg-doc { padding: 22px 18px; } }
/* brand logo (Rainbow Book) */
.brand-mark.has-logo { background: none !important; box-shadow: none !important; padding: 0; overflow: visible; }
.brand-mark.has-logo img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(40,20,80,.18)); }
.seg-style { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
