:root {
	--ink: #101828;
	--muted: #667085;
	--soft: #f4f7fb;
	--panel: #ffffff;
	--line: #dfe6ef;
	--blue: #0c419a;
	--blue-2: #1857c4;
	--green: #3f8f29;
	--green-2: #eef8eb;
	--amber: #b7791f;
	--amber-2: #fff7e6;
	--red: #c33131;
	--red-2: #fff0f0;
	--violet: #5b4bb7;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
html, body { min-height: 100%; overflow-x: hidden; }
body {
	margin: 0;
	background: var(--soft);
	color: var(--ink);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
body:has(.shell) {
	height: 100%;
	overflow: hidden;
}
body.nav-open, body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }

.app-boot {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
}
.boot-card {
	display: flex;
	gap: 14px;
	align-items: center;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px 20px;
}
.boot-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mark {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--blue);
	color: #fff;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
}

.login-wrap {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(300px, 430px) minmax(320px, 1fr);
}
.login-panel {
	background: var(--panel);
	border-right: 1px solid var(--line);
	padding: 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.login-panel h1 { margin: 22px 0 8px; font-size: 28px; line-height: 1.1; }
.login-panel p { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.login-art {
	padding: 44px;
	display: grid;
	align-content: center;
	gap: 16px;
	background: #eef3f9;
}
.process-card {
	max-width: 560px;
	border: 1px solid #cbd6e5;
	background: #fff;
	border-radius: 8px;
	padding: 18px;
}
.process-row {
	display: grid;
	grid-template-columns: 34px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.process-row:first-child { border-top: 0; }
.step-no { font-family: var(--mono); color: var(--blue); font-size: 12px; font-weight: 700; }
.process-row b { display: block; font-size: 14px; }
.process-row span { color: var(--muted); font-size: 12px; }

.btn-google {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	padding: 9px 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	min-height: 38px;
	margin-bottom: 14px;
}
.btn-google:hover { border-color: #b5c2d4; background: #f8fafc; }
.login-or {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 12px;
	margin-bottom: 14px;
}
.login-or:before, .login-or:after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.shell {
	min-height: 100%;
	height: 100%;
	height: 100dvh;
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	overflow: hidden;
}
.mob-bar, .dock, .nav-scrim { display: none; }
.sidebar {
	position: relative;
	top: 0;
	overflow: hidden;
	height: auto;
	max-height: 100%;
	min-height: 0;
	align-self: stretch;
	background: var(--panel);
	border-right: 1px solid var(--line);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 4px 14px;
	border-bottom: 1px solid var(--line);
	flex: 0 0 auto;
}
.brand-copy { min-width: 0; flex: 1; }
.brand strong { display: block; line-height: 1; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.nav-collapse {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 8px;
	display: grid;
	place-items: center;
	color: var(--muted);
	padding: 0;
}
.nav-collapse:hover { background: #f2f6fb; color: var(--ink); }
.nav-collapse .nav-ico { width: 16px; height: 16px; }
.nav-collapse .ico-expand { display: none; }
.nav { display: grid; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; overscroll-behavior: contain; }
.nav-group { display: grid; gap: 2px; margin-bottom: 10px; }
.nav-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 6px 11px 4px;
}
.nav-btn {
	border: 0;
	background: transparent;
	color: #344054;
	border-radius: 8px;
	padding: 10px 11px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 650;
	text-align: left;
}
.nav-btn:hover { background: #f2f6fb; }
.nav-btn.active { background: #eaf1fb; color: var(--blue); }
.nav-ico {
	width: 18px;
	height: 18px;
	display: inline-grid;
	place-items: center;
	color: currentColor;
}
.nav-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.sidebar-foot {
	margin-top: auto;
	border-top: 1px solid var(--line);
	padding-top: 14px;
	display: grid;
	gap: 10px;
	flex: 0 0 auto;
}
.user-card { min-width: 0; }
.user-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.user-card span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 901px) {
	.shell.nav-collapsed {
		grid-template-columns: 72px minmax(0, 1fr);
	}
	.shell.nav-collapsed .sidebar {
		padding: 12px 8px;
	}
	.shell.nav-collapsed .brand {
		flex-direction: column;
		gap: 8px;
		padding: 0 0 12px;
	}
	.shell.nav-collapsed .brand-copy,
	.shell.nav-collapsed .nav-label,
	.shell.nav-collapsed .nav-text,
	.shell.nav-collapsed .user-card {
		display: none;
	}
	.shell.nav-collapsed .nav-collapse .ico-collapse { display: none; }
	.shell.nav-collapsed .nav-collapse .ico-expand { display: grid; }
	.shell.nav-collapsed .nav-btn {
		justify-content: center;
		padding: 10px 0;
		position: relative;
	}
	.shell.nav-collapsed .nav-badge {
		position: absolute;
		top: 2px;
		right: 2px;
		margin: 0;
	}
	.shell.nav-collapsed .sidebar-foot .btn-ghost,
	.shell.nav-collapsed .sidebar-foot .btn-danger {
		padding: 8px 4px;
		font-size: 10px;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}
}

.main {
	min-width: 0;
	min-height: 0;
	padding: 26px;
	position: relative;
	overflow: auto;
	overscroll-behavior: contain;
}
.topbar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 22px;
}
.eyebrow {
	font-family: var(--mono);
	color: var(--blue);
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 6px;
}
h1 { margin: 0; font-size: 26px; line-height: 1.15; }
.subcopy { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.hub-sections { margin-top: 14px; }
.hub-grid { display: grid; gap: 8px; }
.hub-tile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	background: var(--soft);
	border-radius: 8px;
	padding: 12px 14px;
	text-align: left;
	width: 100%;
}
.hub-tile:hover { border-color: #b5c2d4; background: #fff; }
.hub-tile b { display: block; font-size: 14px; }
.hub-tile span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hub-tile strong { font-family: var(--mono); font-size: 18px; color: var(--blue); flex: 0 0 auto; }
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	min-width: 0;
}
.card-pad { padding: 16px; }
.metric { padding: 16px; }
.metric label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.metric strong { display: block; font-size: 26px; margin-top: 8px; font-family: var(--mono); letter-spacing: -0.03em; }
.metric small { color: var(--muted); font-size: 12px; display: block; margin-top: 6px; line-height: 1.35; }
.metric-in { background: linear-gradient(180deg, #f7fbf6 0%, #fff 48%); }
.metric-in strong { color: var(--green); }
.metric-out strong { color: var(--amber); }
.metric-blue strong { color: var(--blue); }
.fin-card h2 { margin: 0 0 4px; font-size: 16px; }
.fin-lead { color: var(--muted); font-size: 12px; margin: 0 0 8px; line-height: 1.4; }
.fin-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}
.fin-line:last-child { border-bottom: 0; padding-bottom: 0; }
.fin-line b { display: block; font-size: 13px; }
.fin-line span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fin-line strong { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.fin-in strong { color: var(--green); }
.fin-out strong { color: var(--amber); }
.pay-split {
	display: flex;
	height: 8px;
	border-radius: 99px;
	overflow: hidden;
	background: var(--line);
	margin: 4px 0 2px;
}
.pay-split i { display: block; height: 100%; }
.pay-split .rzp { background: var(--blue); }
.pay-split .cod { background: var(--amber); }
.stats-note { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.main > section { margin-top: 14px; }
.dash-chart-card { position: relative; }
.dash-chart-card h2 { margin: 0 0 4px; font-size: 16px; }
.dash-chart-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 8px;
}
.dash-chart-kpis {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}
.dash-chart-kpis label {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.dash-chart-kpis strong {
	display: block;
	font-family: var(--mono);
	font-size: 15px;
	margin-top: 3px;
	white-space: nowrap;
}
.dash-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 12px;
	margin: 0 0 8px;
}
.dash-legend i {
	display: inline-block;
	width: 12px;
	height: 8px;
	margin-right: 6px;
	border-radius: 2px;
	vertical-align: middle;
}
.dash-legend .lg-bar { background: rgba(12, 65, 154, .32); }
.dash-legend .lg-line { background: var(--green); height: 3px; border-radius: 99px; }
.dash-legend .lg-rzp { background: var(--blue); }
.dash-legend .lg-cod { background: var(--amber); }
.dash-svg { width: 100%; overflow: hidden; }
.dash-svg svg { display: block; width: 100%; height: auto; }
.dash-grid { stroke: #e8eef5; stroke-width: 1; }
.dash-axis { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.dash-axis-l { text-anchor: end; }
.dash-axis-r { text-anchor: start; }
.dash-axis-x { text-anchor: middle; }
.dash-obar { fill: #0c419a; fill-opacity: .3; }
.dash-sline { stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dash-sdot { fill: var(--green); }
.dash-rzpbar { fill: var(--blue); }
.dash-codbar { fill: var(--amber); }
.dash-wbar { fill: var(--blue); fill-opacity: .78; }
.dash-hit { fill: transparent; cursor: crosshair; }
.dash-hit:hover { fill: rgba(12, 65, 154, .06); }
.dash-pipe { margin: 10px 0 0; }
.dash-pipe:first-child { margin-top: 4px; }
.dash-pipe-lab {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
}
.dash-pipe-lab b { font-size: 13px; }
.dash-pipe-lab strong { font-family: var(--mono); font-size: 13px; }
.dash-track {
	height: 8px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 99px;
	overflow: hidden;
}
.dash-track i { display: block; height: 100%; border-radius: 99px; }
.dash-track .tone-in { background: var(--green); }
.dash-track .tone-out { background: var(--amber); }
.dash-track .tone-blue { background: var(--blue); }
.dash-donut-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}
.dash-donut-wrap { position: relative; width: 112px; height: 112px; }
.dash-donut-wrap svg { display: block; width: 112px; height: 112px; }
.dash-donut-bg { fill: none; stroke: var(--line); stroke-width: 14; }
.dash-donut-rzp, .dash-donut-cod { fill: none; stroke-width: 14; stroke-linecap: butt; }
.dash-donut-rzp { stroke: var(--blue); }
.dash-donut-cod { stroke: var(--amber); }
.dash-donut-center {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}
.dash-donut-center strong { font-family: var(--mono); font-size: 18px; line-height: 1; }
.dash-donut-center span { color: var(--muted); font-size: 11px; }
.dash-donut-keys .fin-line:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-tip {
	position: absolute;
	z-index: 4;
	display: none;
	max-width: 240px;
	padding: 6px 8px;
	background: #101828;
	color: #fff;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.35;
	pointer-events: none;
	white-space: nowrap;
}
.dash-tip.on { display: block; }
@media (max-width: 900px) {
	.dash-chart-head { display: grid; }
	.dash-donut-row { grid-template-columns: 1fr; justify-items: center; }
}
.panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 16px; }

.btn, .btn-soft, .btn-ghost, .btn-danger, .btn-green {
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 9px 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	min-height: 38px;
	white-space: nowrap;
}
.btn { background: var(--blue); color: #fff; }
.btn:hover { background: #09377f; }
.btn-soft { background: #eaf1fb; color: var(--blue); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #b5c2d4; background: #f8fafc; }
.btn-danger { background: var(--red-2); border-color: #ffd0d0; color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { min-height: 30px; padding: 6px 9px; font-size: 12px; }

.input, select, textarea {
	width: 100%;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
	border-radius: 8px;
	padding: 9px 10px;
	outline: none;
	min-height: 38px;
}
textarea { min-height: 88px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.toolbar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 14px;
}
.toolbar .input { max-width: 320px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th {
	text-align: left;
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 11px 12px;
	background: #f8fafc;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
.num { font-family: var(--mono); }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 32px 12px; }
.sheet-list {
	padding: 8px 10px 18px;
	max-height: calc(100dvh - 210px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.sheet-day {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--panel);
	padding: 12px 6px 8px;
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
}
.sheet-order {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 16px;
	width: 100%;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	text-align: left;
	font: inherit;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
}
.sheet-order:hover { border-color: #b5c2d4; }
.sheet-order.is-dead { opacity: .55; }
.sheet-chems { display: grid; gap: 2px; min-width: 0; }
.sheet-chems b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sheet-meta { text-align: right; }
.sheet-meta strong { display: block; font-family: var(--mono); font-size: 14px; }
.sheet-meta span { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; margin-top: 4px; }
.mo-hits {
	border: 1px solid var(--line);
	border-radius: 8px;
	max-height: 180px;
	overflow: auto;
	margin: 8px 0 12px;
}
.mo-hits button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: inherit;
}
.mo-hits button:last-child { border-bottom: 0; }
.mo-hits button:hover { background: #fbfdff; }
.mo-hits b { display: block; font-size: 13px; }
.mo-hits span { display: block; margin-top: 2px; }
.mo-pay {
	display: grid;
	gap: 8px;
	margin: 0 0 12px;
}
.mo-pay label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.mo-pay label.is-on {
	border-color: var(--blue);
	background: #f4f8ff;
}
.mo-pay b { display: block; font-size: 13px; }
.mo-pay span span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.mo-line {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 72px auto auto;
	gap: 8px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.chip-blue { color: var(--blue); background: #eaf1fb; }
.chip-green { color: var(--green); background: var(--green-2); }
.chip-amber { color: var(--amber); background: var(--amber-2); }
.chip-red { color: var(--red); background: var(--red-2); }
.chip-gray { color: #475467; background: #eef2f6; }
.chip-sr {
	gap: 7px;
	border: 0;
	letter-spacing: 0.01em;
}
.chip-sr .sr-mark {
	display: inline-flex;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	background: rgba(255,255,255,.22);
}
.chip-sr-delhivery { background: #e31837; color: #fff; }
.chip-sr-dtdc { background: #e31e24; color: #fff; }
.chip-sr-dtdc .sr-mark { background: #ffd100; color: #111; }
.chip-sr-bluedart { background: #003da5; color: #fff; }
.chip-sr-xpressbees { background: #ffcc00; color: #111; }
.chip-sr-xpressbees .sr-mark { background: #111; color: #ffcc00; }
.chip-sr-ecom { background: #f57c20; color: #fff; }
.chip-sr-shadowfax { background: #ff5a1f; color: #fff; }
.chip-sr-amazon { background: #232f3e; color: #ff9900; }
.chip-sr-amazon .sr-mark { background: #ff9900; color: #232f3e; }
.chip-sr-ekart { background: #2874f0; color: #fff; }
.chip-sr-indiapost { background: #c8102e; color: #ffd100; }
.chip-sr-indiapost .sr-mark { background: #ffd100; color: #c8102e; }
.chip-sr-dhl { background: #ffcc00; color: #d40511; }
.chip-sr-dhl .sr-mark { background: #d40511; color: #fff; }
.chip-sr-fedex { background: #4d148c; color: #fff; }
.chip-sr-gati { background: #c8102e; color: #fff; }
.chip-sr-professional { background: #0056a6; color: #fff; }
.chip-sr-wow { background: #6b2d8b; color: #fff; }
.chip-sr-kerry { background: #003366; color: #fff; }
.chip-sr-smartr { background: #00a3a1; color: #fff; }
.chip-sr-loadshare { background: #1b5e20; color: #fff; }
.chip-sr-other { background: #5b3cc4; color: #fff; }
.chip-sr-unknown { background: #eef2f6; color: #475467; }
.chip-sr-shiprocket { background: #6c4dff; color: #fff; }
.sr-order-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
	align-items: center;
}
.sr-order-tags .chip { margin-top: 0; }
.rate-load-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.sr-courier-sync {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.rate-pick-wrap { margin-top: 6px; }
.rate-pick-meta {
	font-size: 11px;
	margin-bottom: 4px;
}
.rate-pick-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: min(62vh, 560px);
	overflow: auto;
	padding: 2px;
	margin-top: 2px;
}
.rate-pick-empty {
	padding: 10px 12px;
	border: 1px dashed var(--line);
	border-radius: 8px;
	background: #fafbfc;
}
.rate-pick-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
.rate-pick-row:hover { border-color: #b8c6d9; }
.rate-pick-row.is-amazon { background: #fff8ef; border-color: #ffd9a8; }
.rate-pick-row.is-shiprocket:not(.is-amazon) { background: #f7f5ff; border-color: #d9d2f5; }
.rate-pick-row.is-selected {
	border-color: #6c4dff;
	box-shadow: 0 0 0 2px rgba(108, 77, 255, .18);
}
.rate-pick-select {
	flex: 1;
	min-width: 0;
	display: block;
	text-align: left;
	border: 0;
	background: transparent;
	padding: 2px 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
}
.rate-pick-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}
.rate-pick-main .sr-order-tags { margin-top: 0; }
.rate-pick-name {
	font-size: 13px;
	font-weight: 600;
	color: #1a2332;
	line-height: 1.25;
}
.rate-pick-extra,
.rate-pick-via { font-size: 11px; }
.rate-pick-side {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.rate-pick-amt b { font-family: var(--mono); font-size: 14px; }
.rate-pick-ship { min-width: 58px; }
.lc-repeat-wrap { display: block; margin-top: 5px; }
.lc-repeat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid #d9d2f5;
	background: #f1eeff;
	color: var(--violet);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.2;
	white-space: nowrap;
}
.lc-repeat::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--violet);
	box-shadow: 0 0 0 3px rgba(91, 75, 183, .16);
}
.sheet-meta .lc-repeat { margin-top: 6px; }
.wa-open {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #25D366;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
}
.wa-open:hover { background: #1ebe5d; color: #fff !important; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

.queue-card {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 8px;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
}
.queue-card:hover { border-color: #b8c6d9; }
.queue-card b { display: block; font-size: 15px; }
.queue-card span { color: var(--muted); font-size: 12px; }
.queue-card strong { font-family: var(--mono); font-size: 24px; color: var(--blue); }

.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .42); }
.drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(920px, 100%);
	height: 100%;
	background: var(--soft);
	border-left: 1px solid #cbd6e5;
	overflow-y: auto;
	container-type: inline-size;
	container-name: drawer;
}
.drawer-head {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #f4f7fb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px;
	border-bottom: 1px solid var(--line);
}
.drawer-body { padding: 18px; display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; font-size: 13px; min-width: 0; }
.kv span { color: var(--muted); overflow-wrap: anywhere; }
.kv b { overflow-wrap: anywhere; }
.ship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 700;
}
.preset:hover { border-color: var(--blue); color: var(--blue); }

.toast-stack {
	position: fixed;
	left: 50%;
	bottom: max(20px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 80;
	display: grid;
	gap: 8px;
	width: min(420px, calc(100vw - 24px));
	pointer-events: none;
}
.toast {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 13px;
	font-weight: 700;
}
.toast.success { border-color: #bfe3b7; color: var(--green); }
.toast.danger { border-color: #ffd0d0; color: var(--red); }

.settings-list { display: grid; gap: 10px; }
.settings-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
.settings-row b { display: block; font-size: 14px; }
.settings-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.settings-manual {
	margin: 16px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #f7f8fb;
}
.settings-manual h3 { margin: 0 0 8px; font-size: 14px; }
.settings-manual p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-manual ol, .settings-manual ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.settings-manual li { margin: 0 0 8px; }
.settings-manual li b { display: inline; font-size: inherit; }
.settings-manual code { font-family: var(--mono); font-size: 12px; background: #fff; padding: 1px 5px; border-radius: 4px; }
.settings-manual table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; background: #fff; }
.settings-manual th, .settings-manual td { text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.settings-manual th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.settings-manual .rec { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e7f6e4; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 980px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3, .hub-sections { grid-template-columns: 1fr; }
	.span-2 { grid-column: auto; }
	.login-wrap { grid-template-columns: 1fr; }
	.login-art { display: none; }
	.login-panel { padding: 28px 20px; min-height: 100dvh; }
}

@media (max-width: 900px) {
	.shell {
		grid-template-columns: 1fr;
		min-height: 0;
		padding-top: calc(56px + env(safe-area-inset-top));
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}
	.mob-bar {
		display: flex;
		align-items: center;
		gap: 10px;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 40;
		height: calc(56px + env(safe-area-inset-top));
		padding: env(safe-area-inset-top) 10px 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
	}
	.mob-title { min-width: 0; flex: 1; }
	.mob-title strong { display: block; font-size: 15px; line-height: 1.1; }
	.mob-title span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
	.mob-icon {
		width: 42px;
		height: 42px;
		border: 0;
		background: transparent;
		border-radius: 8px;
		display: grid;
		place-items: center;
		color: var(--ink);
		flex: 0 0 auto;
	}
	.mob-icon .nav-ico, .mob-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
	.nav-scrim {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 45;
		background: rgba(16, 24, 40, .42);
	}
	.shell.nav-open .nav-scrim { display: block; }
	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 46;
		width: min(300px, 86vw);
		height: 100dvh;
		transform: translateX(-105%);
		transition: transform .2s ease;
		padding-top: calc(18px + env(safe-area-inset-top));
		padding-bottom: calc(18px + env(safe-area-inset-bottom));
		overflow-y: auto;
	}
	.shell.nav-open .sidebar { transform: translateX(0); }
	.nav-collapse { display: none; }
	.nav { grid-template-columns: 1fr; }
	.nav-btn { min-height: 44px; }
	.nav-btn span:last-child { display: inline; }
	.dock {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		background: #fff;
		border-top: 1px solid var(--line);
		padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
	}
	.dock-btn {
		border: 0;
		background: transparent;
		color: #475467;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 52px;
		font-size: 10px;
		font-weight: 700;
		position: relative;
		padding: 4px 2px;
		text-decoration: none;
	}
	.dock-btn.active { color: var(--blue); }
	.dock-btn .nav-badge { position: absolute; top: 4px; right: 12px; margin: 0; }
	.main { padding: 16px 14px 20px; }
	.sheet-list { max-height: calc(100dvh - 280px); }
	.mo-line { grid-template-columns: 1fr 1fr; }
	.eyebrow { display: none; }
	.topbar { display: grid; gap: 12px; }
	.actions { justify-content: stretch; }
	.actions > * { flex: 1 1 auto; }
	.toolbar { align-items: stretch; }
	.toolbar .input, .toolbar select { max-width: none; flex: 1 1 160px; }
	.form-grid, .ship-grid, .grid-2 { grid-template-columns: 1fr; }
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.queue-card { flex-wrap: wrap; }
	.btn, .btn-soft, .btn-ghost, .btn-danger, .btn-green { white-space: normal; text-align: center; }
	.input, select, textarea { font-size: 16px; }
	.price-in, .stock-in, .num-in, .bulk-in, .note-in { width: 100% !important; max-width: 160px; }
	.note-in { max-width: none; }
	.prod-meta b { max-width: none; white-space: normal; }
	.seo-title, .seo-meta { min-width: 0; }
	.drawer-panel { width: 100%; border-left: 0; }
	.drawer-head { padding: 14px 14px calc(14px); padding-top: calc(14px + env(safe-area-inset-top)); }
	.drawer-head h1 { font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
	.drawer-body { padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
	.drawer-body .toolbar > * { flex: 1 1 140px; }
	.toast-stack { bottom: calc(76px + env(safe-area-inset-bottom)); }
	h1 { font-size: 22px; }
	.metric strong { font-size: 22px; }
	.table-cards thead { display: none; }
	.table-cards tbody { display: block; }
	.table-cards tr {
		display: block;
		border: 1px solid var(--line);
		border-radius: 8px;
		margin: 0 0 10px;
		padding: 10px 12px;
		background: #fff;
	}
	.table-cards td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 12px;
		border: 0;
		padding: 7px 0;
		white-space: normal;
	}
	.table-cards td::before {
		content: attr(data-label);
		flex: 0 0 34%;
		color: var(--muted);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .03em;
		padding-top: 2px;
	}
	.table-cards td[data-label=""] { display: flex; justify-content: flex-end; padding-top: 10px; }
	.table-cards td[data-label=""]::before { display: none; }
	.table-cards tfoot { display: block; }
	.table-cards tfoot tr {
		display: block;
		border: 1px solid var(--line);
		border-radius: 8px;
		margin: 0 0 10px;
		padding: 10px 12px;
		background: #eef3f9;
	}
	.table-cards tfoot td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 12px;
		border: 0;
		padding: 7px 0;
		white-space: normal;
	}
	.table-cards tfoot td::before {
		content: attr(data-label);
		flex: 0 0 34%;
		color: var(--muted);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .03em;
		padding-top: 2px;
	}
	.table-cards tfoot td:not([data-label]) {
		display: block;
		padding-bottom: 8px;
		font-weight: 700;
	}
	.table-cards tfoot td:not([data-label])::before,
	.table-cards tfoot td[data-label=""]::before { display: none; }
	.table-cards tfoot td[data-label=""] { justify-content: flex-end; }
	.table-cards td[data-label="Buyer"] > div { text-align: right; }
	.table-cards .w-check { display: none; }
	.table-cards .compare-actions, .table-cards .row-actions { flex-wrap: wrap; }
	.table-cards .compare-actions .btn-sm, .table-cards .row-actions .btn-sm { flex: 1 1 46%; }
	.ship-compare td:not(.compare-col):not(.compare-actions),
	.ship-compare td[data-label="Buyer"],
	.ship-compare .compare-col,
	.ship-compare .compare-actions {
		width: auto;
		max-width: none;
		min-width: 0;
		white-space: normal;
	}
	.panel-head { flex-wrap: wrap; }
	.settings-row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
	.grid-4 { grid-template-columns: 1fr; }
	.main { padding: 14px 12px 18px; }
}

.parcel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.parcel-head .muted { font-size: 12px; font-weight: 700; }
.preset-add { border-style: dashed; color: var(--muted); }
.preset-add:hover { border-color: var(--green); color: var(--green); }
.preset[disabled] { opacity: .5; cursor: not-allowed; }

.bulk-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: #eaf1fb;
	border: 1px solid #cfe0f7;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.bulk-bar b { font-size: 13px; color: var(--blue); margin-right: 2px; }

.w-check { width: 34px; text-align: center; }
.w-note { width: 168px; }
.note-in { width: 156px; min-width: 120px; font-size: 12px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.star {
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	color: var(--muted);
	padding: 2px 4px;
}
.star:hover, .star.on { color: var(--amber); }
tr.is-unlisted { opacity: .78; }
tr.is-unlisted .prod-meta b { color: var(--muted); }
tr.is-oos .prod-meta b { color: var(--red); }

.list-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	min-height: 32px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
}
.list-switch.is-on { color: var(--green); }
.list-switch.is-warn { color: var(--red); }
.list-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.list-switch-track {
	position: relative;
	width: 40px;
	height: 22px;
	flex: 0 0 40px;
	border-radius: 999px;
	background: #c5ccd6;
	box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08);
	transition: background .16s ease;
}
.list-switch-track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
	transition: transform .16s ease;
}
.list-switch input:checked + .list-switch-track { background: var(--green); }
.list-switch.is-warn input:checked + .list-switch-track { background: var(--red); }
.list-switch input:checked + .list-switch-track::after { transform: translateX(18px); }
.list-switch input:focus-visible + .list-switch-track {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}
.list-switch input:disabled + .list-switch-track { opacity: .55; }

.drawer-panel.is-wide { width: min(1180px, 100%); }
.pack-editor .pack-hero {
	display: grid;
	grid-template-columns: minmax(180px, 220px) 1fr;
	gap: 16px;
	align-items: end;
}
.pack-help { margin: 0; }
.pack-summary { font-size: 13px; color: var(--muted); padding: 4px 0 8px; }
.pack-summary b { color: inherit; font-family: var(--mono); color: var(--ink, #10233d); }
.pack-bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 4px 0 12px;
}
.pack-bulk label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}
.pack-table .list-switch { gap: 6px; min-height: 28px; }
.pack-table .list-switch-text { font-size: 11px; min-width: 46px; }
.pack-hint { font-size: 11px; margin-top: 3px; line-height: 1.3; }
.pack-badges { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.pack-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	background: #eef3fb;
	color: var(--blue);
	border-radius: 999px;
	padding: 1px 7px;
}
.pack-badge-sale { background: #fff4d6; color: #9a6700; }
.pack-table tr.is-unlisted { opacity: .72; }
.pack-editor.is-hide-off .pack-table tr.is-unlisted { display: none; }
.pack-table tr.is-pinned td:nth-child(4) .input { box-shadow: inset 0 0 0 1px #e3a008; }
.pack-table tr.is-low td:nth-child(7) .input { box-shadow: inset 0 0 0 1px #d97706; }
.pack-table tr.is-empty-stock td:nth-child(7) .input { box-shadow: inset 0 0 0 1px var(--red); }
.pack-row-actions { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.pack-filter { margin-left: auto; }
.preset.is-have { opacity: .45; }
.pack-actions { margin-top: 16px; margin-bottom: 0; align-items: center; }
@media (max-width: 800px) {
	.pack-editor .pack-hero { grid-template-columns: 1fr; }
	.drawer-panel.is-wide { width: 100%; }
}

.pack-table th, .pack-table td { padding: 6px 8px; vertical-align: middle; }
.pack-table .input { min-width: 0; }
.num-in { width: 84px; font-family: var(--mono); }
.btn-ghost.danger { color: var(--red); }
.btn-ghost.danger:hover { border-color: var(--red); color: var(--red); }

.cod-banner {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--amber-2);
	border: 1px solid var(--amber);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.cod-banner b { color: var(--amber); font-size: 13px; }
.cod-banner span { color: var(--ink); font-size: 12px; }
.cod-banner span b { color: var(--ink); font-family: var(--mono); }
.cod-amt { color: var(--amber); font-family: var(--mono); }
.cod-banner.is-paid { background: var(--green-2, #eef5e9); border-color: var(--green, #3a7d24); }
.cod-banner.is-paid b { color: var(--green, #3a7d24); }
.cod-wa {
	width: 100%;
	min-height: 240px;
	resize: vertical;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
}
.rto-banner { background: var(--red-2); border-color: var(--red); }
.rto-banner b { color: var(--red); }

.sr-error {
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: var(--red-2);
	border: 1px solid var(--red);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.sr-error b { color: var(--red); font-size: 13px; }
.sr-error span { color: var(--ink); font-size: 12px; }
.sr-error a { color: var(--blue); font-weight: 700; }

.grid > *, .drawer-body > * { min-width: 0; }

@container drawer (max-width: 700px) {
	.drawer-body .grid-2,
	.drawer-body .grid-3,
	.drawer-body .grid-4 { grid-template-columns: 1fr; }
	.drawer-body .span-2 { grid-column: auto; }
	.drawer-body .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container drawer (max-width: 480px) {
	.drawer-body .kv { grid-template-columns: 1fr; gap: 2px; padding: 5px 0; }
	.drawer-body .ship-grid,
	.drawer-body .form-grid { grid-template-columns: 1fr; }
	.drawer-body .toolbar { flex-wrap: wrap; }
	.drawer-body .toolbar > * { flex: 1 1 auto; }
}
.drawer-body .table-wrap { max-width: 100%; overflow-x: auto; }
.rated-for { font-weight: 600; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; }

.split-box {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line);
}
.split-hint { margin: 0 0 10px; font-size: 12px; line-height: 1.45; }
.split-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.split-presets .preset.is-on { border-color: var(--blue); color: var(--blue); background: #eef3fb; }
.split-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.split-row label { font-size: 12px; color: var(--muted); font-weight: 600; }
.split-sum { font-size: 12px; color: var(--muted); margin: 6px 0 8px; }
.split-sum.is-off { color: var(--amber); font-weight: 600; }
.split-slow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.split-table-wrap { overflow-x: auto; margin-top: 12px; }
.split-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.split-table th, .split-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.split-table tr.is-save td { background: var(--green-2); }
.split-table tr.is-more td { background: var(--amber-2); }
.split-price { margin: 0 0 8px; }
.split-price:last-child { margin-bottom: 0; }
.split-price b { font-size: 13px; }

.prod-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prod-meta { display: grid; gap: 1px; min-width: 0; }
.prod-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.prod-meta .muted { font-size: 12px; }
.thumb {
	flex: 0 0 auto;
	width: 40px; height: 40px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--blue); }
.thumb-empty { border-style: dashed; color: var(--muted); }
.thumb-empty span { font-size: 18px; line-height: 1; }
.thumb-empty:hover { color: var(--blue); }

.nav-badge {
	margin-left: auto;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.seo-title { min-width: 220px; }
.seo-meta { min-width: 260px; }

.carrier-card .metric { min-height: 0; }
.carrier-card .table-wrap { max-height: 420px; overflow: auto; }

.ship-compare {
	width: 100%;
	table-layout: auto;
}
.ship-compare th,
.ship-compare td {
	padding: 8px 10px;
	vertical-align: top;
}
.ship-compare td:not(.compare-col):not(.compare-actions) {
	width: 1%;
	white-space: nowrap;
}
.ship-compare td[data-label="Buyer"] {
	white-space: normal;
	max-width: 148px;
}
.ship-compare .compare-col {
	min-width: 156px;
	width: 16%;
	white-space: normal;
}
.ship-compare .compare-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-end;
	width: 1%;
	min-width: 168px;
	max-width: 260px;
}
.ship-compare .compare-actions .chip { margin: 0; }
.rate-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	align-content: start;
}
.ship-compare .rate-opt { margin: 0; line-height: 1.3; }
.ship-compare .rate-svc { font-size: 12px; font-weight: 700; }
button.rate-opt,
.ship-compare .rate-opt {
	display: block;
	width: 100%;
	max-width: none;
	text-align: left;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 6px 8px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}
.rate-grid button.rate-opt + button.rate-opt,
.rate-grid .rate-opt + .rate-opt { margin-top: 0; }
button.rate-opt.is-on,
.ship-compare .rate-opt.is-on {
	background: #eef6ff;
	border-color: #8bb4e8;
	box-shadow: 0 0 0 1px #8bb4e8;
}
.svc-pick {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 140px;
	max-width: 200px;
	min-width: 120px;
}
.svc-pick > span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.svc-select { width: 100%; min-width: 0; font-size: 12px; padding: 6px 8px; }

.activity-list {
	list-style: none;
	margin: 0;
	padding: 8px 18px 18px;
}
.activity-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.activity-list li:last-child { border-bottom: 0; }
.activity-list b { display: block; }
.activity-list time { white-space: nowrap; font-size: 12px; }

.field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.sec-bars {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 88px;
	padding: 4px 0 2px;
}
.sec-bars i {
	flex: 1;
	min-width: 4px;
	background: var(--blue);
	border-radius: 2px 2px 0 0;
	opacity: .85;
}
.sec-bars-amber i { background: var(--amber); }
.sec-bars-red i { background: var(--red); }
.sec-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sec-token {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.sec-token div { flex: 1; min-width: 0; }
.sec-token span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.sec-token > code, .sec-curl {
	font-family: var(--mono);
	font-size: 12px;
	word-break: break-all;
}
.sec-curl {
	margin: 12px 0 0;
	padding: 12px 14px;
	background: #0f1728;
	color: #dbe7ff;
	border-radius: 8px;
	overflow-x: auto;
}
.sec-events { list-style: none; margin: 0; padding: 8px 16px 16px; }
.sec-events li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.sec-events li:last-child { border-bottom: 0; }
.sec-events b { display: block; }
.sec-events span:last-child { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
@media (max-width: 720px) {
	.sec-token { flex-wrap: wrap; }
}

.issue-alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	border-left: 3px solid var(--red);
	cursor: pointer;
}
.issue-alert span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.issue-alert strong { color: var(--blue); font-size: 13px; }
.issue-spikes { margin-bottom: 14px; display: grid; gap: 10px; }
.issue-spike b { display: block; font-family: var(--mono); font-size: 12px; color: var(--red); }
.issue-spike span { color: var(--muted); font-size: 13px; }
.issue-row { cursor: pointer; }
.issue-ctx {
	font-family: var(--mono);
	font-size: 12px;
	white-space: pre-wrap;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 12px;
	overflow-x: auto;
}
.visit-row { cursor: pointer; }
.visit-tl {
	list-style: none;
	margin: 0;
	padding: 0;
}
.visit-tl li {
	position: relative;
	padding: 0 0 14px 18px;
	border-left: 2px solid var(--line);
}
.visit-tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.visit-tl li::before {
	content: '';
	position: absolute;
	left: -5px;
	top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--blue);
}
.visit-tl li.bad::before { background: var(--red); }
.visit-tl li.bad b { color: var(--red); }
.visit-tl [data-copy-reply] { margin-top: 8px; }
.issue-msg {
	font-size: 16px;
	font-weight: 650;
	margin: 0 0 14px;
	line-height: 1.35;
}
.issue-fix {
	border: 1px solid var(--line);
	border-left: 3px solid var(--blue);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	background: var(--soft);
}
.issue-fix.kind-ops { border-left-color: #d97706; }
.issue-fix.kind-buyer { border-left-color: #64748b; }
.issue-fix.kind-payment { border-left-color: var(--blue); }
.issue-fix.kind-site { border-left-color: var(--red); }
.issue-fix .eyebrow { margin-bottom: 4px; }
.issue-fix b { display: block; font-size: 14px; }
.issue-fix p { margin: 6px 0 0; color: var(--ink); font-size: 13px; }
.issue-checks { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.issue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.funnel-bar {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
}
.funnel-bar li {
	font-size: 11px;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 5px 8px;
	border-radius: 6px;
	background: var(--soft);
	color: var(--muted);
	border: 1px solid var(--line);
}
.funnel-bar li.on {
	background: #ecfdf3;
	color: #166534;
	border-color: #bbf7d0;
}
.visit-subnav { margin: 0 0 14px; }
.live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, .16);
	margin-right: 8px;
	vertical-align: middle;
}
.live-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #166534;
}
.live-chat-log {
	display: grid;
	gap: 8px;
	max-height: 240px;
	overflow: auto;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
}
.live-msg p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.live-msg.is-you { border-left: 3px solid var(--blue); padding-left: 8px; }
.live-msg.is-them { border-left: 3px solid #16a34a; padding-left: 8px; }
.live-offer { margin-top: 6px; }
.live-offer code {
	font-size: 12px;
	background: #fff;
	border: 1px dashed var(--blue);
	border-radius: 6px;
	padding: 2px 6px;
	color: var(--blue);
}
.live-compose textarea { width: 100%; }
.data .funnel-bar { margin: 0; gap: 4px; }
.data .funnel-bar li { padding: 3px 6px; font-size: 10px; }
.visit-row.is-left td:first-child {
	box-shadow: inset 3px 0 0 #d97706;
}
.visit-id-chips { margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 4px; }
.visit-ip { opacity: .62; }
.visit-ip b { font-weight: 500; font-family: var(--mono); font-size: 12px; }

/* Messages / Tickets: lock the two-pane inbox to the viewport so the thread
   list cannot stretch the chat log into a multi-screen beige page. */
@media (min-width: 901px) {
	main.main:has(.wa-inbox) {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		padding-bottom: 16px;
	}
	main.main:has(.wa-inbox) > .topbar,
	main.main:has(.wa-inbox) > .grid {
		flex: 0 0 auto;
	}
	main.main:has(.wa-inbox) > .topbar { margin-bottom: 12px; }
	main.main:has(.wa-inbox) > .grid { margin-bottom: 10px; }
	main.main .wa-inbox {
		flex: 1 1 0;
		min-height: 0;
		height: auto;
		max-height: none;
		overflow: hidden;
		display: grid;
		grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		align-items: stretch;
	}
	main.main .wa-list,
	main.main .wa-pane {
		min-height: 0;
		height: 100%;
		max-height: none;
	}
	main.main .wa-list { overflow: auto; overscroll-behavior: contain; }
	main.main .wa-list-tools {
		position: sticky;
		top: 0;
		z-index: 1;
	}
	main.main .wa-pane { overflow: hidden; }
	main.main .wa-head,
	main.main .wa-compose { flex-shrink: 0; }
	main.main .wa-log {
		flex: 1 1 0;
		min-height: 0;
		overflow: auto;
		overscroll-behavior: contain;
	}
	main.main .wa-row-meta {
		min-width: 0;
		justify-items: end;
	}
	main.main .wa-row-meta .chip {
		font-size: 10px;
		padding: 2px 6px;
	}
}
@media (max-width: 900px) {
	main.main .wa-inbox {
		min-height: 0;
		height: auto;
	}
	main.main .wa-pane { min-height: 48vh; }
}

body.sr-pop-open { overflow: hidden; }
.sr-pop {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 36px 16px 24px;
}
.sr-pop-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, .48);
}
.sr-pop-card {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100dvh - 56px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 22px 60px rgba(16, 24, 40, .28);
}
.sr-pop-head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px 12px;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.sr-pop-head h1 { font-size: 20px; margin: 0; }
.sr-pop-head .muted { margin: 4px 0 0; }
.sr-pop-banner {
	margin: 14px 18px 0;
	padding: 12px 14px;
	background: #eef6ff;
	border: 1px solid #c5ddf7;
	border-radius: 10px;
	display: grid;
	gap: 4px;
}
.sr-pop-banner b { font-size: 13px; color: var(--blue); }
.sr-pop-banner span { font-size: 13px; color: var(--ink); }
.sr-pop-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 8px;
}
.sr-pop-tools .input { flex: 1 1 auto; }
.sr-pop-empty { padding: 24px 18px 28px; color: var(--muted); }
.sr-pop-table-wrap { padding: 0 10px 16px; }
.sr-pop-table { width: 100%; border-collapse: collapse; }
.sr-pop-table th,
.sr-pop-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	font-size: 13px;
}
.sr-pop-table th { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sr-pop-table tr.is-amazon td { background: #fff8ef; }
.sr-pop-table tr.is-current td { background: #f4f7fb; }
@media (max-width: 640px) {
	.sr-pop { padding: 12px 8px 8px; align-items: stretch; }
	.sr-pop-card { max-height: calc(100dvh - 16px); border-radius: 12px; }
	.sr-pop-table thead { display: none; }
	.sr-pop-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
	.sr-pop-table td { border: 0; padding: 0; }
	.sr-pop-table td:first-child { grid-column: 1 / -1; }
}

