:root {
	--sidebar-width: 264px;
	--topbar-height: 56px;
	--process-height: 44px;
	--primary: #0f9f75;
	--primary-strong: #087e5d;
	--danger: #f56c6c;
	--warning: #e6a23c;
	--success: #21a67a;
	--sidebar: #101c2e;
	--sidebar-muted: #1b2a40;
	--page: #f2f6f5;
	--line: #e2e9e7;
	--text: #14231f;
	--muted: #667670;
	--soft: #f6f9f8;
	--white: #ffffff;
	--shadow: 0 14px 34px rgb(16 35 46 / 8%);
	font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body,
#app {
	width: 100%;
	height: 100%;
	margin: 0;
}

body {
	color: var(--text);
	background: var(--page);
	font-size: 14px;
	letter-spacing: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: 0;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.boot-screen,
.auth-state {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	color: var(--muted);
	background: var(--white);
}

.boot-spinner,
.auth-state__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #d8dee8;
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.75s linear infinite;
}

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

.login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 24px;
	background:
		linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(244 246 250 / 96%)),
		radial-gradient(circle at 30% 20%, rgb(47 115 217 / 14%), transparent 34%);
}

.login-card {
	width: min(420px, 100%);
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	box-shadow: var(--shadow);
}

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

.login-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	color: #fff;
	background: linear-gradient(135deg, #21a67a, var(--primary));
	font-weight: 700;
}

.login-brand strong,
.login-brand small {
	display: block;
}

.login-brand strong {
	font-size: 18px;
	line-height: 24px;
}

.login-brand small {
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}

.login-card h1 {
	margin: 0 0 20px;
	font-size: 22px;
	line-height: 30px;
}

.form-field {
	margin-bottom: 14px;
}

.form-field label {
	display: block;
	margin-bottom: 6px;
	color: #4b5563;
	font-size: 13px;
	line-height: 20px;
}

.text-input,
.text-select,
.text-area {
	width: 100%;
	min-width: 0;
	border: 1px solid #d9dee8;
	border-radius: 6px;
	background: var(--white);
	color: var(--text);
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input,
.text-select {
	height: 34px;
	padding: 0 11px;
}

.text-area {
	min-height: 88px;
	padding: 8px 11px;
	resize: vertical;
}

.text-input:focus,
.text-select:focus,
.text-area:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgb(47 115 217 / 12%);
}

.login-submit {
	width: 100%;
	margin-top: 8px;
}

.app-layout {
	display: grid;
	grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: var(--page);
}

.app-layout.is-full {
	grid-template-columns: 0 minmax(0, 1fr);
}

.app-layout.is-full .app-slider {
	transform: translateX(-100%);
}

.app-layout__mask {
	display: none;
}

.app-slider {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: var(--sidebar-width);
	min-width: var(--sidebar-width);
	height: 100%;
	background: var(--sidebar);
	color: #d8e0ee;
	transition: transform 0.2s ease;
}

.app-slider__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 62px;
	padding: 0 20px;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	white-space: nowrap;
}

.app-slider__logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #20c787;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.app-slider__search {
	padding: 4px 10px 14px;
}

.sidebar-search {
	position: relative;
}

.sidebar-search input {
	width: 100%;
	height: 36px;
	padding: 0 12px 0 34px;
	border: 0;
	border-radius: 6px;
	background: var(--sidebar-muted);
	color: #fff;
	outline: none;
}

.sidebar-search input::placeholder {
	color: #c2cad9;
}

.sidebar-search::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 13px;
	width: 13px;
	height: 13px;
	border: 1.7px solid #c2cad9;
	border-radius: 50%;
	transform: translateY(-50%);
}

.sidebar-search::after {
	content: "";
	position: absolute;
	top: 23px;
	left: 25px;
	width: 7px;
	height: 1.7px;
	background: #c2cad9;
	transform: rotate(45deg);
	transform-origin: left center;
}

.app-slider__container {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding-bottom: 12px;
}

.app-slider__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-group summary {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 20px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.menu-group summary::marker {
	color: #aeb9ca;
}

.menu-group__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-group__items .menu-item {
	height: 44px;
	padding-left: 44px;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #e8edf6;
	text-align: left;
}

.menu-item:hover,
.menu-item.is-active {
	background: var(--primary);
	color: #fff;
}

.menu-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	min-width: 18px;
	height: 18px;
	color: currentColor;
}

.menu-item__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.menu-item__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
}

.app-main {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.app-topbar {
	display: flex;
	align-items: center;
	height: var(--topbar-height);
	min-height: var(--topbar-height);
	padding: 0 10px;
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: #4b5563;
	line-height: 1;
}

.icon-btn:hover {
	border-color: #d7dce5;
	background: #f6f8fb;
	color: var(--primary);
}

.icon-btn svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
}

.route-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #303846;
	font-size: 14px;
}

.route-nav__item {
	white-space: nowrap;
}

.route-nav__separator {
	color: #9aa3b2;
}

.flex1 {
	flex: 1;
	min-width: 0;
}

.topbar-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 0 0;
	padding: 0;
	list-style: none;
}

.app-topbar__user {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 7px 0 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #253044;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background 0.16s ease,
		border-color 0.16s ease,
		box-shadow 0.16s ease;
}

.app-topbar__user:hover,
.app-topbar__user.is-open {
	border-color: #dde5f0;
	background: #f7f9fc;
	box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.topbar-username {
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgb(34 197 94 / 12%);
}

.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2684ff 0%, #21a67a 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%);
}

.avatar--topbar {
	width: 26px;
	height: 26px;
	font-size: 12px;
}

.avatar--menu {
	width: 42px;
	height: 42px;
	font-size: 17px;
}

.user-menu-chevron {
	display: inline-flex;
	color: #8a95a7;
	transition: transform 0.16s ease;
}

.user-menu-chevron svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
}

.app-topbar__user.is-open .user-menu-chevron {
	transform: rotate(180deg);
}

.user-menu {
	position: absolute;
	top: 41px;
	right: 0;
	z-index: 20;
	display: none;
	width: 236px;
	padding: 6px;
	border: 1px solid #dce3ee;
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 16px 38px rgb(15 23 42 / 16%);
	overflow: hidden;
}

.user-menu::before {
	content: "";
	position: absolute;
	top: -5px;
	right: 24px;
	width: 10px;
	height: 10px;
	border-top: 1px solid #dce3ee;
	border-left: 1px solid #dce3ee;
	background: var(--white);
	transform: rotate(45deg);
}

.app-topbar__user.is-open .user-menu {
	display: block;
}

.user-menu__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 13px;
	border-radius: 6px;
	background: #f7f9fc;
}

.user-menu__head strong,
.user-menu__head small {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-menu__head strong {
	color: #1f2937;
	font-size: 15px;
	line-height: 20px;
}

.user-menu__head small {
	margin-top: 2px;
	color: #7b8797;
	font-size: 12px;
}

.user-menu__body {
	display: grid;
	gap: 4px;
	padding: 6px 0 0;
}

.user-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #334155;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}

.user-menu button svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.user-menu button:hover {
	background: #eef5ff;
	color: var(--primary);
}

.user-menu button.is-danger {
	color: #b42318;
}

.user-menu button.is-danger:hover {
	background: #fff1f0;
	color: #b42318;
}

.app-process {
	display: flex;
	align-items: center;
	height: var(--process-height);
	min-height: var(--process-height);
	padding: 5px 10px;
	border-bottom: 1px solid #eff2f6;
	background: var(--white);
	overflow: hidden;
	user-select: none;
}

.app-process__op {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.app-process__container {
	position: relative;
	flex: 1;
	height: 32px;
	margin: 0 5px;
	overflow: hidden;
}

.app-process__list {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 32px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.app-process__list::-webkit-scrollbar {
	display: none;
}

.app-process__item {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	height: 26px;
	padding: 0 8px;
	border: 1px solid #dde3ed;
	border-radius: 4px;
	background: var(--white);
	color: #4b5563;
	font-size: 12px;
	white-space: nowrap;
	gap: 8px;
	flex-shrink: 0;
}

.app-process__item.active {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

.app-process__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	font-size: 14px;
	line-height: 14px;
	opacity: 0.78;
}

.app-process__close:hover {
	background: rgb(0 0 0 / 12%);
	opacity: 1;
}

.app-views {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding: 10px;
	background: var(--page);
}

.crud-page {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--white);
	box-shadow: 0 0 0 1px rgb(31 41 55 / 3%);
}

.crud-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px;
	border-bottom: 1px solid var(--line);
}

.crud-toolbar__left,
.crud-toolbar__right {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 60px;
	height: 32px;
	padding: 0 13px;
	border: 1px solid #d8dee8;
	border-radius: 5px;
	background: var(--white);
	color: #303846;
	line-height: 30px;
	white-space: nowrap;
}

.btn:hover:not(:disabled) {
	border-color: var(--primary);
	color: var(--primary);
}

.btn.is-primary {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

.btn.is-primary:hover:not(:disabled) {
	border-color: var(--primary-strong);
	background: var(--primary-strong);
	color: #fff;
}

.btn.is-danger {
	border-color: #ffb5b5;
	background: #fff1f1;
	color: #ef4444;
}

.btn.is-danger:hover:not(:disabled) {
	border-color: #ef4444;
	background: #ef4444;
	color: #fff;
}

.btn.is-text {
	min-width: 0;
	height: auto;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: var(--primary);
	line-height: 24px;
}

.btn.is-text:hover:not(:disabled) {
	background: transparent;
	color: var(--primary-strong);
}

.btn.is-text.is-danger {
	color: #ef4444;
}

.btn.is-text.is-warning {
	color: #b7791f;
}

.search-box {
	display: grid;
	grid-template-columns: minmax(180px, 210px) 70px;
	gap: 8px;
}

.table-wrap {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 0 10px;
}

.data-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	table-layout: fixed;
}

.data-table th,
.data-table td {
	height: 48px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	border-right: 1px solid var(--line);
	vertical-align: middle;
	text-align: center;
}

.data-table th:last-child,
.data-table td:last-child {
	border-right: 0;
	white-space: nowrap;
}

.data-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	height: 40px;
	background: #f7f8fa;
	color: #111827;
	font-weight: 600;
}

.data-table td {
	color: #374151;
}

.data-table tbody tr:hover {
	background: #f8fbff;
}

.data-table tbody tr.is-selected {
	background: #edf4ff;
}

.col-check {
	width: 60px;
}

.col-op {
	width: 220px;
}

.cell-ellipsis {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mono {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 12px;
}

.tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: #eef2f7;
	color: #64748b;
	font-size: 12px;
	line-height: 22px;
}

.tag.is-success {
	background: #e9f8f2;
	color: #178760;
}

.tag.is-warning {
	background: #fff6e5;
	color: #b7791f;
}

.tag.is-danger {
	background: #fff1f1;
	color: #ef4444;
}

.empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 250px;
	color: #8a94a6;
	border-bottom: 1px solid var(--line);
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-height: 52px;
	padding: 10px;
	color: #303846;
}

.pagination .page-size {
	width: 110px;
}

.page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--primary);
	color: #fff;
	font-weight: 600;
}

.page-input {
	width: 52px;
	text-align: center;
}

.toast-stack {
	position: fixed;
	top: 58px;
	left: 50%;
	z-index: 100;
	display: grid;
	gap: 8px;
	transform: translateX(-50%);
}

.toast {
	min-width: 220px;
	max-width: min(520px, calc(100vw - 32px));
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--white);
	box-shadow: 0 8px 24px rgb(15 23 42 / 14%);
	color: var(--text);
}

.toast.is-success {
	border-color: #bfeddc;
	color: #127b59;
}

.toast.is-error {
	border-color: #ffc8c8;
	color: #d93030;
}

.toast.is-warning {
	border-color: #ffe2a8;
	color: #a46510;
}

.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgb(15 23 42 / 38%);
}

.modal {
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 24px 60px rgb(15 23 42 / 22%);
	overflow: hidden;
}

.modal.is-wide {
	width: min(920px, 100%);
}

.modal.is-password {
	width: min(460px, 100%);
}

.modal.is-wizard {
	width: min(840px, 100%);
}

.modal.is-pricing {
	width: min(900px, 100%);
	border-radius: 12px;
}

.modal__head,
.modal__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
}

.modal__head {
	border-bottom: 1px solid var(--line);
}

.modal__head h2 {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 17px;
	line-height: 24px;
}

.modal__body {
	min-height: 0;
	padding: 18px;
	overflow: auto;
}

.pricing-modal__head {
	padding: 18px 22px;
	background: linear-gradient(135deg, #fff, #f5f9ff);
}

.pricing-modal__head > div {
	flex: 1;
	min-width: 0;
}

.pricing-modal__head p {
	margin: 3px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 18px;
}

.pricing-modal__body {
	display: grid;
	gap: 16px;
	padding: 20px 22px 22px;
	background: #f8fafc;
}

.pricing-section {
	padding: 16px;
	border: 1px solid #e1e7f0;
	border-radius: 10px;
	background: #fff;
}

.pricing-section__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 14px;
}

.pricing-section__title strong {
	font-size: 15px;
}

.pricing-section__title span {
	color: var(--muted);
	font-size: 12px;
}

.pricing-rule-grid {
	display: grid;
	grid-template-columns: 0.7fr repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.pricing-rule-grid .form-field,
.pricing-editor-card .form-field {
	margin: 0;
}

.pricing-editor-grid,
.pricing-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pricing-editor-card,
.pricing-card {
	position: relative;
	min-width: 0;
	padding: 16px;
	border: 1px solid #dfe5ee;
	border-radius: 10px;
	background: #fff;
}

.pricing-editor-card.is-popular,
.pricing-card.is-popular {
	border-color: #65b48f;
	box-shadow: 0 0 0 2px rgb(33 166 122 / 9%);
}

.pricing-editor-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
}

.pricing-editor-card__head em {
	padding: 2px 7px;
	border-radius: 999px;
	background: #e8f7f1;
	color: #16835f;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
}

.pricing-editor-card > p {
	margin: 4px 0 14px;
	color: var(--muted);
	font-size: 12px;
}

.pricing-editor-card .form-field + .form-field {
	margin-top: 12px;
}

.pricing-overview {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pricing-overview > div {
	padding: 14px 16px;
	border: 1px solid #e1e7f0;
	border-radius: 10px;
	background: #fff;
}

.pricing-overview span,
.pricing-overview strong {
	display: block;
}

.pricing-overview span {
	color: var(--muted);
	font-size: 12px;
}

.pricing-overview strong {
	margin-top: 5px;
	font-size: 20px;
}

.pricing-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.pricing-card h3 {
	margin: 0;
	font-size: 17px;
}

.pricing-card p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.pricing-card__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
}

.pricing-card__badges span {
	padding: 2px 7px;
	border-radius: 999px;
	background: #edf3fc;
	color: #2f65ad;
	font-size: 11px;
}

.pricing-card__badges .is-popular {
	background: #e8f7f1;
	color: #16835f;
}

.pricing-card__price {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: 26px;
}

.pricing-card__price strong {
	font-size: 28px;
	line-height: 34px;
}

.pricing-card__price span,
.pricing-card__yearly span {
	color: var(--muted);
	font-size: 12px;
}

.pricing-card__yearly {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.pricing-card__yearly strong {
	font-size: 15px;
}

.modal__foot {
	justify-content: flex-end;
	border-top: 1px solid var(--line);
	background: #fbfcfe;
}

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

.modal.is-password .form-grid {
	grid-template-columns: 1fr;
	gap: 14px;
}

.form-field.is-full {
	grid-column: 1 / -1;
}

.checkbox-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 10px;
	padding: 8px 0;
}

.checkbox-grid label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #303846;
}

.wizard-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.wizard-step {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid #dfe5ef;
	border-radius: 6px;
	background: #f8fafc;
	color: #64748b;
}

.wizard-step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e9eef6;
	color: #526173;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.wizard-step strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
}

.wizard-step.is-active {
	border-color: #9fc2f4;
	background: #eef6ff;
	color: #1f65d2;
}

.wizard-step.is-active span,
.wizard-step.is-done span {
	background: var(--primary);
	color: #fff;
}

.wizard-section {
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.wizard-section__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	background: #fbfcfe;
}

.wizard-section__head strong {
	font-size: 15px;
	line-height: 22px;
}

.wizard-section__head span {
	color: var(--muted);
	font-size: 12px;
	line-height: 18px;
}

.wizard-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 16px 0;
}

.wizard-choice label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px;
	border: 1px solid #dbe2ec;
	border-radius: 6px;
	background: #fff;
	color: #303846;
}

.wizard-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 16px;
}

.wizard-form-grid.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.wizard-summary {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	margin: 16px;
	border: 1px solid var(--line);
	border-bottom: 0;
}

.wizard-summary dt,
.wizard-summary dd {
	min-height: 38px;
	margin: 0;
	padding: 9px 12px;
	border-bottom: 1px solid var(--line);
}

.wizard-summary dt {
	background: #f7f8fa;
	color: #4b5563;
	font-weight: 600;
}

.wizard-config {
	margin: 0 16px 16px;
	padding: 14px;
	border: 1px solid #d9e2ef;
	border-radius: 7px;
	background: #f8fafc;
	color: #0f172a;
	white-space: pre-wrap;
	word-break: break-word;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 1.7;
}

.wizard-note {
	margin: -6px 16px 16px;
	color: var(--muted);
	font-size: 12px;
	line-height: 20px;
}

.code-box {
	width: 100%;
	min-height: 160px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #f8fafc;
	color: #0f172a;
	white-space: pre-wrap;
	word-break: break-all;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 1.6;
}

.detail-list {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	border: 1px solid var(--line);
	border-bottom: 0;
}

.detail-list dt,
.detail-list dd {
	min-height: 38px;
	margin: 0;
	padding: 9px 12px;
	border-bottom: 1px solid var(--line);
}

.detail-list dt {
	background: #f7f8fa;
	color: #4b5563;
	font-weight: 600;
}

.detail-list dd {
	min-width: 0;
	word-break: break-word;
}

.support-message-image {
	display: block;
	max-width: 100%;
	max-height: 520px;
	border-radius: 10px;
}

.support-notification {
	position: relative;
}

.support-notification.has-unread {
	color: var(--primary);
	background: #e9f7f2;
}

.notification-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	display: grid;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 14px;
}

.support-chat-page {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border: 1px solid rgb(219 229 226 / 84%);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow);
}

.support-chat-hero,
.support-chat-actions,
.support-thread-header,
.support-message-row,
.support-chat-pagination {
	display: flex;
	align-items: center;
}

.support-chat-hero {
	justify-content: space-between;
	gap: 20px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}

.support-chat-hero h1 {
	margin: 0;
	font-size: 25px;
	letter-spacing: -0.035em;
}

.support-chat-hero p {
	margin: 6px 0 0;
	color: var(--muted);
}

.support-chat-actions {
	gap: 10px;
}

.support-chat-layout {
	display: grid;
	grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
	flex: 1;
	min-height: 0;
}

.support-conversation-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--line);
	background: #fbfdfc;
}

.support-chat-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	gap: 8px;
	padding: 14px;
	border-bottom: 1px solid var(--line);
}

.support-chat-search .text-input {
	width: 100%;
}

.support-conversation-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.support-conversation {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 10px;
	width: 100%;
	padding: 14px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	text-align: left;
}

.support-conversation:hover,
.support-conversation.is-active {
	background: #eaf8f3;
}

.support-conversation.is-active {
	box-shadow: inset 3px 0 var(--primary);
}

.support-avatar {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 50%;
	background: linear-gradient(135deg, #13b88a, #087e5d);
	color: #fff;
	font-weight: 800;
}

.support-avatar.is-large {
	width: 44px;
	height: 44px;
}

.support-conversation__body {
	min-width: 0;
}

.support-conversation__body strong,
.support-conversation__body small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.support-conversation__body small,
.support-conversation time,
.support-thread-header span,
.support-message-bubble time {
	color: var(--muted);
	font-size: 12px;
}

.support-conversation__body small {
	margin-top: 5px;
}

.support-conversation__fingerprint {
	display: block;
	margin-top: 4px;
	overflow: hidden;
	color: var(--muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.support-conversation time {
	white-space: nowrap;
}

.support-chat-pagination {
	justify-content: flex-end;
	gap: 8px;
	min-height: 48px;
	padding: 8px 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.support-thread-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.support-thread-header {
	gap: 12px;
	min-height: 72px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--line);
}

.support-thread-header > div {
	flex: 1;
	min-width: 0;
}

.support-thread-header strong,
.support-thread-header span {
	display: block;
}

.support-thread-header span {
	margin-top: 4px;
}

.support-thread-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 24px;
	background: linear-gradient(180deg, #f7fbf9, #f3f7f6);
}

.support-message-row {
	align-items: flex-end;
	gap: 10px;
}

.support-message-row + .support-message-row {
	margin-top: 16px;
}

.support-message-bubble {
	max-width: min(720px, 78%);
	padding: 14px 16px 10px;
	border: 1px solid #dce8e4;
	border-radius: 16px 16px 16px 4px;
	background: #fff;
	box-shadow: 0 8px 24px rgb(31 71 58 / 7%);
}

.support-message-bubble p {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.7;
}

.support-message-bubble .support-message-image {
	margin-top: 12px;
}

.support-message-bubble time {
	display: block;
	margin-top: 8px;
	text-align: right;
}

.support-thread-footer {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 54px;
	padding: 15px 20px;
	border-top: 1px solid var(--line);
	color: #52645e;
	font-size: 13px;
}

.support-chat-empty,
.support-thread-empty {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 8px;
	height: 100%;
	min-height: 180px;
	padding: 24px;
	color: var(--muted);
	text-align: center;
}

.support-thread-empty svg {
	width: 42px;
	height: 42px;
	stroke: #8ec8b6;
}

.support-chat-empty strong,
.support-thread-empty strong {
	color: #253b34;
}

@media (max-width: 760px) {
	.support-chat-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.support-chat-layout {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	.support-conversation-panel {
		min-height: 320px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.support-thread-panel {
		min-height: 420px;
	}

	.support-thread-footer {
		flex-direction: column;
	}
}

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

	.app-layout:not(.is-full) .app-slider {
		transform: translateX(0);
	}

	.pricing-rule-grid,
	.pricing-editor-grid,
	.pricing-card-grid,
	.pricing-overview {
		grid-template-columns: 1fr;
	}

	.app-slider {
		position: fixed;
		inset: 0 auto 0 0;
		transform: translateX(-100%);
		box-shadow: 8px 0 26px rgb(15 23 42 / 22%);
	}

	.app-layout__mask {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: none;
		background: rgb(15 23 42 / 32%);
	}

	.app-layout:not(.is-full) .app-layout__mask {
		display: block;
	}

	.crud-toolbar {
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.crud-toolbar__left,
	.crud-toolbar__right,
	.search-box {
		width: 100%;
	}

	.search-box {
		grid-template-columns: minmax(0, 1fr) 70px;
	}

	.pagination {
		justify-content: center;
		flex-wrap: wrap;
	}

	.form-grid,
	.checkbox-grid,
	.wizard-form-grid,
	.wizard-steps {
		grid-template-columns: 1fr;
	}

	.wizard-section__head {
		display: grid;
		gap: 4px;
	}

	.wizard-summary {
		grid-template-columns: 92px minmax(0, 1fr);
	}

	.route-nav {
		max-width: 45vw;
		overflow: hidden;
	}

	.topbar-username {
		display: none;
	}

	.app-topbar__user {
		padding-left: 8px;
	}

	.user-menu {
		right: -4px;
		width: min(236px, calc(100vw - 24px));
	}
}

/* WslinkDesk launch theme */
.login-page {
	background:
		radial-gradient(circle at 16% 12%, rgb(15 159 117 / 18%), transparent 30%),
		radial-gradient(circle at 84% 82%, rgb(52 99 181 / 12%), transparent 34%),
		#f3f7f6;
}

.login-card {
	padding: 34px;
	border-color: rgb(15 159 117 / 14%);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgb(16 35 46 / 13%);
}

.login-brand__mark,
.app-slider__logo-mark,
.avatar {
	background: linear-gradient(135deg, #17b887, #2479aa);
}

.text-input,
.text-select,
.text-area {
	border-color: #d7e2df;
	border-radius: 9px;
}

.text-input,
.text-select {
	height: 38px;
}

.text-input:focus,
.text-select:focus,
.text-area:focus {
	box-shadow: 0 0 0 3px rgb(15 159 117 / 12%);
}

.app-slider {
	border-right: 1px solid #dbe7e3;
	background: linear-gradient(180deg, #fbfdfc, #f2f7f5);
	box-shadow: 8px 0 28px rgb(31 54 46 / 7%);
	color: #29423a;
}

.app-slider__logo {
	height: 72px;
	padding: 0 22px;
	color: #152d26;
	font-size: 19px;
	letter-spacing: -0.02em;
}

.app-slider__logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	box-shadow: 0 8px 22px rgb(15 159 117 / 24%);
}

.app-slider__search {
	padding: 4px 14px 16px;
}

.sidebar-search input {
	height: 40px;
	border: 1px solid #d7e5e0;
	border-radius: 10px;
	background: #fff;
	color: #1d352e;
	box-shadow: 0 4px 14px rgb(40 77 64 / 5%);
}

.sidebar-search input::placeholder {
	color: #82958e;
}

.sidebar-search::before {
	border-color: #789087;
}

.sidebar-search::after {
	background: #789087;
}

.menu-group {
	margin-bottom: 5px;
}

.menu-group summary {
	height: 42px;
	padding: 0 18px;
	color: #789087;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	list-style: none;
}

.menu-group summary::after {
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: rotate(45deg);
	transition: transform 160ms ease;
}

.menu-group details[open] summary::after {
	transform: rotate(225deg);
}

.menu-group summary::-webkit-details-marker {
	display: none;
}

.menu-group summary:focus-visible {
	border-radius: 10px;
	outline: 2px solid #8bd8c0;
	outline-offset: -2px;
}

.menu-group__items .menu-item {
	width: calc(100% - 20px);
	height: 44px;
	margin: 3px 10px;
	padding: 0 14px;
	border-radius: 10px;
	color: #425c53;
}

.menu-item:hover {
	background: #eaf2ef;
	color: #173d32;
}

.menu-item.is-active {
	background: linear-gradient(90deg, #dff4ec, #eaf8f3);
	box-shadow: inset 3px 0 #0f9f75, 0 7px 18px rgb(34 105 82 / 8%);
	color: #087e5d;
}

.app-topbar {
	padding: 0 18px;
	box-shadow: 0 1px 0 rgb(16 35 46 / 4%);
}

.app-process {
	padding: 6px 16px;
	background: #fbfdfc;
}

.app-process__item {
	height: 28px;
	padding: 0 10px;
	border-color: #dce7e4;
	border-radius: 7px;
	background: #fff;
}

.app-process__item.active {
	border-color: rgb(15 159 117 / 18%);
	background: #e9f7f2;
	color: #087e5d;
	font-weight: 700;
}

.app-views {
	padding: 20px;
}

.crud-page {
	border: 1px solid rgb(219 229 226 / 84%);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.crud-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 24px 18px;
	border-bottom: 1px solid var(--line);
}

.eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--primary);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.crud-hero h1,
.overview-hero h1 {
	margin: 0;
	font-size: 25px;
	line-height: 1.25;
	letter-spacing: -0.035em;
}

.crud-hero p,
.overview-hero p {
	margin: 7px 0 0;
	color: var(--muted);
	line-height: 1.65;
}

.record-count {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 11px;
	border: 1px solid #dbe8e4;
	border-radius: 999px;
	background: #f5faf8;
	color: #52645e;
	font-size: 12px;
	white-space: nowrap;
}

.crud-toolbar {
	min-height: 64px;
	padding: 13px 18px;
}

.btn {
	min-width: 64px;
	height: 36px;
	padding: 0 14px;
	border-color: #d6e0de;
	border-radius: 9px;
	font-weight: 600;
	line-height: 34px;
}

.btn.is-primary {
	box-shadow: 0 7px 16px rgb(15 159 117 / 18%);
}

.table-wrap {
	padding: 0 18px;
}

.data-table th,
.data-table td {
	padding: 0 14px;
	border-right: 0;
	text-align: left;
}

.data-table th:first-child,
.data-table td:first-child,
.data-table th:last-child,
.data-table td:last-child {
	text-align: center;
}

.data-table th {
	height: 44px;
	background: #f6f9f8;
	color: #52615c;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.data-table td {
	height: 52px;
}

.data-table tbody tr:hover {
	background: #f3faf7;
}

.empty-state {
	flex-direction: column;
	gap: 7px;
	height: 280px;
	background: linear-gradient(180deg, #fff, #fbfdfc);
}

.empty-state strong {
	color: #40524c;
	font-size: 15px;
}

.empty-state span {
	font-size: 12px;
}

.pagination {
	min-height: 62px;
	padding: 12px 18px;
	border-top: 1px solid #edf1f0;
}

.overview-page {
	height: 100%;
	overflow: auto;
	padding-bottom: 2px;
}

.analytics-page {
	display: grid;
	grid-auto-rows: max-content;
	align-content: start;
	gap: 14px;
	height: 100%;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	padding: 2px 5px 3px 1px;
}

.analytics-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 7px 4px 3px;
}

.analytics-hero h1 {
	margin: 5px 0 0;
	font-size: 25px;
	line-height: 1.2;
	letter-spacing: -.035em;
}

.analytics-hero p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.analytics-hero p strong {
	color: #33443e;
	font-weight: 650;
}

.analytics-hero p strong::after {
	margin-left: 8px;
	color: #b4c0bc;
	content: "/";
}

.analytics-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--primary-strong);
	font-size: 11px;
	font-weight: 700;
}

.analytics-live i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #16b981;
	box-shadow: 0 0 0 4px rgb(22 185 129 / 10%);
}

.analytics-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.analytics-actions .text-select {
	width: auto;
	min-width: 110px;
}

.analytics-panel {
	min-width: 0;
	padding: 18px;
	border: 1px solid #dce6e3;
	border-radius: 14px;
	background: var(--white);
	box-shadow: 0 5px 18px rgb(20 48 40 / 4%);
}

.analytics-panel > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.analytics-panel h2,
.analytics-panel header p {
	margin: 0;
}

.analytics-panel h2 {
	font-size: 15px;
	letter-spacing: -.01em;
}

.analytics-panel header p {
	margin-top: 5px;
	color: var(--muted);
	font-size: 12px;
}

.analytics-overview {
	padding: 0;
	overflow: hidden;
}

.analytics-metrics,
.search-metric-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-metrics {
	border-bottom: 1px solid var(--line);
}

.analytics-stat {
	position: relative;
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 17px 20px 15px;
	border-right: 1px solid var(--line);
}

.analytics-stat:last-child { border-right: 0; }
.analytics-stat span,
.analytics-stat small { color: var(--muted); }
.analytics-stat span { font-size: 12px; font-weight: 600; }
.analytics-stat strong { font-size: 27px; line-height: 1.1; letter-spacing: -.045em; }
.analytics-stat small { font-size: 10px; }

.analytics-metrics .analytics-stat:first-child::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--primary);
	content: "";
}

.analytics-trend { padding: 17px 20px 10px; }
.analytics-trend > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.analytics-trend h2,
.analytics-trend p { margin: 0; }
.analytics-trend h2 { font-size: 15px; }
.analytics-trend p { margin-top: 4px; color: var(--muted); font-size: 11px; }

.chart-legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.chart-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--primary); content: ""; }
.chart-legend .is-visitor::before { background: #4b78dd; }
.chart-legend b { padding-left: 4px; color: var(--ink); font-weight: 500; }

.analytics-chart { width: 100%; min-height: 195px; margin-top: 5px; overflow-x: auto; }
.analytics-chart svg { display: block; width: 100%; min-width: 720px; height: 215px; overflow: visible; }
.chart-grid line { stroke: #e8efed; stroke-width: 1; }
.chart-grid text { fill: var(--muted); font-size: 10px; text-anchor: end; }
.chart-area { fill: url(#traffic-area); }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.is-pv { stroke: var(--primary); }
.chart-line.is-visitor { stroke: #4b78dd; stroke-width: 2; }
.chart-point circle { stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .15s, r .15s; }
.chart-point circle.is-pv { fill: var(--primary); }
.chart-point circle.is-visitor { fill: #4b78dd; }
.analytics-chart:hover .chart-point circle { opacity: 1; }
.chart-point circle:hover { r: 6; }
.chart-date { fill: var(--muted); font-size: 10px; text-anchor: middle; }

.analytics-breakdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.panel-count {
	padding: 4px 8px;
	border-radius: 999px;
	background: #f1f6f4;
	color: var(--muted);
	font-size: 10px;
	white-space: nowrap;
}

.analytics-breakdown .analytics-row strong { display: grid; gap: 5px; }
.analytics-breakdown .analytics-row strong > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-breakdown .analytics-row strong i { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: #edf2f0; }
.analytics-breakdown .analytics-row strong i b { display: block; height: 100%; border-radius: inherit; background: #6ed0b2; }

.country-summary {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px;
	margin: -2px 0 6px;
	padding: 12px 14px;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(120deg, #eefaf6, #f7fbfa);
}
.country-summary strong { color: var(--primary-strong); font-size: 24px; line-height: 1; }
.country-summary span { color: var(--muted); font-size: 11px; }
.country-summary i { color: rgb(15 159 117 / 18%); font-size: 38px; font-style: normal; line-height: 1; }

.country-list { display: grid; }
.country-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.country-row:last-child { border-bottom: 0; }
.country-flag { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--soft); font-size: 15px; }
.country-row > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-width: 0; }
.country-row > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-row small { color: var(--muted); font-size: 10px; }
.country-row i { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: #e6efec; }
.country-row i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #27c89a); }
.country-row > span:last-child { display: grid; justify-items: end; }
.country-row > span:last-child strong { font-size: 14px; }

.analytics-table {
	display: grid;
	gap: 0;
	overflow-x: auto;
}

.analytics-row {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) repeat(3, 64px);
	gap: 12px;
	align-items: center;
	min-width: 460px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.analytics-row:last-child {
	border-bottom: 0;
}

.analytics-row.is-head {
	padding-top: 0;
	color: var(--muted);
	font-size: 12px;
}

.analytics-row > span:not(:first-child) { font-variant-numeric: tabular-nums; }

.analytics-row strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.analytics-row strong small {
	display: block;
	overflow: hidden;
	margin-top: 4px;
	color: var(--muted);
	font-weight: 400;
	text-overflow: ellipsis;
}

.analytics-query-table .analytics-row {
	grid-template-columns: minmax(260px, 1fr) repeat(5, 90px);
	min-width: 790px;
}

.rank-change.is-up { color: var(--success); font-weight: 700; }
.rank-change.is-down { color: var(--danger); font-weight: 700; }

.analytics-search > header { align-items: center; }
.analytics-search > header > div { display: flex; align-items: center; gap: 10px; }
.analytics-source-mark { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid #e2e8e6; border-radius: 9px; color: #4285f4; font-size: 18px; font-weight: 800; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.connection-status i { width: 7px; height: 7px; border-radius: 50%; background: #d9a441; }
.connection-status.is-success i { background: #16b981; box-shadow: 0 0 0 3px rgb(22 185 129 / 10%); }
.connection-status.is-danger i { background: var(--danger); }

.search-metric-grid {
	margin-bottom: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fafcfb;
}
.search-metric-grid .analytics-stat { padding: 13px 16px; }
.search-metric-grid .analytics-stat strong { font-size: 22px; }

.analytics-setup {
	display: grid;
	gap: 8px;
	padding: 20px;
	border: 1px dashed #b8cbc5;
	border-radius: 10px;
	background: var(--soft);
}

.analytics-setup p {
	max-width: 800px;
	margin: 0 0 8px;
	color: var(--muted);
	line-height: 1.7;
}

.analytics-setup code {
	overflow-wrap: anywhere;
	color: var(--primary-strong);
}

.analytics-error {
	padding: 10px 12px;
	border-radius: 6px;
	color: #a33;
	background: #fff1f0;
}

@media (max-width: 1500px) {
	.analytics-breakdowns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.analytics-breakdowns .analytics-panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
	.analytics-breakdowns { grid-template-columns: 1fr; }
	.analytics-breakdowns .analytics-panel:last-child { grid-column: auto; }
}

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

	.chart-legend { flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }

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

@media (max-width: 560px) {
	.analytics-metrics,
	.search-metric-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.analytics-stat:nth-child(2) { border-right: 0; }
	.analytics-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

.overview-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	min-height: 190px;
	padding: 36px;
	overflow: hidden;
	border-radius: 18px;
	background:
		radial-gradient(circle at 82% 6%, rgb(45 205 158 / 34%), transparent 27%),
		linear-gradient(125deg, #10253a, #123f43 72%, #126b59);
	box-shadow: 0 20px 50px rgb(16 48 57 / 17%);
	color: #fff;
}

.overview-hero::after {
	content: "";
	position: absolute;
	right: -55px;
	bottom: -100px;
	width: 260px;
	height: 260px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgb(255 255 255 / 3%), 0 0 0 72px rgb(255 255 255 / 2%);
}

.overview-hero__content,
.overview-hero__action {
	position: relative;
	z-index: 1;
}

.overview-hero .eyebrow {
	color: #65e1bb;
}

.overview-hero h1 {
	font-size: clamp(27px, 3vw, 38px);
}

.overview-hero p {
	color: #cfe3de;
	font-size: 15px;
}

.overview-hero__action {
	border-color: rgb(255 255 255 / 24%);
	background: rgb(255 255 255 / 12%);
	color: #fff;
	backdrop-filter: blur(10px);
}

.overview-hero__action:hover:not(:disabled) {
	border-color: #fff;
	background: #fff;
	color: #0b7f61;
}

.overview-hero__action svg,
.metric-card svg,
.quick-action svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.metric-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.metric-card {
	position: relative;
	display: grid;
	gap: 7px;
	min-width: 0;
	padding: 19px 20px;
	border: 1px solid #dce7e4;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 9px 28px rgb(16 35 46 / 5%);
	color: var(--text);
	text-align: left;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.metric-card:hover {
	transform: translateY(-2px);
	border-color: rgb(15 159 117 / 35%);
	box-shadow: 0 14px 34px rgb(16 75 61 / 10%);
}

.metric-card span,
.metric-card small {
	color: var(--muted);
}

.metric-card strong {
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.metric-card small {
	font-size: 12px;
}

.metric-card > svg {
	position: absolute;
	top: 20px;
	right: 18px;
	color: #91a39d;
}

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

.overview-panel,
.quick-panel {
	min-width: 0;
	border: 1px solid #dce7e4;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 9px 28px rgb(16 35 46 / 5%);
}

.overview-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}

.overview-panel h2,
.quick-panel h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -0.02em;
}

.overview-panel header p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.activity-list {
	padding: 4px 20px;
}

.activity-item {
	display: grid;
	grid-template-columns: 9px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	min-height: 64px;
	border-bottom: 1px solid #edf1f0;
}

.activity-item:last-child {
	border-bottom: 0;
}

.activity-item > div:last-child {
	display: grid;
	justify-items: end;
	gap: 4px;
}

.activity-item strong,
.activity-item small,
.activity-item time {
	display: block;
	min-width: 0;
}

.activity-item strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
}

.activity-item small,
.activity-item time {
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.activity-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #80a6c6;
	box-shadow: 0 0 0 4px rgb(128 166 198 / 12%);
}

.activity-dot.is-success {
	background: #17a877;
	box-shadow: 0 0 0 4px rgb(23 168 119 / 12%);
}

.activity-dot.is-danger {
	background: #e85e62;
	box-shadow: 0 0 0 4px rgb(232 94 98 / 12%);
}

.panel-empty {
	display: grid;
	place-items: center;
	min-height: 190px;
	color: var(--muted);
}

.quick-panel {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	margin-top: 14px;
	padding: 20px;
}

.quick-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.quick-action {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 66px;
	padding: 10px 12px;
	border: 1px solid #dce7e4;
	border-radius: 11px;
	background: #f8fbfa;
	color: #254139;
	text-align: left;
}

.quick-action:hover {
	border-color: rgb(15 159 117 / 34%);
	background: #f0faf6;
}

.quick-action > svg:first-child {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 9px;
	background: #e5f5ef;
	color: #0b8966;
}

.quick-action strong,
.quick-action small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.quick-action strong {
	font-size: 13px;
}

.quick-action small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.pricing-modal__head {
	background: linear-gradient(135deg, #fff, #eff9f5);
}

.pricing-modal__body {
	background: #f4f8f7;
}

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

	.overview-grid,
	.quick-panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.app-views {
		padding: 12px;
	}

	.overview-hero {
		align-items: flex-start;
		min-height: 0;
		padding: 26px;
		flex-direction: column;
	}

	.overview-hero__action {
		align-self: flex-start;
	}

	.crud-hero {
		padding: 20px;
	}

	.crud-toolbar,
	.table-wrap,
	.pagination {
		padding-right: 14px;
		padding-left: 14px;
	}

	.quick-actions {
		grid-template-columns: 1fr;
	}
}

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

	.crud-hero {
		flex-direction: column;
		gap: 12px;
	}

	.overview-hero h1 {
		font-size: 27px;
	}

	.activity-list,
	.overview-panel > header,
	.quick-panel {
		padding-right: 15px;
		padding-left: 15px;
	}

	.activity-item {
		grid-template-columns: 9px minmax(0, 1fr);
	}

	.activity-item > div:last-child,
	.activity-item > time {
		display: none;
	}
}
