/* JPEX Stock Count — front-end app
   Counting on a phone, in a hall. Quiet surfaces, one accent, tabular numerals
   so quantities line up straight down the list. */

.jsc-root {
	--jsc-accent: #2f6fed;
	--jsc-accent-soft: rgba(47, 111, 237, .1);
	--jsc-bg: #f4f6f9;
	--jsc-surface: #ffffff;
	--jsc-surface-2: #eef1f6;
	--jsc-line: #e5e9f0;
	--jsc-line-soft: #f0f3f7;
	--jsc-text: #121922;
	--jsc-muted: #6a7889;
	--jsc-ok: #128a5b;
	--jsc-warn: #a86e10;
	--jsc-danger: #cc4132;
	--jsc-shadow: 0 1px 2px rgba(18, 30, 45, .05), 0 8px 24px rgba(18, 30, 45, .05);
	--jsc-shadow-lift: 0 10px 30px rgba(18, 30, 45, .16);
	--jsc-r: 16px;
	--jsc-r-sm: 12px;
	--jsc-tap: 44px;
	--jsc-safe-b: env(safe-area-inset-bottom, 0px);
	--jsc-safe-t: env(safe-area-inset-top, 0px);

	position: relative;
	color: var(--jsc-text);
	background: var(--jsc-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color-scheme: light;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.jsc-root[data-theme="dark"] {
	--jsc-accent-soft: rgba(255, 255, 255, .07);
	--jsc-bg: #10161e;
	--jsc-surface: #18202a;
	--jsc-surface-2: #222c38;
	--jsc-line: #2a3542;
	--jsc-line-soft: #232e3a;
	--jsc-text: #e8eef6;
	--jsc-muted: #93a3b6;
	--jsc-ok: #35b37e;
	--jsc-warn: #d8a13c;
	--jsc-danger: #e8695a;
	--jsc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
	--jsc-shadow-lift: 0 10px 30px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	.jsc-root[data-theme="auto"] {
		--jsc-accent-soft: rgba(255, 255, 255, .07);
		--jsc-bg: #10161e;
		--jsc-surface: #18202a;
		--jsc-surface-2: #222c38;
		--jsc-line: #2a3542;
		--jsc-line-soft: #232e3a;
		--jsc-text: #e8eef6;
		--jsc-muted: #93a3b6;
		--jsc-ok: #35b37e;
		--jsc-warn: #d8a13c;
		--jsc-danger: #e8695a;
		--jsc-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
		--jsc-shadow-lift: 0 10px 30px rgba(0, 0, 0, .45);
		color-scheme: dark;
	}
}

.jsc-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

body.jsc-locked { overflow: hidden !important; }
body.jsc-standalone { margin: 0; padding: 0; background: #f4f6f9; }
body.jsc-standalone #wpadminbar { display: none; }

.jsc-root *,
.jsc-root *::before,
.jsc-root *::after { box-sizing: border-box; }

.jsc-root button,
.jsc-root input,
.jsc-root select,
.jsc-root textarea { font: inherit; color: inherit; margin: 0; border-radius: 10px; }
.jsc-root button { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.jsc-root a { color: var(--jsc-accent); text-decoration: none; }
.jsc-root :focus-visible { outline: 2px solid var(--jsc-accent); outline-offset: 2px; }
.jsc-root svg { display: block; }

.jsc-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- shell ---------- */

.jsc-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.jsc-root:not(.jsc-fullscreen) .jsc-app {
	height: 82vh;
	border: 1px solid var(--jsc-line);
	border-radius: 20px;
	overflow: hidden;
}

.jsc-head {
	flex: 0 0 auto;
	background: var(--jsc-surface);
	padding: calc(10px + var(--jsc-safe-t)) 14px 10px;
	border-bottom: 1px solid var(--jsc-line);
	z-index: 2;
}

.jsc-head-top { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.jsc-head-top h1 {
	flex: 1;
	font-size: 19px;
	font-weight: 660;
	letter-spacing: -0.02em;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jsc-icon-btn {
	width: 40px;
	height: 40px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	color: var(--jsc-muted);
	flex: 0 0 auto;
}
.jsc-icon-btn:active { background: var(--jsc-surface-2); }
.jsc-icon-btn.is-accent { color: var(--jsc-accent); }

.jsc-search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--jsc-surface-2);
	border-radius: 13px;
	padding: 0 12px;
	height: 44px;
	margin-top: 10px;
	color: var(--jsc-muted);
}
.jsc-search input {
	flex: 1;
	background: none;
	border: 0;
	height: 100%;
	font-size: 16px;
	color: var(--jsc-text);
	min-width: 0;
}
.jsc-search input::placeholder { color: var(--jsc-muted); }

.jsc-chips {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	margin: 10px -14px 0;
	padding: 0 14px 2px;
	scrollbar-width: none;
}
.jsc-chips::-webkit-scrollbar { display: none; }

.jsc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	min-height: 36px;
	padding: 0 15px;
	border-radius: 999px;
	border: 1px solid var(--jsc-line);
	background: var(--jsc-surface-2);
	color: var(--jsc-muted);
	font-size: 13.5px;
	font-weight: 560;
	line-height: 1;
	transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.jsc-chip[aria-pressed="true"] {
	background: var(--jsc-accent);
	border-color: var(--jsc-accent);
	color: #fff;
}
.jsc-chip.is-filters { border-style: dashed; }
.jsc-chip.is-filters[aria-pressed="true"] { border-style: solid; }

/* Wrapping is for the filter sheet only — the row under the search stays on one line. */
.jsc-chips-wrap {
	flex-wrap: wrap;
	overflow: visible;
	row-gap: 8px;
}

.jsc-count-badge {
	display: inline-block;
	min-width: 18px;
	padding: 1px 5px;
	border-radius: 999px;
	background: var(--jsc-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 640;
	text-align: center;
	vertical-align: 1px;
}

/* ---------- scroll body ---------- */

.jsc-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 12px 12px 10px;
}

/* ---------- item list ---------- */

.jsc-list {
	background: var(--jsc-surface);
	border-radius: var(--jsc-r);
	box-shadow: var(--jsc-shadow);
	overflow: hidden;
}

.jsc-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid var(--jsc-line-soft);
	background: var(--jsc-surface);
	transition: background .5s ease;
}
.jsc-item:last-child { border-bottom: 0; }
.jsc-item.is-selected { background: var(--jsc-accent-soft); }
.jsc-item.is-fresh { background: rgba(18, 138, 91, .09); }

.jsc-thumb {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--jsc-surface-2);
	display: grid;
	place-items: center;
	color: var(--jsc-muted);
	overflow: hidden;
	flex: 0 0 auto;
}
.jsc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jsc-item-main { min-width: 0; }
.jsc-item-name {
	font-size: 15px;
	font-weight: 580;
	letter-spacing: -0.006em;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jsc-item-meta {
	font-size: 12.5px;
	color: var(--jsc-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jsc-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: 1px;
}
.jsc-dot-warn { background: var(--jsc-warn); }
.jsc-dot-open { background: #c3ccd8; }
.jsc-root[data-theme="dark"] .jsc-dot-open { background: #445468; }

.jsc-qty { display: flex; align-items: center; gap: 4px; }
.jsc-step {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--jsc-surface-2);
	display: grid;
	place-items: center;
	font-size: 19px;
	font-weight: 600;
	color: var(--jsc-text);
}
.jsc-step:active { background: var(--jsc-accent); color: #fff; }
.jsc-qty-val {
	min-width: 52px;
	text-align: center;
	font-size: 19px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	padding: 3px 2px;
}
.jsc-qty-val.is-open { color: var(--jsc-muted); font-weight: 500; }
.jsc-qty-val small { display: block; font-size: 10px; font-weight: 500; color: var(--jsc-muted); letter-spacing: 0; }

/* ---------- empty / loading ---------- */

.jsc-empty { text-align: center; padding: 54px 20px; color: var(--jsc-muted); }
.jsc-empty h3 { color: var(--jsc-text); font-size: 17px; margin: 0 0 6px; font-weight: 640; }
.jsc-empty p { margin: 0 0 16px; font-size: 14px; }

.jsc-skeleton {
	height: 65px;
	border-bottom: 1px solid var(--jsc-line-soft);
	background: linear-gradient(90deg, var(--jsc-surface) 25%, var(--jsc-surface-2) 37%, var(--jsc-surface) 63%);
	background-size: 400% 100%;
	animation: jsc-shimmer 1.3s ease infinite;
}
@keyframes jsc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- footer strip + nav ---------- */

.jsc-strip {
	flex: 0 0 auto;
	display: flex;
	justify-content: space-around;
	gap: 10px;
	background: var(--jsc-surface);
	border-top: 1px solid var(--jsc-line);
	padding: 8px 14px;
	font-size: 12px;
	color: var(--jsc-muted);
}
.jsc-strip b { color: var(--jsc-text); font-weight: 650; font-variant-numeric: tabular-nums; }

.jsc-nav {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--jsc-surface);
	border-top: 1px solid var(--jsc-line);
	padding-bottom: var(--jsc-safe-b);
}
.jsc-nav button {
	padding: 9px 4px 10px;
	color: var(--jsc-muted);
	font-size: 11px;
	font-weight: 560;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}
.jsc-nav button[aria-current="true"] { color: var(--jsc-accent); }

.jsc-fab {
	position: absolute;
	right: 16px;
	bottom: calc(var(--jsc-safe-b) + 118px);
	width: 54px;
	height: 54px;
	border-radius: 18px;
	background: var(--jsc-accent);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: var(--jsc-shadow-lift);
	z-index: 5;
}
.jsc-fab:active { transform: scale(.94); }

/* ---------- sheets ---------- */

.jsc-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(12, 18, 26, .42);
	z-index: 99995;
	opacity: 0;
	animation: jsc-fade .15s ease forwards;
}
@keyframes jsc-fade { to { opacity: 1; } }

.jsc-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	z-index: 99996;
	background: var(--jsc-bg);
	border-radius: 20px 20px 0 0;
	max-height: 92vh;
	max-height: 92dvh;
	display: flex;
	flex-direction: column;
	transform: translateY(100%);
	animation: jsc-rise .2s cubic-bezier(.22, 1, .36, 1) forwards;
	box-shadow: var(--jsc-shadow-lift);
}
/* The editor takes the full height so its Save row never falls behind the keyboard. */
.jsc-sheet.is-tall { top: 0; max-height: none; border-radius: 0; }
@keyframes jsc-rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	.jsc-sheet, .jsc-backdrop, .jsc-skeleton { animation: none; transform: none; opacity: 1; }
}

.jsc-sheet-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: calc(10px + var(--jsc-safe-t)) 12px 10px;
	border-bottom: 1px solid var(--jsc-line);
	background: var(--jsc-surface);
	flex: 0 0 auto;
}
.jsc-sheet.is-tall .jsc-sheet-head { border-radius: 0; }
.jsc-sheet-head h2 { flex: 1; font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -0.015em; }
.jsc-sheet-head .jsc-btn { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.jsc-sheet-body { overflow-y: auto; padding: 14px; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.jsc-sheet-foot {
	display: flex;
	gap: 8px;
	padding: 10px 14px calc(12px + var(--jsc-safe-b));
	border-top: 1px solid var(--jsc-line);
	background: var(--jsc-surface);
	flex: 0 0 auto;
}

/* ---------- forms ---------- */

.jsc-field { margin-bottom: 13px; }
.jsc-field > label { display: block; font-size: 12px; color: var(--jsc-muted); margin-bottom: 6px; font-weight: 560; }
.jsc-input,
.jsc-root select.jsc-input,
.jsc-root textarea.jsc-input {
	width: 100%;
	background: var(--jsc-surface);
	border: 1px solid var(--jsc-line);
	border-radius: 12px;
	padding: 11px 13px;
	min-height: var(--jsc-tap);
	font-size: 16px;
	color: var(--jsc-text);
	appearance: none;
}
.jsc-root textarea.jsc-input { min-height: 84px; resize: vertical; line-height: 1.5; }
.jsc-input:focus { border-color: var(--jsc-accent); box-shadow: 0 0 0 3px var(--jsc-accent-soft); }
.jsc-input[readonly] { color: var(--jsc-muted); background: var(--jsc-surface-2); }
.jsc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jsc-hint { font-size: 12px; color: var(--jsc-muted); margin: 6px 0 0; }

.jsc-qty-big { display: flex; align-items: center; gap: 10px; }
.jsc-qty-big .jsc-step { width: 54px; height: 54px; font-size: 25px; border-radius: 16px; border: 1px solid var(--jsc-line); }
.jsc-qty-big input {
	flex: 1;
	text-align: center;
	font-size: 30px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	min-height: 54px;
	letter-spacing: -0.02em;
}

.jsc-calc {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--jsc-line);
	border-radius: var(--jsc-r-sm);
	overflow: hidden;
	margin-bottom: 13px;
}
.jsc-calc div { background: var(--jsc-surface); padding: 10px 12px; }
.jsc-calc span { display: block; font-size: 11px; color: var(--jsc-muted); }
.jsc-calc b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* colour picker */
.jsc-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jsc-swatch {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	border: 2px solid transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.jsc-swatch[aria-pressed="true"] { border-color: var(--jsc-text); }
.jsc-root input[type="color"].jsc-input { padding: 4px; height: 46px; }

/* photos */
.jsc-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.jsc-photo {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 13px;
	overflow: hidden;
	border: 1px solid var(--jsc-line);
	background: var(--jsc-surface-2);
}
.jsc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jsc-photo-x {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: rgba(12, 18, 26, .68);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 15px;
	line-height: 1;
}
.jsc-photo-add {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 13px;
	border: 1px dashed var(--jsc-line);
	color: var(--jsc-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
	font-size: 11px;
	background: var(--jsc-surface);
	overflow: hidden;
	cursor: pointer;
}
/* The file input covers the tile, so the tap opens the camera or gallery natively. */
.jsc-photo-add input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}
.jsc-photo.is-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .74) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='9' fill='none' stroke='%232f6fed' stroke-width='2' stroke-dasharray='40 20'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.9s' repeatCount='indefinite'/></circle></svg>") center / 24px no-repeat;
}

/* buttons */
.jsc-btn {
	min-height: var(--jsc-tap);
	padding: 11px 16px;
	border-radius: 13px;
	font-size: 15px;
	font-weight: 590;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: var(--jsc-surface);
	border: 1px solid var(--jsc-line);
	color: var(--jsc-text);
}
.jsc-btn-primary { background: var(--jsc-accent); border-color: var(--jsc-accent); color: #fff; }
.jsc-btn-danger { background: transparent; border-color: var(--jsc-danger); color: var(--jsc-danger); }
.jsc-btn-ghost { background: transparent; border-color: transparent; color: var(--jsc-accent); }
.jsc-btn-block { width: 100%; }
.jsc-btn:disabled { opacity: .5; }
.jsc-btn:active { transform: translateY(1px); }
.jsc-flex { display: flex; gap: 8px; }
.jsc-flex > * { flex: 1; }

/* ---------- live screen ---------- */

.jsc-live-head { text-align: center; padding: 8px 0 2px; }
.jsc-live-pct {
	font-size: 48px;
	font-weight: 680;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
	line-height: 1.05;
}
.jsc-live-sub { font-size: 13px; color: var(--jsc-muted); }
.jsc-bar { height: 8px; border-radius: 6px; background: var(--jsc-surface-2); overflow: hidden; margin: 14px 0 16px; }
.jsc-bar i { display: block; height: 100%; background: var(--jsc-accent); border-radius: 6px; transition: width .4s ease; }

.jsc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--jsc-line);
	border-radius: var(--jsc-r-sm);
	overflow: hidden;
}
.jsc-stats div { background: var(--jsc-surface); padding: 12px 8px; text-align: center; }
.jsc-stats b { display: block; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.jsc-stats span { font-size: 11px; color: var(--jsc-muted); }

.jsc-feed-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--jsc-line-soft);
}
.jsc-feed-row:last-child { border-bottom: 0; }
.jsc-feed-main { flex: 1; min-width: 0; }
.jsc-feed-main b { display: block; font-size: 14px; font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jsc-feed-main span { font-size: 11.5px; color: var(--jsc-muted); }
.jsc-feed-qty { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.jsc-feed-row.is-new { animation: jsc-flash 1.8s ease; }
@keyframes jsc-flash { 0% { background: rgba(18, 138, 91, .14); } 100% { background: transparent; } }

.jsc-live-note { font-size: 12px; color: var(--jsc-muted); text-align: center; padding: 12px 0 4px; }
.jsc-pulse {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--jsc-ok);
	margin-right: 6px;
	animation: jsc-blink 2s ease infinite;
}
@keyframes jsc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- history ---------- */

.jsc-hist { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--jsc-line-soft); }
.jsc-hist:last-child { border-bottom: 0; }
.jsc-hist-main { flex: 1; min-width: 0; }
.jsc-hist-who { font-size: 13px; font-weight: 580; }
.jsc-hist-when { font-size: 11.5px; color: var(--jsc-muted); }
.jsc-hist-change {
	display: flex;
	align-items: baseline;
	gap: 7px;
	flex-wrap: wrap;
	font-size: 13px;
	margin-top: 5px;
}
.jsc-hist-change em { font-style: normal; color: var(--jsc-muted); min-width: 92px; }
.jsc-was {
	text-decoration: line-through;
	color: var(--jsc-muted);
	font-variant-numeric: tabular-nums;
}
.jsc-now { font-weight: 620; font-variant-numeric: tabular-nums; }
.jsc-arrow { color: var(--jsc-muted); }
.jsc-hist-tag {
	font-size: 10px;
	font-weight: 640;
	text-transform: none;
	color: var(--jsc-accent);
	background: var(--jsc-accent-soft);
	border-radius: 6px;
	padding: 2px 6px;
	align-self: flex-start;
}

/* ---------- cards, settings ---------- */

.jsc-card {
	background: var(--jsc-surface);
	border-radius: var(--jsc-r);
	box-shadow: var(--jsc-shadow);
	padding: 14px;
	margin-bottom: 10px;
}
.jsc-card h3 { font-size: 14px; font-weight: 650; margin: 0 0 3px; }
.jsc-card > p { font-size: 12.5px; color: var(--jsc-muted); margin: 0 0 12px; }
.jsc-card-list { padding: 2px 14px; }

.jsc-menu-row {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 13px 0;
	border-bottom: 1px solid var(--jsc-line-soft);
	font-size: 15px;
	text-align: left;
	color: var(--jsc-text);
}
.jsc-menu-row:last-child { border-bottom: 0; }
.jsc-menu-row > span { flex: 1 1 auto; min-width: 0; }
.jsc-menu-row small { color: var(--jsc-muted); font-size: 12.5px; }

.jsc-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--jsc-line-soft);
}
.jsc-switch:last-child { border-bottom: 0; }
.jsc-switch span { font-size: 14px; }
.jsc-switch small { display: block; font-size: 11.5px; color: var(--jsc-muted); }
.jsc-toggle {
	width: 48px;
	height: 28px;
	border-radius: 999px;
	background: var(--jsc-surface-2);
	box-shadow: inset 0 0 0 1px var(--jsc-line);
	position: relative;
	flex: 0 0 auto;
	transition: background .15s ease;
}
.jsc-toggle::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
	transition: transform .15s ease;
}
.jsc-toggle[aria-pressed="true"] { background: var(--jsc-accent); box-shadow: none; }
.jsc-toggle[aria-pressed="true"]::after { transform: translateX(20px); }

.jsc-segment {
	display: flex;
	gap: 3px;
	background: var(--jsc-surface-2);
	border-radius: 12px;
	padding: 3px;
}
.jsc-segment button {
	flex: 1;
	padding: 9px 6px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 570;
	color: var(--jsc-muted);
}
.jsc-segment button[aria-pressed="true"] { background: var(--jsc-surface); color: var(--jsc-text); box-shadow: var(--jsc-shadow); }

.jsc-taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.jsc-taglist button {
	background: var(--jsc-surface-2);
	border-radius: 999px;
	padding: 7px 11px;
	font-size: 13px;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.jsc-taglist button i { font-style: normal; color: var(--jsc-muted); }

.jsc-user { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--jsc-line-soft); }
.jsc-user:last-of-type { border-bottom: 0; }
.jsc-avatar {
	width: 38px;
	height: 38px;
	border-radius: 13px;
	background: var(--jsc-accent-soft);
	color: var(--jsc-accent);
	display: grid;
	place-items: center;
	font-weight: 660;
	font-size: 14px;
	flex: 0 0 auto;
}
.jsc-user-main { flex: 1; min-width: 0; }
.jsc-user-main b { display: block; font-size: 14px; font-weight: 590; }
.jsc-user-main span { font-size: 11.5px; color: var(--jsc-muted); }

/* ---------- toast / offline ---------- */

.jsc-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--jsc-safe-b) + 94px);
	transform: translateX(-50%);
	background: #121922;
	color: #fff;
	padding: 11px 16px;
	border-radius: 13px;
	font-size: 14px;
	z-index: 99999;
	max-width: calc(100vw - 32px);
	box-shadow: var(--jsc-shadow-lift);
}
.jsc-toast[data-kind="error"] { background: var(--jsc-danger); }
.jsc-toast[data-kind="ok"] { background: var(--jsc-ok); }

.jsc-offline {
	background: #fdf3dd;
	color: #6b4c07;
	text-align: center;
	font-size: 12px;
	font-weight: 580;
	padding: 6px 10px;
}
.jsc-root[data-theme="dark"] .jsc-offline { background: #3b2f12; color: #f0d79a; }

/* ---------- login gate ---------- */

.jsc-gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--jsc-bg); }
.jsc-gate-card {
	width: 100%;
	max-width: 350px;
	background: var(--jsc-surface);
	border-radius: 20px;
	box-shadow: var(--jsc-shadow);
	padding: 28px 24px;
}
.jsc-gate-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--jsc-accent); margin-bottom: 16px; }
.jsc-gate h1 { font-size: 21px; margin: 0 0 4px; font-weight: 660; color: var(--jsc-text); letter-spacing: -0.02em; }
.jsc-gate-sub { font-size: 13px; color: var(--jsc-muted); margin: 0 0 18px; }
.jsc-gate label { display: block; font-size: 12px; color: var(--jsc-muted); margin-bottom: 12px; }
.jsc-gate input[type="text"],
.jsc-gate input[type="password"] {
	width: 100%;
	margin-top: 5px;
	background: var(--jsc-surface);
	border: 1px solid var(--jsc-line);
	border-radius: 12px;
	padding: 12px;
	font-size: 16px;
	color: var(--jsc-text);
}
.jsc-gate input[type="submit"] {
	width: 100%;
	background: var(--jsc-accent);
	color: #fff;
	border: 0;
	border-radius: 13px;
	padding: 13px;
	font-size: 15px;
	font-weight: 590;
	margin-top: 6px;
}
.jsc-gate .login-remember { font-size: 12px; }
.jsc-gate-link { display: inline-block; margin-top: 14px; font-size: 13px; }

/* ---------- boot ---------- */

.jsc-boot { display: grid; place-items: center; height: 100%; min-height: 60vh; gap: 12px; color: var(--jsc-muted); }
.jsc-boot-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--jsc-accent); animation: jsc-blink 1.2s ease infinite; }

/* ---------- wider screens ---------- */

@media (min-width: 760px) {
	.jsc-body { padding: 18px 22px 12px; }
	.jsc-head { padding-left: 22px; padding-right: 22px; }
	.jsc-chips { margin: 10px -22px 0; padding-left: 22px; padding-right: 22px; }
	.jsc-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
	.jsc-sheet {
		left: 50%;
		right: auto;
		transform: translateX(-50%) translateY(100%);
		width: min(660px, 96vw);
		animation-name: jsc-rise-wide;
	}
	.jsc-sheet.is-tall { border-radius: 20px 20px 0 0; top: 4vh; }
	@keyframes jsc-rise-wide { to { transform: translateX(-50%) translateY(0); } }
	.jsc-nav { grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; }
}

/* ---------- photo gallery ---------- */

.jsc-gallery {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(8, 12, 17, .94);
	display: grid;
	place-items: center;
	animation: jsc-fade .14s ease forwards;
	opacity: 0;
}
.jsc-gal-stage {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: calc(72px + var(--jsc-safe-t)) 12px calc(28px + var(--jsc-safe-b));
}
.jsc-gal-stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 10px;
	display: block;
}
.jsc-gal-btn {
	position: absolute;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}
.jsc-gal-btn.is-prev { left: 10px; top: 50%; transform: translateY(-50%); z-index: 2; }
.jsc-gal-btn.is-next { right: 10px; top: 50%; transform: translateY(-50%); z-index: 2; }

.jsc-gal-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: calc(11px + var(--jsc-safe-t)) 12px 11px;
	background: linear-gradient(rgba(8, 12, 17, .8), rgba(8, 12, 17, 0));
}
.jsc-gal-count {
	color: #fff;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	opacity: .85;
	padding-left: 6px;
}
.jsc-gal-close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .28);
	color: #fff;
	flex: 0 0 auto;
}
.jsc-gal-close:active { background: rgba(255, 255, 255, .3); }

/* photo count badge on a list thumbnail */
.jsc-thumb { position: relative; }
.jsc-thumb-n {
	position: absolute;
	right: 2px;
	bottom: 2px;
	background: rgba(12, 18, 26, .74);
	color: #fff;
	border-radius: 6px;
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 4px;
}

/* ---------- accent, asserted last ----------
   Some themes style bare button elements with higher specificity than ours,
   which is how the add button and Save could lose their colour. */

.jsc-root .jsc-btn-primary,
.jsc-root button.jsc-btn-primary {
	background-color: var(--jsc-accent);
	border-color: var(--jsc-accent);
	color: #fff;
}
.jsc-root .jsc-fab,
.jsc-root button.jsc-fab {
	background-color: var(--jsc-accent);
	color: #fff;
	border: 0;
}
.jsc-root .jsc-chip[aria-pressed="true"] { background-color: var(--jsc-accent); color: #fff; }
.jsc-root .jsc-toggle[aria-pressed="true"] { background-color: var(--jsc-accent); }
.jsc-root .jsc-nav button[aria-current="true"] { color: var(--jsc-accent); }
.jsc-root .jsc-bar i { background-color: var(--jsc-accent); }
.jsc-root .jsc-step:active { background-color: var(--jsc-accent); color: #fff; }
.jsc-root .jsc-avatar { color: var(--jsc-accent); }

/* An item with no photo yet shows the box mark in the primary colour. */
.jsc-root .jsc-thumb { background: var(--jsc-accent-soft); color: var(--jsc-accent); }
.jsc-root .jsc-thumb.has-photo { background: var(--jsc-surface-2); }

/* ---------- split counts ---------- */

.jsc-total-box {
	background: var(--jsc-accent-soft);
	color: var(--jsc-text);
	border-radius: 14px;
	padding: 14px;
	text-align: center;
	font-size: 30px;
	font-weight: 660;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.jsc-total-box small { font-size: 13px; font-weight: 500; color: var(--jsc-muted); letter-spacing: 0; }

.jsc-boxline {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--jsc-line-soft);
}
.jsc-boxline:last-of-type { border-bottom: 0; }
.jsc-boxline-main { flex: 1; min-width: 0; }
.jsc-boxline-main b {
	display: block;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jsc-boxline-main span { font-size: 11.5px; color: var(--jsc-muted); }
.jsc-boxline .jsc-qty-val { min-width: 46px; font-size: 18px; }

/* ---------- public catalogue ---------- */

.jsc-cat-intro { font-size: 13px; color: var(--jsc-muted); margin: 8px 0 0; }
.jsc-preview-note {
	margin-top: 9px;
	background: #fdf3dd;
	color: #6b4c07;
	border-radius: 10px;
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 570;
	text-align: center;
}

.jsc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
@media (min-width: 560px) { .jsc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .jsc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.jsc-gcard {
	background: var(--jsc-surface);
	border-radius: var(--jsc-r);
	box-shadow: var(--jsc-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	cursor: pointer;
}
.jsc-gcard:active { transform: scale(.985); }
.jsc-gcard.is-loading {
	height: 190px;
	background: linear-gradient(90deg, var(--jsc-surface) 25%, var(--jsc-surface-2) 37%, var(--jsc-surface) 63%);
	background-size: 400% 100%;
	animation: jsc-shimmer 1.3s ease infinite;
}
.jsc-gcard-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--jsc-accent-soft);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.jsc-gcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jsc-gcard-mark { color: var(--jsc-accent); opacity: .55; }
.jsc-gcard-body { padding: 10px 11px 12px; }
.jsc-gcard-name {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.005em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jsc-gcard-meta {
	margin: 3px 0 0;
	font-size: 11.5px;
	color: var(--jsc-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jsc-gcard-qty {
	margin: 7px 0 0;
	font-size: 17px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.jsc-gcard-qty small { font-size: 11px; font-weight: 500; color: var(--jsc-muted); }

.jsc-hero {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: -4px -4px 14px;
	padding: 4px;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
}
.jsc-hero::-webkit-scrollbar { display: none; }
.jsc-hero img {
	width: 78%;
	max-width: 320px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--jsc-r);
	flex: 0 0 auto;
	scroll-snap-align: center;
	cursor: zoom-in;
	background: var(--jsc-surface-2);
}
.jsc-hero img:only-child { width: 100%; max-width: none; }

.jsc-spec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--jsc-line-soft);
	font-size: 14px;
}
.jsc-spec:last-child { border-bottom: 0; }
.jsc-spec span { color: var(--jsc-muted); font-size: 13px; }
.jsc-spec b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- app-style rows for settings and the menu ---------- */

.jsc-row-icon {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	background: var(--jsc-accent-soft);
	color: var(--jsc-accent);
}
.jsc-row-icon.is-danger { background: rgba(207, 68, 54, .12); color: var(--jsc-danger); }
.jsc-row-icon.is-muted { background: var(--jsc-surface-2); color: var(--jsc-muted); }

.jsc-menu-row { gap: 12px; }
.jsc-menu-row > .jsc-menu-label { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.jsc-menu-row > .jsc-menu-label small { display: block; margin-top: 1px; }
.jsc-menu-row .jsc-chevron { color: var(--jsc-muted); opacity: .7; }

.jsc-section-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--jsc-muted);
	margin: 22px 4px 8px;
}
/* Only the very first group hugs the top — every section starts with a label,
   so :first-child on its own would flatten the spacing between all of them. */
.jsc-set-block:first-child .jsc-section-label { margin-top: 6px; }
.jsc-set-block { display: block; }
.jsc-card-list .jsc-menu-row { padding: 15px 0; }
.jsc-card-list { padding: 2px 15px; }

.jsc-me {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0 14px;
}
.jsc-me .jsc-avatar { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }
.jsc-me b { display: block; font-size: 16px; font-weight: 620; }
.jsc-me span { font-size: 12.5px; color: var(--jsc-muted); }

.jsc-copybox {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--jsc-surface-2);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 12.5px;
	color: var(--jsc-muted);
	word-break: break-all;
	margin-bottom: 10px;
}
/* Icon tile and chevron keep their own size and stay centred on the row. */
.jsc-menu-row > .jsc-row-icon,
.jsc-menu-row > .jsc-chevron {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	align-self: center;
}
.jsc-menu-row > .jsc-chevron { width: 18px; height: 18px; }
.jsc-row-icon svg { width: 19px; height: 19px; }

.jsc-boxline-x {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	color: var(--jsc-muted);
	flex: 0 0 auto;
	margin-left: 2px;
}
.jsc-boxline-x:active { background: rgba(207, 68, 54, .12); color: var(--jsc-danger); }
.jsc-boxline-main { cursor: pointer; }

.jsc-lock-error {
	font-size: 13px;
	color: var(--jsc-danger);
	margin: 0 0 12px;
}
.jsc-gate .jsc-field { margin-bottom: 14px; }

/* activity rows that open the item */
.jsc-hist[data-act] { cursor: pointer; }
.jsc-hist[data-act]:active { background: var(--jsc-surface-2); }
.jsc-user[data-act] { cursor: pointer; }

/* Rail-only pieces: hidden until the desktop layout turns them on.
   Scoped through .jsc-nav so they outrank the ".jsc-nav button" tab styling. */
.jsc-nav .jsc-nav-brand,
.jsc-nav .jsc-nav-new { display: none; }

/* ============================================================
   Tablet and desktop
   Phones are untouched — everything below starts at 760px.
   ============================================================ */

/* ---------- tablet: same shape, more room ---------- */

@media (min-width: 760px) {
	.jsc-body { padding: 20px 24px 14px; }
	.jsc-body > * { max-width: 760px; }
	.jsc-item { padding: 12px 14px; }
	.jsc-head { padding: 14px 24px 12px; }
	.jsc-chips { margin: 10px -24px 0; padding: 0 24px 2px; }
	.jsc-cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
	.jsc-cardgrid > * { min-width: 0; }
}

/* ---------- pointer devices ---------- */

@media (hover: hover) and (pointer: fine) {
	.jsc-item:hover { background: var(--jsc-surface-2); }
	.jsc-gcard:hover { box-shadow: var(--jsc-shadow-lift); transform: translateY(-2px); }
	.jsc-gcard { transition: transform .16s ease, box-shadow .16s ease; }
	.jsc-menu-row:hover { background: var(--jsc-surface-2); }
	.jsc-chip:hover { color: var(--jsc-text); }
	.jsc-chip[aria-pressed="true"]:hover { color: #fff; }
	.jsc-step:hover { background: var(--jsc-accent); color: #fff; }
	.jsc-btn:hover { border-color: var(--jsc-accent); }
	.jsc-btn-primary:hover { filter: brightness(1.06); }
	.jsc-icon-btn:hover { background: var(--jsc-surface-2); color: var(--jsc-text); }
	.jsc-boxline-x:hover { color: var(--jsc-danger); }
	.jsc-nav button:hover { color: var(--jsc-text); }
}

/* ---------- desktop: side rail, wide header, centred dialogs ---------- */

@media (min-width: 1000px) {
	.jsc-app {
		display: grid;
		grid-template-columns: 236px minmax(0, 1fr);
		grid-template-rows: auto auto minmax(0, 1fr) auto;
		grid-template-areas:
			"nav offline"
			"nav head"
			"nav body"
			"nav foot";
	}
	.jsc-offline { grid-area: offline; }
	.jsc-head { grid-area: head; }
	.jsc-body { grid-area: body; }
	#jsc-foot { grid-area: foot; }
	.jsc-nav { grid-area: nav; }

	/* bottom tab bar becomes a rail */
	.jsc-nav {
		display: flex;
		flex-direction: column;
		gap: 2px;
		border-top: 0;
		border-right: 1px solid var(--jsc-line);
		padding: 18px 12px calc(18px + var(--jsc-safe-b));
		overflow-y: auto;
		justify-content: flex-start;
	}
	.jsc-nav button {
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		padding: 11px 12px;
		border-radius: 12px;
		font-size: 14.5px;
		font-weight: 560;
	}
	.jsc-nav button[aria-current="true"] { background: var(--jsc-accent-soft); }
	.jsc-nav button svg { width: 20px; height: 20px; }

	.jsc-nav .jsc-nav-brand {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 4px 12px 18px;
		font-size: 15px;
		font-weight: 660;
		letter-spacing: -0.015em;
		min-width: 0;
	}
	.jsc-nav-brand > span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.jsc-nav-mark {
		width: 28px;
		height: 28px;
		border-radius: 9px;
		background: var(--jsc-accent);
		flex: 0 0 auto;
	}
	.jsc-nav .jsc-nav-new {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		background: var(--jsc-accent);
		color: #fff;
		border-radius: 12px;
		padding: 11px 14px;
		font-size: 14.5px;
		font-weight: 590;
		margin-bottom: 16px;
	}
	.jsc-nav-new svg { width: 19px; height: 19px; }
	.jsc-nav-new:active { transform: translateY(1px); }

	/* the floating button belongs to phones; JS sets its display inline, so this has to shout */
	.jsc-fab { display: none !important; }

	/* header lays out across the top of the content column */
	.jsc-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "top search" "chips chips";
		align-items: center;
		padding: 16px 28px 12px;
		column-gap: 20px;
	}
	.jsc-head-top { grid-area: top; }
	.jsc-head-top h1 { font-size: 22px; }
	.jsc-search { grid-area: search; width: 340px; margin-top: 0; }
	.jsc-chips { grid-area: chips; margin: 12px 0 0; padding: 0 0 2px; }

	.jsc-body { padding: 22px 28px 18px; }
	.jsc-body > * { max-width: 1120px; }
	.jsc-list, .jsc-strip { max-width: 900px; }
	.jsc-item { padding: 12px 16px; }

	/* sheets become centred dialogs */
	.jsc-sheet,
	.jsc-sheet.is-tall {
		top: 50%;
		left: 50%;
		right: auto;
		bottom: auto;
		width: min(720px, 92vw);
		max-height: 86vh;
		border-radius: 20px;
		transform: translate(-50%, -50%) scale(.97);
		opacity: 0;
		animation: jsc-pop .18s cubic-bezier(.22, 1, .36, 1) forwards;
		padding-bottom: 0;
	}
	@keyframes jsc-pop { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
	.jsc-sheet-head { border-radius: 20px 20px 0 0; padding-top: 14px; }
	.jsc-sheet-foot { border-radius: 0 0 20px 20px; padding-bottom: 14px; }
	.jsc-sheet-body { padding: 18px; }

	/* two columns where the content suits it */
	.jsc-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
	.jsc-live-col { min-width: 0; }
	.jsc-cardgrid { column-gap: 18px; }
	.jsc-set-block { break-inside: avoid; }
}

@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
	.jsc-sheet, .jsc-sheet.is-tall { animation: none; transform: translate(-50%, -50%); opacity: 1; }
}

/* ---------- very wide: the item list runs two up ---------- */

@media (min-width: 1400px) {
	.jsc-body > * { max-width: 1280px; }
	.jsc-list { max-width: 1280px; display: grid; grid-template-columns: 1fr 1fr; }
	.jsc-item:nth-child(odd) { border-right: 1px solid var(--jsc-line-soft); }
	.jsc-strip { max-width: 1280px; }
	.jsc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- catalogue on bigger screens ---------- */

@media (min-width: 1000px) {
	#jsc-catalog .jsc-app { display: flex; }
	#jsc-catalog .jsc-head { display: grid; }
	#jsc-catalog .jsc-body > * { max-width: 1180px; }
	.jsc-hero img { width: 46%; max-width: 380px; }
}

/* active filter bar in the activity sheet */
.jsc-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--jsc-accent-soft);
	border-radius: 12px;
	padding: 8px 8px 8px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--jsc-text);
}
.jsc-filter-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jsc-filter-bar .jsc-btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }

/* the count as it stood, on every history entry */
.jsc-hist-qty {
	flex: 0 0 auto;
	text-align: right;
	min-width: 62px;
	align-self: center;
}
.jsc-hist-qty b {
	display: block;
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.jsc-hist-qty span { font-size: 10px; color: var(--jsc-muted); white-space: nowrap; }
/* worked out from later entries rather than recorded at the time */
.jsc-hist-qty.is-estimated b { color: var(--jsc-muted); font-weight: 600; }

/* quantities locked notice */
.jsc-offline.is-lock {
	background: var(--jsc-accent-soft);
	color: var(--jsc-text);
	border-bottom: 1px solid var(--jsc-line);
}
