:root {
	--navy: #0B0C14;
	--navy-2: #0E0F18;
	--navy-3: #111218;
	--card: #16171F;
	--border: #1C1D28;
	--border-2: #252636;
	--orange: #E4930A;
	--orange-hover: #F0A31A;
	--orange-dim: #2A1F0A;
	--text: #F4F4F7;
	--text-2: #E8E8EE;
	--muted: #9A9AA8;
	--danger: #F85149;
	--ok: #3DDC84;
	--radius: 12px;
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
	margin: 0;
	min-height: 100%;
	background: var(--navy);
	color: var(--text-2);
}

body {
	background:
		radial-gradient(1200px 480px at 80% -10%, #2A1F0A55, transparent 60%),
		linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }

.skip {
	position: absolute;
	left: -999px;
	top: 0;
}
.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 20;
	background: var(--orange);
	color: var(--navy);
	padding: 8px 12px;
	border-radius: 8px;
}

.wrap {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-cta { color: var(--navy) !important; }
.auth-card { max-width: 460px; margin: 32px auto; }
.auth-card input { width: 100%; }
.auth-or { margin: 16px 0 8px; color: var(--muted); text-align: center; font-size: 0.85rem; }
.btn-google { width: 100%; background: transparent; color: var(--text); border-color: var(--border-2); }

.nav-links {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.lang {
	display: flex;
	gap: 8px;
	padding-left: 12px;
	border-left: 1px solid var(--border);
	font-size: 0.85rem;
}
.lang a[aria-current="true"] { color: var(--orange); }

.hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: center;
	padding: 72px 0 48px;
}

h1, h2, h3 { color: var(--text); margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 12px 18px;
	font: inherit;
	font-weight: 650;
	white-space: nowrap;
	cursor: pointer;
}
.btn-primary {
	background: var(--orange);
	color: var(--navy);
}
.btn-primary:hover { background: var(--orange-hover); color: var(--navy); }
.btn-ghost {
	background: var(--card);
	color: var(--text);
	border-color: var(--border-2);
}
.btn:disabled, .btn[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.panel, .card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 28px;
	background: linear-gradient(180deg, var(--card), var(--navy-3));
}
.hero-card dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card dd { margin: 0 0 16px; color: var(--text); }

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 8px 0 64px;
}
.card { padding: 22px; }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.note {
	padding: 20px 22px;
	margin-bottom: 64px;
	border-left: 3px solid var(--orange);
}

footer {
	border-top: 1px solid var(--border);
	padding: 28px 0 48px;
	color: var(--muted);
	font-size: 0.9rem;
}
.foot-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.banner {
	border-radius: 10px;
	padding: 12px 14px;
	margin: 16px 0;
	border: 1px solid var(--border-2);
	background: var(--navy-3);
	color: var(--muted);
}
.banner.ok { border-color: #1f6a43; color: var(--ok); }
.banner.warn { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }
.banner.err { border-color: var(--danger); color: var(--danger); }

.dash { padding: 40px 0 72px; }
.dash-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
}
.dash .card h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem; }

label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 0.9rem; }
select {
	width: 100%;
	background: var(--navy-3);
	color: var(--text);
	border: 1px solid var(--border-2);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
}
select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.ai-sub { margin-top: 24px; }
.chat-output {
	white-space: pre-wrap;
	word-break: break-word;
	min-height: 2.4rem;
	max-height: 16rem;
	overflow: auto;
	margin: 12px 0 0;
	padding: 12px;
	background: var(--navy-3);
	border: 1px solid var(--border-2);
	border-radius: 8px;
	color: var(--text-2);
}
.plan.active { border-color: var(--orange); }
.plan button + button { margin-left: 8px; }
input, textarea {
	width: 100%;
	background: var(--navy-3);
	color: var(--text);
	border: 1px solid var(--border-2);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
}
input:focus, textarea:focus {
	outline: 2px solid var(--orange);
	border-color: var(--orange);
}

.plan-list { display: grid; gap: 10px; margin-top: 14px; }
.plan {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--border-2);
	border-radius: 10px;
	background: var(--navy-3);
}
.plan strong { color: var(--text); }
.credit-buy { align-items: end; }
.credit-buy input {
	display: block;
	margin-top: 8px;
	width: 120px;
	background: var(--navy);
	color: var(--text);
	border: 1px solid var(--border-2);
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit;
}

.legal { padding: 40px 0 72px; max-width: 720px; }
.legal p, .legal li { color: var(--muted); line-height: 1.55; }
.legal ul { padding-left: 1.2rem; }
.legal article[hidden] { display: none; }
/* Private operator console */
.admin-body { min-height: 100vh; background: #f3f5f8; color: #172033; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.admin-body h1, .admin-body h2, .admin-body h3 { color: #172033; }
.admin-body .muted { color: #5d6b83; }
.admin-login-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 32px; padding: 32px 20px; background: radial-gradient(ellipse at top, #20314b, #0b1220 65%); }
.admin-login-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1rem; letter-spacing: .13em; }
.admin-login-brand b { color: #f0a31a; font-weight: 500; }
.admin-login-card { width: min(440px, 100%); padding: 38px; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 28px 90px #0005; }
.admin-login-card h1 { font-size: 1.8rem; letter-spacing: -.025em; }
.admin-login-card > .muted { margin: 0 0 24px; line-height: 1.55; }
.admin-login-card .admin-kicker, .admin-kicker { margin: 0 0 8px; color: #9c6410; font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.admin-login-card label { color: #4f5b70; font-weight: 650; }
.admin-login-card input { margin-bottom: 8px; background: #f9fafc; border-color: #dce2eb; color: #152033; }
.admin-login-submit { width: 100%; margin-top: 18px; padding: 13px 18px; color: #111827; font-weight: 700; }
.admin-login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; color: #5d6b83; font-size: .82rem; }
.admin-login-foot > span:first-child { color: #29936b; font-size: .72rem; }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 15px 15px; background: #111a2b; color: #e8edf6; }
.admin-brand { display: flex; align-items: center; gap: 11px; min-height: 42px; margin: 0 9px 42px; color: #fff; }
.admin-brand:hover { color: #fff; }
.admin-brand > span { display: grid; gap: 2px; font-size: .83rem; letter-spacing: .1em; }
.admin-brand small { color: #b6c2d4; font-size: .61rem; letter-spacing: .17em; }
.admin-nav-label { margin: 0 12px 10px; color: #8390a5; font-size: .64rem; font-weight: 750; letter-spacing: .14em; }
.admin-nav-label-spaced { margin-top: 28px; }
.admin-navigation { display: grid; gap: 4px; }
.admin-navigation button { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #aeb9ca; text-align: left; font: inherit; font-size: .88rem; cursor: pointer; transition: background .15s ease, color .15s ease; }
.admin-navigation button:hover { background: #ffffff0c; color: #fff; }
.admin-navigation button[aria-current="page"] { background: #f3a21b1c; color: #ffc45f; font-weight: 650; }
.admin-nav-icon { width: 19px; color: #93a0b4; font-size: 1.05rem; text-align: center; }
.admin-navigation button[aria-current="page"] .admin-nav-icon { color: #ffc45f; }
.admin-sidebar-bottom { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px; margin-top: auto; padding: 14px 4px 2px; border-top: 1px solid #ffffff18; }
.admin-operator-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #283957; color: #ffc45f; font-weight: 750; }
.admin-operator-info { display: grid; gap: 3px; min-width: 0; }
.admin-operator-info strong { overflow: hidden; color: #e7ebf2; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-operator-info span { color: #93a0b4; font-size: .68rem; }
.admin-logout { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: #99a7bb; font: inherit; font-size: 1.05rem; cursor: pointer; }
.admin-logout:hover { background: #ffffff14; color: #fff; }
.admin-main-column { min-width: 0; }
.admin-topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid #e1e6ee; background: #fff; }
.admin-topbar > div:first-child { display: flex; align-items: center; gap: 20px; }
.admin-breadcrumb { color: #647087; font-size: .68rem; font-weight: 750; letter-spacing: .1em; }
.admin-environment { display: inline-flex; align-items: center; gap: 7px; color: #657087; font-size: .75rem; }
.admin-environment i { width: 7px; height: 7px; border-radius: 50%; background: #2fb47b; box-shadow: 0 0 0 3px #2fb47b20; }
.admin-top-actions { display: flex; align-items: center; gap: 18px; }
.admin-lang { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid #e2e7ee; border-radius: 8px; }
.admin-lang a { min-width: 30px; padding: 4px 5px; border-radius: 5px; color: #67748a; font-size: .7rem; text-align: center; }
.admin-lang a[aria-current="true"] { background: #edf1f7; color: #172033; font-weight: 700; }
.admin-main { width: min(1440px, 100%); margin: 0 auto; padding: 38px clamp(22px, 4vw, 58px) 24px; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 30px; }
.admin-page-heading h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.admin-page-heading .muted { max-width: 680px; margin: 0; font-size: .92rem; }
.admin-refresh { gap: 8px; padding: 10px 14px; border-color: #dce2eb; background: #fff; color: #344055; font-size: .82rem; }
.admin-refresh:hover { border-color: #bac5d5; background: #fff; color: #152033; }
.admin-content { min-height: 380px; }
.admin-global-status { margin: 0 0 20px; border-radius: 9px; }
.admin-section-heading { display: block; margin-bottom: 19px; }
.admin-section-heading h2 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -.015em; }
.admin-section-heading p { margin: 0; font-size: .84rem; line-height: 1.55; }
.admin-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid #dce4f0; border-radius: 10px; background: #fff; }
.admin-notice-warning { border-color: #f2dcae; background: #fffaf0; }
.admin-notice-ready { border-color: #c7e8d8; background: #f3fbf7; }
.admin-notice-icon { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #e8edf5; color: #526179; font-size: .76rem; font-weight: 750; }
.admin-notice-warning .admin-notice-icon { background: #ffefc9; color: #9c6410; }
.admin-notice-ready .admin-notice-icon { background: #d8f2e5; color: #23724f; }
.admin-notice h3 { margin: 1px 0 4px; font-size: .84rem; }
.admin-notice p { margin: 0; color: #657087; font-size: .81rem; line-height: 1.55; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.admin-metric { display: grid; gap: 9px; padding: 19px 20px; border: 1px solid #e3e8ef; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px #17203308; }
.admin-metric-label { color: #68748a; font-size: .77rem; font-weight: 550; }
.admin-metric-value { overflow: hidden; color: #172033; font-size: 1.65rem; font-weight: 720; letter-spacing: -.035em; text-overflow: ellipsis; }
.admin-metric-hint { color: #8a94a6; font-size: .7rem; }
.admin-data-caption { margin: 18px 0 10px; color: #737f93; font-size: .77rem; }
.admin-list-controls, .admin-subscription-create { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 14px 0; }
.admin-list-controls input[type="search"], .admin-subscription-create input, .admin-subscription-create select { min-width: min(240px, 100%); padding: 9px 11px; border: 1px solid #dce2eb; border-radius: 7px; background: #fff; color: #263249; font: inherit; font-size: .82rem; }
.admin-list-controls select, .admin-subscription-create select { padding: 9px 11px; border: 1px solid #dce2eb; border-radius: 7px; background: #fff; color: #263249; font: inherit; font-size: .82rem; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 8px 0 20px; }
.admin-pagination .admin-data-caption { flex: 1 1 100%; }
.admin-subscription-actions { min-width: 240px; }
.admin-subscription-disclosure { flex-basis: 100%; padding-top: 4px; color: #58657b; font-size: .75rem; }
.admin-subscription-disclosure summary { cursor: pointer; font-weight: 650; }
.admin-subscription-detail { min-width: 300px; padding: 8px 0; }
.admin-subscription-detail .admin-data-caption { margin: 5px 0; }
.admin-subscription-events { margin: 8px 0; padding-left: 20px; }
.admin-subscription-events li { margin: 8px 0; font-size: .76rem; }
.admin-subscription-events pre { max-width: 600px; max-height: 180px; overflow: auto; padding: 8px; border-radius: 6px; background: #f6f8fb; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-table-wrap { overflow: auto; border: 1px solid #e1e6ee; border-radius: 10px; background: #fff; }
.admin-table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table-wrap th, .admin-table-wrap td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: top; }
.admin-table-wrap th { background: #f8f9fb; color: #788397; font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-table-wrap td { color: #38445a; font-size: .81rem; overflow-wrap: anywhere; }
.admin-table-wrap td:first-child { color: #263249; font-weight: 600; }
.admin-table-wrap tr:last-child td { border-bottom: 0; }
.admin-settings-form { width: min(720px, 100%); padding: 25px; border: 1px solid #e1e6ee; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #17203308; }
.admin-settings-form h3 { margin: 0 0 7px; font-size: 1rem; }
.admin-settings-form > p { margin: 0 0 20px; font-size: .83rem; }
.admin-settings-form label:not(.admin-toggle-row) { margin-top: 20px; color: #4f5b70; font-weight: 650; }
.admin-settings-form input[type="number"], .admin-settings-form input[type="password"] { max-width: 440px; border-color: #dce2eb; background: #fbfcfd; color: #172033; }
.admin-settings-form .btn { margin-top: 22px; padding: 10px 16px; }
.admin-toggle-row { display: flex; align-items: center; gap: 14px; margin: 20px 0 3px; padding: 15px; border: 1px solid #e4e8ef; border-radius: 9px; background: #fafbfd; cursor: pointer; }
.admin-toggle-row input { width: 18px; height: 18px; accent-color: #d89010; }
.admin-toggle-row > span { display: grid; gap: 4px; }
.admin-toggle-row strong { color: #29354a; font-size: .84rem; }
.admin-toggle-row small { color: #758197; font-size: .76rem; }
.admin-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 55px; padding: 17px 0 8px; border-top: 1px solid #e2e7ee; color: #5d6b83; font-size: .69rem; }
.admin-body .banner { border-color: #e2e7ee; background: #fff; color: #657087; }
.admin-body .banner.ok { border-color: #c7e8d8; background: #f3fbf7; color: #23724f; }
.admin-body .banner.warn { border-color: #f2dcae; background: #fffaf0; color: #895910; }
.admin-body .banner.err { border-color: #f3c7c6; background: #fff6f6; color: #a33b38; }
.admin-body .admin-login-card .banner { margin: 10px 0 17px; }
.admin-subsection-title { margin: 24px 0 11px; font-size: .95rem; }
.admin-plan-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; margin-bottom: 10px; }
.admin-plan-card, .admin-model-card { padding: 20px; border: 1px solid #e1e6ee; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px #17203308; }
.admin-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.admin-plan-head h4 { margin: 0; color: #172033; font-size: .95rem; }
.admin-monoid { margin: 2px 0 0; color: #5d6b83; font-family: ui-monospace, Consolas, monospace; font-size: .69rem; overflow-wrap: anywhere; }
.admin-field { display: grid; gap: 5px; margin-top: 13px; }
.admin-field > span { color: #5c6880; font-size: .74rem; font-weight: 650; }
.admin-field input, .admin-field select { background: #fbfcfd; border-color: #dce2eb; color: #172033; }
.admin-toggle-compact { margin-top: 14px; padding: 10px 12px; }
.admin-toggle-compact > span { color: #29354a; font-size: .8rem; }
.admin-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.admin-plan-actions .btn { padding: 8px 13px; font-size: .8rem; }
.admin-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 750; }
.admin-badge-ok { background: #d8f2e5; color: #23724f; }
.admin-badge-warn { background: #ffefc9; color: #9c6410; }
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-row-actions .btn { padding: 6px 10px; font-size: .74rem; white-space: nowrap; }
.admin-delta { width: 96px !important; padding: 6px 8px; font-size: .74rem; }
@media (max-width: 1000px) { .admin-app { grid-template-columns: 220px minmax(0, 1fr); } .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.admin-app { display: block; }
	.admin-sidebar { position: sticky; z-index: 10; top: 0; width: 100%; height: auto; padding: 9px 13px; }
	.admin-brand { margin: 0 3px 8px; }
	.admin-brand img { width: 29px; height: 29px; }
	.admin-brand > span { display: flex; align-items: baseline; gap: 8px; }
	.admin-navigation { display: flex; flex-wrap: wrap; gap: 4px; overflow: visible; padding-bottom: 0; }
	.admin-navigation button { width: auto; flex: 0 0 auto; min-height: 34px; gap: 7px; padding: 0 9px; white-space: nowrap; font-size: .75rem; }
	.admin-nav-icon { width: auto; }
	.admin-nav-label { display: none; }
	.admin-sidebar-bottom { display: none; }
	.admin-topbar { height: 54px; padding: 0 17px; }
	.admin-topbar > div:first-child { gap: 12px; }
	.admin-environment { font-size: .68rem; }
	.admin-main { padding: 24px 17px; }
	.admin-page-heading { align-items: flex-start; margin-bottom: 22px; }
	.admin-page-heading h1 { font-size: 1.65rem; }
	.admin-refresh { flex: 0 0 auto; padding: 8px 10px; }
	.admin-footer { flex-direction: column; margin-top: 34px; }
}
@media (max-width: 430px) { .admin-metrics { grid-template-columns: 1fr 1fr; gap: 9px; } .admin-metric { padding: 14px; } .admin-metric-value { font-size: 1.3rem; } .admin-page-heading { flex-direction: column; } .admin-login-card { padding: 27px 22px; } }
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.eyebrow {
	margin: 0 0 4px;
	color: var(--orange);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.gate { min-height: 100vh; }
.gate .nav, .gate-card { width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.gate-card { max-width: 560px; margin-top: 12vh; padding: 36px; }
.studio {
	position: fixed;
	inset: 0;
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	background: var(--navy);
}
.studio-side {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	gap: 6px;
	padding: 10px;
	border-right: 1px solid var(--border);
	background: var(--navy-2);
}
.side-head {
	display: flex;
	align-items: center;
	min-height: 30px;
	padding: 0 4px;
}
.side-newchat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 32px;
	border: 1px solid var(--border-2);
	border-radius: 9px;
	background: var(--card);
	color: var(--text);
	font: inherit;
	font-size: 12.5px;
	font-weight: 650;
	cursor: pointer;
}
.side-newchat:hover {
	border-color: var(--orange);
	color: var(--text);
}
.side-nav {
	display: grid;
	gap: 2px;
}
.side-nav-item {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.side-nav-item:hover {
	background: var(--navy-3);
	color: var(--text);
}
.side-nav-item.is-active {
	background: var(--card);
	color: var(--text);
}
.side-history {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.side-label {
	margin: 10px 4px 4px;
	color: var(--muted);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.chat-history {
	display: grid;
	gap: 1px;
	align-content: start;
}
.chat-history-empty {
	margin: 4px;
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.45;
}
.chat-row {
	display: flex;
	align-items: center;
	gap: 2px;
	border-radius: 7px;
}
.chat-row:hover {
	background: var(--navy-3);
}
.chat-open {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--text-2);
	font: inherit;
	font-size: 12px;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}
.chat-open.is-active {
	background: var(--card);
	color: var(--text);
	font-weight: 650;
}
.chat-archive {
	flex: 0 0 auto;
	opacity: 0;
	color: var(--muted);
}
.chat-row:hover .chat-archive,
.chat-archive:focus-visible {
	opacity: 1;
}
.side-foot {
	display: grid;
	gap: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--border);
}
.side-meta {
	display: grid;
	gap: 1px;
	padding: 0 4px;
}
.account-anchor {
	position: relative;
}
.account-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 8px;
	border: 1px solid var(--border-2);
	border-radius: 10px;
	background: var(--card);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.account-chip:hover,
.account-chip[aria-expanded="true"] {
	border-color: var(--orange);
}
.account-avatar {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--orange-dim);
	color: var(--orange);
	font-size: 11px;
	font-weight: 700;
}
.account-chip-text {
	flex: 1;
	min-width: 0;
	display: grid;
}
.account-chip-text strong {
	overflow: hidden;
	color: var(--text);
	font-size: 12px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.account-chip-text .muted {
	overflow: hidden;
	font-size: 10.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.account-chip-caret {
	flex: 0 0 auto;
	color: var(--muted);
}
.side-backdrop {
	position: fixed;
	inset: 0;
	z-index: 38;
	border: 0;
	background: rgba(5, 6, 12, 0.55);
	cursor: pointer;
}
.studio-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.studio-nav button, .file-tab, .preview-menu button {
	border: 0;
	background: transparent;
	color: var(--muted);
	text-align: left;
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
}
.studio-nav button.is-active, .file-tab.is-active, .preview-menu button.is-active { background: var(--card); color: var(--text); }
.preview-menu button:hover, .studio-nav button:hover, .file-tab:hover { color: var(--text); }
.studio-side-foot { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.side-balance { margin: 0; font-weight: 700; color: var(--text); white-space: nowrap; }
.side-identity { margin: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-stage { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.agent-view, .account-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.account-view { overflow: auto; }
.agent-body {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(280px, 380px) 8px minmax(0, 1fr);
}
.agent-chat, .agent-preview, .code-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.agent-chat { padding: 12px 14px 14px; background: var(--navy); }
.agent-preview { border-left: 1px solid var(--border); background: var(--navy-2); }
.preview-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px;
	border-bottom: 1px solid var(--border);
}
.preview-menu-spacer { flex: 1; }
.preview-stage { flex: 1; min-height: 0; position: relative; background: #fff; }
.preview-device { width: 100%; height: 100%; min-height: 0; }
.preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-empty { margin: 0; padding: 28px 20px; color: var(--muted); background: var(--navy-2); }
.phone-screen { width: 100%; height: 100%; min-height: 0; position: relative; display: flex; flex-direction: column; }
.phone-screen > .preview-frame { flex: 1; min-height: 0; }
.phone-frame, .phone-home { display: none; }
.preview-stage.is-mobile {
	container-type: size;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: radial-gradient(circle at 50% 18%, #1a1c2e 0, var(--navy) 72%);
	padding: 8px 8px 12px;
}
.preview-stage.is-mobile .preview-device {
	width: min(420px, 100cqw, calc(100cqh * 420 / 880));
	max-width: 100%;
	max-height: 100%;
	height: auto;
	aspect-ratio: 420 / 880;
	flex: 0 0 auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	position: relative;
	filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.45));
}
.preview-stage.is-mobile .phone-frame {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 3;
	user-select: none;
}
.preview-stage.is-mobile .phone-screen {
	position: absolute;
	left: 6.6667%;
	top: 2.0455%;
	width: 86.6667%;
	height: 95.9091%;
	border-radius: 13.19% / 5.69%;
	overflow: hidden;
	background: #000;
	container-type: inline-size;
}
.phone-status { display: none; }
.preview-stage.is-mobile .phone-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: absolute;
	z-index: 2;
	top: 1.6%;
	left: 7%;
	right: 7%;
	height: 5.2%;
	color: #fff;
	mix-blend-mode: difference;
	font-family: system-ui, "Segoe UI", sans-serif;
	font-size: 4.3cqw;
	font-weight: 650;
	letter-spacing: -0.02em;
	pointer-events: none;
}
.phone-sigs { display: flex; align-items: center; gap: 0.45em; }
.phone-sigs svg { display: block; width: auto; height: 0.72em; }
.preview-stage.is-mobile .phone-home {
	display: block;
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 1.1%;
	width: 34%;
	height: 0.55%;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #fff;
	mix-blend-mode: difference;
	pointer-events: none;
}
.preview-stage.is-mobile .preview-frame,
.preview-stage.is-mobile .preview-empty {
	position: absolute;
	left: 0;
	right: 0;
	top: 8.2%;
	width: 100%;
	height: 88.2%;
}
.project-kind { color: var(--muted); font-size: 0.82rem; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.project-overlay {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.55);
	padding: 24px;
}
.project-dialog {
	width: min(640px, 100%);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px 22px 16px;
}
.project-dialog h2 { text-align: center; font-size: 1.35rem; }
.project-dialog .lede { text-align: center; margin: 0 auto 18px; font-size: 0.95rem; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-card {
	display: block;
	text-align: left;
	background: var(--navy-3);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	color: var(--text);
	cursor: pointer;
	font: inherit;
}
.project-card:hover { border-color: var(--orange); }
.project-card strong { display: block; margin: 10px 0 4px; }
.project-card span { color: var(--muted); font-size: 0.88rem; }
.project-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--orange-dim);
	color: var(--orange);
}
.project-actions { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.profile-name { font-size: 1.4rem; }
.project-data-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-data-head h2 { margin: 0; }
.project-data-head .btn { flex: 0 0 auto; }
.project-data-head .btn:disabled {
	opacity: 1;
	background: var(--navy-3);
	color: var(--muted);
	border-color: var(--border-2);
	cursor: default;
}
.data-meta { margin: 2px 0 0; color: var(--orange); font-size: 0.8rem; min-height: 1.1em; }
.data-note { margin: 8px 0 0; color: var(--muted); }
.data-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.data-stat { background: var(--navy-3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.data-stat span { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-stat strong { display: block; margin-top: 3px; color: var(--text); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data-files { margin-top: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--navy-3); overflow: hidden; }
.data-row { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border-top: 1px solid var(--border); }
.data-row:first-child { border-top: 0; }
.data-dir { color: var(--text); font-size: 0.8rem; font-weight: 650; }
.data-ext { flex: 0 0 auto; min-width: 34px; padding: 1px 5px; border-radius: 4px; background: var(--orange-dim); color: var(--orange); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; }
.data-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }
.data-size { flex: 0 0 auto; color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.data-empty { padding: 22px 14px; text-align: center; }
.data-empty strong { display: block; margin-bottom: 4px; color: var(--text); }
.data-empty p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }
.code-pane { flex: 1; padding: 12px; }
.agent-log { flex: 1; overflow: auto; display: grid; align-content: start; gap: 12px; padding-right: 4px; }
.agent-empty { color: var(--muted); }
.agent-msg { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.agent-msg-user { background: transparent; }
.agent-who { margin: 0 0 6px; color: var(--muted); font-size: 0.78rem; }
.agent-text { white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.agent-files-label { margin: 8px 0 4px; color: var(--muted); font-size: 0.74rem; }
.agent-files { display: flex; flex-wrap: wrap; gap: 4px; }
.agent-file-chip, .agent-suggest {
	border: 1px solid var(--border-2);
	background: var(--navy-3);
	color: var(--text-2);
	border-radius: 999px;
	padding: 3px 10px;
	font: inherit;
	font-size: 0.78rem;
	cursor: pointer;
}
.agent-file-chip { font-family: ui-monospace, Consolas, monospace; }
.agent-file-chip:hover, .agent-suggest:not(:disabled):hover { color: var(--text); border-color: var(--orange); }
.agent-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-suggest:disabled { opacity: 0.5; cursor: default; }
.change-wrap { margin-top: 10px; }
.change-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid var(--border-2);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: var(--card);
	color: var(--muted);
	font-size: 0.78rem;
}
.change-toggle {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 2px 4px;
}
.change-toggle:disabled { cursor: default; }
.change-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn:not(:disabled):hover { background: var(--navy-3); }
.change-list { border: 1px solid var(--border-2); border-top: 0; background: var(--card); padding: 4px 8px 8px; display: grid; gap: 4px; }
.change-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.change-name {
	border: 0;
	background: transparent;
	color: var(--text-2);
	font: inherit;
	cursor: pointer;
	padding: 2px 0;
}
.thread-status { margin-left: 4px; }
.thread-status.is-running { color: var(--orange); }
.thread-status.is-approval { color: #e3b341; }
.agent-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--border-2);
	border-radius: 0 0 12px 12px;
	background: var(--navy-3);
}
.agent-form textarea {
	width: 100%;
	min-height: 72px;
	max-height: 200px;
	resize: vertical;
	border: 0;
	background: transparent;
	color: var(--text);
	padding: 4px 2px;
	font: inherit;
}
.composer-bar { display: flex; align-items: center; gap: 8px; }
.composer-bar select {
	background: var(--card);
	color: var(--text);
	border: 0;
	border-radius: 8px;
	padding: 6px 8px;
	font: inherit;
}
.composer-actions { margin-left: auto; display: flex; }
.composer-send, .composer-stop {
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	line-height: 1;
}
.file-editor, .file-create input {
	width: 100%;
	resize: vertical;
	background: var(--navy-3);
	color: var(--text);
	border: 1px solid var(--border-2);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
}
.file-editor { flex: 1; min-height: 220px; resize: none; font-family: ui-monospace, Consolas, monospace; font-size: 0.86rem; }
.files-head h2 { font-size: 0.95rem; }
.file-create { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.file-list { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; margin-bottom: 8px; }
.file-list .file-tab { width: 100%; text-align: left; }
.file-folder { padding: 4px 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.agent-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	padding: 18px 0 0;
}
.agent-top h1 { font-size: 1.6rem; }
.account-view { padding: 0 22px 28px; }
.account-plans { grid-column: 1 / -1; }
.balance-figure { margin: 12px 0 0; font-size: 2.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
@media (max-width: 1180px) {
	.pane-split { display: none; }
	.agent-body { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
	.agent-chat { grid-column: 1; }
	.agent-preview { grid-column: 2; }
}
@media (max-width: 1080px) {
	.studio { grid-template-columns: minmax(0, 1fr); }
	.studio-side {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 40;
		width: min(288px, 88%);
		transform: translateX(-105%);
		transition: transform 0.2s ease;
		box-shadow: 18px 0 48px rgba(0, 0, 0, 0.4);
	}
	.studio-side.is-open { transform: none; }
	.studio #side-open { display: inline-flex; }
}
@media (max-width: 860px) {
	.side-identity, .studio-top .lang, .btn-quiet { display: none; }
	.agent-body { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 0.7fr) minmax(340px, 1fr); }
	.agent-chat, .agent-preview { grid-column: 1; }
	.agent-chat { margin: 8px; }
	.agent-preview { border-top: 0; }
	.studio .brand span { display: none; }
	#agent-open-account { padding: 8px 10px; }
	.project-chip { max-width: 110px; }
}
@media (max-width: 860px) {
	.hero, .grid, .dash-grid, .field-grid { grid-template-columns: 1fr; }
	.nav { flex-direction: column; align-items: flex-start; }
	.lang { border: 0; padding: 0; }
}

.studio { background: var(--navy); color: var(--text); }
#side-open { display: none; }
.studio-top {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	padding: 6px 10px;
	background: var(--navy-2);
	border-bottom: 1px solid var(--border);
}
.studio-top-spacer { flex: 1; }
.studio-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}
.studio .brand { color: var(--text); }
.studio .brand img { width: 28px; height: 28px; }
.studio-top .studio-nav { align-items: center; flex-wrap: nowrap; min-width: 0; }
.studio-top .studio-nav button,
.studio .preview-menu button,
.studio .file-tab,
.studio .rail-tabs button {
	color: var(--muted);
}
.studio-top .studio-nav button.is-active,
.studio .preview-menu button.is-active,
.studio .file-tab.is-active,
.studio .rail-tabs button.is-active {
	background: var(--orange);
	color: var(--navy);
}
.project-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 220px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border-2);
	color: var(--text);
	font-size: 0.9rem;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.project-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-chip, .frame-btn, .rail-close, .composer-add {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 10px;
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.studio .preview-menu .frame-btn { width: 32px; height: 32px; padding: 0; }
.frame-btn.is-active { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.studio .plan {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 0;
	border-top: 1px solid var(--border);
	background: transparent;
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
	box-shadow: none;
}
.studio .plan strong { color: var(--text); }
.studio .plan .btn { flex: 0 0 auto; }
.studio .credit-buy { flex-wrap: wrap; }
#agent-open-account { padding: 8px 14px; white-space: nowrap; }
.avatar {
	width: 36px;
	height: 36px;
	border: 1px solid var(--border-2);
	border-radius: 50%;
	background: var(--card);
	color: var(--orange);
	font-weight: 700;
	cursor: pointer;
}
.avatar.is-active { box-shadow: 0 0 0 2px var(--orange); }
.account-menu {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	z-index: 45;
	min-width: 240px;
	padding: 6px;
	display: grid;
	gap: 1px;
	background: var(--card);
	border: 1px solid var(--border-2);
	border-radius: 12px;
	box-shadow: var(--shadow);
}
.account-menu button,
.account-menu a {
	display: flex;
	align-items: center;
	gap: 9px;
	border: 0;
	background: transparent;
	color: var(--text-2);
	text-align: left;
	text-decoration: none;
	border-radius: 8px;
	padding: 7px 10px;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
}
.account-menu button:hover,
.account-menu a:hover,
.account-menu button:focus-visible {
	background: var(--navy-3);
	color: var(--text);
	outline: none;
}
.account-menu .is-danger { color: var(--danger); }
.menu-head {
	display: grid;
	gap: 1px;
	padding: 8px 10px 6px;
}
.menu-head strong {
	overflow: hidden;
	color: var(--text);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.menu-head .muted {
	overflow: hidden;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.menu-sep {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 4px 0;
}
.menu-cta {
	color: var(--orange);
	font-weight: 650;
}
.menu-caret {
	margin-left: auto;
	color: var(--muted);
}
.menu-sub {
	display: grid;
	gap: 1px;
	margin: 2px 0 2px 22px;
	padding-left: 8px;
	border-left: 1px solid var(--border-2);
}
.menu-sub a[aria-current="true"] {
	color: var(--orange);
}
.studio .side-balance {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border-2);
	color: var(--text);
	font-size: 0.82rem;
}
.studio .side-identity { color: var(--muted); }
.btn-quiet { padding: 8px 10px; }
.studio .agent-chat {
	margin: 10px 0 10px 10px;
	padding: 12px;
	background: var(--navy-2);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 16px;
}
.studio .agent-preview { position: relative; background: transparent; border-left: 0; }
.studio .preview-menu {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	width: max-content;
	max-width: calc(100% - 24px);
	gap: 4px;
	padding: 4px;
	background: var(--card);
	border: 1px solid var(--border-2);
	border-radius: 12px;
	box-shadow: var(--shadow);
}
.pane-split {
	cursor: col-resize;
	position: relative;
	touch-action: none;
}
.pane-split::after {
	content: "";
	position: absolute;
	top: 16px;
	bottom: 16px;
	left: 3px;
	width: 2px;
	border-radius: 2px;
	background: var(--border-2);
}
.pane-split:hover::after,
body.is-resizing .pane-split::after { background: var(--orange); }
body.is-resizing { cursor: col-resize; user-select: none; }
body.is-resizing iframe { pointer-events: none; }
.studio .preview-stage,
.studio .code-pane { padding-top: 58px; }
.studio .preview-menu button:hover,
.studio .file-tab:hover,
.studio .rail-tabs button:hover { color: var(--text); }
.studio .preview-menu button.is-active:hover,
.studio .file-tab.is-active:hover,
.studio .rail-tabs button.is-active:hover { color: var(--navy); }
.preview-stage:not(.is-mobile) {
	display: flex;
	padding: 4px 12px 12px;
	background: transparent;
}
.preview-stage:not(.is-mobile) .preview-device {
	flex: 1;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow);
}
.studio .preview-empty { background: var(--navy-3); color: var(--muted); }
.studio .code-pane {
	color: var(--text);
	padding: 58px 12px 12px;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 8px;
	overflow: hidden;
}
.studio .code-pane .file-editor { height: 100%; min-height: 0; }
.studio .files-head { grid-column: 1 / -1; }
.studio .file-list { flex-direction: column; flex-wrap: nowrap; align-content: start; overflow: auto; margin: 0; }
.studio .file-tab { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio .file-editor,
.studio .file-create input {
	background: var(--navy-3);
	color: var(--text);
	border-color: var(--border-2);
}
.set-card.is-target { box-shadow: 0 0 0 2px var(--orange); }
.set-card:focus { outline: none; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.secret-list p, .session-list { margin: 8px 0 0; }
.rail-try {
	margin: 0 12px 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--orange-dim);
	border: 1px solid var(--border-2);
	color: var(--text);
}
.rail-try h2 { margin: 0 0 4px; font-size: 0.92rem; }
.rail-try p { color: var(--text-2); font-size: 0.9rem; margin: 0; }
.studio .balance-figure { color: var(--text); font-size: 1.7rem; }
.studio .profile-name { font-size: 1.25rem; }
.studio .banner { margin: 0 0 8px; }
.studio .agent-log { padding: 4px 2px 8px; }
.studio .agent-empty { margin: 12px 4px auto; max-width: 36ch; line-height: 1.5; }
.studio .agent-msg { background: var(--card); color: var(--text); border-color: var(--border); }
.studio .agent-msg-user {
	margin-left: 28px;
	background: var(--orange);
	color: var(--navy);
	border-color: var(--orange);
}
.studio .agent-msg-user .agent-text,
.studio .agent-msg-user .agent-who { color: var(--navy); }
.studio .agent-msg-user .agent-who { opacity: 0.8; }
.studio .agent-msg-assistant { margin-right: 18px; }
.studio .agent-text,
.studio .agent-form textarea,
.studio .composer-bar select,
.studio .icon-btn,
.studio .change-name { color: var(--text); }
.studio .change-bar,
.studio .change-list,
.studio .agent-form { background: var(--navy-3); border-color: var(--border-2); color: var(--muted); }
.studio .agent-form { border-radius: 16px; margin-top: 0; }
.studio .change-wrap:not([hidden]) + .agent-form { border-radius: 0 0 16px 16px; }
.studio .composer-send, .studio .composer-stop { width: 36px; height: 36px; border-radius: 999px; }
.studio .change-bar { border-radius: 12px 12px 0 0; }
.studio .change-list { border-radius: 0; }
.studio .agent-form textarea { min-height: 64px; }
.composer-add { flex: 0 0 auto; }
.studio .composer-bar select { background: var(--card); color: var(--text); border: 1px solid var(--border-2); }
select.composer-model {
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border-2);
	cursor: pointer;
	max-width: min(240px, 46vw);
}
.studio .plan-list { display: grid; gap: 8px; }
.studio .side-balance {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
@media (max-width: 860px) {
	.studio .code-pane { display: flex; }
	.studio .file-list { flex-direction: row; flex-wrap: wrap; max-height: 76px; }
}

/* Agent web — échelle d’application (pas l’échelle vitrine).
   Texte 13px, contrôles 28–32px, rayon 6px. Les rem de la vitrine restent sur :root. */
.gate,
.studio {
	--ui-text: 13px;
	--ui-text-sm: 12px;
	--ui-title: 22px;
	--ui-control: 32px;
	--ui-icon: 28px;
	--ui-radius: 6px;
	--ui-gap: 8px;
	font-size: var(--ui-text);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.gate h1 {
	font-size: var(--ui-title);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}
.gate .lede { font-size: 13.5px; line-height: 1.5; margin: 0; }
.gate .eyebrow { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 6px; }
.gate .nav { padding: 10px 0; }
.gate .brand { font-size: 14px; gap: 8px; }
.gate .brand img { width: 24px; height: 24px; border-radius: 6px; }
.gate .nav-links { gap: 12px; }
.gate .nav-links a,
.gate .lang { font-size: var(--ui-text-sm); }
.gate-card {
	padding: 20px 18px;
	margin-top: min(10vh, 64px);
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.gate .actions { margin-top: 16px; gap: var(--ui-gap); }
.gate .btn,
.studio .btn {
	min-height: var(--ui-control);
	height: var(--ui-control);
	padding: 0 12px;
	border-radius: var(--ui-radius);
	font-size: var(--ui-text-sm);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
}
.studio #agent-open-account {
	min-height: var(--ui-control);
	height: var(--ui-control);
	padding: 0 10px;
	border-radius: var(--ui-radius);
	font-size: var(--ui-text-sm);
	font-weight: 600;
}

.studio .studio-top {
	min-height: 44px;
	gap: var(--ui-gap);
	padding: 4px 8px;
}
.studio .brand { font-size: 13px; gap: 8px; }
.studio .brand img { width: 22px; height: 22px; border-radius: 5px; }
.studio .side-nav-item,
.studio .set-nav,
.studio .preview-menu button,
.studio .file-tab,
.studio .chat-open {
	min-height: 26px;
	padding: 3px 8px;
	border-radius: var(--ui-radius);
	font-size: var(--ui-text-sm);
	font-weight: 600;
	line-height: 1.3;
}
.studio .chat-open { padding: 6px 8px; }
.studio .side-nav-item { padding: 6px 10px; }
.studio .project-chip {
	max-height: 26px;
	padding: 2px 8px;
	gap: 6px;
	font-size: var(--ui-text-sm);
}
.studio .side-balance { font-size: 11px; padding: 2px 8px; }
.studio .side-identity { font-size: 11px; }
.studio .studio-side-foot { gap: 6px; }
.studio .studio-side-foot p { margin: 0; }
.studio .icon-chip,
.studio .frame-btn,
.studio .rail-close,
.studio .composer-add,
.studio .preview-menu .frame-btn,
.studio .composer-send,
.studio .composer-stop {
	width: var(--ui-icon);
	height: var(--ui-icon);
	min-height: var(--ui-icon);
	padding: 0;
	border-radius: var(--ui-radius);
	font-size: 14px;
}
.studio .avatar {
	width: var(--ui-icon);
	height: var(--ui-icon);
	font-size: 11px;
}
.studio .agent-chat {
	margin: 8px 0 8px 8px;
	padding: 8px;
	border-radius: 10px;
}
.studio .agent-log { gap: 8px; flex: 1 1 auto; min-height: 72px; }
.studio .agent-empty { font-size: var(--ui-text-sm); line-height: 1.45; }
.studio .agent-msg { border-radius: 8px; padding: 8px 10px; }
.studio .agent-who { font-size: 11px; margin-bottom: 4px; }
.studio .agent-text { font-size: var(--ui-text); line-height: 1.5; }
.studio .agent-form { gap: 6px; padding: 8px; border-radius: 10px; }
.studio .agent-form textarea {
	height: 40px;
	min-height: 40px;
	max-height: 120px;
	font-size: var(--ui-text);
	line-height: 1.45;
}
.studio .composer-bar { flex-wrap: wrap; gap: 6px; row-gap: 6px; }
.studio .composer-bar select,
.studio .composer-model,
.studio .file-create input {
	min-height: 26px;
	padding: 2px 8px;
	border-radius: var(--ui-radius);
	font-size: var(--ui-text-sm);
}
.studio .change-bar { font-size: 11px; padding: 4px 6px; border-radius: 8px 8px 0 0; }
.studio .icon-btn { width: 24px; height: 24px; border-radius: 5px; font-size: 12px; }
.studio .preview-menu {
	top: 8px;
	gap: 2px;
	padding: 3px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.studio .preview-stage,
.studio .code-pane { padding-top: 46px; }
.studio .project-kind { font-size: 11px; }
.studio .preview-empty { padding: 16px; font-size: var(--ui-text-sm); }
.studio .code-pane { padding: 46px 8px 8px; gap: 6px; }
.studio .files-head h2,
.studio .set-card h3,
.studio .rail-try h2,
.project-dialog h2 { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.studio .file-editor { font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; }
.studio .file-create { gap: 6px; }
.set-card,
.rail-try { padding: 12px 14px; border-radius: 10px; }
.set-card p,
.set-card .muted,
.rail-try p,
.project-dialog .lede,
.project-card span { font-size: var(--ui-text-sm); line-height: 1.45; }
.studio .balance-figure { font-size: 20px; letter-spacing: -0.02em; margin-top: 6px; }
.studio .profile-name { font-size: 15px; }
.project-dialog { padding: 16px 14px 10px; border-radius: 10px; width: min(520px, 100%); margin: auto; }
.project-overlay {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: auto;
	padding: 16px;
}
.project-grid { gap: 8px; }
.project-card { padding: 10px 12px; border-radius: 8px; }
.project-card strong { margin: 6px 0 2px; font-size: 13px; }
.project-mark { width: 28px; height: 28px; border-radius: 6px; }
.project-actions { margin-top: 10px; }

@media (max-width: 860px) {
	.gate .nav { flex-direction: row; align-items: center; }
	.studio .preview-menu {
		position: static;
		left: auto;
		transform: none;
		width: auto;
		max-width: none;
		margin: 8px 8px 0;
		flex-wrap: wrap;
		justify-content: flex-start;
		box-shadow: none;
	}
	.studio .preview-stage { padding: 8px; }
	.studio .code-pane { padding: 8px; }
	.agent-body { grid-template-rows: minmax(168px, 40dvh) minmax(200px, 1fr); }
	.studio .agent-chat { margin: 8px; }
	.project-chip { max-width: 140px; }
}
@media (max-width: 640px) {
	.gate .nav,
	.gate-card { width: min(1120px, calc(100% - 24px)); }
	.gate-card { margin-top: 24px; padding: 16px 14px; }
	.gate h1 { font-size: 20px; }
	.gate .actions .btn { flex: 1 1 0; }
	.studio-top { flex-wrap: wrap; align-items: center; }
	.studio .agent-msg-user { margin-left: 12px; }
	.studio .agent-msg-assistant { margin-right: 0; }
	.project-dialog { padding: 14px 12px 8px; }
}
@media (pointer: coarse) {
	.gate .btn,
	.studio .btn,
	.studio #agent-open-account { min-height: 36px; height: 36px; }
	.studio .icon-chip,
	.studio .frame-btn,
	.studio .composer-add,
	.studio .composer-send,
	.studio .composer-stop,
	.studio .avatar { width: 36px; height: 36px; min-height: 36px; }
}

/* Connexion / inscription — carte centrée, densité produit. */
body[data-auth] {
	min-height: 100vh;
	font-size: 13px;
	line-height: 1.45;
	background-color: var(--navy);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		radial-gradient(640px 280px at 50% -8%, #2A1F0A88, transparent 70%);
	background-size: 28px 28px, 28px 28px, auto;
	background-attachment: fixed;
}
body[data-auth] .auth-shell {
	width: min(420px, calc(100% - 32px));
	min-height: 100vh;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}
body[data-auth] .auth-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 8px 0;
}
body[data-auth] .brand { font-size: 14px; font-weight: 700; gap: 8px; }
body[data-auth] .brand img { width: 24px; height: 24px; border-radius: 6px; }
body[data-auth] .auth-nav { display: flex; align-items: center; gap: 8px; }
body[data-auth] .auth-nav a { color: var(--muted); font-size: 12px; font-weight: 600; }
body[data-auth] .auth-nav a:hover { color: var(--text); }
body[data-auth] .auth-nav-cta {
	height: 28px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border-2);
	border-radius: 6px;
	background: var(--card);
	color: var(--text);
}
body[data-auth] .auth-card {
	width: 100%;
	max-width: none;
	margin: auto;
	padding: 22px 20px 18px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--card) 92%, transparent);
	border: 1px solid var(--border-2);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
body[data-auth] h1 {
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 6px;
}
body[data-auth] .lede {
	max-width: none;
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}
body[data-auth] .banner { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
body[data-auth] .auth-form { margin: 0; }
body[data-auth] label {
	margin: 12px 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-2);
}
body[data-auth] input {
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--navy);
	font-size: 13px;
}
body[data-auth] input:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
	border-color: var(--orange);
}
body[data-auth] .auth-submit,
body[data-auth] .btn-google {
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}
body[data-auth] .auth-submit { margin-top: 16px; }
body[data-auth] .auth-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body[data-auth] .auth-divider::before,
body[data-auth] .auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border-2);
}
body[data-auth] .btn-google {
	margin-top: 12px;
	gap: 8px;
	background: transparent;
	color: var(--text);
	border-color: var(--border-2);
}
body[data-auth] .btn-google:hover { border-color: var(--muted); color: var(--text); }
body[data-auth] .auth-switch {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12px;
}
@media (max-width: 480px) {
	body[data-auth] .auth-shell { width: min(420px, calc(100% - 24px)); }
	body[data-auth] .auth-card { padding: 18px 14px 14px; }
	body[data-auth] h1 { font-size: 20px; }
}

/* === Sidebar chats + vue Paramètres (style agent web) === */
.settings-view {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-columns: 208px minmax(0, 1fr);
	overflow: hidden;
}
.settings-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	padding: 12px 10px;
	border-right: 1px solid var(--border);
	background: var(--navy-2);
	overflow-y: auto;
}
.settings-search {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 9px;
	border: 1px solid var(--border-2);
	border-radius: 8px;
	background: var(--navy-3);
	color: var(--muted);
}
.settings-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text);
	font-size: 12px;
}
.settings-search input:focus {
	outline: none;
	border: 0;
}
.settings-menu-list {
	display: grid;
	gap: 2px;
}
.set-nav {
	width: 100%;
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}
.set-nav:hover {
	background: var(--navy-3);
	color: var(--text);
}
.set-nav.is-active {
	background: var(--card);
	color: var(--text);
}
.settings-panels {
	min-height: 0;
	overflow-y: auto;
	padding: 20px 24px 48px;
}
.set-panel {
	display: grid;
	gap: 14px;
	align-content: start;
	max-width: 720px;
}
.set-panel > h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -0.01em;
}
.set-panel > .muted {
	margin: -8px 0 0;
}
.set-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px 16px;
}
.set-card h3 {
	margin: 0 0 8px;
	font-size: 13px;
}
.set-card > .muted {
	margin: 4px 0;
}
.set-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
}
.set-row + .set-row {
	border-top: 1px solid var(--border);
}
.set-row-text {
	min-width: 0;
}
.set-row-text strong {
	display: block;
	font-size: 12.5px;
}
.set-row-text p {
	margin: 2px 0 0;
	font-size: 12px;
}
.set-control {
	flex: 0 0 auto;
	width: auto;
	min-width: 150px;
	max-width: 220px;
	min-height: 30px;
	padding: 4px 10px;
	font-size: 12.5px;
}
.set-form {
	display: grid;
	gap: 10px;
	margin-top: 6px;
}
.set-form label {
	display: block;
	margin: 0;
}
.set-form label > span,
.set-card label > span {
	display: block;
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}
.set-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
.set-form .btn {
	justify-self: start;
}
.set-kbd {
	flex: 0 0 auto;
	padding: 3px 9px;
	border: 1px solid var(--border-2);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--navy-3);
	color: var(--text);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11px;
}
.set-sync,
.set-rev {
	margin: 0;
	font-size: 11px;
}
.set-lang {
	border-left: 0;
	padding-left: 0;
	gap: 14px;
	font-size: 12.5px;
}
.set-card .check {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--text-2);
}
.set-card .actions {
	margin-top: 10px;
}
.set-card .plan-list {
	margin-top: 10px;
}
.feedback-dialog {
	width: min(560px, 100%);
}
.feedback-dialog .project-actions {
	justify-content: flex-end;
	gap: 8px;
}

/* === Composer centré à vide (accueil agent) === */
.agent-hello {
	display: none;
}
.agent-chat.is-empty {
	justify-content: center;
}
.agent-chat.is-empty .agent-hello {
	display: grid;
	justify-items: center;
	gap: 8px;
	margin-bottom: 16px;
	text-align: center;
}
.agent-chat.is-empty .agent-log {
	display: none;
}
.agent-chat.is-empty .agent-form {
	width: min(680px, 100%);
	margin-inline: auto;
}
.agent-hello img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
}
.agent-hello h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -0.01em;
}
.agent-hello p {
	margin: 0;
	max-width: 40ch;
	font-size: 12.5px;
	line-height: 1.5;
}

@media (max-width: 860px) {
	.settings-view {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
	}
	.settings-menu {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding: 8px;
		border-right: 0;
		border-bottom: 1px solid var(--border);
		overflow-x: auto;
		overflow-y: hidden;
	}
	.settings-search {
		flex: 0 0 auto;
		width: 150px;
	}
	.settings-menu-list {
		display: flex;
		gap: 4px;
	}
	.settings-panels {
		padding: 14px 12px 40px;
	}
	.set-panel {
		max-width: none;
	}
	.set-row {
		flex-wrap: wrap;
	}
	.set-control {
		width: 100%;
		max-width: none;
	}
}

/* === Landing page (vitrine) === */
.landing { background: var(--navy); }
.lp-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--navy) 78%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	height: 58px;
}
.lp-nav-inner .brand { font-size: 15px; }
.lp-nav-inner .brand img { width: 26px; height: 26px; }
.lp-links {
	display: flex;
	gap: 20px;
	margin-left: 12px;
}
.lp-links a {
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 550;
}
.lp-links a:hover { color: var(--text); }
.lp-nav-cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}
.lp-nav-cta .lang { border-left: 0; padding-left: 0; gap: 10px; }
.lp-link-muted { color: var(--muted); font-size: 13.5px; font-weight: 550; }
.lp-link-muted:hover { color: var(--text); }
.lp-btn { height: 34px; padding: 0 14px; font-size: 13px; }
.lp-hero {
	position: relative;
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
	padding: 84px 0 0;
	text-align: center;
	overflow: hidden;
}
.lp-hero-glow {
	position: absolute;
	inset: -160px -20% auto;
	height: 480px;
	background:
		radial-gradient(640px 300px at 50% 0%, #E4930A33, transparent 65%),
		radial-gradient(420px 260px at 78% 22%, #4a3aff22, transparent 70%);
	pointer-events: none;
}
.lp-badge {
	position: relative;
	display: inline-flex;
	margin: 0 0 20px;
	padding: 5px 14px;
	border: 1px solid var(--border-2);
	border-radius: 999px;
	background: var(--card);
	color: var(--orange);
	font-size: 12.5px;
	font-weight: 600;
}
.lp-hero h1 {
	position: relative;
	margin: 0 auto;
	max-width: 19ch;
	font-size: clamp(2.4rem, 5.6vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}
.lp-lede {
	position: relative;
	margin: 18px auto 0;
	max-width: 56ch;
	color: var(--muted);
	font-size: 1.1rem;
	line-height: 1.6;
}
.lp-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}
.lp-btn-big { height: 44px; padding: 0 22px; font-size: 14.5px; }
.lp-note { margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.lp-mock {
	position: relative;
	margin: 54px auto 0;
	max-width: 960px;
	perspective: 1200px;
}
.lp-mock-window {
	border: 1px solid var(--border-2);
	border-radius: 16px 16px 0 0;
	background: var(--navy-2);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	text-align: left;
	animation: lp-float 7s ease-in-out infinite;
}
@keyframes lp-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
.lp-mock-top {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--navy-3);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.lp-dot:first-child { background: #f85149aa; }
.lp-dot:nth-child(2) { background: #e3b341aa; }
.lp-dot:nth-child(3) { background: #3ddc84aa; }
.lp-mock-url {
	margin-left: 10px;
	padding: 3px 12px;
	border-radius: 6px;
	background: var(--navy);
	color: var(--muted);
	font-size: 11px;
}
.lp-mock-body {
	display: grid;
	grid-template-columns: 170px 1fr 210px;
	min-height: 300px;
}
.lp-mock-side {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 12px;
	border-right: 1px solid var(--border);
}
.lp-mock-newchat {
	padding: 7px 10px;
	border: 1px solid var(--border-2);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	font-size: 11px;
	font-weight: 650;
}
.lp-mock-row {
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 10.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lp-mock-row.is-on { background: var(--card); color: var(--text); }
.lp-mock-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}
.lp-mock-msg {
	max-width: 82%;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--card);
	color: var(--text-2);
	font-size: 11.5px;
	line-height: 1.45;
}
.lp-mock-user {
	align-self: flex-end;
	background: var(--orange);
	border-color: var(--orange);
	color: var(--navy);
	font-weight: 600;
}
.lp-typing i {
	display: inline-block;
	width: 7px;
	height: 12px;
	margin-left: 3px;
	vertical-align: -2px;
	background: var(--orange);
	animation: lp-caret 1s steps(2) infinite;
}
@keyframes lp-caret { 50% { opacity: 0; } }
.lp-mock-composer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px 9px 14px;
	border: 1px solid var(--border-2);
	border-radius: 10px;
	background: var(--navy-3);
	color: var(--muted);
	font-size: 11px;
}
.lp-mock-send {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--orange);
	color: var(--navy);
	font-weight: 700;
}
.lp-mock-preview {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 16px 14px;
	border-left: 1px solid var(--border);
}
.lp-mock-card {
	height: 120px;
	border-radius: 10px;
	background: linear-gradient(135deg, #E4930A33, #4a3aff26);
	border: 1px solid var(--border-2);
}
.lp-mock-card.small { height: 62px; }
.lp-mock-card.alt { background: linear-gradient(135deg, #3ddc8422, #E4930A22); }
.lp-strip {
	padding: 42px 0 10px;
	border-top: 1px solid var(--border);
	margin-top: 60px;
}
.lp-strip-label {
	text-align: center;
	color: var(--muted);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.lp-marquee { overflow: hidden; margin-top: 20px; }
.lp-marquee-track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: lp-scroll 26s linear infinite;
}
.lp-marquee-track span {
	color: var(--muted);
	font-size: 15px;
	font-weight: 650;
	white-space: nowrap;
}
@keyframes lp-scroll {
	to { transform: translateX(-50%); }
}
.lp-section {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
	padding: 84px 0 0;
	text-align: center;
}
.lp-section .eyebrow { font-size: 12px; }
.lp-section h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	letter-spacing: -0.03em;
}
.lp-section-lede { margin: 8px 0 0; color: var(--muted); }
.lp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 36px;
	text-align: left;
}
.lp-card {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--card);
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.lp-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-2);
}
.lp-card-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--orange-dim);
	color: var(--orange);
}
.lp-card h3 { margin: 0 0 6px; font-size: 15px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.lp-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 36px;
	text-align: left;
}
.lp-step {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: linear-gradient(180deg, var(--card), var(--navy-3));
}
.lp-step-n {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--navy);
	font-weight: 700;
	font-size: 13px;
}
.lp-step h3 { margin: 0 0 6px; font-size: 15px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.lp-cta {
	width: min(880px, calc(100% - 40px));
	margin: 84px auto 90px;
	padding: 56px 32px;
	border: 1px solid var(--border-2);
	border-radius: 20px;
	background:
		radial-gradient(480px 200px at 50% -30%, #E4930A26, transparent 70%),
		var(--card);
	text-align: center;
}
.lp-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
.lp-cta p { color: var(--muted); margin: 10px 0 0; }
.lp-foot { border-top: 1px solid var(--border); }
.lp-foot-inner {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 26px 0 40px;

/* === Landing: downloads + realistic mock details === */
.lp-mock-code { display: grid; gap: 7px; padding: 14px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 10px; line-height: 1.5; }
.lp-mock-code span { color: var(--text-2); white-space: pre; }
.lp-mock-code .c-or { color: var(--orange); font-style: normal; }
.lp-mock-code .c-bl { color: #7aa5ff; font-style: normal; }
.lp-mock-code .c-gr { color: #3ddc84; font-style: normal; }
.lp-cursor { display: inline-block; width: 7px; height: 12px; background: var(--orange); animation: lp-caret 1s steps(2) infinite; }
.lp-mock-body { position: relative; }
.lp-mock-phone { position: absolute; right: 18px; bottom: 14px; width: 34px; height: 62px; border: 2px solid var(--border-2); border-radius: 8px; background: linear-gradient(160deg, #E4930A33, var(--navy-3)); }
.lp-mock-phone i { position: absolute; top: 4px; left: 50%; width: 10px; height: 2px; margin-left: -5px; border-radius: 2px; background: var(--border-2); }
.lp-chip { position: absolute; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--navy-3); box-shadow: 0 12px 30px rgba(0,0,0,.4); color: var(--text-2); font-size: 11px; font-weight: 650; }
.lp-chip-a { top: 52px; right: -16px; color: #3ddc84; }
.lp-chip-b { bottom: 34px; left: -14px; color: var(--orange); }
.lp-download { text-align: center; }
.lp-dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; justify-content: center; margin-top: 36px; }
.lp-dl-card { padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); text-align: center; }
.lp-dl-card h3 { margin: 12px 0 4px; font-size: 17px; }
.lp-dl-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 14px; background: var(--orange-dim); color: var(--orange); }
.lp-dl-meta { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; }
.lp-dl-btn { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.lp-dl-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.lp-dl-state { display: block; margin-top: 10px; min-height: 16px; color: var(--muted); font-size: 11.5px; }
.lp-dl-note { margin-top: 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .lp-dl-grid { grid-template-columns: 1fr; } .lp-chip { display: none; } }

/* === Compact professional download cards === */
.lp-dl-grid { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 12px; }
.lp-dl-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; }
.lp-dl-card h3 { margin: 0; }
.lp-dl-icon { width: 36px; height: 36px; margin: 0; flex: none; border-radius: 9px; }
.lp-dl-info { flex: 1; display: grid; gap: 2px; text-align: left; font-size: 13.5px; }
.lp-dl-info strong { font-weight: 650; }
.lp-dl-meta { margin: 0; font-size: 11.5px; }
.lp-dl-state { display: inline; margin: 0; min-height: 0; color: var(--orange); font-style: normal; }
.lp-dl-btn { flex: none; width: auto; height: 32px; padding: 0 13px; font-size: 12.5px; gap: 6px; }
.lp-btn-big { height: 40px; padding: 0 18px; font-size: 14px; }

/* === Account menu download row (workspace) === */
.menu-dl { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text-2); font-size: 13px; }
.menu-dl > svg { flex: none; color: var(--muted); }
.menu-dl > span:first-of-type { flex: 1; }
.menu-dl-btns { display: flex; gap: 6px; }
.menu-dl-btns a {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--border-2);
	border-radius: 7px;
	background: var(--card);
	color: var(--muted);
	transition: color .15s, border-color .15s;
}
.menu-dl-btns a:hover { color: var(--orange); border-color: var(--orange); }
@media (max-width: 720px) { .lp-dl-grid { grid-template-columns: 1fr; } }
