:root {
	--navy: #0b1f3a;
	--navy-2: #163156;
	--ink: #0f1111;
	--muted: #565959;
	--paper: #eaeded;
	--panel: #ffffff;
	--line: #d5d9d9;
	--line-2: #e3e6e6;
	--orange: #ff9900;
	--orange-ink: #111;
	--link: #007185;
	--green: #067d62;
	--green-2: #e7f6f2;
	--amber: #b36b00;
	--amber-2: #fff6e5;
	--red: #c40000;
	--red-2: #fdecec;
	--blue: #1d4e89;
	--blue-2: #e8f1fb;
	--display: Archivo, "Amazon Ember", Arial, sans-serif;
	--font: "Public Sans", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--header: 56px;
	--nav: 232px;
	--radius: 4px;
	--shadow: 0 1px 2px rgba(15, 17, 17, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.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 !important;
	white-space: nowrap;
	vertical-align: middle;
}
.wa-open:hover { background: #1ebe5d; color: #fff !important; text-decoration: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }

.app-boot {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
	background: var(--navy);
	color: #fff;
}
.boot-card {
	display: flex;
	gap: 14px;
	align-items: center;
	background: #fff;
	color: var(--ink);
	border-radius: 6px;
	padding: 18px 20px;
	min-width: 280px;
}
.boot-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.mark {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 4px;
	background: var(--orange);
	color: #111;
	font-family: var(--display);
	font-size: 12px;
	font-weight: 800;
}

.toast-stack {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 80;
	display: grid;
	gap: 8px;
}
.toast {
	background: var(--navy);
	color: #fff;
	padding: 10px 14px;
	border-radius: 4px;
	box-shadow: var(--shadow);
	max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.danger { background: var(--red); }

.chip {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	background: var(--line-2);
	color: var(--muted);
	white-space: nowrap;
}
.chip-green { background: var(--green-2); color: var(--green); }
.chip-amber { background: var(--amber-2); color: var(--amber); }
.chip-red { background: var(--red-2); color: var(--red); }
.chip-blue { background: var(--blue-2); color: var(--blue); }
.chip-gray { background: #f0f2f2; color: #565959; }

.btn, .btn-cta, .btn-green, .btn-ghost, .btn-soft, .btn-danger, .btn-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none !important;
	white-space: nowrap;
}
.btn-cta, .btn-green, .btn {
	background: linear-gradient(#ffd814, var(--orange));
	border-color: #e39400;
	color: var(--orange-ink);
}
.btn-cta:hover, .btn-green:hover, .btn:hover { filter: brightness(.97); }
.btn-ghost {
	background: #fff;
	border-color: var(--line);
	color: var(--ink);
}
.btn-soft {
	background: #fff;
	border-color: var(--navy);
	color: var(--navy);
}
.btn-danger {
	background: #fff;
	border-color: #f5c2c2;
	color: var(--red);
}
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-google {
	width: 100%;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-weight: 650;
}
.login-or {
	text-align: center;
	color: var(--muted);
	margin: 16px 0 4px;
	font-size: 12px;
}

.sc-login {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 28px 16px;
	background:
		radial-gradient(900px 280px at 50% -80px, rgba(255, 153, 0, .18), transparent 60%),
		var(--navy);
}
.sc-login .card {
	width: min(440px, 100%);
	background: #fff;
	border-radius: 8px;
	padding: 28px;
	box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.sc-login h1 { margin: 0 0 8px; font-size: 26px; }
.sc-login .lead { color: var(--muted); margin: 0 0 22px; }
.sc-login label { display: block; font-size: 13px; font-weight: 650; margin: 12px 0 6px; }
.sc-login input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #888c8c;
	border-radius: var(--radius);
}
.sc-login .reg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; width: min(440px, 100%); }
.sc-login .reg-top strong { display: block; }
.sc-login .reg-top .muted { color: rgba(255,255,255,.7); font-size: 12px; }
.sc-login > .reg-top { position: absolute; top: 24px; left: 24px; width: auto; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }

.shell {
	min-height: 100vh;
	display: grid;
	grid-template-rows: var(--header) 1fr;
	grid-template-columns: var(--nav) 1fr;
}
.topbar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 0 16px;
	background: var(--navy);
	color: #fff;
}
.topbar .brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 210px;
}
.topbar .brand img { height: 28px; width: auto; }
.topbar .brand strong { display: block; font-family: var(--display); font-size: 15px; line-height: 1.1; }
.topbar .brand span { display: block; font-size: 11px; color: rgba(255,255,255,.65); }
.top-search {
	flex: 1;
	max-width: 560px;
	display: flex;
	height: 36px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}
.top-search input {
	flex: 1;
	border: 0;
	padding: 0 12px;
	outline: none;
	color: var(--ink);
}
.top-search button {
	width: 46px;
	border: 0;
	background: var(--orange);
	color: #111;
	font-weight: 800;
}
.top-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.top-user strong { display: block; }
.top-user span { display: block; color: rgba(255,255,255,.65); }

.sidebar {
	background: #fff;
	border-right: 1px solid var(--line);
	padding: 12px 10px 24px;
}
.nav { display: grid; gap: 2px; }
.nav-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 4px;
	padding: 9px 10px;
	color: var(--ink);
	font-weight: 650;
}
.nav-btn:hover { background: #f3f3f3; }
.nav-btn.active {
	background: #f7ead0;
	box-shadow: inset 3px 0 0 var(--orange);
}
.nav-ico {
	width: 18px;
	text-align: center;
	opacity: .8;
}
.sidebar-foot { display: none; }

.main {
	padding: 22px 28px 48px;
	min-width: 0;
}
.page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 4px 0 0; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs b { color: var(--ink); font-weight: 650; }

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 0;
}
.panel-head h2 { margin: 0; font-size: 16px; }

.stat-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.stat {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 14px 16px;
}
.stat b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; }
.stat span { color: var(--muted); font-size: 12px; }

.tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--line);
	margin-bottom: 0;
	padding: 0 8px;
	overflow-x: auto;
}
.tab {
	border: 0;
	background: transparent;
	height: 42px;
	padding: 0 14px;
	color: var(--muted);
	font-weight: 650;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.tab.active { color: var(--ink); border-bottom-color: var(--orange); }
.inv-tools {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line-2);
}
.inv-tools input[type="search"] {
	flex: 1;
	height: 36px;
	border: 1px solid #888c8c;
	border-radius: var(--radius);
	padding: 0 10px;
}

.table-wrap { overflow: auto; }
table.table-cards {
	width: 100%;
	border-collapse: collapse;
}
.table-cards th, .table-cards td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line-2);
	vertical-align: middle;
}
.table-cards th {
	font-size: 12px;
	color: var(--muted);
	font-weight: 700;
	background: #f7fafa;
}
.table-cards tr:hover td { background: #fafafa; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px !important; }
.prod-cell { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.thumb, .thumb-lg {
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #f3f3f3;
	overflow: hidden;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
}
.thumb img, .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.thumb-lg { width: 88px; height: 88px; font-size: 12px; }
.stock-edit { width: 72px; height: 32px; border: 1px solid #888c8c; border-radius: 3px; padding: 0 8px; }

.wizard-steps {
	display: flex;
	gap: 0;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
}
.wstep {
	flex: 1;
	padding: 12px 14px;
	border-right: 1px solid var(--line-2);
	background: #fff;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}
.wstep:last-child { border-right: 0; }
.wstep b { display: block; font-family: var(--display); font-size: 13px; color: var(--ink); margin-top: 2px; }
.wstep.on { background: #fff8e8; box-shadow: inset 0 -3px 0 var(--orange); }
.wstep.done b { color: var(--green); }

.path-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.path-card {
	text-align: left;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	padding: 22px 20px;
	box-shadow: var(--shadow);
}
.path-card:hover { border-color: var(--navy); text-decoration: none; }
.path-card-accent { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.path-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}
.path-card h2 { margin: 0 0 8px; font-size: 20px; }
.path-card p { margin: 0; color: var(--muted); }
.cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	margin-top: 8px;
	align-items: end;
}
@media (max-width: 720px) {
	.cf-row { grid-template-columns: 1fr; }
}

.search-hero {
	padding: 28px 24px;
	text-align: left;
}
.search-hero h2 { margin: 0 0 8px; font-size: 22px; }
.search-box {
	display: flex;
	margin-top: 16px;
	max-width: 720px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid var(--navy);
}
.search-box input {
	flex: 1;
	border: 0;
	padding: 0 14px;
	outline: none;
	font-size: 16px;
}
.search-box button {
	min-width: 120px;
	border: 0;
	background: var(--orange);
	font-weight: 800;
}

.hit-list { display: grid; gap: 10px; padding: 4px 0 8px; }
.hit {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
}
.hit:hover { border-color: var(--navy-2); }
.hit h3 { margin: 0 0 4px; font-size: 16px; }
.meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.hit-actions { display: grid; gap: 8px; justify-items: end; }

.sc-field { display: flex; flex-direction: column; gap: 6px; }
.sc-field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-field input, .sc-field select, .sc-field textarea {
	height: 38px;
	border: 1px solid #888c8c;
	border-radius: var(--radius);
	padding: 0 10px;
	background: #fff;
}
.sc-add { display: grid; gap: 14px; }
.sc-add .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-onboard { max-width: 760px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pack-row {
	display: grid;
	grid-template-columns: 1.2fr 90px 140px 100px auto;
	gap: 8px;
	align-items: end;
	margin-bottom: 8px;
}
.kind-row, .preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.preset {
	height: 32px;
	padding: 0 10px;
	border: 1px dashed var(--line);
	background: #fff;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 700;
}
.preset.on { border-style: solid; background: #fff8e8; border-color: var(--orange); }
.req-note {
	font-size: 12px;
	background: var(--amber-2);
	border: 1px solid #f0d9a6;
	padding: 10px 12px;
	border-radius: 4px;
}
.review-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.kv span { color: var(--muted); }

.ship-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ship-panel .sr-error { background: var(--red-2); color: var(--red); padding: 10px 12px; border-radius: 4px; margin: 8px 0; }
.self-ship { border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 980px) {
	.shell { grid-template-columns: 1fr; }
	.sidebar {
		display: flex;
		overflow-x: auto;
		padding: 8px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.nav { display: flex; width: 100%; }
	.nav-btn { white-space: nowrap; }
	.top-search { display: none; }
	.main { padding: 16px; }
	.page-head { flex-direction: column; align-items: stretch; }
}
.grid.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nav-badge {
	margin-left: 6px;
	background: var(--orange);
	color: #111;
	border-radius: 10px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 800;
}
@media (max-width: 980px) {
	.grid.grid-2 { grid-template-columns: 1fr; }
}
