* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--navy: #0B1A2E;
	--navy-mid: #1A3352;
	--navy-light: #2D5282;
	--navy-border: #D4E4F2;
	--blue: #3B5BFE;
	--blue-dark: #2D4BE8;
	--blue-soft: rgba(59, 91, 254, 0.08);
	--teal: #00B89C;
	--white: #FFFFFF;
	--off-white: #F5F9FC;
	--section-alt: #F0F6FF;
	--muted: #4A6B8A;
	--muted-light: #7A9BB8;
	--amber: #F59E0B;
	--red: #E53E3E;
	--green: #16A34A;
	--pale-blue: #EBF4FF;
	--font-sans: 'DM Sans', system-ui, sans-serif;
	--font-serif: 'Cormorant Garamond', Georgia, serif;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 3px rgba(11, 26, 46, 0.06);
	--shadow-md: 0 4px 16px rgba(11, 26, 46, 0.08);
	--shadow-lg: 0 12px 40px rgba(11, 26, 46, 0.12);
	--transition: 0.2s ease;
}

body {
	font-family: var(--font-sans);
	background: var(--section-alt);
	color: var(--navy);
	font-size: 15px;
	line-height: 1.6;
}

.shell {
	width: min(1120px, 100% - 2rem);
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--navy-border);
}

.header-inner {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	text-decoration: none;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.04em;
	font-size: 1.05rem;
}

.main-nav {
	display: flex;
	gap: 1.6rem;
	align-items: center;
}

.main-nav a {
	text-decoration: none;
	color: var(--muted);
	font-weight: 500;
	font-size: 0.85rem;
	transition: color var(--transition);
}

.main-nav a:hover {
	color: var(--navy);
}

.main-nav a.is-active {
	color: var(--blue);
	font-weight: 600;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 1.5rem;
	align-items: center;
	padding: 3rem 0 2rem;
}

.eyebrow {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #2f5f8f;
	font-weight: 700;
}

.hero h1 {
	font-size: clamp(1.8rem, 2.8vw, 3rem);
	line-height: 1.15;
	margin: 0.35rem 0 0.8rem;
}

.hero p {
	color: #35587b;
}

.hero-actions {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.btn {
	border: 1.5px solid var(--navy-border);
	background: var(--white);
	color: var(--navy);
	border-radius: var(--radius-pill);
	padding: 0.55rem 1.2rem;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	justify-content: center;
	transition: all var(--transition);
	white-space: nowrap;
}

.btn:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.btn.primary {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
}

.btn.primary:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(59, 91, 254, 0.25);
}

.btn.ghost {
	background: transparent;
	color: var(--muted);
	border-color: transparent;
	padding-inline: 0.6rem;
}

.btn.ghost:hover {
	color: var(--blue);
}

.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.product-card {
	background: linear-gradient(165deg, #0d3c6d, #164f86);
	border-radius: 18px;
	min-height: 260px;
	padding: 0.75rem;
	display: grid;
	place-content: center;
	overflow: hidden;
}

.product-image {
	width: 100%;
	max-width: 520px;
	height: auto;
	display: block;
	border-radius: 12px;
}

.section {
	padding: 1rem 0 2rem;
}

.portal-section {
	padding-top: 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.card {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-lg);
	padding: 1rem;
	box-shadow: var(--shadow-sm);
}

.inner-card {
	background: var(--off-white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-md);
	padding: 1rem;
	margin-top: 1rem;
}

.grid.two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

label {
	display: block;
	font-weight: 600;
	color: var(--navy);
	font-size: 0.82rem;
}

input,
select {
	width: 100%;
	margin-top: 0.4rem;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.6rem 0.8rem;
	background: var(--white);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	color: var(--navy);
	outline: none;
	transition: border-color var(--transition);
}

input:focus,
select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-soft);
}

textarea {
	font-family: var(--font-sans);
	font-size: 0.88rem;
	color: var(--navy);
	outline: none;
	transition: border-color var(--transition);
}

textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-soft);
}

.token-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.6rem;
}

.spot-list {
	display: grid;
	gap: 0.5rem;
	margin: 0.4rem 0 0.8rem;
}

.spot-filter-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.spot-picker {
	position: relative;
	width: 100%;
}

.spot-picker-display {
	width: 100%;
	text-align: left;
	margin-top: 0.4rem;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.6rem 0.8rem;
	background: var(--white);
	font: inherit;
	color: var(--navy);
	cursor: pointer;
	transition: border-color var(--transition);
}

.spot-picker-display:hover {
	border-color: var(--blue);
}

.spot-picker-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--white);
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	margin-top: 4px;
	max-height: 320px;
	display: flex;
	flex-direction: column;
}

.spot-picker-dropdown.hidden {
	display: none;
}

.spot-picker-search {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--navy-border);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	padding: 0.6rem 0.8rem;
	font: inherit;
	outline: none;
	box-sizing: border-box;
}

.spot-picker-list {
	overflow-y: auto;
	max-height: 260px;
	padding: 0.3rem 0;
}

.spot-picker-group {
	padding: 0.4rem 0.7rem 0.2rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--muted-light);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.spot-picker-item {
	display: block;
	width: 100%;
	text-align: left;
	border: none;
	background: none;
	padding: 0.45rem 0.7rem 0.45rem 1.2rem;
	font: inherit;
	color: var(--navy);
	cursor: pointer;
}

.spot-picker-item:hover {
	background: var(--blue-soft);
}

.spot-picker-item.is-selected {
	background: var(--pale-blue);
	font-weight: 600;
}

.spot-picker-empty {
	padding: 1rem 0.7rem;
	color: var(--muted-light);
	text-align: center;
	font-style: italic;
}

.slide-card.is-active {
	outline: 2px solid var(--blue);
	outline-offset: 1px;
}

.virtual-frame-preview-mount {
	width: min(900px, 100%);
	margin: 0 auto;
}

@media (min-width: 768px) {
	.inner-card.editor-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
		align-items: start;
	}

	.inner-card.editor-layout .virtual-frame-preview-mount {
		width: 100%;
	}

	.inner-card.editor-layout .spot-list {
		gap: 0.3rem;
		margin: 0.2rem 0 0.4rem;
	}

	.inner-card.editor-layout .spot-filter-bar {
		gap: 0.35rem;
		margin-bottom: 0.35rem;
	}

	.inner-card.editor-layout .spot-filter-bar label {
		font-size: 0.75rem;
	}

	.inner-card.editor-layout .spot-filter-bar select {
		padding: 0.3rem 0.4rem;
		font-size: 0.8rem;
		margin-top: 0.2rem;
	}

	.inner-card.editor-layout .slide-card {
		padding: 0.5rem 0.6rem;
		margin-top: 0.3rem;
	}

	.inner-card.editor-layout .slide-card h4 {
		font-size: 0.85rem;
		margin: 0 0 0.25rem;
	}

	.inner-card.editor-layout .slide-card label {
		font-size: 0.75rem;
		margin-bottom: 0.15rem;
	}

	.inner-card.editor-layout .slide-card input,
	.inner-card.editor-layout .slide-card select {
		padding: 0.3rem 0.4rem;
		font-size: 0.8rem;
		margin-top: 0.15rem;
		border-radius: 6px;
	}

	.inner-card.editor-layout .slide-card .spot-picker-display {
		padding: 0.3rem 0.4rem;
		font-size: 0.8rem;
		margin-top: 0.15rem;
		border-radius: 6px;
	}

	.inner-card.editor-layout .slide-card .hero-actions {
		margin-top: 0.4rem;
		gap: 0.4rem;
	}

	.inner-card.editor-layout .slide-card .btn {
		padding: 0.25rem 0.6rem;
		font-size: 0.75rem;
		border-radius: 6px;
	}
}

.virtual-frame-preview {
	width: 100%;
}

.virtual-frame-preview__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1536 / 1024;
}

.virtual-frame-preview__frame {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
}

.virtual-frame-preview__screen {
	position: absolute;
	z-index: 2;
	overflow: hidden;
}

.virtual-frame-preview__screen-inner {
	width: 100%;
	height: 100%;
	background: transparent;
}

.virtual-frame-preview__screen-inner.is-empty::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
}

.virtual-frame-preview__slide {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.virtual-preview-controls {
	align-items: flex-end;
}

.virtual-preview-arrows {
	display: inline-flex;
	gap: 0.45rem;
}

.virtual-preview-arrows .btn {
	min-width: 44px;
	padding-inline: 0;
}

.virtual-preview-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
	color: #244f78;
}

.virtual-preview-toggle select {
	min-width: 140px;
	margin-top: 0;
}

.virtual-preview-toggle input[type="checkbox"] {
	width: auto;
	margin-top: 0;
}

.spot-row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.device-list {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.device-card {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition), border-color var(--transition);
}

.device-card:hover {
	box-shadow: var(--shadow-md);
}

/* --- New mockup-style device bar --- */

.p-device__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
}

.p-device__icon {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-md);
	background: var(--pale-blue);
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.p-device__info {
	flex: 1;
	min-width: 0;
}

.p-device__name-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.p-device__name {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.3;
}

.p-device__meta {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.78rem;
	color: var(--muted-light);
	margin-top: 0.15rem;
	flex-wrap: wrap;
}

.p-device__meta-dot::before {
	content: '\00B7';
	margin-right: 0.7rem;
}

.p-device__status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--muted-light);
	white-space: nowrap;
	margin-left: auto;
	flex-shrink: 0;
}

.p-device__battery-est {
	font-size: 0.72rem;
	color: var(--muted-light);
}

/* Status pills */

.p-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-pill);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
}

.p-pill--green  { background: #ECFDF5; color: #15803D; }
.p-pill--amber  { background: #FFFBEB; color: #B45309; }
.p-pill--red    { background: #FEF2F2; color: #DC2626; }
.p-pill--blue   { background: var(--blue-soft); color: var(--blue); }
.p-pill--gray   { background: var(--off-white); color: var(--muted); }

.p-pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	display: inline-block;
}

.p-pill--green .p-pill__dot { background: #16A34A; }
.p-pill--amber .p-pill__dot { background: #F59E0B; }
.p-pill--red .p-pill__dot   { background: #DC2626; }
.p-pill--gray .p-pill__dot  { background: var(--muted-light); }

/* Toggle buttons (gear + trash) */

.p-device__toggle {
	background: none;
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.3rem 0.5rem;
	cursor: pointer;
	color: var(--muted);
	font-size: 0.85rem;
	transition: all var(--transition);
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.p-device__toggle:hover,
.p-device__toggle.is-open {
	color: var(--blue);
	border-color: var(--blue);
	background: var(--blue-soft);
}

.p-device__toggle--delete:hover {
	color: var(--red);
	border-color: var(--red);
	background: #FEF2F2;
}

/* ── Help Button ──────────────────────────────────────── */

.portal-help-btn {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--navy);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.35rem 0.6rem;
	border-radius: var(--radius-sm);
	transition: color var(--transition), background var(--transition);
}
.portal-help-btn:hover {
	color: var(--blue);
	background: var(--off-white);
}

/* ── Avatar Dropdown ─────────────────────────────────── */

.p-avatar-wrap {
	position: relative;
}

.p-avatar-dropdown {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	min-width: 170px;
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 0.3rem 0;
	z-index: 200;
}

.p-avatar-dropdown__item {
	display: block;
	width: 100%;
	padding: 0.5rem 0.9rem;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	color: var(--navy);
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background var(--transition);
}

.p-avatar-dropdown__item:hover {
	background: var(--off-white);
	color: var(--blue);
}

.p-avatar-dropdown__item--danger {
	color: var(--red);
}
.p-avatar-dropdown__item--danger:hover {
	background: #fef2f2;
	color: var(--red);
}

/* ── Account Settings Modal ──────────────────────────── */

.modal-content.account-modal {
	max-width: 1200px;
	width: 92vw;
	padding: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
}

.account-modal .modal-close-btn {
	top: 1rem;
	right: 1rem;
	z-index: 2;
}

/* Header */
.account-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 1.75rem 1.25rem;
	background: linear-gradient(135deg, var(--off-white) 0%, #e8eff8 100%);
	border-bottom: 1px solid var(--navy-border);
}

.account-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1.15rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.account-avatar svg {
	width: 26px;
	height: 26px;
	stroke: var(--white);
}

/* Avatar Picker (clickable wrapper) */
.account-avatar-picker {
	position: relative;
	cursor: pointer;
}

.account-avatar-edit {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--white);
	transition: background var(--transition);
}

.account-avatar-picker:hover .account-avatar-edit {
	background: var(--blue);
}

/* Avatar Picker Panel */
.avatar-picker-panel {
	padding: 0.75rem 1.75rem 1rem;
	border-bottom: 1px solid var(--navy-border);
	background: var(--off-white);
}

.avatar-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.avatar-picker-title {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--navy);
}

.avatar-picker-close {
	background: none;
	border: none;
	font-size: 1.15rem;
	color: var(--muted);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.avatar-picker-close:hover {
	color: var(--navy);
}

.avatar-picker-section {
	margin-bottom: 0.5rem;
}

.avatar-picker-label {
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: block;
	margin-bottom: 0.35rem;
}

.avatar-picker-grid {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.avatar-pick {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--white);
	border: 2px solid var(--navy-border);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--transition), background var(--transition), transform var(--transition);
	padding: 0;
}

.avatar-pick svg {
	width: 22px;
	height: 22px;
	stroke: var(--navy);
}

.avatar-pick:hover {
	border-color: var(--blue);
	transform: scale(1.08);
}

.avatar-pick.is-selected {
	border-color: var(--blue);
	background: var(--blue);
}

.avatar-pick.is-selected svg {
	stroke: var(--white);
}

.avatar-pick-initials {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.75rem;
	color: var(--navy);
	letter-spacing: 0.02em;
}

.avatar-pick.is-selected .avatar-pick-initials {
	color: var(--white);
}

.account-header-info {
	min-width: 0;
}

.account-title {
	font-family: var(--font-sans);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
}

.account-subtitle {
	font-family: var(--font-sans);
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0.15rem 0 0;
}

/* Form body */
.account-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0 2rem 1.5rem;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

/* Sections */
.account-section {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--navy-border);
}

.account-section:last-of-type {
	border-bottom: none;
}

/* Two-column grid for Profile + Preferences/Security */
.account-sections-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 3rem;
	padding-top: 0.5rem;
}

.account-sections-grid .account-section {
	border-bottom: none;
	padding-bottom: 0;
}

.account-section-right {
	display: flex;
	flex-direction: column;
}

.account-section-right .account-section {
	border-bottom: none;
	padding-bottom: 0;
}

.account-section-right .account-section:first-child {
	border-bottom: 1px solid var(--navy-border);
	padding-bottom: 0.5rem;
	margin-bottom: 0.25rem;
}

.account-section-right .account-section:last-child {
	border-bottom: none;
}

.account-section-heading {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 0.15rem;
}

.account-section-heading svg {
	color: var(--muted-light);
}

/* Field rows */
.account-field-row {
	display: flex;
	gap: 0.75rem;
}

.account-field-row .account-field {
	flex: 1;
}

.account-field label {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 0.25rem;
}

.account-field input,
.account-field select {
	width: 100%;
	padding: 0.55rem 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.88rem;
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--navy);
	transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
	min-width: 0;
	box-sizing: border-box;
}

.account-field input:disabled,
.account-field select:disabled {
	background: var(--off-white);
	color: var(--muted);
	cursor: default;
	border-color: transparent;
}

.account-field input:focus,
.account-field select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(59, 91, 254, 0.1);
}

.account-field-input {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.account-field-input input,
.account-field-input select {
	flex: 1;
	min-width: 0;
}

.account-field-edit {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--navy-border);
	background: var(--white);
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color var(--transition), border-color var(--transition), background var(--transition);
	padding: 0;
}

.account-field-edit:hover {
	color: var(--blue);
	border-color: var(--blue);
	background: rgba(59, 91, 254, 0.05);
}

.account-field-edit.is-editing {
	color: var(--white);
	background: var(--blue);
	border-color: var(--blue);
}

.account-field select {
	appearance: auto;
}

.account-hint {
	font-family: var(--font-sans);
	font-size: 0.74rem;
	color: var(--muted-light);
	margin: -0.1rem 0 0;
}

/* Actions */
.account-actions {
	display: flex;
	gap: 0.6rem;
	padding-top: 0.5rem;
}

/* Danger zone */
.account-danger-zone {
	margin-top: 0.75rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--navy-border);
}

.account-danger-zone-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #f5c6c6;
	border-radius: var(--radius-sm);
	background: #fef7f7;
}

.account-danger-info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.account-danger-label {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--red);
}

.account-danger-desc {
	font-family: var(--font-sans);
	font-size: 0.72rem;
	color: var(--muted);
	line-height: 1.4;
}

.account-danger-btn {
	flex-shrink: 0;
	font-size: 0.78rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--red);
	color: var(--red);
	background: transparent;
	border-radius: var(--radius-sm);
	font-weight: 600;
	transition: background var(--transition), color var(--transition);
}

.account-danger-btn:hover {
	background: var(--red);
	color: var(--white);
}

/* Inline delete confirmation */
.account-delete-confirm {
	margin-top: 0.75rem;
	padding: 1rem;
	border: 1px solid #f5c6c6;
	border-radius: var(--radius-sm);
	background: #fef7f7;
}

.account-delete-warn {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	color: var(--navy);
	line-height: 1.5;
	margin: 0 0 0.75rem;
}

.account-delete-actions {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.75rem;
}

.btn.danger {
	background: var(--red);
	color: var(--white);
	border: none;
}
.btn.danger:hover {
	opacity: 0.9;
}
.btn.danger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --- Collapsed summary bar --- */

.device-summary-bar {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	padding: 1rem 1.25rem;
}

.device-refresh-label {
	font-size: 0.8rem;
	white-space: nowrap;
}

.device-gear-btn {
	background: none;
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	color: var(--muted);
	padding: 0.3rem 0.5rem;
	line-height: 0;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.device-gear-btn:hover,
.device-gear-btn.active {
	color: var(--blue);
	background: var(--blue-soft);
	border-color: var(--blue);
}

.device-details {
	margin-top: 0;
	border-top: 1px solid var(--navy-border);
	padding: 1.25rem;
	background: var(--off-white);
}

.device-details-top-row {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* --- Portal top actions --- */

.portal-top-actions {
	margin-bottom: 0.8rem;
}

/* --- Add Device button --- */

.add-device-btn {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.8rem;
	width: 100%;
	justify-content: center;
	border: 2px dashed var(--navy-border);
	background: transparent;
	color: var(--muted-light);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition);
}

.add-device-btn:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.add-device-icon {
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
}

.device-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.6rem;
}

.device-header h4 {
	margin: 0;
}

.device-header-left {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.device-name-input {
	font-size: 1rem;
	font-weight: 700;
	border: 1.5px solid var(--blue);
	border-radius: var(--radius-sm);
	padding: 0.2rem 0.4rem;
	outline: none;
	width: 220px;
	color: var(--navy);
}

.device-name-edit-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: var(--muted);
	padding: 0;
	line-height: 1;
	transition: color var(--transition);
}

.device-name-edit-btn:hover {
	color: var(--blue);
}

.device-name-save-btn {
	background: var(--blue);
	color: var(--white);
	border: none;
	border-radius: var(--radius-sm);
	padding: 2px 10px;
	font-size: 0.82rem;
	cursor: pointer;
	margin-left: 6px;
	line-height: 1.4;
	transition: background var(--transition);
}

.device-name-save-btn:hover {
	background: var(--blue-dark);
}

.device-name-save-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.device-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--navy-border);
}

/* --- Battery Saver --- */
.battery-saver {
	margin-top: 0.8rem;
	padding: 1rem 1.1rem;
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-md);
}

.battery-saver > label:first-child {
	display: block;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.battery-slider-wrap {
	padding: 0;
}

.battery-track-wrap {
	position: relative;
	margin-left: 120px;
}

.battery-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: var(--navy-border);
	outline: none;
	margin: 0.4rem 0 0;
}

.battery-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--blue);
	cursor: pointer;
	border: 2px solid var(--white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.battery-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--blue);
	cursor: pointer;
	border: 2px solid var(--white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.battery-dots {
	position: absolute;
	top: 0.4rem;
	left: 10px;
	right: 10px;
	height: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
	z-index: 3;
}

.battery-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #a3b8cc;
}

.battery-ticks {
	display: flex;
	align-items: center;
	margin-top: 0.3rem;
}

.battery-row-title {
	width: 120px;
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--navy);
}

.battery-tick-items {
	display: flex;
	flex: 1;
	justify-content: space-between;
	padding: 0 10px;
}

.battery-tick {
	width: 0;
	overflow: visible;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.battery-tick-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--navy);
}

.battery-tick-life {
	font-size: 0.75rem;
	color: var(--muted);
}

.battery-info {
	font-size: 0.8rem;
	margin: 0.6rem 0 0.5rem;
	line-height: 1.4;
}

.btn-danger {
	background: var(--white);
	color: var(--red);
	border: 1.5px solid var(--red);
}

.btn-danger:hover {
	background: var(--red);
	color: var(--white);
}

.btn-danger:disabled {
	background: #ccc;
	color: #888;
}

.btn-xs {
	padding: 0.2rem 0.6rem;
	font-size: 0.7rem;
	border-radius: 4px;
}

.battery-save-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.battery-save-btn {
	padding: 0.35rem 1.2rem;
	font-size: 0.82rem;
	border-radius: 6px;
	min-width: 70px;
}

.battery-email-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
}

.toggle-switch-input {
	display: none;
}

.toggle-switch-track {
	position: relative;
	width: 38px;
	height: 22px;
	background: #C4CDD6;
	border-radius: 11px;
	transition: background var(--transition);
	flex-shrink: 0;
}

.toggle-switch-track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}

.toggle-switch-input:checked + .toggle-switch-track {
	background: var(--blue);
}

.toggle-switch-input:checked + .toggle-switch-track::after {
	transform: translateX(18px);
}

/* --- Sleep Schedule --- */

.sleep-schedule {
	margin-top: 1rem;
}

.sleep-schedule > label:first-child {
	font-size: 0.85rem;
	font-weight: 600;
	display: block;
	margin-bottom: 0.5rem;
}

.sleep-time-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
}

.sleep-time-input {
	padding: 0.3rem 0.5rem;
	border: 1px solid #c4cdd6;
	border-radius: 6px;
	font-size: 0.85rem;
	background: #fff;
}

/* --- Firmware Badge --- */

.fw-badge {
	font-size: 0.72rem;
	font-weight: 600;
	background: var(--pale-blue);
	color: var(--blue);
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-pill);
	white-space: nowrap;
}

/* --- Battery Status Badge --- */

.battery-status-badge {
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-pill);
	background: var(--off-white);
}

.twin-frame {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-md);
	padding: 0.8rem;
	margin-top: 0.8rem;
	min-height: 220px;
	display: grid;
	place-items: center;
}

.twin-image {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.muted {
	color: var(--muted);
}

.hidden {
	display: none;
}

.error {
	width: min(1120px, 100% - 2rem);
	margin: 0 auto 1.4rem;
	background: #360808;
	color: #ffd8d8;
	border-radius: var(--radius-md);
	padding: 0.8rem;
	border: 1px solid #6d1c1c;
	white-space: pre-wrap;
}

.site-footer {
	border-top: 1px solid var(--navy-border);
	background: var(--white);
	margin-top: 3rem;
}

.footer-inner {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	flex-wrap: wrap;
	padding: 1.5rem 0;
}

.footer-brand {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--navy);
}

.footer-copy {
	font-size: 0.75rem;
	color: var(--muted-light);
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.site-footer a {
	text-decoration: none;
	color: var(--muted-light);
	font-size: 0.8rem;
	font-weight: 500;
	transition: color var(--transition);
}

.site-footer a:hover {
	color: var(--blue);
}

/* Signup checkboxes */
.signup-checkboxes {
	margin-top: 0.8rem;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	width: auto;
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.checkbox-label a {
	color: var(--blue);
	text-decoration: underline;
}

.field-error {
	color: var(--red);
	font-size: 0.82rem;
	margin-top: 0.3rem;
	font-weight: 600;
}

/* Portal empty state */
.empty-state {
	text-align: center;
	padding: 4rem 1.5rem;
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.empty-state-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.empty-state h3 {
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.4rem;
}

.empty-state p {
	color: var(--muted);
	max-width: 400px;
	margin: 0 auto 1.5rem;
	font-size: 0.92rem;
}

/* Registration modal */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 26, 46, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-overlay.hidden {
	display: none;
}

.modal-content {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 2rem;
	max-width: 460px;
	width: 90%;
	box-shadow: var(--shadow-lg);
	position: relative;
}

.modal-close-btn {
	position: absolute;
	top: 0.75rem;
	right: 0.85rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--muted-light);
	cursor: pointer;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	transition: all var(--transition);
}

.modal-close-btn:hover {
	color: var(--navy);
	background: var(--off-white);
}

.modal-content h3 {
	font-family: var(--font-serif);
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

/* Address form */
.address-form label {
	margin-bottom: 0.5rem;
}

/* Forecast locked badge */
.locked-badge {
	background: var(--pale-blue);
	color: var(--navy);
	padding: 1rem;
	border-radius: var(--radius-md);
	text-align: center;
	margin-top: 1rem;
}

.locked-badge a {
	color: var(--blue);
	font-weight: 700;
}

@media (max-width: 920px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.main-nav {
		display: none;
	}

	.grid.two {
		grid-template-columns: 1fr;
	}

	.token-row {
		grid-template-columns: 1fr;
	}

	.device-actions {
		flex-direction: column;
	}

	.spot-filter-bar {
		grid-template-columns: 1fr;
	}

	.spot-picker-dropdown {
		max-height: 240px;
	}

	.account-modal {
		width: 95vw;
	}

	.account-sections-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.account-section-right .account-section:first-child {
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: 0;
	}

	.account-danger-zone-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── Virtual device & onboarding progress ──────────────── */
.virtual-device-card {
	border-left: 4px solid var(--blue);
}

.onboarding-progress {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-md);
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}

.onboarding-progress-steps {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.onboarding-progress-steps li {
	font-size: 0.95rem;
	padding: 0.25rem 0;
}

.step-done {
	color: var(--green);
}

.step-pending {
	color: var(--muted-light);
}
/* --- Support help button overrides removed, see Help Button section above --- */

.portal-help-btn.hidden {
	display: none;
}

.support-modal .support-field {
	margin-bottom: 0.8rem;
}

.support-modal label {
	display: block;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 0.3rem;
	font-size: 0.82rem;
}

.support-modal select,
.support-modal textarea {
	width: 100%;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.6rem 0.8rem;
	background: var(--white);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	color: var(--navy);
	box-sizing: border-box;
	resize: vertical;
	outline: none;
	transition: border-color var(--transition);
}

.support-modal select:focus,
.support-modal textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-soft);
}

.support-modal textarea {
	min-height: 90px;
}

.support-field.hidden {
	display: none;
}

.field-success {
	color: var(--green);
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

/* ── Portal Page Specific ─────────────────────────────── */

.portal-page-header {
	padding: 2rem 0 0.5rem;
}

.portal-greeting {
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy);
	margin-bottom: 0.25rem;
}

.portal-greeting em {
	color: var(--blue);
	font-style: italic;
}

.portal-subtitle {
	color: var(--muted);
	font-size: 0.92rem;
}

.portal-top-actions {
	display: flex;
	gap: 0.65rem;
	margin-top: 1.2rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.portal-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.portal-avatar svg {
	width: 18px;
	height: 18px;
	stroke: var(--white);
}

.portal-app {
	margin-top: 0.5rem;
}

/* Device name display with serif */
.device-name-display {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.3;
	margin: 0;
}

/* Device refresh label in muted style */
.device-refresh-label {
	font-size: 0.78rem;
	white-space: nowrap;
	color: var(--muted-light);
}

/* Slide card styling within editor */
.slide-card {
	background: var(--off-white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.6rem 0.75rem;
	margin-top: 0.3rem;
	transition: border-color var(--transition);
}

.slide-card:hover {
	border-color: var(--blue);
}

.slide-card.is-active {
	border-color: var(--blue);
	box-shadow: 0 0 0 1px var(--blue);
	outline: none;
}

.slide-card h4 {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
	margin: 0 0 0.4rem;
}

/* Virtual preview controls styling */
.virtual-preview-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 500;
	color: var(--navy);
	font-size: 0.85rem;
}

/* Detail sections inside device */
.device-details-top-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

/* Editor layout grid */
@media (min-width: 768px) {
	.inner-card.editor-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
		align-items: start;
		background: var(--white);
		border: 1px solid var(--navy-border);
		border-radius: var(--radius-md);
		padding: 1rem 1.1rem;
	}
}

/* Onboarding progress styling */
.onboarding-progress h3 {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

/* Battery saver title */
.battery-saver > label:first-child {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--blue);
	display: block;
	margin-bottom: 0.75rem;
}

/* Battery info paragraph */
.battery-info {
	font-size: 0.8rem;
	margin: 0.6rem 0 0.5rem;
	line-height: 1.4;
	color: var(--muted);
}

/* Portal responsive */
@media (max-width: 768px) {
	.portal-greeting {
		font-size: 1.4rem;
	}
	.portal-top-actions {
		flex-direction: column;
	}
	.nav-right {
		gap: 0.5rem;
	}
}

/* ── Slide Row (compact draggable list) ───────────────── */

.p-slide-row {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem 0.75rem;
	background: var(--off-white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition);
	cursor: pointer;
	margin-bottom: 0.4rem;
}

.p-slide-row:hover {
	border-color: var(--blue);
}

.p-slide-row.is-active {
	border-color: var(--blue);
	box-shadow: 0 0 0 1px var(--blue);
}

.p-slide-row__drag {
	color: var(--muted-light);
	font-size: 1rem;
	cursor: grab;
	flex-shrink: 0;
	user-select: none;
}

.p-slide-row__icon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--pale-blue);
	display: grid;
	place-items: center;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.p-slide-row__info {
	flex: 1;
	min-width: 0;
}

.p-slide-row__spot {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.p-slide-row__mode {
	font-size: 0.72rem;
	color: var(--muted-light);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}

.p-slide-row__actions {
	display: flex;
	gap: 0.3rem;
	flex-shrink: 0;
}

.p-slide-row__btn {
	background: none;
	border: none;
	color: var(--muted-light);
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0.2rem 0.35rem;
	border-radius: 4px;
	transition: all var(--transition);
	line-height: 1;
}

.p-slide-row__btn:hover {
	color: var(--blue);
	background: var(--blue-soft);
}

.p-slide-row__btn--delete:hover {
	color: var(--red);
	background: #FEF2F2;
}

.p-slide-row__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Expanded edit panel */

.p-slide-row__expand {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	padding: 0.8rem 0.85rem;
	margin-bottom: 0.4rem;
	margin-top: -0.2rem;
}

.p-slide-row__field {
	margin-bottom: 0.6rem;
}

.p-slide-row__field-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--blue);
	margin-bottom: 0.3rem;
}

.p-slide-row__select {
	width: 100%;
	padding: 0.5rem 0.7rem;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	color: var(--navy);
	background: var(--white);
	outline: none;
	transition: border-color var(--transition);
}

.p-slide-row__select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-soft);
}

.p-slide-row__move-row {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.4rem;
}

.p-btn--sm {
	padding: 0.35rem 0.85rem;
	font-size: 0.75rem;
}

/* Add slide button */

.p-slide-row__add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem;
	border: 2px dashed var(--navy-border);
	border-radius: var(--radius-sm);
	color: var(--muted-light);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	background: transparent;
	transition: all var(--transition);
	width: 100%;
	margin-top: 0.2rem;
}

.p-slide-row__add:hover {
	border-color: var(--blue);
	color: var(--blue);
}

/* ── CSS-only Preview Frame ───────────────────────────── */

.p-preview-section {
	background: var(--white);
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-md);
	padding: 1rem 1.1rem;
}

.p-preview-frame {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	aspect-ratio: 1536 / 1024;
	background: #EDE8DE;
	border-radius: 8px;
	border: 10px solid #444;
	box-shadow: var(--shadow-md),
		inset 0 0 0 1px rgba(255,255,255,0.08);
	overflow: hidden;
	display: grid;
	place-items: center;
}

.p-preview-screen {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	font-size: 0.78rem;
	color: var(--muted);
	font-style: italic;
	background: #EDE8DE;
	overflow: hidden;
}

.p-preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.p-preview-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.p-preview-dots {
	display: flex;
	gap: 0.35rem;
	align-items: center;
}

.p-preview-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--navy-border);
	cursor: pointer;
	transition: background var(--transition);
}

.p-preview-dot.is-active {
	background: var(--blue);
}

.p-preview-meta {
	text-align: center;
	font-size: 0.82rem;
	margin-top: 0.5rem;
}

.p-detail-section__title {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--blue);
	margin-bottom: 0.75rem;
}

/* ── Support Modal Enhancements ───────────────────────── */

.support-search-wrap--full {
	position: relative;
	margin-bottom: 0.75rem;
}

.support-search-icon {
	position: absolute;
	left: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted-light);
	pointer-events: none;
}

.support-search-input {
	width: 100%;
	padding: 0.55rem 0.7rem 0.55rem 2.1rem;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: var(--navy);
	outline: none;
	transition: border-color var(--transition);
}

.support-search-input:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-soft);
}

.support-options {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 0.2rem;
}

.support-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.65rem 0.75rem;
	background: none;
	border: none;
	border-bottom: 1px solid var(--navy-border);
	color: var(--navy);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
	text-align: left;
}

.support-option:last-child {
	border-bottom: none;
}

.support-option:hover {
	color: var(--blue);
	background: var(--blue-soft);
}

.support-option.is-active {
	color: var(--blue);
	font-weight: 600;
}

.support-option svg {
	flex-shrink: 0;
	color: var(--muted-light);
	transition: color var(--transition);
}

.support-option:hover svg,
.support-option.is-active svg {
	color: var(--blue);
}

.support-search-results {
	margin-bottom: 0.6rem;
	max-height: 200px;
	overflow-y: auto;
}

.support-search-result {
	display: block;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	margin-bottom: 0.35rem;
	color: var(--navy);
	text-decoration: none;
	font-size: 0.82rem;
	transition: all var(--transition);
	cursor: pointer;
	background: var(--white);
}

.support-search-result:hover {
	border-color: var(--blue);
	background: var(--blue-soft);
	color: var(--blue);
}

.support-search-empty {
	font-size: 0.8rem;
	color: var(--muted-light);
	font-style: italic;
	padding: 0.4rem 0;
}

.support-divider {
	border: none;
	border-top: 1px solid var(--navy-border);
	margin: 0.8rem 0 0.4rem;
}

.support-or-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

/* Chat panel */

.support-chat-panel {
	border: 1px solid var(--navy-border);
	border-radius: var(--radius-sm);
	margin-bottom: 0.8rem;
	overflow: hidden;
}

.support-chat-messages {
	max-height: 200px;
	overflow-y: auto;
	padding: 0.7rem;
	background: var(--off-white);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.support-chat-bubble {
	padding: 0.45rem 0.7rem;
	border-radius: 12px;
	font-size: 0.82rem;
	max-width: 80%;
	line-height: 1.4;
}

.support-chat-bubble--bot {
	background: var(--white);
	border: 1px solid var(--navy-border);
	color: var(--navy);
	align-self: flex-start;
}

.support-chat-bubble--user {
	background: var(--blue);
	color: var(--white);
	align-self: flex-end;
}

.support-chat-input-row {
	display: flex;
	gap: 0.4rem;
	padding: 0.5rem;
	border-top: 1px solid var(--navy-border);
	background: var(--white);
}

.support-chat-input {
	flex: 1;
	padding: 0.45rem 0.65rem;
	border: 1.5px solid var(--navy-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	outline: none;
}

.support-chat-input:focus {
	border-color: var(--blue);
}

.support-chat-send {
	padding: 0.4rem 0.8rem;
	font-size: 0.78rem;
}