﻿:root {
	--navy: #141836;
	--teal: #4ecfb8;
	--pink: #c96ebe;
	--purple: #7b52f4;
	--bg: #f5f8ff;
	--surface: #ffffff;
	--surface-soft: #f0f5ff;
	--primary: #2b5cff;
	--primary-soft: #e9f0ff;
	--text: #18213d;
	--muted: #6d7899;
	--success: #19b57a;
	--warning: #ffb546;
	--danger: #ff647f;
	--line: #dfe7fb;
	--shadow: 0 18px 40px rgba(23, 42, 88, 0.08);
	--radius: 16px;
}

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

html,
body {
	width: 100%;
	min-height: 100%;
	font-family: "Manrope", sans-serif;
	background: radial-gradient(circle at 10% 0%, #f8fbff 0%, #edf3ff 45%, #eef2ff 100%);
	color: var(--text);
}

.hidden {
	display: none !important;
}

/* Hide HubSpot chat widget by default - only show when authenticated */
#hs-chat-iframe,
[data-testid="hs-chat-widget"],
.hs-chat-iframe,
.hs-chat-widget,
[id*="hubspot"],
[class*="hubspot-chat"],
[class*="hs-chat"],
[class*="hc-"],
iframe[title*="HubSpot"],
iframe[title*="hubspot"] {
	display: none !important;
	visibility: hidden !important;
}

body.show-hubspot-chat #hs-chat-iframe,
body.show-hubspot-chat [data-testid="hs-chat-widget"],
body.show-hubspot-chat .hs-chat-iframe,
body.show-hubspot-chat .hs-chat-widget,
body.show-hubspot-chat [id*="hubspot"],
body.show-hubspot-chat [class*="hubspot-chat"],
body.show-hubspot-chat [class*="hs-chat"],
body.show-hubspot-chat [class*="hc-"],
body.show-hubspot-chat iframe[title*="HubSpot"],
body.show-hubspot-chat iframe[title*="hubspot"] {
	display: block !important;
	visibility: visible !important;
}

.auth-screen {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
}

.auth-card {
	width: min(460px, 100%);
	background:
		radial-gradient(130% 95% at 100% 0%, rgba(124,58,237,0.52) 0%, rgba(124,58,237,0.34) 20%, rgba(124,58,237,0.12) 45%, rgba(124,58,237,0.03) 65%, transparent 82%),
		radial-gradient(120% 90% at 0% 0%, rgba(14,165,233,0.5) 0%, rgba(14,165,233,0.3) 22%, rgba(14,165,233,0.11) 46%, rgba(14,165,233,0.02) 66%, transparent 84%),
		radial-gradient(95% 70% at 12% 0%, rgba(16,185,129,0.28) 0%, rgba(16,185,129,0.14) 28%, rgba(16,185,129,0.03) 56%, transparent 76%),
		linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
	border: none;
	box-shadow: var(--shadow);
	border-radius: 24px;
	padding: 32px;
	position: relative;
	overflow: hidden;
	animation: rise 0.7s ease;
}

.auth-card::before {
	content: "";
	position: absolute;
	top: -90px;
	right: -90px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(78, 207, 184, 0.35), rgba(43, 92, 255, 0));
	pointer-events: none;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.brand-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.brand-mark {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.brand-mark-fallback {
	display: none !important;
	visibility: hidden;
	height: 0;
	width: 0;
}

.brand-mark-fallback .t {
	display: none;
}

.brand-mark-fallback .d {
	display: none;
}

.brand-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.brand-wordmark {
	display: block;
	max-height: 20px;
	max-width: 150px;
	margin-bottom: 4px;
}

.brand h1 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.18rem;
	font-weight: 700;
}

.brand p {
	color: var(--muted);
	font-size: 0.86rem;
}

.auth-title {
	font-size: 1.6rem;
	font-weight: 700;
	font-family: "Plus Jakarta Sans", sans-serif;
	color: var(--navy);
	margin: 0;
	line-height: 1.2;
}

.beta-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #ffffff;
	background: #0ea5e9;
	border: 1px solid #0ea5e9;
	border-radius: 6px;
	padding: 4px 8px;
	margin-top: 4px;
}

.auth-subtitle {
	color: var(--muted);
	margin-bottom: 22px;
	line-height: 1.5;
	font-size: 0.95rem;
}

.input-group {
	margin-bottom: 14px;
}

.input-group label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.88rem;
	color: #425078;
	font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
	width: 100%;
	border: 1px solid #d8e2ff;
	background: #fff;
	border-radius: 12px;
	padding: 12px 13px;
	font: inherit;
	color: var(--text);
	transition: 0.25s ease;
}

.input-group textarea {
	resize: vertical;
	min-height: 92px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.13);
	outline: none;
}

.btn {
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:disabled {
	opacity: 0.56;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	color: #fff;
	width: 100%;
	background: linear-gradient(135deg, var(--primary), #547dff);
	box-shadow: 0 10px 24px rgba(43, 92, 255, 0.3);
	margin-top: 6px;
}

#loginBtn {
	margin-top: 14px !important;
}

.btn-soft {
	background: var(--primary-soft);
	color: var(--primary);
	font-weight: 700;
	padding: 9px 13px;
}

.btn-outline {
	border: 1px solid #d4ddff;
	background: #fff;
	color: #304a9c;
	padding: 9px 13px;
	font-weight: 700;
}

.auth-link-btn {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	margin-top: 10px;
}

.auth-note {
	margin-top: 10px;
	font-size: 0.82rem;
	color: #62739f;
	text-align: center;
}

.auth-error {
	color: #d43762;
	margin-top: 10px;
	font-size: 0.86rem;
	min-height: 18px;
}

.help-box {
	margin-top: 20px;
	padding: 14px 16px;
	background: rgba(14, 165, 233, 0.08);
	border: 1px solid rgba(14, 165, 233, 0.3);
	border-radius: 12px;
}

.help-title {
	font-weight: 700;
	color: #0ea5e9;
	margin: 0 0 8px 0;
	font-size: 0.9rem;
}

.help-text {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
	line-height: 1.4;
}

.help-text a {
	color: #0ea5e9;
	text-decoration: none;
	font-weight: 600;
}

.help-text a:hover {
	text-decoration: underline;
}

.app {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	min-height: 100vh;
}

.app.sidebar-hidden {
	grid-template-columns: 124px minmax(0, 1fr);
}

.app.sidebar-hidden .sidebar {
	display: block;
	padding: 14px 8px;
}

.app.sidebar-hidden .brand {
	justify-content: center;
}

.app.sidebar-hidden .brand > div:last-child,
.app.sidebar-hidden .sidebar-section-title,
.app.sidebar-hidden #userIntegrationSidebarList,
.app.sidebar-hidden #connectionPagesGroup {
	display: none;
}

.app.sidebar-hidden .nav-btn {
	justify-content: center;
	text-align: center;
	padding: 8px 6px;
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app.sidebar-hidden .nav-btn .pill,
.app.sidebar-hidden .nav-btn .badge {
	display: none;
}

.sidebar {
	background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
	border-right: 1px solid #dde6ff;
	padding: 20px 16px;
	position: sticky;
	top: 0;
	max-height: 100vh;
	overflow: auto;
}

.sidebar-section-title {
	margin: 16px 10px 8px;
	font-size: 0.75rem;
	color: #7a86a8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.nav-btn {
	width: 100%;
	border: none;
	text-align: left;
	background: transparent;
	border-radius: 12px;
	padding: 10px 12px;
	margin-bottom: 4px;
	font: inherit;
	color: #2d3a63;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	transition: 0.18s ease;
	text-decoration: none;
}

.nav-btn:hover {
	background: #eef3ff;
	color: #2749a3;
	transform: translateX(2px);
	text-decoration: none;
}

.nav-btn.active {
	background: linear-gradient(100deg, #ebf2ff, #f0f4ff);
	color: #2044a2;
	box-shadow: inset 0 0 0 1px #d4dfff;
	font-weight: 700;
}

.role-chip {
	font-size: 0.72rem;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ecf2ff;
	color: #3f5cad;
	font-weight: 700;
}

.main {
	padding: 24px;
	overflow: auto;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.topbar h2 {
	font-size: 1.45rem;
	font-family: "Plus Jakarta Sans", sans-serif;
	letter-spacing: -0.02em;
}

.topbar p {
	font-size: 0.92rem;
	color: var(--muted);
}

.topbar-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.status-pill {
	padding: 8px 12px;
	border-radius: 999px;
	background: #ecf8f5;
	color: #188665;
	font-weight: 700;
	font-size: 0.8rem;
}

.page {
	display: none;
	animation: fade 0.3s ease;
}

.page.active {
	display: block;
}

.grid {
	display: grid;
	gap: 14px;
}

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

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

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

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 16px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 45px rgba(25, 45, 90, 0.1);
}

.card h3 {
	font-size: 1rem;
	margin-bottom: 10px;
	font-family: "Plus Jakarta Sans", sans-serif;
}

.muted {
	color: var(--muted);
	font-size: 0.9rem;
}

.kpi-card {
	position: relative;
	overflow: hidden;
}

.kpi-card::after {
	content: "";
	position: absolute;
	inset: auto -30px -30px auto;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(43, 92, 255, 0.15), transparent 65%);
}

.kpi-label {
	color: #5b6d99;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.kpi-value {
	font-size: 1.55rem;
	font-weight: 800;
	margin-bottom: 6px;
}

.trend {
	font-size: 0.84rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.trend.up {
	color: var(--success);
}

.trend.down {
	color: var(--danger);
}

.chart-bars {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	align-items: end;
	min-height: 190px;
	margin-top: 16px;
}

.bar {
	border-radius: 10px 10px 6px 6px;
	background: linear-gradient(180deg, #5f86ff, #2b5cff);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
	transition: 0.25s ease;
	position: relative;
}

.bar:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
}

.bar-label {
	margin-top: 8px;
	text-align: center;
	font-size: 0.75rem;
	color: #6f7ca1;
	font-weight: 700;
}

.split {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.feed-item,
.ticket-item,
.email-item,
.review-item,
.connection-item {
	border: 1px solid #e2e9ff;
	background: #f9fbff;
	border-radius: 12px;
	padding: 12px;
	margin-top: 9px;
	transition: 0.2s ease;
}

.feed-item:hover,
.ticket-item:hover,
.email-item:hover,
.review-item:hover,
.connection-item:hover {
	border-color: #d2ddff;
	transform: translateX(2px);
}

.feed-item strong,
.ticket-item strong,
.email-item strong,
.review-item strong,
.connection-item strong {
	display: block;
	margin-bottom: 5px;
	font-size: 0.92rem;
}

.support-hs-wrap {
	max-width: 740px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.support-hs-header {
	text-align: center;
	padding: 8px 0 18px;
}

.support-hs-header h2 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 6px;
}

.support-hs-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 18px;
	align-items: start;
}

.support-hs-card {
	padding: 28px 32px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
	box-shadow: 0 20px 48px rgba(23, 42, 88, 0.09);
}

.support-hs-card:hover {
	transform: none;
	box-shadow: 0 20px 48px rgba(23, 42, 88, 0.09);
}

.support-hs-card-label {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 14px;
}

.support-chat-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.support-chat-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--success);
}

.support-chat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 3px rgba(25, 181, 122, 0.2);
	animation: pulse 2s ease infinite;
}

@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(25, 181, 122, 0.2); }
	50% { box-shadow: 0 0 0 6px rgba(25, 181, 122, 0.08); }
}

.support-chat-desc {
	font-size: 0.93rem;
	color: var(--muted);
	line-height: 1.6;
}

.support-chat-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
}

.support-chat-btn {
	width: 100%;
	justify-content: center;
	font-size: 0.95rem;
	padding: 13px;
}

.support-chat-hint {
	text-align: center;
	font-size: 0.8rem;
	margin-top: -6px;
}

.support-shell {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.support-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.support-metric {
	border: 1px solid #dbe5ff;
	background: linear-gradient(160deg, #fbfdff, #f2f7ff);
	border-radius: 12px;
	padding: 10px 11px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.support-metric:hover {
	transform: translateY(-2px);
	border-color: #c9d9ff;
	box-shadow: 0 10px 22px rgba(42, 79, 173, 0.1);
}

.support-metric-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #5f709d;
}

.support-metric-value {
	margin-top: 4px;
	font-size: 1.12rem;
	font-weight: 800;
	color: #1e3f9e;
}

.support-filter-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.support-filter-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filter-chip {
	border: 1px solid #d5e1ff;
	background: #f6f9ff;
	color: #3757af;
	border-radius: 999px;
	padding: 7px 11px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip:hover {
	transform: translateY(-1px);
	border-color: #bfd1ff;
	box-shadow: 0 6px 14px rgba(43, 92, 255, 0.14);
}

.filter-chip:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.2);
}

.filter-chip.active {
	background: #2b5cff;
	border-color: #2b5cff;
	color: #fff;
}

.support-ticket-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ticket-item {
	background: linear-gradient(165deg, #ffffff, #f7faff);
	border-color: #dbe6ff;
	margin-top: 0;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ticket-item:hover {
	transform: translateY(-2px);
	border-color: #cadbff;
	box-shadow: 0 12px 24px rgba(44, 84, 180, 0.1);
}

.ticket-item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.ticket-item-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 7px;
}

.ticket-tag {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 0.73rem;
	font-weight: 800;
	padding: 4px 8px;
	border: 1px solid transparent;
	transition: filter 0.2s ease;
}

.ticket-item:hover .ticket-tag,
.support-admin-item:hover .ticket-tag {
	filter: saturate(1.06);
}

.ticket-tag.type {
	background: #edf2ff;
	color: #3858b0;
	border-color: #d9e3ff;
}

.ticket-tag.priority-low {
	background: #ecfaf3;
	color: #17835d;
	border-color: #c7f0dd;
}

.ticket-tag.priority-medium {
	background: #fff7e9;
	color: #966109;
	border-color: #ffe3b3;
}

.ticket-tag.priority-high {
	background: #ffeef2;
	color: #ad2c58;
	border-color: #ffd1de;
}

.ticket-tag.status-open {
	background: #eef4ff;
	color: #3154ab;
	border-color: #d7e4ff;
}

.ticket-tag.status-awaiting {
	background: #fff6ea;
	color: #9f6400;
	border-color: #ffe2b0;
}

.ticket-tag.status-resolved {
	background: #e8f9f2;
	color: #127958;
	border-color: #c2f0dc;
}

.support-composer-note {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84rem;
	color: #5b6d9b;
	padding: 10px 12px;
	border: 1px solid #dce7ff;
	background: #f7faff;
	border-radius: 12px;
	margin-bottom: 12px;
	transition: border-color 0.22s ease, background 0.22s ease;
}

#support .card:hover .support-composer-note {
	border-color: #ccdcff;
	background: #f4f8ff;
}

.support-composer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.support-admin-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.support-admin-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.support-admin-item {
	border: 1px solid #dce6ff;
	background: linear-gradient(160deg, #ffffff, #f8fbff);
	border-radius: 12px;
	padding: 11px 12px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.support-admin-item:hover {
	transform: translateY(-2px);
	border-color: #cadbff;
	box-shadow: 0 11px 22px rgba(44, 84, 180, 0.1);
}

.support-admin-user {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #5a6e9d;
	margin-bottom: 5px;
}

#support .input-group input,
#support .input-group select,
#support .input-group textarea {
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#support .input-group input:hover,
#support .input-group select:hover,
#support .input-group textarea:hover {
	border-color: #c9d9ff;
}

#support .btn {
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#support .btn:hover {
	filter: brightness(1.01);
}

.glass {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.65), rgba(238, 246, 255, 0.5));
	backdrop-filter: blur(10px);
	border: 1px solid rgba(142, 170, 255, 0.32);
	box-shadow: 0 18px 34px rgba(73, 100, 166, 0.12);
}

.ai-score {
	font-size: 2rem;
	font-weight: 800;
	margin-top: 4px;
	color: #2145a3;
}

.badge {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 0.73rem;
	font-weight: 700;
	border: 1px solid transparent;
	margin-left: 6px;
}

.badge.good {
	background: #e8faf4;
	color: #0f9f74;
	border-color: #c6f3e2;
}

.badge.warn {
	background: #fff6e8;
	color: #ae6e00;
	border-color: #ffe0ab;
}

.badge.new {
	background: #ede9ff;
	color: #5f3bc8;
	border-color: #d5ccff;
}

.pill {
	font-size: 0.75rem;
	border-radius: 999px;
	padding: 4px 8px;
	font-weight: 700;
	background: #eaf1ff;
	color: #3557b7;
}

.infra-logos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
	margin-bottom: 12px;
}

.infra-logo {
	border-radius: 12px;
	padding: 10px;
	border: 1px solid #d8e3ff;
	background: linear-gradient(150deg, #f9fbff, #eef3ff);
	text-align: center;
}

.infra-logo span {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-weight: 800;
	color: #fff;
	font-size: 0.82rem;
	background: linear-gradient(130deg, #355efc, #7b52f4);
	margin-bottom: 7px;
}

.infra-logo small {
	display: block;
	font-weight: 700;
	font-size: 0.75rem;
	color: #5b6992;
}

.list-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 0.9rem;
	gap: 12px;
}

.user-list {
	max-height: 220px;
	overflow: auto;
	padding-right: 2px;
}

.user-list .feed-item {
	margin-top: 8px;
}

.user-manager-controls {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: end;
	margin-bottom: 10px;
}

.user-manager-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.user-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #dee7ff;
	border-radius: 12px;
	background: #f9fbff;
}

.user-row-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.user-role-select {
	min-width: 120px;
	height: 38px;
}

.user-row-actions input[type="text"] {
	min-width: 200px;
}

.user-manager-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.user-manager-shell {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: 14px;
}

.user-manager-card {
	border: 1px solid #d7e3ff;
	background: linear-gradient(165deg, #ffffff, #f6f9ff);
}

.user-manager-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.05rem;
	margin-bottom: 5px;
}

.user-manager-sub {
	font-size: 0.88rem;
	color: #6173a0;
	margin-bottom: 10px;
}

/* ── Legacy integration-item (used in provisioning list) ───────── */
.integration-item {
	padding: 10px 12px;
	border: 1px solid #dee7ff;
	border-radius: 10px;
	background: #f8fbff;
	margin-top: 8px;
}

.integration-item.warning {
	border-color: #ffd39a;
	background: #fff8ef;
}

.integration-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.88rem;
}

.integration-warning {
	color: #b56a00;
	font-size: 0.8rem;
	font-weight: 700;
}

/* ── Credential manager rows ─────────────────────────────────── */
.integration-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid #dee7ff;
	border-radius: 14px;
	background: #f9fbff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.integration-row:hover {
	border-color: #c5d6ff;
	box-shadow: 0 4px 18px rgba(43, 92, 255, 0.07);
}

.integration-row.warning {
	border-color: #ffd39a;
	background: #fff8ef;
}

.integration-row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.integration-row-title {
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 3px;
}

.integration-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

/* ── Credential input grid inside row ───────────────────────── */
.integration-cred-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.integration-cred-grid .input-group {
	margin-bottom: 0;
}

.integration-guide-card {
	margin-top: 10px;
	border: 1px solid #dce6ff;
	background: linear-gradient(165deg, #fbfdff, #f4f8ff);
	border-radius: 12px;
	padding: 12px;
}

.integration-guide-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.integration-guide-steps {
	margin: 8px 0 0 18px;
	display: grid;
	gap: 6px;
	color: #3e4f7a;
	font-size: 0.88rem;
}

.integration-guide-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.integration-guide-link {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d5e1ff;
	background: #f6f9ff;
	color: #2f4eaa;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 6px 10px;
}

.confirm-inline {
	width: 100%;
	border: 1px solid #f0d4a3;
	background: #fff8ee;
	border-radius: 12px;
	padding: 10px;
	display: none;
	margin-top: 8px;
}

.confirm-inline.active {
	display: block;
}

.confirm-inline-controls {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.empty-note {
	margin-top: 10px;
	padding: 12px;
	border: 1px dashed #d7e3ff;
	background: #fbfdff;
	border-radius: 10px;
	font-size: 0.88rem;
	color: #5b6d99;
}

.progress {
	width: 100%;
	height: 8px;
	border-radius: 99px;
	background: #edf2ff;
	margin-top: 8px;
	overflow: hidden;
}

.progress > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #4ecfb8, #2b5cff);
}

.chat-area {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 280px;
	overflow: auto;
	padding-right: 2px;
	margin-bottom: 12px;
}

.chat-msg {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
	animation: pop 0.25s ease;
}

.chat-msg.user {
	margin-left: auto;
	background: #eaf0ff;
	border: 1px solid #d3deff;
}

.chat-msg.ai {
	background: #f7fbff;
	border: 1px solid #dde8ff;
}

.owner-only {
	display: none;
}

.owner-enabled .owner-only {
	display: block;
	animation: fade 0.25s ease;
}

.toggle {
	width: 45px;
	height: 25px;
	border-radius: 999px;
	background: #ced9ff;
	border: none;
	position: relative;
	cursor: pointer;
	transition: 0.2s ease;
}

.toggle::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #fff;
	transition: 0.2s ease;
}

.toggle.on {
	background: #82a0ff;
}

.toggle.on::before {
	left: 23px;
}

.mobile-nav {
	display: none;
	position: fixed;
	bottom: 14px;
	left: 14px;
	right: 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #dae5ff;
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: 6px;
	z-index: 40;
	gap: 6px;
}

.mobile-nav button {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 6px;
	border-radius: 10px;
	font-size: 0.75rem;
	color: #495a87;
	font-weight: 700;
}

.mobile-nav button.active {
	background: #e9f0ff;
	color: #2247a6;
}

@keyframes fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pop {
	from { opacity: 0; transform: translateY(3px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
	.grid.kpi {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.user-manager-shell {
		grid-template-columns: 1fr;
	}

	.support-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.sidebar {
		display: none;
	}

	.main {
		padding: 16px 16px 84px;
	}

	.mobile-nav {
		display: flex;
	}

	#sidebarToggleBtn {
		display: none;
	}

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

	.user-row-actions {
		justify-content: flex-start;
	}
}

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

	.auth-card {
		padding: 24px;
	}

	.user-manager-controls {
		grid-template-columns: 1fr;
	}

	.user-manager-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.user-row-actions {
		width: 100%;
		gap: 6px;
	}

	.user-row-actions .btn,
	.user-row-actions .user-role-select,
	.user-row-actions input[type="text"] {
		width: 100%;
		min-width: 0;
	}

	.user-manager-title {
		font-size: 0.98rem;
	}

	.support-composer-grid,
	.support-metrics,
	.integration-cred-grid,
	.integration-guide-meta {
		grid-template-columns: 1fr;
	}

	.user-manager-sub,
	.muted {
		font-size: 0.84rem;
	}
}

