/**
 * Shopee Video Studio — standalone application styles.
 *
 * Everything is scoped to .svs-app, which is a fixed full-viewport layer. The
 * theme cannot affect width, height, typography or layout, and no rule here
 * changes any other page of the site.
 *
 * @package ShopeeVideoStudio
 */

/* ------------------------------------------------------------------------- */
/* Tokens                                                                    */
/* ------------------------------------------------------------------------- */

.svs-app {
	--svs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--svs-ink: #14161c;
	--svs-ink-2: #2b2f3a;
	--svs-muted: #676c79;
	--svs-faint: #98a0ae;
	--svs-line: #e5e1da;
	--svs-line-soft: #efece6;
	--svs-bg: #f6f4f0;
	--svs-surface: #ffffff;
	--svs-surface-2: #fbfaf8;
	--svs-accent: #e8552f;
	--svs-accent-ink: #c8451f;
	--svs-accent-soft: #fdeee8;
	--svs-sidebar: #12141a;
	--svs-sidebar-2: #1b1e27;
	--svs-ok: #1c7d55;
	--svs-ok-soft: #e8f6ef;
	--svs-warn: #9a5d15;
	--svs-warn-soft: #fdf3e3;
	--svs-err: #bc322a;
	--svs-err-soft: #fdecea;
	--svs-info: #2f5fa8;
	--svs-info-soft: #ecf2fb;
	--svs-radius: 16px;
	--svs-radius-sm: 10px;
	--svs-radius-lg: 22px;
	--svs-shadow-1: 0 1px 2px rgba(20, 22, 28, .05);
	--svs-shadow-2: 0 14px 34px -22px rgba(20, 22, 28, .45), 0 2px 6px -2px rgba(20, 22, 28, .06);
	--svs-topbar-height: 68px;
	--svs-tabbar-height: 64px;

	position: fixed;
	inset: 0;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--svs-bg);
	color: var(--svs-ink);
	font-family: var(--svs-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-ligatures: none;
}

body.admin-bar .svs-app {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .svs-app {
		top: 46px;
	}
}

/* Only the page that renders the application stops scrolling. */
body.svs-app-page {
	overflow: hidden;
}

/* Scoped reset: theme typography must not leak into the application. */
.svs-app,
.svs-app * {
	box-sizing: border-box;
}

.svs-app h1,
.svs-app h2,
.svs-app h3,
.svs-app h4,
.svs-app h5,
.svs-app h6,
.svs-app p,
.svs-app ul,
.svs-app ol,
.svs-app li,
.svs-app dl,
.svs-app dd,
.svs-app dt,
.svs-app figure,
.svs-app blockquote,
.svs-app pre,
.svs-app form,
.svs-app fieldset {
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
	background: none;
	border: 0;
}

.svs-app ul,
.svs-app ol {
	list-style: none;
}

.svs-app a {
	color: inherit;
	text-decoration: none;
}

.svs-app button,
.svs-app input,
.svs-app select,
.svs-app textarea {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.svs-app img,
.svs-app svg {
	display: block;
	max-width: 100%;
}

.svs-app svg {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.svs-app [hidden] {
	display: none !important;
}

.svs-app ::selection {
	background: var(--svs-accent-soft);
	color: var(--svs-accent-ink);
}

.svs-app :focus-visible {
	outline: 2px solid var(--svs-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.svs-skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 10;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--svs-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transition: top .18s ease;
}

.svs-skip-link:focus {
	top: 12px;
}

/* ------------------------------------------------------------------------- */
/* Shell                                                                     */
/* ------------------------------------------------------------------------- */

.svs-shell {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	flex: 1;
	min-height: 0;
}

.svs-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-height: 0;
	padding: 22px 14px 16px;
	background: var(--svs-sidebar);
	color: #c3c8d3;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.svs-sidebar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 6px;
}

.svs-sidebar__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: transparent;
	color: #e6e8ee;
	cursor: pointer;
}

.svs-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -.01em;
}

.svs-brand__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 10px;
	background: var(--svs-accent);
	color: #fff;
	box-shadow: 0 6px 16px -8px rgba(232, 85, 47, .9);
}

.svs-brand__mark svg {
	width: 20px;
	height: 20px;
}

.svs-brand__text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.svs-brand--light {
	color: #fff;
}

.svs-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.svs-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 11px;
	color: #b6bcc9;
	font-size: 14px;
	font-weight: 500;
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

.svs-nav__item:hover {
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.svs-nav__item.is-active {
	background: #fff;
	color: var(--svs-ink);
	font-weight: 620;
	box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9);
}

.svs-nav__item.is-active .svs-nav__icon {
	color: var(--svs-accent);
}

.svs-nav__icon {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	flex: none;
}

.svs-nav__icon svg {
	width: 20px;
	height: 20px;
}

.svs-nav__item--subtle {
	color: #9aa1b0;
	font-size: 13.5px;
}

.svs-sidebar__foot {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.svs-sidebar__version {
	padding: 8px 12px 0;
	color: #626a7a;
	font-size: 11.5px;
	letter-spacing: .04em;
}

.svs-install {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin-bottom: 6px;
	padding: 10px 12px;
	border: 1px dashed rgba(255, 255, 255, .2);
	border-radius: 11px;
	background: rgba(255, 255, 255, .04);
	color: #e8eaf0;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease;
}

.svs-install:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .34);
}

.svs-install svg {
	width: 18px;
	height: 18px;
}

.svs-scrim {
	display: none;
}

.svs-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--svs-bg);
}

/* ------------------------------------------------------------------------- */
/* Top bar                                                                   */
/* ------------------------------------------------------------------------- */

.svs-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: var(--svs-topbar-height);
	padding: 12px clamp(16px, 2.4vw, 34px);
	border-bottom: 1px solid var(--svs-line);
	background: rgba(246, 244, 240, .82);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	position: relative;
	z-index: 3;
}

.svs-topbar__titles {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.svs-topbar__eyebrow {
	color: var(--svs-faint);
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase !important;
	line-height: 1.3;
}

.svs-topbar__title {
	font-size: clamp(18px, 1.6vw, 21px);
	font-weight: 660;
	letter-spacing: -.02em;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.svs-topbar__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.svs-user {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 5px 12px 5px 6px;
	border-radius: 12px;
	transition: background .16s ease;
}

.svs-user:hover {
	background: rgba(20, 22, 28, .05);
}

.svs-avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	background: var(--svs-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0;
	text-transform: uppercase;
}

.svs-avatar--lg {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	font-size: 21px;
	background: var(--svs-accent);
}

.svs-avatar--xs {
	width: 22px;
	height: 22px;
	font-size: 10px;
	background: transparent;
	color: currentColor;
	border: 1px solid currentColor;
}

.svs-user__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.svs-user__name {
	max-width: 180px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13.5px;
	font-weight: 620;
}

.svs-user__plan {
	color: var(--svs-faint);
	font-size: 11.5px;
}

.svs-iconbtn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--svs-line);
	border-radius: 11px;
	background: var(--svs-surface);
	color: var(--svs-ink-2);
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease;
}

.svs-iconbtn:hover {
	background: var(--svs-surface-2);
	border-color: #d8d3ca;
}

.svs-iconbtn svg {
	width: 20px;
	height: 20px;
}

.svs-iconbtn--logout {
	margin-left: 2px;
}

/* ------------------------------------------------------------------------- */
/* Main                                                                      */
/* ------------------------------------------------------------------------- */

.svs-main {
	flex: 1;
	min-height: 0;
	padding: clamp(16px, 2.4vw, 34px) clamp(16px, 2.6vw, 40px) 36px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.svs-view {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 1560px;
	margin: 0 auto;
	width: 100%;
	animation: svs-view-in .26s ease both;
}

@keyframes svs-view-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

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

/* ------------------------------------------------------------------------- */
/* Typography helpers                                                        */
/* ------------------------------------------------------------------------- */

.svs-hero {
	padding: clamp(20px, 2.4vw, 30px);
	border-radius: var(--svs-radius-lg);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(232, 85, 47, .16) 0%, rgba(232, 85, 47, 0) 58%),
		var(--svs-sidebar);
	color: #f2f3f7;
	box-shadow: var(--svs-shadow-2);
}

.svs-hero__eyebrow {
	color: rgba(255, 255, 255, .58);
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: .09em;
	text-transform: uppercase !important;
}

.svs-hero__title {
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 660;
	letter-spacing: -.03em;
	line-height: 1.15;
	margin-top: 8px !important;
}

.svs-hero__lead {
	max-width: 62ch;
	margin-top: 10px !important;
	color: rgba(255, 255, 255, .72);
	font-size: 15.5px;
}

.svs-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.svs-page-head__eyebrow {
	color: var(--svs-accent);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase !important;
}

.svs-page-head__title {
	margin-top: 4px !important;
	font-size: clamp(24px, 2.3vw, 31px);
	font-weight: 660;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.svs-page-head__text {
	max-width: 68ch;
	margin-top: 8px !important;
	color: var(--svs-muted);
	font-size: 14.5px;
}

.svs-help {
	color: var(--svs-muted);
	font-size: 12.8px;
	line-height: 1.45;
}

.svs-help--tight {
	margin-top: 2px !important;
}

.svs-help--error {
	color: var(--svs-err);
}

.svs-link {
	color: var(--svs-accent-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.svs-link:hover {
	color: var(--svs-accent);
}

.svs-link--small {
	font-size: 12.5px;
	white-space: nowrap;
}

/* ------------------------------------------------------------------------- */
/* Buttons                                                                   */
/* ------------------------------------------------------------------------- */

.svs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--svs-surface);
	color: var(--svs-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 620;
	letter-spacing: -.005em;
	cursor: pointer;
	transition: transform .14s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
	-webkit-tap-highlight-color: transparent;
}

.svs-button svg {
	width: 18px;
	height: 18px;
}

.svs-button:active {
	transform: translateY(1px);
}

.svs-button--primary {
	background: var(--svs-accent);
	color: #fff;
	box-shadow: 0 1px 2px rgba(200, 69, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.svs-button--primary:hover {
	background: var(--svs-accent-ink);
	box-shadow: 0 8px 20px -12px rgba(200, 69, 31, .85);
}

.svs-button--ghost {
	border-color: var(--svs-line);
	background: var(--svs-surface);
	color: var(--svs-ink-2);
}

.svs-button--ghost:hover {
	border-color: #d5cfc5;
	background: var(--svs-surface-2);
}

.svs-button--danger {
	border-color: #f0cfcb;
	background: var(--svs-err-soft);
	color: var(--svs-err);
}

.svs-button--danger:hover {
	border-color: #e4b6b1;
	background: #fbe0dd;
}

.svs-button--block {
	width: 100%;
}

.svs-button:disabled,
.svs-button[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.svs-button.is-loading {
	pointer-events: none;
}

.svs-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: svs-spin .7s linear infinite;
	opacity: .9;
}

@keyframes svs-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------------- */
/* Panels and cards                                                          */
/* ------------------------------------------------------------------------- */

.svs-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: clamp(18px, 1.8vw, 24px);
	border: 1px solid var(--svs-line);
	border-radius: var(--svs-radius);
	background: var(--svs-surface);
	box-shadow: var(--svs-shadow-1);
}

.svs-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.svs-panel__title {
	font-size: 15.5px;
	font-weight: 650;
	letter-spacing: -.015em;
}

.svs-panel__text {
	color: var(--svs-muted);
	font-size: 13.8px;
	line-height: 1.55;
}

.svs-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px !important;
}

.svs-divider {
	height: 1px;
	background: var(--svs-line-soft);
}

.svs-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 18px;
}

/* Channel cards on the overview */
.svs-channel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.svs-channel-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 200px;
	padding: clamp(20px, 2vw, 26px);
	border: 1px solid var(--svs-line);
	border-radius: var(--svs-radius-lg);
	background: var(--svs-surface);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.svs-channel-card::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -90px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 85, 47, .12), rgba(232, 85, 47, 0) 68%);
	pointer-events: none;
}

.svs-channel-card:hover {
	transform: translateY(-2px);
	border-color: #ddd7cd;
	box-shadow: var(--svs-shadow-2);
}

.svs-channel-card__badge {
	align-self: flex-start;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--svs-accent-soft);
	color: var(--svs-accent-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase !important;
}

.svs-channel-card--pinterest_ads .svs-channel-card__badge {
	background: #fdecef;
	color: #a3223a;
}

.svs-channel-card__title {
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 660;
	letter-spacing: -.025em;
}

.svs-channel-card__text {
	max-width: 46ch;
	color: var(--svs-muted);
	font-size: 14px;
}

.svs-channel-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 10px;
	color: var(--svs-ink);
	font-size: 13.5px;
	font-weight: 650;
}

.svs-channel-card__cta svg {
	width: 17px;
	height: 17px;
	transition: transform .18s ease;
}

.svs-channel-card:hover .svs-channel-card__cta svg {
	transform: translateX(3px);
}

/* Steps */
.svs-steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.svs-steps li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.svs-steps__num {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 8px;
	background: var(--svs-surface-2);
	border: 1px solid var(--svs-line);
	color: var(--svs-muted);
	font-size: 12px;
	font-weight: 700;
}

.svs-steps strong {
	display: block;
	font-size: 13.8px;
	font-weight: 620;
}

.svs-steps p {
	margin-top: 2px !important;
	color: var(--svs-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* ------------------------------------------------------------------------- */
/* Forms                                                                    */
/* ------------------------------------------------------------------------- */

.svs-generator {
	gap: 18px;
}

.svs-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.svs-label {
	color: var(--svs-ink-2);
	font-size: 13px;
	font-weight: 620;
	letter-spacing: -.005em;
}

.svs-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.svs-input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--svs-line);
	border-radius: 12px;
	background: var(--svs-surface);
	color: var(--svs-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: 0 1px 1px rgba(20, 22, 28, .02);
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
	-webkit-appearance: none;
	appearance: none;
}

.svs-input::placeholder {
	color: #a4aab6;
}

.svs-input:hover {
	border-color: #d7d1c7;
}

.svs-input:focus {
	outline: none;
	border-color: var(--svs-accent);
	box-shadow: 0 0 0 3px var(--svs-accent-soft);
	background: #fff;
}

.svs-input:disabled {
	background: #f4f2ee;
	color: var(--svs-faint);
}

.svs-textarea {
	min-height: 108px;
	resize: vertical;
}

.svs-select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676c79' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	cursor: pointer;
}

.svs-field__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.svs-counter {
	flex: none;
	color: var(--svs-faint);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

.svs-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.svs-input-wrap .svs-input {
	padding-right: 66px;
}

.svs-reveal {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	min-width: 48px;
	height: 36px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--svs-muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.svs-reveal:hover {
	background: var(--svs-surface-2);
	color: var(--svs-ink);
}

.svs-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.svs-generator__footer {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.svs-generator__status:empty {
	display: none;
}

.svs-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

/* ------------------------------------------------------------------------- */
/* Alerts, badges, toast                                                     */
/* ------------------------------------------------------------------------- */

.svs-alert {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 13px 15px;
	border: 1px solid var(--svs-line);
	border-radius: 13px;
	background: var(--svs-surface);
	font-size: 13.6px;
	line-height: 1.45;
}

.svs-alert--inline {
	margin-bottom: 2px;
}

.svs-alert__icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.svs-alert p + p {
	margin-top: 4px !important;
}

.svs-alert--error {
	border-color: #f0cfcb;
	background: var(--svs-err-soft);
	color: #7c221c;
}

.svs-alert--error .svs-alert__icon {
	background: #f5c9c5;
	color: #7c221c;
}

.svs-alert--success {
	border-color: #c5e6d6;
	background: var(--svs-ok-soft);
	color: #155f41;
}

.svs-alert--success .svs-alert__icon {
	background: #c3e8d5;
	color: #155f41;
}

.svs-alert--warning {
	border-color: #eddcbd;
	background: var(--svs-warn-soft);
	color: #7a4a11;
}

.svs-alert--warning .svs-alert__icon {
	background: #f0dcb4;
	color: #7a4a11;
}

.svs-alert--info {
	border-color: #cfdcf2;
	background: var(--svs-info-soft);
	color: #22477d;
}

.svs-alert--info .svs-alert__icon {
	background: #cadcf5;
	color: #22477d;
}

.svs-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--svs-surface-2);
	border: 1px solid var(--svs-line);
	color: var(--svs-muted);
	font-size: 11.5px;
	font-weight: 620;
	letter-spacing: .01em;
	white-space: nowrap;
}

.svs-badge--soft {
	background: var(--svs-accent-soft);
	border-color: transparent;
	color: var(--svs-accent-ink);
}

.svs-toast {
	position: absolute;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 20;
	max-width: min(420px, calc(100vw - 32px));
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--svs-ink);
	color: #fff;
	font-size: 13.5px;
	font-weight: 550;
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
	transform: translate(-50%, 8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.svs-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.svs-toast--success {
	background: #155f41;
}

.svs-toast--error {
	background: #8c2620;
}

/* ------------------------------------------------------------------------- */
/* Workspace (channel views)                                                 */
/* ------------------------------------------------------------------------- */

.svs-workspace {
	display: grid;
	grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.svs-workspace__form,
.svs-workspace__output {
	min-width: 0;
}

.svs-output {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 280px;
}

.svs-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 280px;
	padding: 30px 24px;
	border: 1px dashed var(--svs-line);
	border-radius: var(--svs-radius);
	background: rgba(255, 255, 255, .55);
	text-align: center;
}

.svs-placeholder__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	border-radius: 14px;
	background: var(--svs-surface);
	border: 1px solid var(--svs-line);
	color: var(--svs-muted);
}

.svs-placeholder__icon svg {
	width: 22px;
	height: 22px;
}

.svs-placeholder__title {
	font-size: 14.5px;
	font-weight: 640;
}

.svs-placeholder__text {
	max-width: 42ch;
	color: var(--svs-muted);
	font-size: 13px;
}

/* Result blocks */
.svs-result {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.svs-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--svs-line);
	border-radius: var(--svs-radius);
	background: var(--svs-surface);
	box-shadow: var(--svs-shadow-1);
	animation: svs-card-in .24s ease both;
}

@keyframes svs-card-in {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.svs-card__title {
	font-size: 14px;
	font-weight: 660;
	letter-spacing: -.005em;
	color: var(--svs-ink);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--svs-line-soft);
}

.svs-field-view {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.svs-field-view__label {
	color: var(--svs-faint);
	font-size: 11px;
	font-weight: 680;
	letter-spacing: .07em;
	text-transform: uppercase !important;
}

.svs-field-view__value {
	color: var(--svs-ink-2);
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.svs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.svs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--svs-line);
	border-radius: 999px;
	background: var(--svs-surface-2);
	color: var(--svs-ink-2);
	font-size: 12.5px;
	line-height: 1.4;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.svs-chip--match {
	padding-right: 5px;
}

.svs-chip__badge {
	padding: 1px 6px;
	border-radius: 999px;
	background: #e9e6e0;
	color: var(--svs-muted);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .04em;
}

.svs-prompt {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.svs-prompt__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.svs-prompt__text {
	padding: 13px 15px;
	border: 1px solid var(--svs-line-soft);
	border-radius: 11px;
	background: var(--svs-surface-2);
	color: var(--svs-ink-2);
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 12.6px;
	line-height: 1.65;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 360px;
	overflow-y: auto;
}

.svs-copy {
	min-height: 34px;
	padding: 5px 12px;
	font-size: 12px;
}

.svs-audiences {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.svs-audiences > .svs-card__title {
	border: 0;
	padding: 0;
}

.svs-audience {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--svs-line);
	border-radius: 14px;
	background: var(--svs-surface);
}

.svs-audience__title {
	font-size: 13.5px;
	font-weight: 650;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--svs-line-soft);
}

/* Card header row with title + copy button */
.svs-card__headrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--svs-line-soft);
}

.svs-card__headrow .svs-card__title {
	padding-bottom: 0;
	border-bottom: 0;
}

.svs-field-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.svs-field-row .svs-field-view__value {
	flex: 1;
	min-width: 0;
}

/* Result actions (copy all) */
.svs-result__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.svs-copy-all {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 13px;
}

/* Sales script block */
.svs-script {
	padding: 14px 16px;
	border: 1px solid var(--svs-line-soft);
	border-radius: 11px;
	background: var(--svs-surface-2);
}

.svs-script__text {
	color: var(--svs-ink-2);
	font-size: 14.5px;
	line-height: 1.75;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Highlighted CTA card */
.svs-card--cta {
	border-color: var(--svs-accent);
	background: linear-gradient(135deg, var(--svs-accent-soft) 0%, #fff 70%);
	box-shadow: 0 8px 24px -16px rgba(232, 85, 47, .55);
}

.svs-card--cta .svs-card__title {
	color: var(--svs-accent-ink);
}

.svs-cta__text {
	color: var(--svs-accent-ink);
	font-size: 17px;
	font-weight: 650;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.svs-cta__text--inline {
	font-size: 14.5px;
}

/* PWA install banner (mobile) */
.svs-install-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(var(--svs-tabbar-height, 64px) + 12px + env(safe-area-inset-bottom));
	z-index: 9995;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 18px;
	border: 1px solid var(--svs-line);
	border-radius: var(--svs-radius);
	background: var(--svs-surface);
	box-shadow: 0 24px 48px -20px rgba(20, 22, 28, .5), var(--svs-shadow-1);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .24s ease, transform .24s ease;
	pointer-events: none;
}

.svs-install-banner.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.svs-install-banner__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.svs-install-banner__title {
	font-size: 15px;
	font-weight: 680;
	letter-spacing: -.01em;
}

.svs-install-banner__text {
	color: var(--svs-muted);
	font-size: 13px;
	line-height: 1.5;
}

.svs-install-banner__ios {
	color: var(--svs-info);
	font-size: 12.5px;
	line-height: 1.5;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--svs-info-soft);
}

.svs-install-banner__actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.svs-install-banner__close {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: none;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--svs-faint);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.svs-install-banner__close:hover {
	background: var(--svs-surface-2);
	color: var(--svs-ink);
}

.svs-button--sm {
	min-height: 38px;
	padding: 7px 14px;
	font-size: 13px;
}

/* Desktop: banner sits above content, no tabbar */
@media (min-width: 901px) {
	.svs-install-banner {
		bottom: 20px;
	}
}

@media (max-width: 640px) {
	.svs-install-banner {
		left: 10px;
		right: 10px;
		padding: 14px 15px;
	}

	.svs-script__text {
		font-size: 14px;
	}

	.svs-cta__text {
		font-size: 15.5px;
	}

	.svs-result__actions {
		justify-content: stretch;
	}

	.svs-result__actions .svs-button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------------- */
/* Recent + history                                                          */
/* ------------------------------------------------------------------------- */

.svs-recent {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.svs-recent-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border: 1px solid var(--svs-line-soft);
	border-radius: 12px;
	background: var(--svs-surface-2);
	text-align: left;
	width: 100%;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.svs-recent-item:hover {
	border-color: var(--svs-line);
	background: #fff;
	transform: translateX(2px);
}

.svs-recent-item--skeleton {
	cursor: default;
	pointer-events: none;
}

.svs-recent-item__dot {
	width: 9px;
	height: 9px;
	flex: none;
	border-radius: 50%;
	background: var(--svs-accent);
	box-shadow: 0 0 0 4px var(--svs-accent-soft);
}

.svs-recent-item__dot--pinterest_ads {
	background: #b5223c;
	box-shadow: 0 0 0 4px #fdecef;
}

.svs-recent-item__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.svs-recent-item__title {
	font-size: 13px;
	font-weight: 560;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.svs-recent-item__meta {
	color: var(--svs-faint);
	font-size: 11.5px;
}

.svs-recent-item__chevron {
	margin-left: auto;
	color: var(--svs-faint);
}

.svs-history-layout {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.svs-history-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.svs-history__item {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 14px 15px;
	border: 1px solid var(--svs-line);
	border-radius: 13px;
	background: var(--svs-surface);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.svs-history__item:hover {
	border-color: #dbd5cb;
	box-shadow: var(--svs-shadow-1);
}

.svs-history__item.is-active {
	border-color: var(--svs-accent);
	box-shadow: 0 0 0 3px var(--svs-accent-soft);
}

.svs-history__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.svs-history__date {
	color: var(--svs-faint);
	font-size: 11.5px;
	margin-left: auto;
}

.svs-history__title {
	font-size: 13.6px;
	font-weight: 570;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.svs-history__actions {
	display: flex;
	gap: 7px;
	padding-top: 4px;
}

.svs-history__actions .svs-button {
	min-height: 36px;
	padding: 5px 12px;
	font-size: 12.5px;
}

.svs-history-detail {
	min-width: 0;
}

.svs-history-detail__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.svs-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 34px 22px;
	border: 1px dashed var(--svs-line);
	border-radius: var(--svs-radius);
	background: rgba(255, 255, 255, .5);
	text-align: center;
}

.svs-empty__title {
	font-size: 14px;
	font-weight: 630;
}

.svs-empty__text {
	max-width: 40ch;
	color: var(--svs-muted);
	font-size: 12.8px;
}

/* ------------------------------------------------------------------------- */
/* Account                                                                   */
/* ------------------------------------------------------------------------- */

.svs-account-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 18px;
	align-items: start;
}

.svs-profile {
	display: flex;
	align-items: center;
	gap: 14px;
}

.svs-profile__meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.svs-profile__email,
.svs-profile__since {
	color: var(--svs-muted);
	font-size: 12.8px;
	overflow-wrap: anywhere;
}

.svs-profile__since {
	color: var(--svs-faint);
	font-size: 11.8px;
}

.svs-access-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.svs-access-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.2px;
	color: var(--svs-ink-2);
}

.svs-access-list__dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: #d5d0c7;
}

.svs-access-list__dot--on {
	background: var(--svs-ok);
	box-shadow: 0 0 0 3px rgba(28, 125, 85, .12);
}

/* ------------------------------------------------------------------------- */
/* Status messages inside the generator                                      */
/* ------------------------------------------------------------------------- */

.svs-status__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 14px;
	border-radius: 11px;
	font-size: 13.2px;
	font-weight: 550;
}

.svs-status__item--loading {
	background: var(--svs-info-soft);
	color: #22477d;
}

.svs-status__item--error {
	background: var(--svs-err-soft);
	color: #7c221c;
}

.svs-status__item--ok {
	background: var(--svs-ok-soft);
	color: #155f41;
}

.svs-status__item--info {
	background: var(--svs-surface-2);
	color: var(--svs-muted);
	border: 1px solid var(--svs-line);
}

.svs-skeleton {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #ece9e3;
}

.svs-skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
	transform: translateX(-100%);
	animation: svs-shimmer 1.2s infinite;
}

.svs-skeleton--line {
	display: block;
	width: 78%;
	height: 10px;
}

.svs-skeleton--small {
	display: block;
	width: 42%;
	height: 8px;
}

@keyframes svs-shimmer {
	to {
		transform: translateX(100%);
	}
}

/* ------------------------------------------------------------------------- */
/* Authentication screen                                                     */
/* ------------------------------------------------------------------------- */

.svs-app--auth {
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--svs-bg);
}

.svs-auth {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	min-height: 100%;
}

.svs-auth__brand {
	position: relative;
	display: flex;
	align-items: center;
	padding: clamp(32px, 5vw, 72px);
	background:
		radial-gradient(140% 120% at 0% 0%, rgba(232, 85, 47, .3) 0%, rgba(232, 85, 47, 0) 55%),
		radial-gradient(100% 100% at 100% 100%, rgba(90, 76, 200, .22) 0%, rgba(90, 76, 200, 0) 60%),
		var(--svs-sidebar);
	color: #f4f5f8;
	overflow: hidden;
}

.svs-auth__brand::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(80% 80% at 30% 30%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(80% 80% at 30% 30%, #000 0%, transparent 75%);
	pointer-events: none;
}

.svs-auth__brand-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 26px;
	max-width: 560px;
}

.svs-auth__headline {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 650;
	letter-spacing: -.035em;
	line-height: 1.08;
	margin-top: 10px !important;
}

.svs-auth__lead {
	max-width: 46ch;
	color: rgba(255, 255, 255, .7);
	font-size: 15.5px;
	line-height: 1.6;
}

.svs-auth__features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 8px !important;
}

.svs-auth__features li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	color: rgba(255, 255, 255, .78);
	font-size: 13.6px;
	line-height: 1.5;
}

.svs-auth__features strong {
	display: block;
	color: #fff;
	font-weight: 620;
	font-size: 14px;
}

.svs-auth__feature-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: none;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 9px;
	color: rgba(255, 255, 255, .72);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.svs-auth__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px);
	background: var(--svs-bg);
}

.svs-auth__panel-inner {
	width: 100%;
	max-width: 420px;
}

.svs-auth__mobile-brand {
	display: none;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-weight: 650;
	letter-spacing: -.01em;
}

.svs-auth__tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 22px;
	padding: 4px;
	border: 1px solid var(--svs-line);
	border-radius: 12px;
	background: var(--svs-surface-2);
}

.svs-auth__tab {
	flex: 1;
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--svs-muted);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.svs-auth__tab.is-active {
	background: var(--svs-surface);
	color: var(--svs-ink);
	box-shadow: var(--svs-shadow-1);
}

.svs-auth__title {
	font-size: 24px;
	font-weight: 660;
	letter-spacing: -.03em;
	line-height: 1.2;
}

.svs-auth__subtitle {
	margin-top: 5px !important;
	color: var(--svs-muted);
	font-size: 13.8px;
}

.svs-auth__form {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 20px !important;
}

.svs-auth__switch {
	margin-top: 18px !important;
	color: var(--svs-muted);
	font-size: 13.2px;
	text-align: center;
}

.svs-auth__terms {
	color: var(--svs-faint);
	font-size: 11.5px;
	line-height: 1.5;
	text-align: center;
}

.svs-auth__foot {
	margin-top: 26px !important;
	padding-top: 18px;
	border-top: 1px solid var(--svs-line);
	color: var(--svs-faint);
	font-size: 11.8px;
	text-align: center;
}

.svs-auth__form-wrap.is-hidden,
.svs-auth__form-wrap[hidden] {
	display: none;
}

.svs-auth__form-error {
	order: -1;
	margin-bottom: 2px;
}

.svs-auth__form-error[hidden] {
	display: none;
}

.svs-auth__form.is-submitting {
	opacity: .85;
	pointer-events: none;
}

/* Forbidden / empty state */
.svs-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 100%;
	padding: clamp(28px, 6vw, 64px) 22px;
	background: var(--svs-bg);
	text-align: center;
}

.svs-state__mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 6px;
	border-radius: 16px;
	background: var(--svs-accent);
	color: #fff;
}

.svs-state__title {
	font-size: clamp(21px, 2.4vw, 27px);
	font-weight: 660;
	letter-spacing: -.025em;
}

.svs-state__text {
	max-width: 48ch;
	color: var(--svs-muted);
	font-size: 14px;
}

.svs-state__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 10px !important;
}

/* ------------------------------------------------------------------------- */
/* Bottom navigation                                                         */
/* ------------------------------------------------------------------------- */

.svs-tabbar {
	display: none;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
	flex: none;
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid var(--svs-line);
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	z-index: 4;
}

.svs-tabbar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: var(--svs-tabbar-height);
	padding: 8px 4px;
	color: var(--svs-faint);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: color .16s ease;
	-webkit-tap-highlight-color: transparent;
}

.svs-tabbar__item svg {
	width: 22px;
	height: 22px;
}

.svs-tabbar__item.is-active {
	color: var(--svs-accent-ink);
}

.svs-tabbar__item.is-active::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 26px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--svs-accent);
	transform: translateX(-50%);
}

/* ------------------------------------------------------------------------- */
/* Responsive                                                                */
/* ------------------------------------------------------------------------- */

@media (min-width: 1600px) {
	.svs-main {
		padding-left: 48px;
		padding-right: 48px;
	}

	.svs-workspace {
		grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 1180px) {
	.svs-workspace,
	.svs-history-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1024px) {
	.svs-shell {
		grid-template-columns: 232px minmax(0, 1fr);
	}

	.svs-user__meta {
		display: none;
	}
}

@media (max-width: 900px) {
	:root {
		--svs-topbar-height: 62px;
	}

	.svs-app {
		--svs-topbar-height: 62px;
	}

	.svs-shell {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 30;
		width: 286px;
		max-width: calc(100vw - 56px);
		transform: translateX(-102%);
		transition: transform .24s cubic-bezier(.2, .7, .3, 1);
		box-shadow: 20px 0 60px -30px rgba(0, 0, 0, .8);
		padding-top: calc(20px + env(safe-area-inset-top));
	}

	body.admin-bar .svs-sidebar {
		top: 46px;
	}

	.svs-sidebar.is-open {
		transform: none;
	}

	.svs-sidebar__close {
		display: inline-flex;
	}

	.svs-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 25;
		background: rgba(18, 20, 26, .48);
		opacity: 0;
		transition: opacity .2s ease;
	}

	.svs-scrim.is-open {
		opacity: 1;
	}

	.svs-iconbtn--menu {
		display: inline-flex;
	}

	.svs-tabbar {
		display: grid;
	}

	.svs-main {
		padding-bottom: 22px;
	}

	.svs-app .svs-toast {
		bottom: calc(var(--svs-tabbar-height) + 16px + env(safe-area-inset-bottom));
	}

	.svs-auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-auth__brand {
		padding: 22px 22px 20px;
	}

	.svs-auth__brand-inner {
		gap: 10px;
		max-width: none;
	}

	.svs-auth__headline,
	.svs-auth__lead,
	.svs-auth__features {
		display: none;
	}

	.svs-auth__panel {
		padding: 22px 20px calc(30px + env(safe-area-inset-bottom));
		align-items: flex-start;
	}

	.svs-auth__mobile-brand {
		display: none;
	}
}

@media (max-width: 640px) {
	.svs-main {
		padding: 14px 14px 20px;
	}

	.svs-view {
		gap: 16px;
	}

	.svs-topbar {
		padding: 10px 14px;
		gap: 10px;
	}

	.svs-topbar__eyebrow {
		display: none;
	}

	.svs-user {
		padding: 4px;
	}

	.svs-iconbtn--logout {
		width: 38px;
		height: 38px;
	}

	.svs-hero {
		padding: 20px;
		border-radius: 18px;
	}

	.svs-hero__title {
		font-size: 24px;
	}

	.svs-channel-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-channel-card {
		min-height: 172px;
		padding: 20px;
	}

	.svs-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-panel {
		padding: 16px;
		border-radius: 14px;
	}

	.svs-generator__footer {
		align-items: stretch;
	}

	.svs-generator__footer .svs-button {
		width: 100%;
	}

	.svs-page-head {
		align-items: flex-start;
	}

	.svs-page-head__title {
		font-size: 24px;
	}

	.svs-account-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-profile {
		align-items: flex-start;
	}

	.svs-history__date {
		margin-left: 0;
	}

	.svs-app .svs-toast {
		bottom: calc(var(--svs-tabbar-height) + 12px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 400px) {
	.svs-main {
		padding: 12px 12px 16px;
	}

	.svs-user {
		display: none;
	}

	.svs-topbar__title {
		font-size: 17px;
	}

	.svs-hero__title {
		font-size: 22px;
	}

	.svs-hero__lead {
		font-size: 14px;
	}

	.svs-auth__panel {
		padding: 18px 16px calc(26px + env(safe-area-inset-bottom));
	}

	.svs-auth__title {
		font-size: 21px;
	}

	.svs-button {
		min-height: 48px;
	}

	.svs-chip {
		font-size: 12px;
	}
}

/* Landscape phones: keep the app usable with short viewports. */
@media (max-height: 520px) and (orientation: landscape) {
	.svs-hero {
		padding: 16px 18px;
	}

	.svs-placeholder {
		min-height: 180px;
	}

	.svs-auth__brand {
		display: none;
	}
}

/* ------------------------------------------------------------------------- */
/* Print                                                                     */
/* ------------------------------------------------------------------------- */

@media print {
	.svs-app {
		position: static;
		height: auto;
		overflow: visible;
		background: #fff;
	}

	.svs-sidebar,
	.svs-topbar,
	.svs-tabbar,
	.svs-toast {
		display: none !important;
	}

	.svs-main {
		overflow: visible;
		padding: 0;
	}
}
