/* ===================== Ko Ai — main website styles ===================== */
:root {
  --bg: #f8f7fd;
  --bg-soft: #f3f1fb;
  --surface: #ffffff;
  --surface-2: #faf9ff;
  --border: #ebe8f4;
  --border-strong: #ddd8ec;
  --text: #141a3a;
  --text-2: #3b4163;
  --muted: #6e7491;
  --faint: #9aa0b8;
  --primary: #6b3ef6;
  --primary-2: #8b4cf7;
  --pink: #e23fb4;
  --primary-soft: #efe9ff;
  --primary-soft-2: #f6f2ff;
  --primary-text: #5b2ee6;
  --pink-soft: #fdebf6;
  --pink-text: #d6339f;
  --blue-soft: #e8f1ff;
  --blue-text: #2f6fe0;
  --green: #16a36a;
  --green-soft: #e6f7ef;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #d98a00;
  --amber-soft: #fff5e0;
  --grad: linear-gradient(100deg, #6b3ef6 0%, #8f45f2 45%, #d03fd0 100%);
  --grad-text: linear-gradient(90deg, #6b3ef6 0%, #a43ff0 50%, #ec3fae 100%);
  --shadow-sm: 0 1px 2px rgba(30, 20, 80, .05);
  --shadow: 0 8px 30px rgba(60, 40, 140, .07);
  --shadow-lg: 0 24px 60px rgba(40, 20, 110, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 258px;
  --topbar: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0b1a; --bg-soft: #141127; --surface: #17142b; --surface-2: #1c1834; --border: #2a2547; --border-strong: #383160;
  --text: #f2f0ff; --text-2: #d3cfee; --muted: #a29dc4; --faint: #77729a;
  --primary-soft: #2a2152; --primary-soft-2: #211a43; --primary-text: #b9a2ff; --pink-soft: #3a1838; --pink-text: #ff8fd3;
  --blue-soft: #16264a; --blue-text: #8db7ff; --green-soft: #12332a; --red-soft: #3b1a20; --amber-soft: #3a2c10;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-text); text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.boot-loader { position: fixed; inset: 0; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 18px 26px 60px; flex: 1; }

/* Brand */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 6px; color: inherit; }
.brand-mark { width: 98px; height: 98px; }
.brand-name { font-family: Arial, 'Helvetica Neue', var(--font); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .5px; margin-top: 4px; color: var(--text); }
.brand-name b { color: var(--primary); font-weight: 800; }
.brand-tag { margin-top: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; color: #6b7088; }
.brand-tag i { color: var(--pink); font-style: normal; margin: 0 2px; }
.brand-img { max-width: 160px; max-height: 120px; object-fit: contain; }

.nav { display: grid; gap: 2px; }
.nav-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 10px 18px 4px; }
.nav-sep { height: 1px; background: var(--border); margin: 8px 12px; }
.nav a { display: flex; align-items: center; gap: 16px; padding: 11px 18px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 15.5px; transition: background .15s, color .15s; }
.nav a .ic { width: 22px; height: 22px; color: var(--text-2); }
.nav a:hover { background: var(--primary-soft-2); }
.nav a.active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.nav a.active .ic { color: var(--primary); }

.upgrade-card { margin-top: auto; border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.upgrade-card .head { display: flex; gap: 12px; align-items: center; }
.crown-emoji { font-size: 30px; line-height: 1; filter: saturate(1.2); }
.upgrade-card h4 { font-size: 16.5px; line-height: 1.25; color: var(--primary-text); }
.upgrade-card ul { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.upgrade-card li { display: flex; gap: 9px; align-items: center; }
.upgrade-card li .ic { width: 16px; height: 16px; color: var(--green); }
.plan-active { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.topnav { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 11px; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.topnav a .ic { width: 19px; height: 19px; }
.topnav a:hover { background: var(--primary-soft-2); }
.topnav a.active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.topnav a.active .ic { color: var(--primary); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--primary-soft-2); }
.menu-btn { display: none; }
.mobile-brand { display: none; align-items: center; gap: 8px; font-family: Arial, var(--font); font-weight: 800; font-size: 20px; color: var(--text); }
.mobile-brand svg, .mobile-brand img { width: 34px; height: 34px; object-fit: contain; }
.mobile-brand b { color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; padding: 11px 18px; font-weight: 600; font-size: 14.5px; line-height: 1.2; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(107, 62, 246, .28); }
.btn-grad:hover { box-shadow: 0 10px 28px rgba(107, 62, 246, .38); }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%); }
.btn-outline { background: var(--surface); color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.btn-outline:hover { background: var(--primary-soft-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { border-color: var(--border-strong); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

.user-chip { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: 12px; text-align: left; position: relative; }
.user-chip:hover { background: var(--primary-soft-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); flex: none; font-weight: 700; font-size: 15px; }
.avatar.filled { background: var(--grad); color: #fff; border: 0; }
.user-chip .who { line-height: 1.2; }
.user-chip .who b { display: block; font-size: 14px; color: var(--text); }
.user-chip .who span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font-size: 14px; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--primary-soft-2); }
.dropdown .credit-line { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown .credit-line b { font-size: 20px; font-family: var(--font-head); }

.announce { background: var(--grad); color: #fff; text-align: center; font-size: 13.5px; font-weight: 500; padding: 8px 16px; }
.announce a { color: #fff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 6px 18px 34px; }
.hero h1 { font-size: clamp(32px, 3.15vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16.5px; color: var(--text-2); margin: 18px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--primary-soft); color: var(--primary-text); }
.chip .ic { width: 18px; height: 18px; }
.chip.pink { background: var(--pink-soft); color: var(--pink-text); }
.chip.blue { background: var(--blue-soft); color: var(--blue-text); }

.collage { position: relative; height: 250px; }
.collage::before { content: ''; position: absolute; inset: 12% 0 4% 2%; border-radius: 60px; background: radial-gradient(60% 70% at 30% 40%, rgba(202, 160, 255, .55), transparent 70%), radial-gradient(50% 60% at 75% 55%, rgba(255, 160, 220, .5), transparent 70%); filter: blur(18px); }
.collage .card-img { position: absolute; width: 27%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 16px 34px rgba(80, 40, 160, .22); background: var(--bg-soft); cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.collage .card-img img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { left: 3%; top: 14%; transform: rotate(-6deg); width: 28%; aspect-ratio: 1/1; }
.collage .c2 { left: 27%; top: 2%; transform: rotate(4deg); z-index: 2; width: 29%; aspect-ratio: 1/1.05; }
.collage .c3 { left: 52%; top: -2%; transform: rotate(-5deg); z-index: 3; }
.collage .c4 { left: 74%; top: 18%; transform: rotate(8deg); z-index: 2; width: 24%; }
.collage .card-img:hover { transform: rotate(0) translateY(-6px) scale(1.04); z-index: 5; }
[data-theme="dark"] .collage .card-img { border-color: var(--surface-2); }

/* ---------- Cards / studio ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.studio { padding: 16px 20px 20px; }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; background: var(--bg-soft); color: var(--text-2); padding: 10px 26px 10px 22px; border-radius: 11px; font-weight: 500; font-size: 14px; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { background: var(--primary-soft-2); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(107, 62, 246, .28); font-weight: 600; }

.prompt-box { position: relative; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.prompt-box:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.prompt-box textarea { width: 100%; min-height: 96px; resize: vertical; border: 0; background: transparent; padding: 16px 170px 16px 18px; line-height: 1.6; font-size: 15.5px; outline: none; color: var(--text); border-radius: 14px; }
.prompt-box textarea::placeholder { color: var(--faint); }
.prompt-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.enhance-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary-text); padding: 8px 13px; font-size: 13.5px; font-weight: 600; }
.enhance-btn:hover { background: color-mix(in srgb, var(--primary-soft) 75%, var(--primary) 12%); }
.enhance-btn .ic { width: 17px; height: 17px; }
.prompt-meta { position: absolute; bottom: 8px; right: 14px; font-size: 12px; color: var(--faint); pointer-events: none; }

.settings-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-top: 16px; }
.setting { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.setting > .ic { width: 28px; height: 28px; color: var(--muted); margin-bottom: 6px; stroke-width: 1.6; }
.setting label, .field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 150px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; padding: 9px 38px 9px 13px; font-size: 14.5px; color: var(--text); }
.select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.generate-btn { margin-left: auto; min-width: 290px; padding: 17px 26px; font-size: 17px; border-radius: 13px; font-weight: 700; }
.generate-btn .ic { width: 22px; height: 22px; }
.cost-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.cost-note .ic { width: 15px; height: 15px; color: var(--amber); }
.cost-note b { color: var(--text-2); }

.style-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.style-tile { border: 0; background: transparent; padding: 0; text-align: center; border-radius: 12px; }
.style-tile .thumb { aspect-ratio: 13/8.2; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: var(--bg-soft); transition: border-color .15s, transform .15s; }
.style-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.style-tile span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--text-2); padding: 4px 2px; border-radius: 0 0 9px 9px; }
.style-tile:hover .thumb { transform: translateY(-2px); }
.style-tile.active .thumb { border-color: var(--primary); }
.style-tile.active span { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; margin-top: 0; padding-top: 10px; border-radius: 0 0 10px 10px; }
.style-tile.active { background: var(--primary-soft); padding-bottom: 0; }
.style-none .thumb { display: grid; place-items: center; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.pill:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); color: var(--primary-text); }
.pill.active { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); font-weight: 600; }
.pill .ic { width: 15px; height: 15px; }
.label-sm { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 16px 0 0; display: flex; align-items: center; gap: 7px; }

/* Upload zone */
.dropzone { position: relative; border: 2px dashed color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 14px; background: var(--primary-soft-2); padding: 22px; display: flex; align-items: center; gap: 18px; margin-bottom: 14px; transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-sm); flex: none; }
.dropzone .dz-icon .ic { width: 26px; height: 26px; }
.dropzone b { display: block; font-size: 15px; }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-file { cursor: default; padding: 12px; background: var(--surface); border-style: solid; border-color: var(--border); }
.dz-preview { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-soft); }
.dz-info { flex: 1; min-width: 0; }
.dz-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dz-progress { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 10px; }
.dz-progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

/* ---------- Tool pages ---------- */
.page-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; flex-wrap: wrap; }
.page-head .ph-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(107, 62, 246, .25); flex: none; }
.page-head .ph-icon .ic { width: 26px; height: 26px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { margin: 3px 0 0; color: var(--muted); }
.page-head .ph-right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); padding: 4px; border-radius: 12px; gap: 4px; }
.seg a, .seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; }
.seg .active { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow-sm); }
.seg .ic { width: 16px; height: 16px; }

.tool-layout { display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 22px; align-items: start; }
.tool-panel { padding: 20px; position: sticky; top: calc(var(--topbar) + 16px); }
.tool-panel .settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-panel .setting { display: block; }
.tool-panel .setting > .ic { display: none; }
.tool-panel .select select { min-width: 0; }
.tool-panel .generate-btn { margin: 18px 0 0; width: 100%; min-width: 0; }
.tool-panel .style-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tool-panel .style-tile span { font-size: 12.5px; }
.tool-panel .prompt-box textarea { min-height: 130px; padding: 16px 16px 40px; }
.tool-panel .prompt-tools { top: auto; bottom: 8px; right: 8px; }
.tool-panel .prompt-meta { left: 16px; right: auto; }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.section-label:first-child { margin-top: 0; }

.results { min-height: 420px; padding: 20px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.results-head h3 { font-size: 18px; }
.empty-state { display: grid; place-items: center; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .es-art { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; margin-bottom: 18px; }
.empty-state .es-art img { width: 84px; height: 110px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.empty-state .es-art img:nth-child(2) { transform: translateY(-10px); }
.empty-state h3 { color: var(--text); font-size: 19px; margin-bottom: 6px; }

/* Job result cards */
.job { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface-2); margin-bottom: 16px; }
.job-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.job-prompt { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.run { background: var(--primary-soft); color: var(--primary-text); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.job-grid.one { grid-template-columns: minmax(0, 1fr); }
.job-grid.one .media { max-width: 100%; margin: 0 auto; }
.media { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media.contain img, .media.contain video { object-fit: contain; background: #0b0a14; }
.media .ov { position: absolute; inset: auto 0 0 0; padding: 30px 10px 10px; display: flex; gap: 6px; justify-content: flex-end; background: linear-gradient(transparent, rgba(10, 6, 30, .65)); opacity: 0; transition: opacity .2s; }
.media:hover .ov, .media:focus-within .ov { opacity: 1; }
.ov .ob { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .92); color: #1b1640; display: grid; place-items: center; }
.ov .ob:hover { background: #fff; }
.ov .ob .ic { width: 17px; height: 17px; }
.media .badge-play { position: absolute; top: 10px; left: 10px; background: rgba(10, 6, 30, .6); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; display: flex; gap: 5px; align-items: center; }
.media .badge-play .ic { width: 13px; height: 13px; }
@media (hover: none) { .media .ov { opacity: 1; } }

.skeleton { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--bg-soft) 30%, color-mix(in srgb, var(--primary-soft) 80%, var(--surface)) 50%, var(--bg-soft) 70%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.gen-wait { display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted); }
.gen-wait .orb { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(107, 62, 246, .45); }
.gen-wait .orb .ic { width: 28px; height: 28px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 62, 246, .45); } 70% { box-shadow: 0 0 0 18px rgba(107, 62, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 62, 246, 0); } }
.gen-wait b { color: var(--text); font-size: 15px; margin-top: 12px; display: block; }
.progress { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; width: min(320px, 90%); margin: 12px auto 6px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .6s ease; }
.job-wait-box { display: grid; place-items: center; }
.job-error { display: flex; gap: 10px; align-items: flex-start; background: var(--red-soft); color: var(--red); padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.job-error .ic { margin-top: 1px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Gallery ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.gallery-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.gallery-row .gitem { aspect-ratio: 7/10.4; }
.gitem { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); cursor: pointer; border: 0; padding: 0; }
.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gitem:hover img, .gitem:hover video { transform: scale(1.06); }
.gitem .gcap { position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px; color: #fff; text-align: left; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(8, 5, 25, .72)); opacity: 0; transition: opacity .2s; }
.gitem:hover .gcap { opacity: 1; }
.gitem .vbadge { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 6, 30, .55); color: #fff; display: grid; place-items: center; }
.gitem .vbadge .ic { width: 14px; height: 14px; }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry .gitem { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; }
.masonry .gitem img, .masonry .gitem video { height: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- Tools hub ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card .tc-img { height: 170px; overflow: hidden; position: relative; }
.tool-card .tc-img img { width: 100%; height: 100%; object-fit: cover; }
.tool-card .tc-ic { position: absolute; left: 14px; bottom: -20px; width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; border: 3px solid var(--surface); }
.tool-card .tc-body { padding: 28px 18px 18px; }
.tool-card h3 { font-size: 17px; margin-bottom: 6px; }
.tool-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tool-card .go { color: var(--primary-text); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.tool-card .go .ic { width: 16px; height: 16px; }
.soon { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); margin-left: 6px; vertical-align: middle; }

/* ---------- Prompt tool ---------- */
.prompt-results { display: grid; gap: 14px; }
.prompt-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.prompt-card p { margin: 0 0 12px; line-height: 1.65; color: var(--text-2); white-space: pre-wrap; }
.prompt-card .pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.prompt-card .pc-head b { font-size: 13px; color: var(--primary-text); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 20px; justify-content: center; }
.plan { padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.plan.hl { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan .pbadge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--font-head); font-size: 40px; font-weight: 800; margin: 12px 0 2px; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .pcredits { color: var(--primary-text); font-weight: 600; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.plan li .ic { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cost-table td { padding: 12px 6px; border-bottom: 1px solid var(--border); }
.cost-table td:last-child { text-align: right; font-weight: 700; }
.pay-logos { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* ---------- Forms / auth ---------- */
.field { margin-bottom: 14px; }
.input, .textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); padding: 12px 14px; font-size: 15px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.input-wrap .input { padding-left: 40px; }
.auth { max-width: 440px; margin: 20px auto; padding: 30px; }
.auth h2 { font-size: 25px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); margin: 0 0 22px; }
.auth .switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.form-error { background: var(--red-soft); color: var(--red); padding: 10px 13px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.form-ok { background: var(--green-soft); color: var(--green); padding: 10px 13px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.bonus { display: flex; gap: 10px; align-items: center; background: var(--primary-soft-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px; font-size: 13.5px; color: var(--text-2); margin-bottom: 16px; }
.bonus .ic { color: var(--primary); }

/* Account */
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.acc-card { padding: 22px; }
.acc-card h3 { font-size: 17px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.stat-big { font-family: var(--font-head); font-size: 42px; font-weight: 800; line-height: 1; }
.list-rows { display: grid; }
.list-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.list-rows > div:last-child { border-bottom: 0; }
.plus { color: var(--green); font-weight: 700; }
.minus { color: var(--red); font-weight: 700; }

/* Doc pages */
.doc { max-width: 820px; padding: 30px; margin: 0 auto; }
.doc p { color: var(--text-2); line-height: 1.75; white-space: pre-wrap; }

/* ---------- Modal / lightbox / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(12, 8, 30, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); position: relative; animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal-body { padding: 28px; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(6, 4, 18, .94); display: grid; grid-template-columns: minmax(0, 1fr) 340px; animation: fade .15s; }
.lb-stage { display: grid; place-items: center; padding: 30px; min-height: 0; position: relative; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 60px); object-fit: contain; border-radius: 10px; }
.lb-side { background: var(--surface); padding: 26px 22px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.lb-side h3 { font-size: 18px; }
.lb-side .lb-prompt { font-size: 14px; color: var(--text-2); line-height: 1.6; background: var(--bg-soft); border-radius: 12px; padding: 12px; max-height: 240px; overflow: auto; white-space: pre-wrap; }
.lb-close { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); color: #fff; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-actions { display: grid; gap: 8px; }
.toasts { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(400px, calc(100vw - 36px)); }
.toast { background: var(--text); color: var(--surface); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: pop .2s; }
.toast.err { background: var(--red); color: #fff; }
.toast.ok { background: #13824f; color: #fff; }
.toast .ic { width: 18px; height: 18px; margin-top: 1px; }

.footer { border-top: 1px solid var(--border); padding: 22px 26px 30px; color: var(--muted); font-size: 13px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.footer a { color: var(--muted); margin-left: 14px; }
.footer a:hover { color: var(--primary-text); }

.bottom-nav { display: none; }
.drawer-back { display: none; }
.notice-bar { display: flex; gap: 10px; align-items: center; background: var(--amber-soft); color: var(--amber); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.notice-bar .ic { width: 18px; height: 18px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .topnav a .ic { display: none; }
  .topnav a { padding: 10px 13px; }
}
@media (max-width: 1360px) {
  .topnav a { padding: 10px 10px; }
  .generate-btn { min-width: 240px; }
}
@media (max-width: 1200px) {
  :root { --sidebar: 232px; }
  .topnav { display: none; }
  .style-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding-left: 10px; }
  .tool-layout { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 90; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .drawer-back.open { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(12, 8, 30, .45); }
  .menu-btn { display: grid; }
  .mobile-brand { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 4px 4px 18px; }
  .collage { height: 230px; max-width: 620px; width: 100%; margin: 0 auto; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-panel { position: static; }
  .acc-grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-side { max-height: 42vh; border-radius: 18px 18px 0 0; }
  .user-chip .who { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .content { padding: 14px 14px 96px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .top-right { gap: 4px; }
  .top-right .btn-upgrade span { display: none; }
  .top-right .btn-upgrade { padding: 10px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; margin: 12px 0 16px; }
  .chips { gap: 8px; }
  .chip { padding: 8px 12px; font-size: 13px; }
  .collage { height: 190px; }
  .studio { padding: 12px; }
  .tabs { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .prompt-box textarea { padding: 14px 14px 46px; min-height: 120px; }
  .prompt-tools { top: auto; bottom: 8px; right: 8px; }
  .prompt-meta { left: 14px; right: auto; }
  .settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .setting { display: block; }
  .setting > .ic { display: none; }
  .select select { min-width: 0; }
  .generate-btn { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 4px 0 0; }
  .style-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .style-tile span { font-size: 11.5px; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry .gitem { margin-bottom: 10px; }
  .page-head h1 { font-size: 22px; }
  .page-head .ph-icon { width: 44px; height: 44px; }
  .page-head .ph-right { margin-left: 0; width: 100%; }
  .section-head h2 { font-size: 20px; }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results { padding: 14px; min-height: 0; }
  .tool-panel { padding: 14px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .bottom-nav a .ic { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--primary-text); }
  .bottom-nav a.mid .ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--grad); color: #fff; margin-top: -18px; box-shadow: 0 8px 20px rgba(107, 62, 246, .35); }
  .toasts { left: 14px; right: 14px; bottom: 84px; max-width: none; }
  .auth { padding: 22px; margin: 6px auto; }
  .modal-body { padding: 22px; }
  .grid2 { grid-template-columns: 1fr; }
  .footer { padding: 18px 14px 100px; }
  .footer a { margin: 0 14px 0 0; }
  .dropzone { flex-direction: column; text-align: center; }
  .dropzone.has-file { flex-direction: row; text-align: left; }
  .dz-preview { width: 90px; height: 90px; }
}

/* ===================== AI Chat ===================== */
body[data-route="chat"] .footer { display: none; }
body[data-route="chat"] .content { max-width: none; padding: 14px 16px; }
.chat-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--topbar) - 28px); min-height: 480px; }
.chat-side { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-search .input { padding: 9px 12px 9px 38px; font-size: 14px; }
.chat-list { overflow-y: auto; display: grid; gap: 2px; align-content: start; margin: 0 -6px; padding: 0 6px; flex: 1; min-height: 0; }
.chat-item { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.chat-item:hover { background: var(--primary-soft-2); }
.chat-item.active { background: var(--primary-soft); }
.chat-item .ci-main { min-width: 0; flex: 1; }
.chat-item b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.chat-item small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .ci-del { width: 30px; height: 30px; opacity: 0; color: var(--muted); }
.chat-item:hover .ci-del, .chat-item.active .ci-del { opacity: 1; }
.chat-item .ci-del .ic { width: 16px; height: 16px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat-list-btn { display: none; }
.chat-title { margin-left: auto; color: var(--muted); font-size: 13.5px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-pick { position: relative; min-width: 0; }
.model-btn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 11px; padding: 8px 12px; font-weight: 600; font-size: 14.5px; color: var(--text); max-width: 100%; }
.model-btn:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.model-btn .mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.model-btn .ic { width: 16px; height: 16px; color: var(--muted); }
.fam-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #9aa0b8; }
.fam-gpt { background: #10a37f; } .fam-claude { background: #d97757; } .fam-gemini { background: #4285f4; } .fam-llama { background: #0866ff; } .fam-deepseek { background: #4d6bfe; } .fam-mistral { background: #fa520f; }
.tier-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.t-free { background: var(--green-soft); color: var(--green); }
.t-basic { background: var(--blue-soft); color: var(--blue-text); }
.t-standard { background: var(--primary-soft); color: var(--primary-text); }
.t-premium { background: var(--pink-soft); color: var(--pink-text); }
.model-pop { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mp-search { padding: 10px; border-bottom: 1px solid var(--border); }
.mp-search .ic { left: 23px; }
.mp-search .input { padding: 10px 12px 10px 40px; font-size: 14px; }
.mp-list { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.mp-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; }
.mp-row { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; text-align: left; }
.mp-row:hover { background: var(--primary-soft-2); }
.mp-row.active { background: var(--primary-soft); }
.mp-n { min-width: 0; flex: 1; }
.mp-n b { display: block; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-n small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-scroll { flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.chat-msgs { max-width: 820px; margin: 0 auto; padding: 22px 18px 10px; display: grid; gap: 18px; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { max-width: 80%; background: var(--primary-soft); color: var(--text); padding: 11px 15px; border-radius: 18px 18px 4px 18px; line-height: 1.55; white-space: normal; word-wrap: break-word; }
.msg.ai { display: flex; gap: 12px; align-items: flex-start; }
.ai-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.ai-av svg { width: 26px; height: 26px; }
.ai-body { min-width: 0; flex: 1; }
.ai-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-note { display: inline-flex; gap: 5px; align-items: center; font-weight: 500; color: var(--amber); background: var(--amber-soft); padding: 2px 8px; border-radius: 999px; }
.fb-note .ic { width: 13px; height: 13px; }
.ai-actions { display: flex; gap: 6px; margin-top: 6px; }
.md { line-height: 1.68; color: var(--text); word-wrap: break-word; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md h3, .md h4, .md h5, .md h6 { margin: 14px 0 8px; font-size: 16.5px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.md-pre { background: #151229; color: #e8e6f5; border-radius: 12px; overflow: hidden; margin: 6px 0 12px; }
.md-pre code { display: block; background: none; color: inherit; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.md-lang { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 14px; font-size: 12px; color: #a9a3cf; background: rgba(255, 255, 255, .05); }
.md-copy { border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 6px; font-size: 12px; padding: 3px 9px; }
.md blockquote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--primary); background: var(--primary-soft-2); border-radius: 0 8px 8px 0; }
.md a { text-decoration: underline; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--primary); border-radius: 2px; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .4; animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 40% { opacity: 1; transform: translateY(-3px); } }
.chat-composer { padding: 10px 16px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.composer-box { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px 8px 8px 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.composer-box textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; font-size: 15.5px; line-height: 1.5; padding: 8px 0; max-height: 220px; color: var(--text); }
.send-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(107, 62, 246, .3); }
.send-btn .ic { width: 19px; height: 19px; }
.send-btn.stop { background: var(--text); }
.composer-meta { max-width: 820px; margin: 7px auto 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.composer-meta .ic { width: 14px; height: 14px; color: var(--amber); }
.composer-meta b { color: var(--text-2); }
.cm-hint { margin-left: auto; }
.chat-empty { text-align: center; padding: 6vh 10px 20px; }
.chat-empty .ce-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); }
.chat-empty .ce-icon svg { width: 54px; height: 54px; }
.chat-empty .ce-icon .ic { width: 34px; height: 34px; }
.chat-empty h2 { font-size: 26px; margin-bottom: 6px; }
.suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 22px auto 0; }
.sg { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--text-2); transition: border-color .15s, transform .15s; }
.sg:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-2px); }
.sg .ic { color: var(--primary); width: 18px; height: 18px; margin-top: 1px; }
.chat-back { display: none; }
@media (max-width: 900px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - var(--topbar) - 24px); }
  .chat-side { position: fixed; z-index: 85; top: 0; left: 0; bottom: 0; width: 290px; border-radius: 0 18px 18px 0; transform: translateX(-104%); transition: transform .25s; }
  .chat-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .chat-back.open { display: block; position: fixed; inset: 0; z-index: 84; background: rgba(12, 8, 30, .4); }
  .chat-list-btn { display: grid; }
  .chat-title { display: none; }
  .model-btn .mb-name { max-width: 46vw; }
}
@media (max-width: 700px) {
  body[data-route="chat"] .content { padding: 8px 8px 0; }
  .chat-wrap { height: calc(100dvh - var(--topbar) - 76px); }
  .chat-msgs { padding: 14px 10px 6px; }
  .msg.user .bubble { max-width: 88%; }
  .ai-av { display: none; }
  .suggest { grid-template-columns: 1fr; }
  .cm-hint { display: none; }
  .chat-composer { padding: 8px 8px 10px; }
  .chat-empty h2 { font-size: 21px; }
}

/* ===================== Connections ===================== */
.secure-note { display: flex; gap: 12px; align-items: flex-start; background: var(--green-soft); color: #0f6b47; border-radius: 14px; padding: 13px 16px; font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.secure-note .ic { color: var(--green); width: 22px; height: 22px; flex: none; margin-top: 1px; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.conn-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; min-width: 0; }
.conn-card:hover { box-shadow: var(--shadow); }
.conn-card.st-connected { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.conn-card.st-reconnect { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); }
.cc-top { display: flex; gap: 12px; align-items: center; }
.p-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.p-ic .ic { width: 55%; height: 55%; }
.cc-name b { display: block; font-size: 16px; font-family: var(--font-head); }
.st-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-top: 4px; }
.st-pill .ic { width: 13px; height: 13px; }
.st-pill.ok { background: var(--green-soft); color: var(--green); }
.st-pill.warn { background: var(--amber-soft); color: var(--amber); }
.st-pill.off { background: var(--bg-soft); color: var(--muted); }
.cc-note { display: flex; gap: 7px; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); padding: 8px 10px; border-radius: 10px; line-height: 1.4; }
.cc-note .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary); }
.acc-rows { display: grid; gap: 6px; }
.acc-row { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 11px; padding: 7px 6px 7px 8px; min-width: 0; }
.acc-row .btn { padding: 7px 9px; flex: none; }
.acc-row.bad { background: var(--amber-soft); border-color: transparent; }
.acc-row img, .acc-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.acc-av { background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.acc-n { min-width: 0; flex: 1; }
.acc-n b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-n small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-btn { margin-top: auto; }
@media (max-width: 700px) { .conn-grid { grid-template-columns: minmax(0, 1fr); } }
.hide-sm { display: none; }

/* ===================== Create Post ===================== */
.cp-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 20px; align-items: start; }
.cp-main, .cp-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.cp-side { position: sticky; top: calc(var(--topbar) + 16px); }
.cp-sec { padding: 18px 20px; min-width: 0; }
.cp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cp-h h3 { font-size: 17px; }
.cp-hint { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.cp-hint .ic { width: 15px; height: 15px; }
.cp-n { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.cp-row3 { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr; gap: 12px; align-items: end; }
.cp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-row3 .field, .cp-row2 .field { margin-bottom: 12px; }
.cp-count { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.bad { color: var(--red); }
.cp-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cp-media:empty { display: none; }
.cp-mi { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.cp-mi img, .cp-mi video { width: 100%; height: 100%; object-fit: cover; }
.cp-mx { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(10, 6, 30, .7); color: #fff; display: grid; place-items: center; }
.cp-mx .ic { width: 15px; height: 15px; }
.vtag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; color: #fff; background: rgba(10, 6, 30, .6); padding: 3px 7px; border-radius: 7px; }
.vtag .ic { width: 12px; height: 12px; }
.tg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tg { border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; transition: border-color .15s, background .15s; min-width: 0; }
.tg.on { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--primary-soft-2); }
.tg.bad { opacity: .75; }
.tg-main { display: flex; align-items: center; gap: 11px; cursor: pointer; min-width: 0; }
.tg-main input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.tg-n { min-width: 0; flex: 1; }
.tg-n b { display: block; font-size: 14.5px; }
.tg-n small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-extra { margin: 10px 0 2px 29px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tg-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 2px 29px; font-size: 13px; color: var(--text-2); }
.pv-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; padding-bottom: 4px; scrollbar-width: thin; }
.pv-tab { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 6px 10px 6px 7px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text-2); position: relative; }
.pv-tab.active { border-color: var(--primary); background: var(--primary-soft-2); color: var(--primary-text); }
.pv-tab .p-ic { border-radius: 7px; box-shadow: none; }
.dot-bad { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pv-empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.pv-empty .ic { width: 30px; height: 30px; color: var(--faint); }
.pv-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.pv-top { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.pv-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.pv-top b { display: block; font-size: 14px; }
.pv-top small { color: var(--muted); font-size: 12px; }
.pv-text { padding: 0 12px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: var(--text); word-wrap: break-word; max-height: 260px; overflow: auto; }
.pv-title { padding: 10px 12px 4px; font-weight: 700; font-size: 15px; }
.pv-media { position: relative; background: #0b0a14; }
.pv-media img, .pv-media video { width: 100%; max-height: 380px; object-fit: contain; display: block; }
.pv-none { display: grid; place-items: center; gap: 6px; height: 140px; color: #a9a3cf; font-size: 13px; }
.pv-more { position: absolute; right: 10px; top: 10px; background: rgba(10, 6, 30, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.pv-youtube .pv-text, .pv-pinterest .pv-text { padding-top: 0; color: var(--text-2); font-size: 13.5px; }
.pv-rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.pv-rules li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.pv-rules li .ic { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.pv-rules li.ok { color: var(--green); }
.pv-rules li.bad { color: var(--red); font-weight: 500; }
.pv-rules.problems { margin: 0 0 14px; background: var(--bg-soft); padding: 10px 12px; border-radius: 12px; }
.pv-custom { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.pv-custom summary { cursor: pointer; font-weight: 600; font-size: 14px; display: flex; gap: 7px; align-items: center; color: var(--primary-text); }
.pv-custom summary .ic { width: 16px; height: 16px; }
.pv-custom .field, .pv-custom textarea { margin-top: 10px; }
.cp-mode { display: flex; width: 100%; margin-bottom: 12px; }
.cp-mode button { flex: 1; justify-content: center; }
.cp-when { margin-bottom: 12px; }
.cp-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.cp-wait { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13.5px; color: var(--muted); background: var(--primary-soft-2); padding: 10px 12px; border-radius: 12px; }
.cp-results { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
.res-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; flex-wrap: wrap; }
.res-n { min-width: 0; flex: 1; }
.res-n b { display: block; font-size: 14px; }
.res-n small { color: var(--muted); font-size: 12.5px; }
.st-pill.bad { background: var(--red-soft); color: var(--red); }
.st-pill.sched { background: var(--blue-soft); color: var(--blue-text); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.pk-item { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; background: var(--bg-soft); }
.pk-item:hover { border-color: var(--primary); }
.pk-item img, .pk-item video { width: 100%; height: 100%; object-fit: cover; }

/* ===================== My Posts ===================== */
.toolbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.pill-n { font-size: 11px; background: rgba(0, 0, 0, .06); padding: 1px 7px; border-radius: 999px; }
.post-list { display: grid; gap: 14px; }
.post-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; }
.pc-media { position: relative; width: 150px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.pc-media img, .pc-media video { width: 100%; height: 100%; object-fit: cover; }
.pc-text-only { display: grid; place-items: center; height: 100%; color: var(--faint); }
.pc-text-only .ic { width: 34px; height: 34px; }
.pc-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-top .st-pill { margin: 0; }
.pc-title { font-size: 15px; }
.pc-text { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pchip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); color: var(--text-2); }
.pchip .p-ic { border-radius: 50%; box-shadow: none; }
.pchip > .ic { width: 13px; height: 13px; }
.pchip.ok { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); color: var(--green); }
.pchip.bad { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); color: var(--red); }
.pchip.sched { border-color: color-mix(in srgb, var(--blue-text) 35%, var(--border)); color: var(--blue-text); }
a.pchip:hover { background: var(--green-soft); }
.pstats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); font-weight: 600; }
.pstats span { display: inline-flex; gap: 5px; align-items: center; }
.pstats .ic { width: 15px; height: 15px; color: var(--primary); }
.perr { display: flex; gap: 8px; font-size: 13px; color: var(--red); background: var(--red-soft); padding: 8px 10px; border-radius: 10px; }
.perr .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
@media (max-width: 1100px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-side { position: static; }
}
@media (max-width: 700px) {
  .cp-row3, .cp-row2 { grid-template-columns: 1fr; }
  .cp-sec { padding: 14px; }
  .post-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pc-media { width: 88px; height: 88px; }
  .tg-extra { grid-template-columns: 1fr; margin-left: 0; }
  .tg-check { margin-left: 0; }
  .cp-actions { grid-template-columns: 1fr; }
}

/* ---------- UPI / bank transfer checkout ---------- */
.pay-amount { font-size: 34px; font-weight: 800; text-align: center; margin: 14px 0 8px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-qr { width: 210px; height: 210px; margin: 4px auto 0; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pay-box { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); padding: 4px 12px; margin-top: 12px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.pay-row:last-child { border-bottom: 0; }
.pay-row span { color: var(--muted); font-size: 13.5px; flex: none; min-width: 108px; }
.pay-row b { font-weight: 700; font-size: 14.5px; word-break: break-all; flex: 1; min-width: 0; }
.pay-row .btn { flex: none; padding: 6px 8px; }
.pay-bank { margin-top: 14px; }
.pay-bank summary { cursor: pointer; font-weight: 700; color: var(--primary-text); display: flex; align-items: center; gap: 8px; list-style: none; }
.pay-bank summary::-webkit-details-marker { display: none; }
.pay-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pay-form label { font-size: 14px; color: var(--text-2); }
@media (max-width: 480px) { .pay-row span { min-width: 92px; } .pay-amount { font-size: 30px; } }
.pay-qr-img { width: 230px; height: 230px; padding: 8px; }
.pay-qr-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }

/* ===================== Ko Ai Assistant ===================== */
.nav-new { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #e8409a, #6b3ef6); padding: 2px 7px; border-radius: 999px; }
.tab-assist:not(.active) { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 12%, var(--bg-soft)), color-mix(in srgb, var(--primary) 14%, var(--bg-soft))); color: var(--primary-text); font-weight: 600; }

/* home composer */
.as-home { display: grid; gap: 12px; }
.as-hbox { border: 1.5px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 18px; background: var(--surface); padding: 12px 12px 10px 16px; transition: border-color .15s, box-shadow .15s; }
.as-hbox:focus-within, .as-hbox.drag { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.as-hbox textarea { width: 100%; border: 0; outline: none; resize: vertical; background: transparent; color: var(--text); font-size: 16px; line-height: 1.55; min-height: 84px; max-height: 320px; padding: 4px 0; }
.as-hbox textarea::placeholder { color: var(--faint); }
.as-hbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.as-ask { margin-left: auto; padding: 11px 20px; border-radius: 12px; font-weight: 700; }
.as-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.as-chip .ic { width: 16px; height: 16px; }
.as-chip:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); color: var(--primary-text); }
.as-chip.on { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary-text); }
.as-chip.sm { padding: 5px 11px; font-size: 12.5px; }
.as-chip.sm .ic { width: 14px; height: 14px; }
.as-hfiles, .as-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.as-hsearch .input { padding-top: 11px; padding-bottom: 11px; border-radius: 12px; }
.as-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.as-qt .ic { color: var(--qc, var(--primary)); }

/* category colours */
.c-askwrite { --qc: #6b3ef6; --qbg: var(--primary-soft); }
.c-search { --qc: #0e9f8a; --qbg: #dff7f2; }
.c-images { --qc: #e8409a; --qbg: var(--pink-soft); }
.c-video { --qc: #2f6fec; --qbg: var(--blue-soft); }
.c-pdf { --qc: #e5484d; --qbg: var(--red-soft); }
.c-word { --qc: #2b5fd9; --qbg: #e3ecff; }
.c-excel { --qc: #1f9d55; --qbg: var(--green-soft); }
.c-prompt { --qc: #d98a06; --qbg: var(--amber-soft); }
.c-social { --qc: #c2338a; --qbg: var(--pink-soft); }
[data-theme="dark"] .c-search { --qbg: rgba(14, 159, 138, .16); }
[data-theme="dark"] .c-word { --qbg: rgba(43, 95, 217, .2); }

/* file chips */
.as-fc { display: inline-flex; align-items: center; gap: 9px; max-width: 260px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 6px 8px 6px 6px; color: var(--text); position: relative; }
.as-fc img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.as-fc.err { border-color: color-mix(in srgb, var(--red) 50%, var(--border)); background: var(--red-soft); }
.fc-ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: #8a8fa8; }
.fc-ic .ic { width: 19px; height: 19px; }
.fc-ic.k-pdf { background: #e5484d; } .fc-ic.k-docx, .fc-ic.k-doc { background: #2b5fd9; } .fc-ic.k-sheet { background: #1f9d55; } .fc-ic.k-pptx { background: #e46b2c; } .fc-ic.k-image { background: #e8409a; } .fc-ic.k-text { background: #6b7088; }
.fc-t { min-width: 0; display: grid; }
.fc-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-t small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-fc.err .fc-t small { color: var(--red); white-space: normal; }
.fc-spin { display: grid; }
.fc-x { border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fc-x:hover { background: var(--bg-soft); color: var(--text); }
.fc-x .ic { width: 15px; height: 15px; }

/* page layout */
.as-main { position: relative; }
.as-dropzone { position: absolute; inset: 10px; border: 2.5px dashed var(--primary); border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, var(--primary) 12%); display: none; place-items: center; align-content: center; gap: 6px; z-index: 30; color: var(--primary-text); pointer-events: none; }
.as-dropzone .ic { width: 40px; height: 40px; }
.as-dropzone b { font-size: 18px; }
.as-main.as-drop .as-dropzone { display: grid; }
.as-side-foot { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 2px; }
.as-side-foot a { display: flex; gap: 9px; align-items: center; color: var(--text-2); font-size: 13.5px; padding: 8px 10px; border-radius: 10px; }
.as-side-foot a:hover { background: var(--primary-soft-2); color: var(--primary-text); }
.as-side-foot .ic { width: 17px; height: 17px; }
.as-composer { max-width: 820px; margin: 0 auto; }
.as-cbox { padding-left: 6px; }
.as-plus-wrap { position: relative; align-self: flex-end; }
.as-plus { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-soft); color: var(--text-2); }
.as-plus:hover { background: var(--primary-soft); color: var(--primary-text); }
.as-plus .ic { width: 21px; height: 21px; }
.as-plus-pop { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 60; width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.as-plus-pop button { display: flex; gap: 11px; align-items: center; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.as-plus-pop button:hover { background: var(--primary-soft-2); }
.as-plus-pop button > .ic:first-child { width: 19px; height: 19px; color: var(--primary); flex: none; }
.as-plus-pop button > .ic:last-child:not(:first-child) { width: 17px; height: 17px; color: var(--green); margin-left: auto; }
.as-plus-pop span { display: grid; min-width: 0; }
.as-plus-pop b { font-size: 14px; font-weight: 600; }
.as-plus-pop small { font-size: 12px; color: var(--muted); }
.pm-sep { height: 1px; background: var(--border); margin: 5px 8px; }
.as-under { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.as-meta { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.as-meta .ic { width: 14px; height: 14px; color: var(--amber); }
.as-meta b { color: var(--text-2); }

/* empty state + tools */
.as-empty { padding-top: 3vh; }
.as-tsearch { max-width: 560px; margin: 18px auto 0; }
.as-tsearch .input { border-radius: 12px; }
.as-cats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 12px auto 0; max-width: 680px; }
.modal .as-cats { justify-content: flex-start; margin: 12px 0; }
.as-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 14px auto 0; text-align: left; }
.as-tools.in-modal { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: min(56vh, 520px); overflow-y: auto; margin: 0; padding: 2px; }
.as-tool { display: flex; gap: 11px; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 11px 12px; text-align: left; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.as-tool:hover { border-color: color-mix(in srgb, var(--qc, var(--primary)) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.at-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--qbg, var(--primary-soft)); color: var(--qc, var(--primary)); }
.at-ic .ic { width: 19px; height: 19px; }
.at-t { display: grid; min-width: 0; }
.at-t b { font-size: 14px; font-weight: 600; }
.at-t small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.as-tool.more { border-style: dashed; }

/* messages */
.msg.user { flex-direction: column; align-items: flex-end; gap: 6px; }
.as-ufiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 80%; }
.as-uimg { border: 0; padding: 0; background: none; border-radius: 14px; overflow: hidden; width: 150px; height: 150px; box-shadow: var(--shadow-sm); }
.as-uimg img { width: 100%; height: 100%; object-fit: cover; }
.as-steps { display: grid; gap: 4px; }
.as-steps:empty { display: none; }
.as-step { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--primary-text); font-weight: 600; }
.as-step.done { color: var(--muted); font-weight: 500; }
.as-step .ic { width: 14px; height: 14px; color: var(--green); }
.as-steps + .md { margin-top: 6px; }
.as-att { display: grid; gap: 12px; margin-top: 10px; }
.as-att:empty { display: none; }
.as-att .job { margin: 0; }
.as-doc, .as-pdf { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: var(--surface-2, var(--surface)); }
.ad-row { display: flex; gap: 12px; align-items: center; }
.ad-ic { width: 44px; height: 44px; border-radius: 12px; background: #2b5fd9; color: #fff; display: grid; place-items: center; flex: none; }
.ad-ic.red { background: #e5484d; }
.ad-ic .ic { width: 22px; height: 22px; }
.ad-main { min-width: 0; display: grid; }
.ad-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.ad-acts small { opacity: .8; font-weight: 500; }
.ad-acts .job-error { width: 100%; }
.ad-prev { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; max-height: 420px; overflow-y: auto; }
.as-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.as-src-l { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.as-src-l .ic { width: 14px; height: 14px; }
.as-src { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-src i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--primary-soft); color: var(--primary-text); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.as-src:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.as-websaid { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; color: #0e9f8a; }
.as-websaid .ic { width: 13px; height: 13px; }
.md-table { overflow-x: auto; margin: 4px 0 12px; border: 1px solid var(--border); border-radius: 12px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md-table th, .md-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.md-table th { background: var(--primary-soft-2); font-weight: 700; white-space: nowrap; }
.md-table tr:last-child td { border-bottom: 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

/* PDF export (always light) */
.as-print { width: 720px; padding: 6px 4px; background: #fff; color: #1d1b2e; font-family: Inter, Arial, "Nirmala UI", sans-serif; font-size: 14px; }
.as-print h1 { font-size: 26px; color: #4b2bc2; margin: 0 0 14px; }
.as-print .md, .as-print .md * { color: #1d1b2e; }
.as-print .md h3, .as-print .md h4 { color: #4b2bc2; }
.as-print .md a { color: #4b2bc2; }
.as-print .md-pre { background: #f4f2fb; }
.as-print .md-lang { display: none; }
.as-print .md code { background: #f1eefb; }
.as-print .md-table th { background: #efe9ff; }
.as-print .md-table, .as-print .md-table th, .as-print .md-table td { border-color: #d8d2ec; }
.as-print-foot { margin-top: 18px; font-size: 11px; color: #8a86a6; text-align: right; }

@media (max-width: 900px) {
  .as-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bottom-nav { grid-template-columns: repeat(6, 1fr); }
  .bottom-nav a { font-size: 10.5px; }
  .as-hbox { padding: 10px 10px 8px 12px; }
  .as-hbox textarea { font-size: 15.5px; min-height: 92px; }
  .as-ask { width: 100%; justify-content: center; margin-left: 0; order: 5; }
  .as-hbar .as-chip { flex: 1; justify-content: center; padding: 8px 8px; }
  .as-tools, .as-tools.in-modal { grid-template-columns: minmax(0, 1fr); }
  .as-tools.in-modal { max-height: 52vh; }
  .as-uimg { width: 120px; height: 120px; }
  .as-ufiles { max-width: 92%; }
  .as-meta { width: 100%; margin-left: 0; }
  .as-fc { max-width: 100%; }
  .as-plus { width: 40px; height: 40px; }
}
.nav a.nav-hot:not(.active) .ic { color: #e8409a; }
.nav a.nav-hot span { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-phone { padding-bottom: 12px; }
  .hero-phone h1 { font-size: 27px; }
  .hero-phone p.lead { margin: 8px 0 0; font-size: 14.5px; }
  .hero-phone-art { padding: 18px 4px 4px; gap: 18px; }
  .hero-phone-art .chips { justify-content: center; }
  .as-chip { white-space: nowrap; }
  .as-hbar { gap: 6px; }
  .as-hbar .as-chip { padding: 8px 6px; font-size: 12.5px; gap: 5px; }
  .as-hbar .as-chip .ic { width: 15px; height: 15px; }
  .as-hbox textarea { min-height: 100px; }
}
.brand-img { max-width: 150px; max-height: 150px; }
.pdf-report { width: 100%; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--green); }
.pdf-report .ic { width: 17px; height: 17px; }
.pdf-report b { color: var(--text); }
.pdf-prev { width: 100%; display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.pdf-prev-img { border: 1px solid var(--border); border-radius: 10px; padding: 0; background: #fff; overflow: hidden; flex: none; width: min(100%, 420px); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.pdf-prev-img img { width: 100%; display: block; }
.as-print .md-table { overflow: visible; border-radius: 0; }
.as-print .md-table table { font-size: 12px; table-layout: auto; width: 100%; }
.as-print .md-table th, .as-print .md-table td { white-space: normal; word-break: break-word; padding: 6px 8px; }
.pbuys { font-size: 13px; color: var(--text-2); background: var(--primary-soft-2); border-radius: 10px; padding: 8px 10px; margin: 4px 0 10px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.pbuys .ic { width: 15px; height: 15px; color: var(--amber); flex: none; margin-top: 2px; }
.pbuys i { font-style: normal; color: var(--muted); }
.cost-table .ct-grp td { font-weight: 700; color: var(--primary-text); padding-top: 14px; border-bottom: 0; }
.free-tag { color: var(--green); }
.pbuys { display: block; }
.pbuys .ic { display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* ===================== Free trial, getting started & conversion ===================== */
#onboard:empty { display: none; }
#onboard { margin-top: 16px; }
.trial-card { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 24px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.trial-card .tc-main { flex: 1 1 420px; min-width: 0; }
.tc-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--pink-text); background: var(--pink-soft); padding: 5px 12px; border-radius: 999px; }
.tc-badge .ic { width: 15px; height: 15px; }
.trial-card h2 { font-size: 22px; margin: 10px 0 12px; line-height: 1.25; }
.tc-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-perk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--primary-text); background: var(--primary-soft); padding: 7px 12px; border-radius: 10px; }
.tc-perk .ic { width: 16px; height: 16px; }
.tc-note { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.tc-note .ic { width: 18px; height: 18px; color: var(--pink-text); flex: none; }
.tc-cta { display: grid; gap: 8px; justify-items: center; text-align: center; flex: 0 0 auto; }
.tc-cta small { color: var(--muted); font-size: 12.5px; max-width: 240px; }

.onboard { padding: 20px 22px; }
.onboard.slim { padding: 12px 16px; }
.ob-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ob-head h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.ob-head h3 .ic { width: 20px; height: 20px; color: var(--primary); }
.ob-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.ob-bar { height: 8px; border-radius: 99px; background: var(--primary-soft); margin: 14px 0 14px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s; }
.ob-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ob-step { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.ob-step:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.ob-step.next { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.ob-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.ob-ic .ic { width: 20px; height: 20px; }
.ob-step.done .ob-ic { background: var(--green-soft); color: var(--green); }
.ob-t b { display: block; font-size: 14.5px; line-height: 1.3; }
.ob-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.ob-go { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--primary-text); }
.ob-go .ic { width: 15px; height: 15px; }
.ob-step.done .ob-go { color: var(--green); }
.ob-step.done b { color: var(--text-2); }
.ob-trial { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--pink-soft); color: var(--text-2); font-size: 13.5px; }
.onboard.slim .ob-trial { margin-top: 0; }
.ob-trial > .ic { width: 18px; height: 18px; color: var(--pink-text); flex: none; }
.ob-trial span { flex: 1 1 260px; }
.ob-trial.end { background: var(--amber-soft); }
.ob-trial.end > .ic { color: var(--amber); }

.uc-trial { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: -4px 0 14px; border-radius: 12px; background: var(--pink-soft); }
.uc-trial .ic { width: 18px; height: 18px; color: var(--pink-text); flex: none; margin-top: 2px; }
.uc-trial b { display: block; font-size: 13.5px; color: var(--pink-text); }
.uc-trial span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.uc-from { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.plan .pday { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; margin: 2px 0 8px; }

.um-plans { display: grid; gap: 8px; margin-top: 14px; }
.um-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s; }
.um-plan:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.um-plan.hl { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.um-plan b { font-size: 15px; }
.um-plan em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 99px; margin-left: 4px; vertical-align: 2px; }
.um-plan small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.um-l { min-width: 0; }
.um-r { text-align: right; flex: none; }
.um-r b { font-family: var(--font-head); font-size: 18px; }
.um-r small { color: var(--green); font-weight: 600; }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-card { position: relative; padding: 22px; }
.how-n { position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.how-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 12px; }
.how-ic .ic { width: 22px; height: 22px; }
.how-card h3 { font-size: 17px; }
.how-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.why-item { display: flex; gap: 12px; padding: 14px 4px; }
.why-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.why-ic .ic { width: 20px; height: 20px; }
.why-item b { font-size: 15px; }
.why-item p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cta-band { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 28px; background: var(--grad); color: #fff; border: 0; }
.cta-band h2 { font-size: 22px; color: #fff; }
.cta-band p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-grad { background: #fff; color: var(--primary-text); }
.cta-band .btn-light { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }

@media (max-width: 1100px) {
  .ob-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .how-grid, .why-grid { grid-template-columns: 1fr; }
  .why-grid { gap: 0; }
}
@media (max-width: 700px) {
  .trial-card { padding: 18px; }
  .trial-card h2 { font-size: 19px; }
  .tc-cta { width: 100%; }
  .tc-cta .btn { width: 100%; }
  .onboard { padding: 16px; }
  .ob-steps { grid-template-columns: 1fr; gap: 8px; }
  .ob-step { flex-direction: row; align-items: center; padding: 11px 12px; }
  .ob-go { margin: 0 0 0 auto; flex: none; }
  .ob-t { flex: 1; min-width: 0; }
  .cta-band { padding: 22px 18px; }
  .cta-btns, .cta-btns .btn { width: 100%; }
}

/* =====================================================================
   v2 — Clean professional design (ChatGPT / Claude style)
   White & soft grey, purple only for actions and highlights.
   ===================================================================== */
:root {
  --bg: #f7f7f8; --bg-soft: #f1f1f4; --surface: #ffffff; --surface-2: #fafafb; --side-bg: #f9f9fb;
  --border: #e9e9ee; --border-strong: #dadae2; --text: #0f1022; --text-2: #3d4052; --muted: #6b6e80; --faint: #9a9cab;
  --primary-soft: #f1edff; --primary-soft-2: #f7f5ff; --nav-hover: #ececf1; --nav-active: #e6e6ee;
  --shadow-sm: 0 1px 2px rgba(16, 16, 40, .04); --shadow: 0 6px 24px rgba(16, 16, 40, .06); --shadow-lg: 0 24px 64px rgba(16, 16, 40, .18);
  --radius: 16px; --sidebar: 268px; --topbar: 60px;
}
:root[data-theme="dark"] {
  --bg: #0f0f13; --bg-soft: #18181e; --surface: #16161b; --surface-2: #1b1b22; --side-bg: #121217;
  --border: #26262f; --border-strong: #34343f; --text: #f4f4f7; --text-2: #cfd0da; --muted: #9a9bad; --faint: #6f7083;
  --primary-soft: #262046; --primary-soft-2: #1d1934; --nav-hover: #1f1f27; --nav-active: #26262f;
  --shadow-sm: none; --shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
body { background: var(--bg); font-size: 15px; }
.card { border-radius: var(--radius); box-shadow: none; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-grad { box-shadow: 0 2px 10px rgba(107, 62, 246, .22); }
.btn-grad:hover { box-shadow: 0 4px 16px rgba(107, 62, 246, .32); filter: brightness(1.04); }
.btn-dark { background: var(--text); color: var(--surface); }
.btn-dark:hover { opacity: .9; }
.btn-light { background: var(--surface); }
.icon-btn { border-radius: 10px; }
.icon-btn:hover { background: var(--nav-hover); }
kbd { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ---- Sidebar ---- */
.sidebar { background: var(--side-bg); padding: 12px 12px 14px; gap: 10px; border-right: 1px solid var(--border); }
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.sb-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: Arial, 'Helvetica Neue', var(--font); font-weight: 800; font-size: 21px; letter-spacing: .2px; min-width: 0; }
.sb-brand img, .sb-brand svg { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; flex: none; }
.sb-brand b { color: var(--primary); }
.sb-close { display: none; }
.sb-actions { display: grid; gap: 6px; }
.sb-new { justify-content: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.sb-new:hover { border-color: var(--border-strong); background: var(--surface); }
.sb-new .ic { width: 18px; height: 18px; color: var(--primary); }
.sb-search { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.sb-search:hover { background: var(--nav-hover); color: var(--text-2); }
.sb-search .ic { width: 18px; height: 18px; }
.sb-search kbd { margin-left: auto; }
.nav { gap: 1px; }
.nav-grp { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--faint); margin: 12px 12px 4px; }
.nav-sep { margin: 6px 10px; }
.nav a { gap: 12px; padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav a .ic { width: 18px; height: 18px; color: var(--muted); }
.nav a:hover { background: var(--nav-hover); }
.nav a.active { background: var(--nav-active); color: var(--text); font-weight: 600; }
.nav a.active .ic { color: var(--primary); }
.nav a.nav-hot .ic { color: var(--primary); }
.nav-new { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--grad); padding: 1px 7px; border-radius: 99px; }
.sb-recent { display: grid; gap: 1px; }
.sb-recent .rc { display: block; padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-recent .rc:hover { background: var(--nav-hover); }
.sb-recent .rc.active { background: var(--nav-active); color: var(--text); font-weight: 600; }
.sb-bottom { margin-top: auto; display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.upgrade-card { margin: 0; padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: none; display: grid; gap: 10px; }
.uc-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.uc-row b { display: block; font-size: 13.5px; color: var(--text); }
.uc-row small { display: block; font-size: 12px; color: var(--muted); }
.uc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.uc-ic.gift { background: var(--pink-soft); color: var(--pink-text); }
.uc-ic .ic { width: 18px; height: 18px; }
.uc-warn { color: var(--red); font-weight: 700; }
.sb-user { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px; border-radius: 10px; text-align: left; position: relative; color: var(--text); }
.sb-user:hover { background: var(--nav-hover); }
.sb-user .avatar { width: 34px; height: 34px; font-size: 14px; }
.sb-user .who { flex: 1; min-width: 0; line-height: 1.25; }
.sb-user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .who small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user > .ic { width: 16px; height: 16px; color: var(--muted); }
.sb-guest { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sb-guest b { font-size: 14px; }
.sb-guest small { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.dropdown.up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; width: 100%; min-width: 240px; }

/* ---- Top bar ---- */
.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid transparent; height: var(--topbar); }
.topnav { display: none !important; }
.top-right { gap: 8px; }
.top-search { display: none; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; }
.credit-pill .ic { width: 15px; height: 15px; color: var(--amber); }
.credit-pill span { color: var(--muted); }
.btn-upgrade { padding: 9px 14px; font-size: 13.5px; }
.guest-btns { display: flex; gap: 6px; }
.user-chip .who { display: none; }
.user-chip > .ic { display: none; }
.user-chip .avatar { width: 34px; height: 34px; font-size: 14px; }
.content { max-width: 1240px; padding: 8px 28px 60px; }

/* ---- Footer ---- */
.footer { padding: 18px 28px 26px; font-size: 13px; align-items: center; }
.f-left { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.footer .f-links a { margin: 0; }
.f-share { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.f-share .ic { width: 15px; height: 15px; color: var(--primary); }
.f-share:hover { border-color: var(--border-strong); }
.follow { display: flex; align-items: center; gap: 6px; }
.follow > span { margin-right: 4px; }
.soc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff !important; margin: 0 !important; transition: transform .15s; }
.soc:hover { transform: translateY(-2px); }
.soc .ic { width: 15px; height: 15px; }

/* ---- Floating WhatsApp ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 11px 16px 11px 13px; border-radius: 99px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.wa-float .ic { width: 20px; height: 20px; }
body[data-route="assistant"] .wa-float, body[data-route="chat"] .wa-float { display: none; }

/* ---- Search palette ---- */
.pal-modal { width: min(640px, 100%) !important; align-self: start; margin-top: 10vh; }
.pal-modal .modal-body { padding: 0; }
.pal-modal .x { display: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pal-in .ic { color: var(--muted); }
.pal-in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--text); }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; }
.pal-g { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 10px 10px 4px; }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--text-2); }
.pal-it .ic { width: 18px; height: 18px; color: var(--muted); }
.pal-it b { display: block; font-weight: 500; font-size: 14.5px; color: var(--text); }
.pal-it small { display: block; color: var(--muted); font-size: 12.5px; }
.pal-it.on { background: var(--primary-soft); }
.pal-it.on .ic { color: var(--primary); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pal-foot kbd { margin-right: 4px; }

/* ---- Share ---- */
.sh-prev { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: var(--bg-soft); margin-bottom: 12px; }
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.sh-it { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.sh-it:hover { background: var(--bg-soft); }
.sh-it span { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; }
.sh-it span .ic { width: 20px; height: 20px; }
.sh-link { display: flex; gap: 8px; margin-bottom: 8px; }
.sh-link .input { flex: 1; min-width: 0; font-size: 13px; }

/* ---- Home (chat-first) ---- */
.home2 { max-width: 920px; margin: 0 auto; }
.h2-head { text-align: center; padding: 6vh 8px 18px; }
.h2-head h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.h2-head p { margin: 10px auto 0; max-width: 640px; color: var(--muted); font-size: 16px; }
.h2-studio { padding: 14px 16px 16px; border-radius: 22px; box-shadow: 0 2px 4px rgba(16, 16, 40, .03), 0 12px 40px rgba(16, 16, 40, .06); }
:root[data-theme="dark"] .h2-studio { box-shadow: none; }
.h2-studio .tabs { gap: 4px; margin-bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.h2-studio .tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tab:hover { background: var(--nav-hover); color: var(--text-2); }
.tab.active { background: var(--text); color: var(--surface); box-shadow: none; }
.tab .ic { width: 16px; height: 16px; }
.h2-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hq { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 12px 14px; text-align: left; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.hq:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateY(-1px); box-shadow: var(--shadow); }
.hq-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.hq-ic .ic { width: 19px; height: 19px; }
.hq-t { min-width: 0; }
.hq-t b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.hq-t b em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--grad); padding: 1px 6px; border-radius: 99px; }
.hq-t small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home2 .section-head { margin-top: 36px; }
.home2 .section-head h2 { font-size: 21px; font-weight: 700; }
.home2 .gallery-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home2 .how-sec .section-head, .home2 .why-sec .section-head { margin-top: 40px; }
.ob-trial.renew { background: var(--primary-soft); }
.ob-trial.renew > .ic { color: var(--primary); }
.prompt-box { border-radius: 16px; }
.as-hbox { border-radius: 18px; }

/* tool pages: lighter header */
.page-head .ph-icon { width: 46px; height: 46px; border-radius: 13px; box-shadow: none; }
.page-head h1 { font-size: 25px; font-weight: 700; }

/* ---- Content Planner ---- */
.pl-form { max-width: 760px; margin: 0 auto; padding: 26px; }
.pl-intro { text-align: center; margin-bottom: 18px; }
.pl-intro h2 { font-size: 24px; margin: 10px 0 6px; }
.pl-intro p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: 4px 11px; border-radius: 99px; }
.pl-badge .ic { width: 14px; height: 14px; }
.pl-row2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-row2 .input { flex: 1; min-width: 140px; }
.pl-accs { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-acc { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px 5px 6px; cursor: pointer; font-size: 13.5px; background: var(--surface); }
.pl-acc input { accent-color: var(--primary); }
.pl-acc:has(input:checked) { border-color: var(--primary); background: var(--primary-soft-2); }
.pl-noacc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--bg-soft); font-size: 13.5px; color: var(--text-2); }
.pl-noacc span { flex: 1 1 260px; }
.pl-head { padding: 18px 20px; margin-bottom: 18px; display: grid; gap: 12px; }
.plh-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plh-top h2 { font-size: 20px; }
.plh-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pst { display: inline-flex; gap: 5px; align-items: baseline; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--text-2); }
.pst b { font-size: 14px; }
.pst.scheduled { background: var(--blue-soft); color: var(--blue-text); }
.pst.posted { background: var(--green-soft); color: var(--green); }
.pst.failed { background: var(--red-soft); color: var(--red); }
.pst.ready { background: var(--primary-soft); color: var(--primary-text); }
.plh-accs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px 3px 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); }
.plh-auto { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); }
.plh-auto.on { background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), color-mix(in srgb, var(--pink) 8%, var(--surface))); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.pa-txt > b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pa-txt > b .ic { color: var(--primary); }
.pa-txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.pa-txt .pa-cost { color: var(--text-2); }
.toggle { position: relative; width: 46px; height: 26px; flex: none; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .2s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle.big { width: 56px; height: 32px; }
.toggle.big span::after { width: 26px; height: 26px; }
.toggle.big input:checked + span::after { transform: translateX(24px); }
.pl-day { margin-bottom: 22px; }
.pl-dh { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 10px; color: var(--muted); font-size: 14px; }
.pl-dn { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--text); }
.pl-it { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; overflow: hidden; margin-bottom: 12px; transition: box-shadow .3s; }
.pl-it.saved { box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 50%, transparent); }
.pl-media { background: var(--bg-soft); display: grid; place-items: center; min-height: 220px; border-right: 1px solid var(--border); }
.pl-media img, .pl-media video { width: 100%; height: 100%; max-height: 380px; object-fit: cover; }
.plm-empty, .plm-wait { display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 16px; width: 100%; }
.plm-empty .ic { width: 34px; height: 34px; color: var(--faint); }
.plm-wait .progress { width: 80%; }
.pl-main { padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.pl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--text-2); }
.pl-pill .ic { width: 14px; height: 14px; }
.pl-pill.ready { background: var(--primary-soft); color: var(--primary-text); }
.pl-pill.creating { background: var(--amber-soft); color: var(--amber); }
.pl-pill.creating .ic { animation: spin 1s linear infinite; }
.pl-pill.scheduled { background: var(--blue-soft); color: var(--blue-text); }
.pl-pill.posted { background: var(--green-soft); color: var(--green); }
.pl-pill.failed { background: var(--red-soft); color: var(--red); }
.pl-time { width: auto; padding: 6px 10px; font-size: 13px; }
.seg.sm { padding: 3px; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.pl-topic { border: 0; background: transparent; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); padding: 2px 0; width: 100%; outline: none; border-bottom: 1px dashed transparent; }
.pl-topic:focus { border-bottom-color: var(--border-strong); }
.pl-hook { display: flex; align-items: center; gap: 8px; background: var(--amber-soft); border-radius: 10px; padding: 7px 10px; }
.pl-hook .ic { width: 16px; height: 16px; color: var(--amber); flex: none; }
.pl-hook input { flex: 1; border: 0; background: transparent; outline: none; font-weight: 600; color: var(--text); min-width: 0; }
.pl-why { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.pl-why .ic { width: 14px; height: 14px; color: var(--amber); }
.pl-more summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--primary-text); }
.pl-more summary .ic { width: 15px; height: 15px; }
.pl-more label, .pl-lab { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 8px 0 4px; }
.pl-copy { display: inline-flex; gap: 4px; align-items: center; border: 0; background: none; color: var(--primary-text); font-size: 12px; font-weight: 600; }
.pl-copy .ic { width: 13px; height: 13px; }
.pl-main .textarea { font-size: 14px; }
.pl-tags { font-size: 13px; color: var(--blue-text); }
.pl-err { display: flex; gap: 8px; align-items: flex-start; background: var(--red-soft); color: var(--red); padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.pl-err .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pl-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }

/* ---- Create Post: reach ---- */
.cp-ai-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.best-times { margin-top: 8px; }
.reach { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.reach-score { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 5px solid var(--amber); flex: none; }
.reach-score b { font-family: var(--font-head); font-size: 20px; line-height: 1; }
.reach-score small { font-size: 10px; color: var(--muted); }
.reach-score.great { border-color: var(--green); }
.reach-score.low { border-color: var(--red); }
.reach-txt b { display: block; font-size: 14.5px; }
.reach-txt small { color: var(--muted); font-size: 12.5px; }
.reach-list li { font-size: 13px; }
.reach-list li.bad .ic { color: var(--amber); }
.reach-tips { margin-top: 10px; background: var(--primary-soft-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.reach-tips b { display: flex; gap: 6px; align-items: center; }
.reach-tips .ic { width: 15px; height: 15px; color: var(--amber); }
.reach-tips ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }

/* ---- Assistant page: chats live in the main sidebar on desktop ---- */
@media (min-width: 1001px) {
  .as-wrap { grid-template-columns: minmax(0, 1fr); }
  .as-wrap .chat-side { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) { :root { --sidebar: 248px; } }
@media (max-width: 1000px) {
  .sidebar { width: 290px; }
  .sb-close { display: grid; }
  .top-search { display: grid; }
  .credit-pill span { display: none; }
  .h2-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pl-it { grid-template-columns: minmax(0, 1fr); }
  .pl-media { border-right: 0; border-bottom: 1px solid var(--border); min-height: 160px; }
  .pl-media img, .pl-media video { max-height: 300px; object-fit: contain; }
}
@media (max-width: 700px) {
  .content { padding: 6px 14px 96px; }
  .h2-head { padding: 22px 4px 12px; }
  .h2-head h1 { font-size: 26px; }
  .h2-head p { font-size: 14.5px; }
  .h2-studio { padding: 10px; border-radius: 18px; }
  .h2-quick { gap: 8px; }
  .hq { padding: 10px; gap: 9px; }
  .hq-ic { width: 32px; height: 32px; }
  .hq-t b { font-size: 13.5px; }
  .hq-t small { font-size: 11.5px; }
  .home2 .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-btns .btn-light { display: none; }
  .btn-upgrade { display: none; }
  .wa-float { bottom: 84px; right: 12px; padding: 12px; }
  .wa-float span { display: none; }
  .footer { padding: 16px 14px 100px; }
  .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .pal-modal { margin-top: 4vh; }
  .pal-foot { display: none; }
  .pl-form { padding: 18px; }
  .plh-auto { align-items: flex-start; }
}
@media (max-width: 700px) { .bottom-nav { grid-template-columns: repeat(5, 1fr); } }
/* v2 fixes */
.home2 .as-hsearch, .home2 .as-quick { display: none; }
.mobile-brand span { white-space: nowrap; }
.page-head > div:not(.ph-icon):not(.ph-right) { flex: 1 1 320px; min-width: 0; }
@media (min-width: 1001px) {
  .as-wrap .chat-main { border-color: transparent; background: transparent; }
  .as-wrap .chat-head { border-bottom-color: transparent; }
}
@media (max-width: 700px) {
  #themeBtn { display: none; }
  .mobile-brand { font-size: 18px; }
  .mobile-brand svg, .mobile-brand img { width: 30px; height: 30px; }
  .top-right .icon-btn { width: 36px; height: 36px; }
  .credit-pill { padding: 6px 10px; }
}

/* =====================================================================
   v3 — Minimal, like ChatGPT / Claude: white page, quiet sidebar,
   one composer in the middle. Purple only for the main action.
   ===================================================================== */
:root {
  --bg: #ffffff; --side-bg: #f9f9f9; --bg-soft: #f4f4f5; --surface: #ffffff; --surface-2: #fafafa;
  --border: #e5e5e5; --border-strong: #d4d4d8; --text: #0d0d0d; --text-2: #3a3a40; --muted: #6b6b75; --faint: #a1a1aa;
  --nav-hover: #ececec; --nav-active: #e6e6e6; --primary-soft: #f2eeff; --primary-soft-2: #f8f6ff;
  --radius: 14px; --sidebar: 260px; --topbar: 56px;
}
:root[data-theme="dark"] {
  --bg: #212121; --side-bg: #171717; --bg-soft: #2a2a2a; --surface: #262626; --surface-2: #2b2b2b;
  --border: #363636; --border-strong: #444; --text: #ececec; --text-2: #d0d0d4; --muted: #a3a3ab; --faint: #737378;
  --nav-hover: #262626; --nav-active: #2f2f2f; --primary-soft: #2c2548; --primary-soft-2: #241f3a;
}
body { background: var(--bg); }
.btn-grad { background: var(--primary); box-shadow: none; }
.btn-grad:hover { background: #5b2ee6; box-shadow: none; filter: none; }
.btn-dark { background: var(--text); color: var(--bg); border-radius: 999px; }
.btn-outline-n { background: transparent; color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; }
.btn-outline-n:hover { background: var(--nav-hover); }
.card { border-color: var(--border); }
.page-head .ph-icon { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.page-head h1 { font-weight: 600; letter-spacing: -.02em; }
.tab.active { background: var(--text); color: var(--bg); }
.footer, .bottom-nav { display: none !important; }

/* ---- Sidebar ---- */
.layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { background: var(--side-bg); border-right: 1px solid var(--border); padding: 8px 8px 10px; gap: 4px; }
.sb-top { padding: 4px 4px 8px 8px; }
.sb-brand { font-size: 17px; gap: 9px; }
.sb-brand img, .sb-brand svg { width: 28px; height: 28px; }
.sb-toggle { width: 34px; height: 34px; color: var(--muted); }
.sb-toggle .ic { width: 19px; height: 19px; }
.sb-nav { gap: 1px; }
.sb-nav > a, .sb-nav > button, .sb-more a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--text); font-size: 14px; font-weight: 400; text-align: left; }
.sb-nav .ic { width: 17px; height: 17px; color: var(--text-2); }
.sb-nav > a:hover, .sb-nav > button:hover, .sb-more a:hover { background: var(--nav-hover); }
.sb-nav a.active { background: var(--nav-active); font-weight: 500; color: var(--text); }
.sb-nav a.active .ic { color: var(--text); }
.sb-search { color: var(--text); }
.sb-search kbd { opacity: 0; transition: opacity .15s; }
.sb-search:hover kbd { opacity: 1; }
.sb-more-btn > .ic:last-child { margin-left: auto; width: 15px; height: 15px; color: var(--muted); transition: transform .2s; }
.sb-more-btn.open > .ic:last-child { transform: rotate(180deg); }
.sb-more { display: grid; gap: 1px; padding-left: 8px; }
.sb-recent { margin-top: 10px; }
.sb-recent .nav-grp { font-size: 12px; font-weight: 500; color: var(--muted); margin: 6px 10px 4px; }
.sb-recent .rc { padding: 7px 10px; font-size: 14px; color: var(--text); }
.sb-bottom { border-top: 0; padding-top: 6px; gap: 4px; }
.upgrade-card { padding: 0; border: 0; background: transparent; }
.sb-up { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text); text-align: left; }
.sb-up:hover { background: var(--nav-hover); }
.sb-up > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid var(--border); color: var(--primary); flex: none; }
.sb-up b { display: block; font-size: 14px; font-weight: 500; }
.sb-up small { display: block; font-size: 12px; color: var(--muted); }
.sb-up.warn > .ic { color: var(--red); }
.sb-user { padding: 8px 10px; }
.sb-user .who b { font-weight: 500; }
.sb-guest { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; padding: 14px 6px 4px; gap: 8px; }
.sb-guest b { font-size: 15px; font-weight: 600; }
.sb-guest small { font-size: 13px; line-height: 1.45; }
.sb-guest .btn { padding: 9px 14px; font-size: 14px; }
.dd-trial { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--pink-text); }
.dd-trial .ic { width: 14px; height: 14px; }
.dropdown .dd-up { color: var(--primary-text); font-weight: 600; }
.dropdown .dd-up small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; }
.dropdown { border-radius: 14px; }
/* collapsed sidebar on desktop */
body.sb-collapsed .layout { grid-template-columns: minmax(0, 1fr); }
body.sb-collapsed .sidebar { display: none; }

/* ---- Top bar ---- */
.topbar { background: var(--bg); border-bottom: 0; height: var(--topbar); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 14px; }
.menu-btn, .top-new { display: none; }
body.sb-collapsed .menu-btn, body.sb-collapsed .top-new { display: grid; }
.menu-btn .ic, .top-new .ic { width: 20px; height: 20px; }
.mobile-brand { display: none; }
body.sb-collapsed .mobile-brand { display: flex; font-size: 17px; }
.credit-pill { background: transparent; border-color: var(--border); padding: 6px 11px; }
.btn-upgrade-s { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 13.5px; font-weight: 600; border: 0; }
.btn-upgrade-s .ic { width: 15px; height: 15px; }
.btn-upgrade-s.hide { display: none; }
.guest-btns { gap: 8px; }
.guest-btns .btn { padding: 8px 16px; font-size: 14px; font-weight: 500; }
.content { padding: 0 24px 24px; }

/* ---- Home ---- */
.home3 { min-height: calc(100vh - var(--topbar)); min-height: calc(100dvh - var(--topbar)); display: flex; flex-direction: column; }
.h3-notice:empty { display: none; }
.h3-bar { max-width: 768px; margin: 6px auto 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); font-size: 14px; color: var(--text-2); }
.h3-bar > .ic { width: 18px; height: 18px; color: var(--primary); flex: none; }
.h3-bar span { flex: 1 1 260px; }
.h3-center { flex: 1; width: 100%; max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 0 10vh; }
.h3-center h1 { font-family: var(--font); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.015em; text-align: center; margin-bottom: 26px; color: var(--text); }
#homeBox { width: 100%; }
.hb { position: relative; width: 100%; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .06); padding: 10px 10px 10px 18px; transition: border-color .15s, box-shadow .15s; }
:root[data-theme="dark"] .hb { box-shadow: none; background: var(--bg-soft); }
.hb:focus-within { border-color: var(--border-strong); }
.hb.drag { border-color: var(--primary); }
.hb textarea { display: block; width: 100%; min-height: 28px; max-height: 240px; resize: none; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; line-height: 1.5; padding: 8px 4px 6px 0; }
.hb textarea::placeholder { color: var(--faint); }
.hb .as-hfiles { margin: 2px 0 6px; }
.hb-bar { display: flex; align-items: center; gap: 6px; margin-left: -8px; }
.hb-ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; display: grid; place-items: center; color: var(--text-2); }
.hb-ic:hover { background: var(--nav-hover); }
.hb-ic .ic { width: 18px; height: 18px; }
.hb-plus-wrap { position: relative; }
.hb-pop { left: 0; bottom: auto; top: calc(100% + 8px); }
.hb-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 13.5px; }
.hb-chip:hover { background: var(--nav-hover); }
.hb-chip .ic { width: 16px; height: 16px; }
.hb-chip.on { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.hb-sp { flex: 1; }
.hb-send { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--border-strong); color: #fff; transition: background .15s; }
.hb-send.ready { background: var(--primary); }
.hb-send .ic { width: 18px; height: 18px; }
.h3-sug, .sug { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.sug-it { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13.5px; }
.sug-it:hover { background: var(--nav-hover); }
.sug-it .ic { width: 16px; height: 16px; color: var(--muted); }
.h3-meta { margin-top: 18px; }
.h3-free { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.h3-free .ic { width: 15px; height: 15px; color: var(--pink-text); }
.h3-start { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--primary-soft-2); color: var(--primary-text); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.h3-start .ic { width: 15px; height: 15px; }
.h3-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
.h3-foot a { color: var(--muted); }
.h3-foot a:hover { color: var(--text); }
.h3-foot .follow { margin-left: 8px; }
.h3-foot .follow > span { display: none; }
.h3-foot .soc { width: 22px; height: 22px; }
.h3-foot .soc .ic { width: 12px; height: 12px; }
.ob-modal { width: min(980px, 100%) !important; }
.ob-modal .onboard { border: 0; padding: 4px; }

/* ---- Assistant page ---- */
.as-empty.v3 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52vh; text-align: center; }
.as-empty.v3 h2 { font-family: var(--font); font-size: 26px; font-weight: 500; letter-spacing: -.015em; }
.as-empty.v3 .sug { max-width: 680px; margin-top: 20px; }
.as-cbox { border-radius: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .as-cbox { box-shadow: none; }

/* ---- WhatsApp: small round button, not on the chat screens ---- */
.wa-float { padding: 0; width: 46px; height: 46px; justify-content: center; border-radius: 50%; }
.wa-float span { display: none; }
body[data-route="home"] .wa-float, body[data-route="assistant"] .wa-float, body[data-route="chat"] .wa-float { display: none; }

@media (max-width: 1000px) {
  .menu-btn, .top-new, .mobile-brand { display: grid; }
  .mobile-brand { display: flex; font-size: 17px; }
  .sb-toggle { display: none; }
  .content { padding: 0 14px 20px; }
}
@media (max-width: 700px) {
  .h3-center { padding: 2vh 0 6vh; }
  .h3-center h1 { font-size: 23px; margin-bottom: 18px; }
  .hb { border-radius: 24px; padding: 8px 8px 8px 14px; }
  .hb-chip span { display: none; }
  .hb-chip { width: 36px; padding: 0; justify-content: center; }
  .h3-sug { gap: 6px; }
  .sug-it { padding: 7px 11px; font-size: 13px; }
  .guest-btns .btn-outline-n { display: none; }
  .guest-btns .btn { padding: 7px 14px; }
  .btn-upgrade-s { display: none !important; }
  .credit-pill span { display: none; }
  .content { padding: 0 12px 20px; }
  .wa-float { bottom: 16px; }
}
.dropdown .dd-up { white-space: nowrap; }
@media (max-width: 1000px) { .sidebar:not(.open) { box-shadow: none; } }
@media (max-width: 700px) { .h3-free { justify-content: center; text-align: center; padding: 0 10px; } }
/* full side menu (no "More") */
.sb-nav .nav-grp { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin: 12px 10px 3px; }
.sb-nav > a { padding: 6px 10px; }
.sb-nav .nav-new { margin-left: auto; }

/* ===== Share & Post (free social posting) ===== */
.sh-wrap{max-width:860px;margin:0 auto}
.sh-card{margin-bottom:18px}
.sh-h{font-size:18px;margin:0 0 12px;display:flex;align-items:center;gap:8px}
.sh-media{border-radius:14px;background:#f3f4f6;min-height:120px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:12px}
.sh-media img,.sh-media video{max-width:100%;max-height:360px;display:block}
.sh-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px;color:#6b7280;font-size:14px}
.sh-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0}
.sh-between{justify-content:space-between}
.sh-actions{margin-top:14px}
.sh-lbl{font-weight:600;font-size:14px;margin:14px 0 6px}
.sh-card textarea{width:100%;padding:12px;border-radius:12px;border:1px solid #e5e7eb;font:inherit;resize:vertical;box-sizing:border-box}
.sh-row input:not([type=file]){flex:1;min-width:180px;padding:10px 12px;border-radius:10px;border:1px solid #e5e7eb;font:inherit}
.sh-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:8px;cursor:pointer}
.sh-opt small{display:block;color:#6b7280;font-weight:400}
.sh-note{margin:10px 0}
.sh-picker{margin:10px 0}
.sh-grid-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
.sh-pick{aspect-ratio:1;border:0;padding:0;border-radius:10px;overflow:hidden;background:#f3f4f6;cursor:pointer}
.sh-pick img{width:100%;height:100%;object-fit:cover;display:block}
.sh-vid{display:flex;align-items:center;justify-content:center;height:100%}
.sh-due{border:2px solid #f59e0b}
.sh-duerow{padding:8px 0;border-top:1px solid #f1f5f9}
.sh-duerow img,.sh-duerow video{width:56px;height:56px;object-fit:cover;border-radius:10px}
.sh-post{display:flex;gap:14px;padding:14px 0;border-top:1px solid #f1f5f9}
.sh-thumb{width:96px;height:96px;flex:0 0 96px;border-radius:12px;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.sh-thumb img,.sh-thumb video{width:100%;height:100%;object-fit:cover}
.sh-noimg{color:#9ca3af}
.sh-pbody{flex:1;min-width:0}
.sh-pmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sh-pcap{margin:6px 0;white-space:pre-wrap;word-break:break-word}
.sh-badge{font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#eef2ff;color:#3730a3}
.sh-b-due{background:#fef3c7;color:#92400e}
.sh-b-shared,.sh-b-posted{background:#dcfce7;color:#166534}
.sh-b-failed{background:#fee2e2;color:#991b1b}
.sh-b-scheduled{background:#e0f2fe;color:#075985}
.sh-res{font-size:13px;margin:2px 0}
.sh-res.ok{color:#15803d}
.sh-res.bad{color:#b91c1c}
.sh-steps{padding-left:20px;line-height:1.7;font-size:14px}
.sh-chan{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;margin:8px 0}
@media (max-width:560px){.sh-thumb{width:72px;height:72px;flex-basis:72px}.sh-card{padding:16px}.sh-post{gap:10px}}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .sh-opt,:root:not([data-theme="light"]) .sh-chan,:root:not([data-theme="light"]) .sh-card textarea,:root:not([data-theme="light"]) .sh-row input:not([type=file]){border-color:#334155}
  :root:not([data-theme="light"]) .sh-media,:root:not([data-theme="light"]) .sh-thumb,:root:not([data-theme="light"]) .sh-pick{background:#1e293b}
}

/* Home page resource links */
.how-link{display:inline-block;margin-top:12px;font-weight:600;font-size:14px;color:var(--brand,#6d3bf5);text-decoration:none}
.how-link:hover{text-decoration:underline}
.how-grid-auto{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}

/* ---------- Motion Video (free, made in the browser) ---------- */
.mv-wrap { max-width: 880px; margin: 0 auto; }
.mv-card { margin-bottom: 16px; }
.mv-h { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.mv-empty { padding: 14px 0; }
.mv-scene { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.mv-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--border); }
.mv-scene-body { min-width: 0; }
.mv-cap { margin-bottom: 8px; }
.mv-time { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.mv-time input[type=range] { flex: 1; max-width: 220px; accent-color: var(--primary); }
.mv-time b { min-width: 14px; color: var(--text); }
.mv-scene-btns { display: flex; flex-direction: column; gap: 4px; }
.mv-scene-btns .icon-btn:disabled { opacity: .35; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 4px; }
.mv-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.mv-chip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; padding: 8px 10px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-text); word-break: break-word; }
.mv-chip .ic { width: 16px; height: 16px; }
.mv-make .btn { margin-top: 4px; }
.mv-video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; display: block; margin: 8px 0 10px; }
.mv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mv-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.mv-notes .mv-h { font-size: 16px; }
@media (max-width: 560px) {
  .mv-scene { grid-template-columns: 64px 1fr; }
  .mv-thumb { width: 64px; height: 64px; }
  .mv-scene-btns { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .mv-time input[type=range] { max-width: none; }
}

/* ===================== Ko Ai — Refresh (visual polish; layout unchanged) ===================== */
  --primary: #5b3df5;
  --primary-2: #7c4dff;
  --primary-soft: #eeeaff;
  --primary-soft-2: #f7f5ff;
  --primary-text: #4a28d6;
  --bg: #f6f5fb;
  --bg-soft: #f0eef8;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --border: #e7e4f2;
  --border-strong: #d6d0ea;
  --text: #121634;
  --text-2: #363c5e;
  --muted: #687093;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(25, 18, 70, .05), 0 1px 1px rgba(25, 18, 70, .03);
  --shadow: 0 10px 28px -8px rgba(55, 35, 130, .14), 0 2px 6px rgba(55, 35, 130, .05);
  --shadow-lg: 0 28px 64px -12px rgba(40, 20, 110, .25);
}
:root[data-theme="dark"] {
  --bg: #0c0a18; --surface: #161330; --surface-2: #1b1839; --border: #272346; --border-strong: #35305a;
  --text: #f4f2ff; --text-2: #d6d2f0; --muted: #a09ac6;
}
body { background: var(--bg); letter-spacing: -0.005em; }
h1, h2, h3, .font-head { letter-spacing: -0.02em; }
button, .btn { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary, .btn-grad { box-shadow: 0 6px 16px -6px rgba(91, 61, 245, .55); }
.card, .panel, .kpi, .tile { border-color: var(--border); }
