.sm-tool,
.sm-hub {
	--sm-blue: #00529b;
	--sm-red: #e31837;
	--sm-yellow: #ffcb05;
	--sm-ink: #1a1a1a;
	--sm-muted: #5c6570;
	--sm-line: #e6e8ec;
	--sm-card: #fff;
	max-width: 1080px;
	margin: 0 auto;
	color: var(--sm-ink);
	font-size: 1rem;
}

.sm-hub-grid,
.sm-secret-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.sm-card,
.sm-panel,
.sm-total,
.sm-secret-card {
	background: var(--sm-card);
	border: 1px solid var(--sm-line);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06);
}

.sm-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	min-height: 100%;
}
.sm-card-body,
.sm-secret-card .sm-pill,
.sm-secret-card h3,
.sm-secret-card .sm-meta,
.sm-secret-card p { margin-left: 18px; margin-right: 18px; }
.sm-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 20px;
}
.sm-card-photo {
	width: 100%;
	height: 190px;
	object-fit: contain;
	background: #eadccb;
	display: block;
}

.sm-card:hover { border-color: var(--sm-blue); color: inherit; }
.sm-card h2,
.sm-secret-card h3 { margin: 0 18px; font-size: 1.25rem; }
.sm-card p,
.sm-note,
.sm-secret-card p { margin: 0; color: var(--sm-muted); }
.sm-secret-card .sm-pill,
.sm-secret-card h3,
.sm-secret-card .sm-meta,
.sm-secret-card p { margin-left: 18px; margin-right: 18px; }
.sm-card-tag,
.sm-pill {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff6cc;
	color: #6b5300;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sm-tool-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
	gap: 18px;
	align-items: start;
}

.sm-panel,
.sm-total { padding: 22px; }
.sm-total { position: sticky; top: 92px; border-top: 5px solid var(--sm-red); }
.sm-panel h2,
.sm-total h2 { margin: 0 0 12px; font-size: 1.2rem; }

.sm-field { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 700; }
.sm-field span { font-size: 0.86rem; }
.sm-field select,
.sm-field input[type="number"],
.sm-field input[type="time"] {
	width: 100%;
	border: 1px solid #cfd5dc;
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	font-weight: 600;
	background: #fff;
	color: var(--sm-ink);
}

.sm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-btn {
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	background: var(--sm-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.sm-btn:hover { background: #003e78; }
.sm-btn.is-ghost { background: #eef3f8; color: var(--sm-blue); }
.sm-btn.is-on { background: var(--sm-red); color: #fff; }

.sm-lines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.sm-lines li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #f7f8fa;
	border-radius: 12px;
}
.sm-lines button {
	border: 0;
	background: transparent;
	color: var(--sm-red);
	font-weight: 700;
	cursor: pointer;
}

.sm-stat { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.sm-stat strong { font-size: 1.35rem; }
.sm-stat.is-save strong { color: var(--sm-red); }
.sm-window {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #e8f6ee;
	color: #0d6b3a;
	font-weight: 700;
}
.sm-window.is-off { background: #fdecef; color: #8e1234; }

.sm-choices { display: grid; gap: 8px; margin: 0 0 14px; }
.sm-choices label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--sm-line);
	border-radius: 12px;
	font-weight: 650;
	cursor: pointer;
}
.sm-choices label:has(input:checked) { border-color: var(--sm-blue); background: #f3f8fc; }
.sm-choices input { margin-top: 3px; }

.sm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sm-secret-card { padding: 0 0 18px; display: grid; gap: 8px; overflow: hidden; }
.sm-secret-card[hidden] { display: none; }
.sm-meta { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.sm-meta .price { color: var(--sm-blue); }

@media (max-width: 800px) {
	.sm-hub-grid,
	.sm-secret-grid,
	.sm-tool-grid { grid-template-columns: 1fr; }
	.sm-total { position: static; }
}
