/**
 * My Home frontend styles.
 *
 * Mobile-first, no frameworks. Brand: deep teal var(--hsc-ink, #10231d), accent var(--hsc-accent, #b9f36b).
 * All classes are prefixed hsc-mh- to avoid theme collisions.
 * Mirrors the hsc-fmf- button and type scale from Find My Filter.
 */

.hsc-mh {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 4px 32px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--hsc-ink-2, #213c33);
}

.hsc-mh-kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hsc-ink, #10231d);
}

.hsc-mh-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.2;
	color: var(--hsc-ink, #10231d);
	letter-spacing: -0.01em;
}

.hsc-mh-sub {
	margin: 0 0 20px;
	color: var(--hsc-muted, #61736c);
}

.hsc-mh-category {
	margin: 28px 0 12px;
	font-size: 20px;
	color: var(--hsc-ink, #10231d);
}

.hsc-mh-notice,
.hsc-mh-error {
	padding: 12px 16px;
	border-radius: 10px;
	margin: 0 0 16px;
}

.hsc-mh-notice {
	background: var(--hsc-mint, #edf7f1);
	border: 1px solid #c4e2d4;
	color: var(--hsc-ink, #10231d);
}

.hsc-mh-error {
	background: #fdeeee;
	border: 1px solid #efc3c3;
	color: #8c2b2b;
}

.hsc-mh-empty {
	padding: 20px;
	border: 2px dashed var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 14px;
	margin-bottom: 20px;
	color: var(--hsc-muted, #61736c);
}

.hsc-mh-card {
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 16px;
	background: #fff;
}

.hsc-mh-card-title {
	margin: 0 0 12px;
	font-size: 22px;
	color: var(--hsc-ink, #10231d);
}

.hsc-mh-rows {
	margin: 0 0 8px;
}

.hsc-mh-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid var(--hsc-mint, #edf7f1);
}

.hsc-mh-row:first-child {
	border-top: 0;
}

.hsc-mh-row dt {
	margin: 0;
	color: var(--hsc-muted, #61736c);
	font-size: 15px;
	flex-shrink: 0;
}

.hsc-mh-row dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
}

.hsc-mh-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: var(--hsc-mint, #edf7f1);
	color: var(--hsc-ink, #10231d);
	white-space: nowrap;
}

.hsc-mh-badge.is-overdue {
	background: #fdeeee;
	color: #8c2b2b;
}

.hsc-mh-reminders {
	margin: 8px 0;
	padding: 12px 14px;
	background: var(--hsc-mint, #edf7f1);
	border-radius: 10px;
}

.hsc-mh-reminders-title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hsc-muted, #61736c);
}

.hsc-mh-reminder {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 6px 0;
	font-size: 15px;
}

.hsc-mh-actions {
	display: grid;
	gap: 14px;
	margin-top: 16px;
}

@media (min-width: 560px) {
	.hsc-mh-actions {
		grid-template-columns: 1fr 1fr;
	}
}

.hsc-mh-action {
	margin: 0;
}

.hsc-mh-hint {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--hsc-muted, #61736c);
}

.hsc-mh-btn {
	display: inline-block;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 10px;
	border: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.hsc-mh-btn-primary {
	background: var(--hsc-ink, #10231d);
	color: #fff;
}

.hsc-mh-btn-secondary {
	background: var(--hsc-mint, #edf7f1);
	color: var(--hsc-ink, #10231d);
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
}

.hsc-mh-btn-disabled {
	background: #e6ede9;
	color: var(--hsc-muted, #61736c);
	cursor: not-allowed;
}

.hsc-mh-summarybtn {
	list-style: none;
}

.hsc-mh-summarybtn::-webkit-details-marker {
	display: none;
}

.hsc-mh-details-body {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--hsc-mint, #edf7f1);
}

.hsc-mh-form p {
	margin: 0 0 14px;
}

.hsc-mh-form label,
.hsc-mh-form legend {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--hsc-ink, #10231d);
}

.hsc-mh-form input[type="text"],
.hsc-mh-form input[type="number"],
.hsc-mh-form input[type="date"],
.hsc-mh-form select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 8px;
	font-size: 17px;
	box-sizing: border-box;
	background: #fff;
	color: var(--hsc-ink-2, #213c33);
}

.hsc-mh-dim-row {
	display: flex;
	gap: 12px;
}

.hsc-mh-dim-row p {
	flex: 1;
	margin: 0;
}

.hsc-mh-dims {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}

.hsc-mh-inlineform {
	margin: 0;
	display: inline;
}

.hsc-mh-linkbtn {
	background: none;
	border: 0;
	padding: 8px 4px;
	color: var(--hsc-ink, #10231d);
	text-decoration: underline;
	font-size: 15px;
	cursor: pointer;
	min-height: 44px;
}

.hsc-mh-add {
	margin-top: 24px;
	border: 2px dashed var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 14px;
	padding: 4px 20px 20px;
}

.hsc-mh-add-summary {
	font-size: 19px;
	font-weight: 700;
	color: var(--hsc-ink, #10231d);
	cursor: pointer;
	padding: 16px 0;
}

.hsc-mh-loginbox {
	max-width: 420px;
	padding: 20px;
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 14px;
	background: #fff;
}

.hsc-mh-loginbox input[type="text"],
.hsc-mh-loginbox input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 8px;
	font-size: 17px;
	box-sizing: border-box;
	margin-bottom: 12px;
}

/* Logged-out gate: the branded front door to My Home */
.hsc-mh-gate {
	background: var(--hsc-mint, #edf7f1);
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 24px;
	padding: 36px 28px;
	text-align: center;
	box-shadow: 0 18px 55px rgba(16,35,29,.08);
}
.hsc-mh-gate .hsc-mh-title {
	font-size: clamp(30px, 4vw, 44px);
	letter-spacing: -0.04em;
	line-height: 1.05;
}
.hsc-mh-gate .hsc-mh-sub {
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
}
.hsc-mh-gate-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 24px 0 0;
}
.hsc-mh-gate-actions .hsc-mh-btn {
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}
.hsc-mh-loginform {
	margin-top: 24px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 18px;
	padding: 24px;
}
.hsc-mh-loginform p {
	margin: 0 0 12px;
}
.hsc-mh-loginform label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
}
.hsc-mh-loginform input[type="text"],
.hsc-mh-loginform input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hsc-line, rgba(16,35,29,.13));
	border-radius: 12px;
	font-size: 16px;
}
@media (max-width: 560px) {
	.hsc-mh-gate {
		padding: 28px 20px;
	}
	.hsc-mh-gate-actions .hsc-mh-btn {
		width: 100%;
	}
}
