/*
 * Accounts track: styles for the hrd-storefront markup (`hsf-` classes), see
 * wp-content/plugins/hrd-storefront/README.md "Markup contract" and docs/storefront/coverage/accounts-ui.md.
 *
 * Covers the shared application shell (account views and Podi), sign-in, home, orders, one order,
 * Your Parts, Your Details, the contact page and the review form.
 *
 * Rules kept from ARCHITECTURE §3 and the coordinator:
 *  - unlayered, single-class selectors, no !important; values come from tokens.css
 *  - breakpoints 1100 / 850 / 620 / 370, max-width only (component rows size by container width)
 *  - space with padding or gap, never a single-class margin on a direct child of a flow group
 *  - touch text fields stay at or above 16px (components.css owns that rule)
 */

/* ---------- Mask glyphs (Lucide paths) for states the plugin ships no icon for ---------- */
:root {
	--hsf-glyph-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
	--hsf-glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--hsf-glyph-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
	--hsf-glyph-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
	--hsf-glyph-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	--hsf-glyph-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8'/%3E%3Cpath d='M7 14h.01M17 14h.01M5 18v2M19 18v2'/%3E%3Crect width='18' height='8' x='3' y='10' rx='2'/%3E%3C/svg%3E");
	--hsf-glyph-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- Icons the plugin prints (hsf_icon -> pc_icon) ---------- */
.hsf-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; }
.hsf-icon > .pc-icon { width: var(--pc-icon-md); height: var(--pc-icon-md); }

/* ======================================================================
 * Shell: sidebar, content column, composer slot
 * ====================================================================== */
.hsf-page { min-width: 0; }

.hsf-app {
	position: relative;
	display: grid;
	grid-template-columns: var(--pc-chat-sidebar-width) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	width: 100%;
	max-width: var(--pc-content-width);
	min-height: var(--pc-chat-min-height);
	margin-inline: auto;
	border-inline: var(--pc-border-width) solid var(--pc-color-line);
	background: var(--pc-color-surface);
	color: var(--pc-color-ink);
	--hsf-col: var(--pc-account-content-width);
	--hsf-gutters: var(--pc-space-12); /* total side space around the column; smaller on phones */
}
/* The chat column (account home, Podi) is narrower than the account pages. */
.hsf-app[data-hsf-view="home"],
.hsf-app[data-hsf-view="ask"],
.hsf-app[data-hsf-view="chat"] { --hsf-col: var(--pc-chat-content-width); }
.hsf-app--door { display: block; border-inline: 0; min-height: var(--pc-chat-min-height); }

/* The in-app top bar only carries the phone menu: the site header already holds Garage and the cart. */
.hsf-app__bar { grid-column: 2; grid-row: 1; display: none; align-items: center; gap: var(--pc-space-3); min-height: var(--pc-chat-topbar-height); padding: var(--pc-space-1) var(--pc-space-4); }
.hsf-app__heading { display: none; }
.hsf-app__menu {
	display: inline-flex;
	align-items: center;
	gap: var(--pc-space-2);
	min-height: var(--pc-control-height);
	padding: var(--pc-space-2) var(--pc-space-4) var(--pc-space-2) var(--pc-space-3);
	border: var(--pc-border-width) solid var(--pc-color-line-strong);
	border-radius: var(--pc-radius-pill);
	background: var(--pc-color-surface);
	color: var(--pc-color-ink);
	font-size: var(--pc-text-sm);
	font-weight: var(--pc-weight-bold);
	cursor: pointer;
}
.hsf-app__menu:hover { border-color: var(--pc-color-ink); }
.hsf-app__scrim { display: none; }
.hsf-app__close { display: none; }

.hsf-app__side {
	grid-column: 1;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: var(--pc-space-1);
	min-width: 0;
	padding: var(--pc-space-3);
	border-right: var(--pc-border-width) solid var(--pc-color-search-border);
	background: var(--pc-chat-sidebar-surface);
}
.hsf-slot:empty { display: none; }
.hsf-nav { display: grid; gap: var(--pc-space-1); padding-top: var(--pc-space-3); }
.hsf-nav__label { padding: var(--pc-space-2) var(--pc-space-3); color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-nav__list { display: grid; gap: var(--pc-space-1); margin: 0; padding: 0; list-style: none; }
.hsf-nav__link {
	display: flex;
	align-items: center;
	gap: var(--pc-space-3);
	min-height: max(var(--pc-chat-nav-height), var(--pc-control-height));
	padding: var(--pc-space-2) var(--pc-space-3);
	border-radius: var(--pc-radius-md);
	color: var(--pc-color-ink);
	font-size: var(--pc-text-base);
	text-decoration: none;
}
.hsf-nav__link:hover { background: var(--pc-color-search-border); }
.hsf-nav__link.is-active { background: var(--pc-color-search-border); font-weight: var(--pc-weight-bold); }
.hsf-nav__link .hsf-icon > .pc-icon { width: var(--pc-icon-md); height: var(--pc-icon-md); }
.hsf-nav__badge { margin-left: auto; color: var(--pc-color-muted); font-size: var(--pc-text-xs); font-weight: var(--pc-weight-regular); }
.hsf-me {
	display: flex;
	align-items: center;
	gap: var(--pc-space-3);
	min-height: var(--pc-control-height);
	margin-top: auto;
	padding: var(--pc-space-3) var(--pc-space-2) var(--pc-space-2);
	border-top: var(--pc-border-width) solid var(--pc-color-search-border);
	border-radius: 0;
	color: var(--pc-color-ink);
	text-decoration: none;
}
.hsf-me:hover .hsf-me__name { text-decoration: underline; text-underline-offset: var(--pc-space-1); }
.hsf-me__avatar {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: var(--pc-control-height-compact);
	height: var(--pc-control-height-compact);
	border-radius: var(--pc-radius-pill);
	background: var(--pc-color-ink);
	color: var(--pc-color-inverse);
	font-size: var(--pc-text-sm);
	font-weight: var(--pc-weight-bold);
}
.hsf-me__text { display: grid; min-width: 0; line-height: var(--pc-leading-compact); }
.hsf-me__name { overflow: hidden; font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); text-overflow: ellipsis; white-space: nowrap; }
.hsf-me__email { overflow: hidden; color: var(--pc-color-muted); font-size: var(--pc-text-xs); text-overflow: ellipsis; white-space: nowrap; }

.hsf-app__main {
	grid-column: 2;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: var(--pc-chat-topbar-height);
}
.hsf-app__main:focus { outline: none; }
.hsf-app--door .hsf-app__main--door { padding-top: 0; }
.hsf-app__content {
	flex: 1;
	width: 100%;
	max-width: calc(var(--hsf-col) + var(--pc-space-12));
	margin-inline: auto;
	padding: var(--pc-space-4) var(--pc-space-6) var(--pc-space-12);
}

/* The composer slot: today the contact fallback; Podi fills `persona` in the same place. */
.hsf-composer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--pc-space-3) var(--pc-space-5);
	width: calc(100% - var(--hsf-gutters));
	max-width: var(--hsf-col);
	margin-inline: auto;
	margin-bottom: var(--pc-space-8);
	padding: var(--pc-space-4) var(--pc-space-5);
	border: var(--pc-border-width) solid var(--pc-color-search-border);
	border-radius: var(--pc-chat-composer-radius);
	background: var(--pc-color-surface);
	box-shadow: var(--pc-shadow-finder);
}
.hsf-composer__text { color: var(--pc-color-muted); font-size: var(--pc-text-base); }

/* ======================================================================
 * Page furniture
 * ====================================================================== */
.hsf-head { display: grid; gap: var(--pc-space-3); padding-bottom: var(--pc-space-7); }
.hsf-head__title { font-size: var(--pc-chat-heading-size); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-heading); letter-spacing: var(--pc-tracking-heading); }
.hsf-head__sub { color: var(--pc-color-muted); font-size: var(--pc-text-base); line-height: var(--pc-leading-body); overflow-wrap: anywhere; }
.hsf-home .hsf-head { justify-items: center; text-align: center; }
.hsf-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-2); color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-crumb a { display: inline-flex; align-items: center; min-width: var(--pc-control-height); min-height: var(--pc-control-height); color: var(--pc-color-ink); text-underline-offset: var(--pc-space-1); }
.hsf-crumb a:hover { text-decoration-thickness: var(--pc-focus-width); }
.hsf-crumb__sep { color: var(--pc-color-subtle); }

.hsf-section { display: grid; gap: var(--pc-space-3); }
.hsf-section__title { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); }
.hsf-cards { display: grid; gap: var(--pc-space-3); }

.hsf-card { display: grid; align-content: start; gap: var(--pc-space-3); min-width: 0; padding: var(--pc-space-5); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-account-panel-radius); background: var(--pc-color-surface); }
.hsf-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--pc-space-1) var(--pc-space-4); }
.hsf-card__title { font-size: var(--pc-text-xs); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-label); text-transform: uppercase; }
.hsf-card__text { color: var(--pc-color-muted); font-size: var(--pc-text-base); line-height: var(--pc-leading-body); }
.hsf-card__hint { color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-card__meta { color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-card__value { font-size: var(--pc-text-md); font-weight: var(--pc-weight-bold); overflow-wrap: anywhere; }
.hsf-card__status { min-height: 0; color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-card__status:empty { display: none; }
.hsf-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-2) var(--pc-space-5); padding-top: var(--pc-space-1); }
.hsf-card__defs { display: grid; gap: var(--pc-space-3); margin: 0; font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-card__defs > div { display: grid; gap: var(--pc-space-1); }
.hsf-card__defs dt { font-weight: var(--pc-weight-bold); }
.hsf-card__defs dd { margin: 0; color: var(--pc-color-muted); }

.hsf-empty { display: grid; justify-items: start; gap: var(--pc-space-3); padding: var(--pc-space-6); border-radius: var(--pc-radius-md); background: var(--pc-color-soft); }
.hsf-empty__title { font-size: var(--pc-text-lg); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); }
.hsf-empty__text { max-width: 36rem; color: var(--pc-color-muted); font-size: var(--pc-text-base); line-height: var(--pc-leading-body); }
.hsf-empty--first { justify-items: center; padding: var(--pc-space-12) var(--pc-space-6); text-align: center; }
.hsf-empty--error { border: var(--pc-border-width) solid var(--pc-color-error); border-left-width: calc(var(--pc-border-width) * 3); background: var(--pc-color-error-surface); }
.hsf-empty--notfound { border: var(--pc-border-width) solid var(--pc-color-search-border); }
/* Podi unavailable: the question box that becomes a contact message (the empty state is a start-aligned grid, so the form needs its own width) */
.hsf-ask__fallback { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-3) var(--pc-space-5); width: min(100%, 36rem); }
.hsf-ask__fallback > .hsf-field { flex: 1 1 100%; }

.hsf-notice {
	padding: var(--pc-space-3) var(--pc-space-4);
	border: var(--pc-border-width) solid var(--pc-color-search-border);
	border-left: calc(var(--pc-border-width) * 3) solid var(--pc-color-muted);
	border-radius: var(--pc-radius-sm);
	background: var(--pc-color-soft);
	color: var(--pc-color-ink);
	font-size: var(--pc-text-sm);
	line-height: var(--pc-leading-body);
	overflow-wrap: anywhere;
}
.hsf-notice--expired,
.hsf-notice--staff,
.hsf-notice--link_browser,
.hsf-notice--link_expired { border-left-color: var(--pc-color-ink); background: var(--pc-color-surface); }
.hsf-notice--page[data-hsf-page-status] { margin-bottom: var(--pc-space-4); }
.hsf-notice--signin { margin-bottom: var(--pc-space-4); }

/* Buttons. Base = the site's primary button (what the product page's review form uses); the account
 * application and the contact masthead keep the approved HRD pill with a tracked uppercase label. */
.hsf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--pc-space-2);
	min-height: var(--pc-control-height);
	padding: var(--pc-space-2) var(--pc-space-5);
	border: var(--pc-border-width) solid var(--pc-color-ink);
	border-radius: var(--pc-radius-sm);
	background: var(--pc-color-ink);
	color: var(--pc-color-inverse);
	font-size: var(--pc-text-sm);
	font-weight: var(--pc-weight-bold);
	line-height: var(--pc-leading-compact);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.hsf-button:hover { border-color: var(--pc-color-disabled-dark); background: var(--pc-color-disabled-dark); }
.hsf-button--outline { border-color: var(--pc-color-line-strong); background: var(--pc-color-surface); color: var(--pc-color-ink); }
.hsf-button--outline:hover { border-color: var(--pc-color-ink); background: var(--pc-color-ink); color: var(--pc-color-inverse); }
.hsf-button:disabled,
.hsf-button[aria-disabled="true"] { opacity: var(--pc-disabled-opacity); cursor: not-allowed; }
.hsf-button .hsf-icon > .pc-icon { width: var(--pc-icon-sm); height: var(--pc-icon-sm); }
.hsf-app .hsf-button {
	border-radius: var(--pc-radius-pill);
	font-size: var(--pc-text-xs);
	letter-spacing: var(--pc-tracking-label);
	text-transform: uppercase;
}
.hsf-app .hsf-button--outline { border-color: var(--pc-color-ink); }

.hsf-link {
	display: inline-flex;
	align-items: center;
	gap: var(--pc-space-2);
	min-height: var(--pc-control-height);
	padding: 0;
	border: 0;
	background: none;
	color: var(--pc-color-ink);
	font: inherit;
	font-size: var(--pc-text-sm);
	font-weight: var(--pc-weight-bold);
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: var(--pc-border-width);
	text-underline-offset: var(--pc-space-1);
	cursor: pointer;
}
.hsf-link:hover { text-decoration-thickness: var(--pc-focus-width); }
.hsf-link:disabled { color: var(--pc-color-muted); text-decoration: none; cursor: default; opacity: 1; } /* a countdown still has to read */
.hsf-link .hsf-icon > .pc-icon { width: var(--pc-icon-sm); height: var(--pc-icon-sm); }
/* Action rows use HRD's tracked, uppercase text link. */
.hsf-order-card__actions .hsf-link,
.hsf-card__foot .hsf-link,
.hsf-part__review-toggle { font-size: var(--pc-text-xs); letter-spacing: var(--pc-tracking-label); text-transform: uppercase; }

/* Badges: monochrome. Solid = done or selected, outline = moving, soft = waiting. */
.hsf-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--pc-space-1) var(--pc-space-3);
	border: var(--pc-border-width) solid var(--pc-color-hover);
	border-radius: var(--pc-radius-pill);
	background: var(--pc-color-hover);
	color: var(--pc-color-ink);
	font-size: var(--pc-text-xs);
	font-weight: var(--pc-weight-bold);
	line-height: var(--pc-leading-compact);
	white-space: nowrap;
}
.hsf-badge--delivered,
.hsf-badge--completed,
.hsf-badge--active { border-color: var(--pc-color-ink); background: var(--pc-color-ink); color: var(--pc-color-inverse); }
.hsf-badge--shipped,
.hsf-badge--in_transit,
.hsf-badge--partial_shipped,
.hsf-badge--partial_delivered { border-color: var(--pc-color-ink); background: var(--pc-color-surface); }
.hsf-badge--cancelled,
.hsf-badge--refunded,
.hsf-badge--failed,
.hsf-badge--retired { border-color: var(--pc-color-line-strong); background: var(--pc-color-surface); color: var(--pc-color-muted); }
.hsf-badge--pending_payment,
.hsf-badge--on_hold { border-style: dashed; border-color: var(--pc-color-muted); background: var(--pc-color-surface); }

/* Thumbnails: whole part visible on a cool surface, never cropped. */
.hsf-thumb { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--pc-product-media-surface); }
.hsf-thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; padding: var(--pc-space-2); object-fit: contain; mix-blend-mode: multiply; }
/* No photo: the same "Image coming soon" as the product page and the cards (an icon, and the words where the thumbnail has room), never a blank square. An inline-level grid, so a link around the thumbnail (the order card) does not underline the words. */
.hsf-thumb--empty { display: inline-grid; vertical-align: top; align-content: center; justify-items: center; gap: var(--pc-space-2); background: var(--pc-product-media-surface); color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-compact); text-align: center; }
.hsf-thumb--empty .hsf-icon > .pc-icon { width: var(--pc-icon-md); height: var(--pc-icon-md); }
.hsf-thumb--empty:not(:has(.hsf-icon))::before { content: ""; width: var(--pc-icon-md); height: var(--pc-icon-md); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3Cpath d='M10.41 10.41a2 2 0 1 1-2.83-2.83'/%3E%3Cline x1='13.5' x2='6' y1='13.5' y2='21'/%3E%3Cline x1='18' x2='21' y1='12' y2='15'/%3E%3Cpath d='M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59'/%3E%3Cpath d='M21 15V5a2 2 0 0 0-2-2H9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3Cpath d='M10.41 10.41a2 2 0 1 1-2.83-2.83'/%3E%3Cline x1='13.5' x2='6' y1='13.5' y2='21'/%3E%3Cline x1='18' x2='21' y1='12' y2='15'/%3E%3Cpath d='M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59'/%3E%3Cpath d='M21 15V5a2 2 0 0 0-2-2H9'/%3E%3C/svg%3E") center / contain no-repeat; }
.hsf-thumb__missing { padding-inline: var(--pc-space-2); overflow-wrap: anywhere; }

/* ======================================================================
 * Sign-in
 * ====================================================================== */
.hsf-signin { display: grid; gap: var(--pc-space-4); width: 100%; max-width: var(--pc-footer-dialog-width); margin-inline: auto; padding: var(--pc-space-12) var(--pc-space-4) var(--pc-space-16); }
.hsf-signin .hsf-head { justify-items: center; padding-bottom: var(--pc-space-2); text-align: center; }
.hsf-signin__card { display: grid; gap: var(--pc-space-4); padding: var(--pc-space-6); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-account-panel-radius); background: var(--pc-color-surface); box-shadow: var(--pc-shadow-finder); }
.hsf-signin__form { display: grid; gap: var(--pc-space-4); }
.hsf-signin__title { font-size: var(--pc-text-lg); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); }
.hsf-signin__hint { color: var(--pc-color-muted); font-size: var(--pc-text-base); line-height: var(--pc-leading-body); overflow-wrap: anywhere; }
.hsf-signin__hint b { color: var(--pc-color-ink); }
.hsf-signin__form .hsf-button { width: 100%; }
.hsf-signin__form[aria-busy="true"] { opacity: var(--pc-disabled-opacity); }
.hsf-signin__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-4); color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-signin__meta .hsf-link { font-weight: var(--pc-weight-bold); }
.hsf-signin__note { display: flex; align-items: flex-start; gap: var(--pc-space-2); padding-top: var(--pc-space-3); border-top: var(--pc-border-width) solid var(--pc-color-line); color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-signin__note .hsf-icon > .pc-icon { width: var(--pc-icon-sm); height: var(--pc-icon-sm); margin-top: 0.15em; }
.hsf-signin__status { min-height: 0; color: var(--pc-color-muted); font-size: var(--pc-text-sm); text-align: center; }
.hsf-signin__status:empty { display: none; }
/* The code entry: six digits, large and tabular. */
.hsf-field__input--code { height: calc(var(--pc-control-height) + var(--pc-space-3)); font-size: var(--pc-text-xl); font-weight: var(--pc-weight-bold); letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.hsf-field__input--code::placeholder { letter-spacing: 0.4em; }

/* ======================================================================
 * Fields and forms (account forms, sign-in, contact, review)
 * ====================================================================== */
.hsf-field { display: grid; align-content: start; gap: var(--pc-space-1); min-width: 0; margin: 0; padding: 0; border: 0; }
.hsf-field__label { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); }
.hsf-field__optional { color: var(--pc-color-muted); font-weight: var(--pc-weight-regular); }
.hsf-field__input {
	width: 100%;
	min-width: 0;
	min-height: var(--pc-control-height);
	padding: var(--pc-space-2) var(--pc-space-3);
	border: var(--pc-border-width) solid var(--pc-color-field-border);
	border-radius: var(--pc-radius-sm);
	background: var(--pc-color-surface);
	color: var(--pc-color-ink);
	font-size: var(--pc-text-base);
	line-height: var(--pc-leading-compact);
}
.hsf-card .hsf-field__input,
.hsf-signin .hsf-field__input { border-radius: var(--pc-account-field-radius); }
textarea.hsf-field__input { min-height: calc(var(--pc-control-height) * 3); resize: vertical; line-height: var(--pc-leading-body); }
select.hsf-field__input { appearance: none; padding-right: var(--pc-space-8); background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.125rem) 50%, calc(100% - 0.8125rem) 50%; background-size: 0.3125rem 0.3125rem; background-repeat: no-repeat; }
.hsf-field__input::placeholder { color: var(--pc-color-subtle); opacity: 1; }
.hsf-field__input:hover { border-color: var(--pc-color-ink); }
.hsf-field__input:focus-visible { outline-offset: 0; border-color: var(--pc-color-ink); }
.hsf-field__input:disabled { background: var(--pc-color-disabled); cursor: not-allowed; }
.hsf-field.has-error .hsf-field__input,
.hsf-field__input[aria-invalid="true"] { border-color: var(--pc-color-error); }
.hsf-field__hint { color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-field__count { color: var(--pc-color-muted); font-size: var(--pc-text-xs); text-align: right; font-variant-numeric: tabular-nums; }
.hsf-field__error { display: flex; align-items: flex-start; gap: var(--pc-space-1); color: var(--pc-color-error); font-size: var(--pc-text-sm); line-height: var(--pc-leading-compact); overflow-wrap: anywhere; }
.hsf-field__error::before,
.hsf-form__status[data-state="error"]::before,
.hsf-form__status[data-state="expired"]::before { content: ""; flex-shrink: 0; width: var(--pc-icon-sm); height: var(--pc-icon-sm); background: currentColor; -webkit-mask: var(--hsf-glyph-alert) center / contain no-repeat; mask: var(--hsf-glyph-alert) center / contain no-repeat; }
.hsf-field__error[hidden] { display: none; }
.hsf-field--choice { gap: var(--pc-space-2); }
.hsf-field__choices { display: flex; flex-wrap: wrap; gap: var(--pc-space-1) var(--pc-space-5); }
.hsf-choice { display: inline-flex; align-items: center; gap: var(--pc-space-2); min-height: var(--pc-control-height); font-size: var(--pc-text-sm); cursor: pointer; }
.hsf-choice > input { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--pc-color-ink); }

.hsf-form { container-type: inline-size; }
.hsf-form__row { display: grid; gap: var(--pc-account-form-gap); }
.hsf-form__row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsf-form__row--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hsf-form__row--three > :first-child { grid-column: 1 / -1; }
@container (min-width: 32rem) {
	.hsf-form__row--three { grid-template-columns: 1.4fr 1fr 1fr; }
	.hsf-form__row--three > :first-child { grid-column: auto; }
}
@container (max-width: 17rem) {
	.hsf-form__row--two,
	.hsf-form__row--three { grid-template-columns: minmax(0, 1fr); }
}
.hsf-form__foot { display: grid; justify-items: start; gap: var(--pc-space-2); padding-top: var(--pc-space-1); }
.hsf-form__status { display: flex; align-items: flex-start; gap: var(--pc-space-2); min-height: 0; color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); overflow-wrap: anywhere; }
.hsf-form__status:empty { display: none; }
.hsf-form__status .hsf-link { flex: none; min-height: 0; white-space: nowrap; }

/* Independent form states: idle, dirty, saving, saved, error, expired (each form on its own). */
.hsf-form[data-state="dirty"] { border-color: var(--pc-color-line-strong); }
.hsf-form[data-state="dirty"] .hsf-form__status::before { content: ""; flex-shrink: 0; width: var(--pc-space-2); height: var(--pc-space-2); margin-top: var(--pc-space-2); border-radius: var(--pc-radius-pill); background: var(--pc-color-ink); }
.hsf-form[data-state="dirty"] .hsf-form__status { color: var(--pc-color-ink); }
.hsf-form[data-state="saving"] { border-color: var(--pc-color-line-strong); }
.hsf-form[data-state="saving"] .hsf-field__input { background: var(--pc-color-soft); }
.hsf-form[aria-busy="true"] .hsf-button { opacity: var(--pc-disabled-opacity); }
.hsf-form[data-state="saved"] { border-color: var(--pc-color-ink); }
.hsf-form[data-state="saved"] .hsf-form__status { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); }
.hsf-form[data-state="saved"] .hsf-form__status::before { content: ""; flex-shrink: 0; width: var(--pc-icon-sm); height: var(--pc-icon-sm); margin-top: 0.15em; background: currentColor; -webkit-mask: var(--hsf-glyph-check) center / contain no-repeat; mask: var(--hsf-glyph-check) center / contain no-repeat; }
.hsf-form[data-state="error"] { border-color: var(--pc-color-error); }
.hsf-form[data-state="error"] .hsf-form__status,
.hsf-form[data-state="expired"] .hsf-form__status { color: var(--pc-color-error); font-weight: var(--pc-weight-bold); }
.hsf-form[data-state="expired"] { border-color: var(--pc-color-error); background: var(--pc-color-error-surface); }
.hsf-form__status[data-state="error"],
.hsf-form__status[data-state="expired"] { color: var(--pc-color-error); font-weight: var(--pc-weight-bold); }
.hsf-form__status[data-state="saved"] { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); }
.hsf-form[data-state="expired"] .hsf-form__status .hsf-link { color: var(--pc-color-error); }

/* ======================================================================
 * Home: current order, progress, shortcuts
 * ====================================================================== */
.hsf-home { display: grid; gap: var(--pc-space-6); }

/* An invoice waiting on the customer (look B: the invoice's dark panel and the logo's checker). */
.hsf-section--invoices > .hsf-section__title { text-align: left; }
.hsf-invoice { display: grid; gap: var(--pc-space-3); padding: var(--pc-space-6); background: var(--pc-color-ink); color: var(--pc-color-inverse); }
.hsf-invoice::after { content: ""; display: block; width: 2.25rem; height: 0.75rem; background: url("../../images/email/podium-checker-sky.png") 0 0 / 100% 100% no-repeat; }
.hsf-invoice__title { color: var(--pc-color-inverse); font-size: var(--pc-text-lg); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-heading); letter-spacing: var(--pc-tracking-heading); }
.hsf-invoice__label { color: var(--pc-color-sky); font-size: var(--pc-text-xs); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-label); text-transform: uppercase; }
.hsf-invoice__note { font-size: var(--pc-text-md); line-height: var(--pc-leading-body); overflow-wrap: anywhere; }
.hsf-invoice__meta { color: var(--pc-color-inverse-muted); font-size: var(--pc-text-sm); }
.hsf-invoice__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pc-space-1) var(--pc-space-3); }
.hsf-invoice__total b { font-size: var(--pc-text-lg); font-variant-numeric: tabular-nums; }
.hsf-invoice__total span { color: var(--pc-color-inverse-muted); font-size: var(--pc-text-sm); }
.hsf-invoice .hsf-invoice__button { justify-self: start; border-color: var(--pc-color-sky); background: var(--pc-color-sky); color: var(--pc-color-ink); }
.hsf-invoice .hsf-invoice__button:hover { border-color: var(--pc-color-inverse); background: var(--pc-color-inverse); color: var(--pc-color-ink); }
.hsf-invoice .hsf-invoice__button:focus-visible { outline-color: var(--pc-color-focus-inverse); }
.hsf-invoice__fine { color: var(--pc-color-inverse-muted); font-size: var(--pc-text-sm); }
.hsf-home .hsf-head { padding-bottom: 0; }
.hsf-section--current > .hsf-section__title { text-align: left; }

.hsf-order-card {
	position: relative;
	display: grid;
	grid-template-columns: var(--pc-chat-order-image-width) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: var(--pc-border-width) solid var(--pc-color-search-border);
	border-radius: var(--pc-radius-md);
	background: var(--pc-color-surface);
}
.hsf-order-card__media { display: block; min-height: 7.5rem; border-right: var(--pc-border-width) solid var(--pc-color-search-border); background: var(--pc-product-media-surface); }
.hsf-order-card__media .hsf-thumb { min-height: 100%; }
.hsf-order-card__body { display: grid; align-content: start; gap: var(--pc-space-2); min-width: 0; padding: var(--pc-space-4) var(--pc-space-5); }
.hsf-order-card__meta { display: flex; flex-wrap: wrap; gap: var(--pc-space-1) var(--pc-space-3); color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-order-card__number { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); }
.hsf-order-card__title { font-size: var(--pc-text-lg); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); overflow-wrap: anywhere; }
.hsf-order-card__title a { color: inherit; text-decoration: none; }
.hsf-order-card__title a:hover { text-decoration: underline; text-underline-offset: var(--pc-space-1); }
/* The whole card is one target (stretched title link); the explicit View order link sits above it. */
.hsf-order-card__title a::after { content: ""; position: absolute; inset: 0; }
.hsf-order-card__actions { position: relative; z-index: 1; width: max-content; max-width: 100%; }
.hsf-order-card:has(.hsf-order-card__title a:focus-visible) { outline: var(--pc-focus-width) solid var(--pc-color-focus); outline-offset: var(--pc-focus-offset); }
.hsf-order-card__title a:focus-visible { outline: none; }
.hsf-order-card__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-3); }
.hsf-order-card__sentence { color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-order-card__total { font-size: var(--pc-text-base); font-weight: var(--pc-weight-bold); font-variant-numeric: tabular-nums; }
.hsf-order-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-5); }

/* The progress stepper: four segments. Done = solid ink, current = a static diagonal stripe, to do = light. */
.hsf-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pc-space-1); margin: 0; padding: var(--pc-space-1) 0; list-style: none; }
.hsf-progress__step { position: relative; min-width: 0; padding-top: var(--pc-space-4); color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-compact); }
.hsf-progress__step::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--pc-space-1); background: var(--pc-color-search-border); }
.hsf-progress__step.is-done { color: var(--pc-color-ink); }
.hsf-progress__step.is-done::before { background: var(--pc-color-ink); }
.hsf-progress__step.is-current { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); }
.hsf-progress__step.is-current::before { background: repeating-linear-gradient(55deg, var(--pc-color-ink) 0 calc(var(--pc-border-width) * 3), var(--pc-color-search-border) calc(var(--pc-border-width) * 3) calc(var(--pc-border-width) * 6)); }
.hsf-progress__step.is-pending::before { background: repeating-linear-gradient(90deg, var(--pc-color-line-strong) 0 var(--pc-space-1), transparent var(--pc-space-1) var(--pc-space-2)); }
.hsf-progress__label { display: block; overflow-wrap: anywhere; }

.hsf-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pc-space-3); }
.hsf-shortcut {
	display: grid;
	grid-template-columns: var(--pc-control-height) minmax(0, 1fr) var(--pc-icon-sm);
	align-items: center;
	gap: var(--pc-space-3);
	min-width: 0;
	min-height: var(--pc-control-height);
	padding: var(--pc-space-3);
	border: var(--pc-border-width) solid var(--pc-color-search-border);
	border-radius: var(--pc-radius-md);
	color: var(--pc-color-ink);
	text-decoration: none;
}
.hsf-shortcut:hover { background: var(--pc-color-search-surface); border-color: var(--pc-color-line-strong); }
.hsf-shortcut::after { content: ""; width: var(--pc-icon-sm); height: var(--pc-icon-sm); background: currentColor; -webkit-mask: var(--hsf-glyph-chevron) center / contain no-repeat; mask: var(--hsf-glyph-chevron) center / contain no-repeat; }
.hsf-shortcut__media { display: block; width: var(--pc-control-height); height: var(--pc-control-height); overflow: hidden; border-radius: var(--pc-radius-sm); }
.hsf-shortcut__text { display: grid; min-width: 0; line-height: var(--pc-leading-compact); }
.hsf-shortcut__title { font-size: var(--pc-text-sm); }
.hsf-shortcut__meta { overflow: hidden; margin-top: var(--pc-space-1); color: var(--pc-color-muted); font-size: var(--pc-text-xs); text-overflow: ellipsis; white-space: nowrap; }

/* ======================================================================
 * Orders list
 * ====================================================================== */
.hsf-orders { display: grid; gap: var(--pc-space-6); align-content: start; }
.hsf-orders .hsf-head { padding-bottom: 0; }
.hsf-orders .hsf-order-card { grid-template-columns: calc(var(--pc-chat-order-image-width) * 1.25) minmax(0, 1fr); }
.hsf-orders .hsf-order-card__body { padding: var(--pc-space-5) var(--pc-space-6); }
.hsf-section--past .hsf-order-card { grid-template-columns: var(--pc-chat-order-image-width) minmax(0, 1fr); }
.hsf-section--past .hsf-order-card__body { padding: var(--pc-space-4) var(--pc-space-5); }

/* ======================================================================
 * One order
 * ====================================================================== */
.hsf-order { display: grid; gap: var(--pc-space-1); }
.hsf-order .hsf-head { padding-bottom: var(--pc-space-6); }
.hsf-order__layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--pc-account-summary-width); gap: var(--pc-space-6); align-items: start; }
.hsf-order__main { display: grid; gap: var(--pc-space-5); min-width: 0; }

.hsf-status { display: grid; gap: var(--pc-space-2); padding: var(--pc-space-5) var(--pc-space-6); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-radius-md); }
.hsf-status__label { display: flex; }
.hsf-status__sentence { font-size: var(--pc-text-xl); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); }
.hsf-status .hsf-progress { padding-top: var(--pc-space-3); }
.hsf-status .hsf-progress__step { padding-top: var(--pc-space-5); font-size: var(--pc-text-sm); }
.hsf-status .hsf-progress__step::before { height: var(--pc-space-2); }

.hsf-shipments { display: grid; gap: var(--pc-space-4); }
.hsf-shipment { display: grid; gap: var(--pc-space-2); min-width: 0; padding: var(--pc-space-5); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-radius-md); background: var(--pc-color-surface); }
.hsf-shipment__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pc-space-2) var(--pc-space-4); }
.hsf-shipment__title { font-size: var(--pc-text-base); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); }
.hsf-shipment__carrier { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-3); font-size: var(--pc-text-sm); }
.hsf-shipment__carrier-name { font-weight: var(--pc-weight-bold); }
.hsf-shipment__carrier .hsf-link { min-height: var(--pc-control-height); }
.hsf-shipment__number { color: var(--pc-color-muted); overflow-wrap: anywhere; }
.hsf-shipment__timing { font-size: var(--pc-text-base); font-weight: var(--pc-weight-bold); }
.hsf-shipment__timing:empty { display: none; }
.hsf-shipment__note { color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
/* A label is not a shipment in motion: dashed. Units in no shipment yet: a soft surface. */
.hsf-shipment--label_created { border-style: dashed; border-color: var(--pc-color-line-strong); }
.hsf-shipment--unassigned { background: var(--pc-color-soft); }
.hsf-shipment--unassigned .hsf-badge { background: var(--pc-color-surface); border-color: var(--pc-color-line-strong); }
.hsf-shipment--delivered { border-color: var(--pc-color-line-strong); }
/* A cancelled, refunded or failed order: the plugin prints "Not shipped" (no badge, no promise). Plain, not a soft "waiting" panel. */
.hsf-shipment--closed { border-style: solid; background: var(--pc-color-surface); }

.hsf-lines { display: grid; margin: 0; padding: var(--pc-space-2) 0 0; list-style: none; }
.hsf-line { display: grid; grid-template-columns: var(--pc-search-thumbnail-size) minmax(0, 1fr) auto; align-items: center; gap: var(--pc-space-3); padding: var(--pc-space-3) 0; border-top: var(--pc-border-width) solid var(--pc-color-line); }
.hsf-line__media { display: block; width: var(--pc-search-thumbnail-size); height: var(--pc-search-thumbnail-size); overflow: hidden; border-radius: var(--pc-radius-sm); }
.hsf-line__body { display: grid; gap: var(--pc-space-1); min-width: 0; }
.hsf-line__title { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); overflow-wrap: anywhere; }
.hsf-line__name { color: inherit; text-underline-offset: var(--pc-space-1); text-decoration-thickness: var(--pc-border-width); }
a.hsf-line__name { text-decoration: none; }
a.hsf-line__name:hover { text-decoration: underline; }
.hsf-line__meta { display: flex; flex-wrap: wrap; gap: var(--pc-space-1) var(--pc-space-3); color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-compact); }
.hsf-line__for { flex-basis: 100%; color: var(--pc-color-ink); font-weight: var(--pc-weight-medium, 500); } /* the same part for two vehicles (Pass 5) */
.hsf-line__qty { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hsf-requests { display: grid; gap: var(--pc-space-3); }
.hsf-requests__title { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); }
.hsf-requests__text { max-width: 36rem; color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-requests__list { display: flex; flex-wrap: wrap; gap: var(--pc-space-2); margin: 0; padding: 0; list-style: none; }
.hsf-request { display: inline-flex; align-items: center; gap: var(--pc-space-2); min-height: var(--pc-control-height); padding: var(--pc-space-2) var(--pc-space-4) var(--pc-space-2) var(--pc-space-3); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-radius-pill); background: var(--pc-color-surface); color: var(--pc-color-ink); font-size: var(--pc-text-sm); text-decoration: none; }
.hsf-request:hover { border-color: var(--pc-color-ink); background: var(--pc-color-search-surface); }
.hsf-request .hsf-icon > .pc-icon { width: var(--pc-icon-sm); height: var(--pc-icon-sm); color: var(--pc-color-muted); }

.hsf-summary { position: sticky; top: calc(var(--pc-header-sticky-offset, 0px) + var(--pc-header-height, 4.5rem) + var(--pc-space-6)); display: grid; gap: var(--pc-space-4); min-width: 0; padding: var(--pc-space-5); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-radius-md); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-totals { display: grid; gap: var(--pc-space-2); margin: 0; font-variant-numeric: tabular-nums; }
.hsf-totals__row { display: flex; justify-content: space-between; gap: var(--pc-space-3); }
.hsf-totals__row dt { min-width: 0; }
.hsf-totals__row dd { margin: 0; text-align: right; }
.hsf-totals__row--total { padding-top: var(--pc-space-3); border-top: var(--pc-border-width) solid var(--pc-color-line); font-size: var(--pc-text-base); font-weight: var(--pc-weight-bold); }
.hsf-summary__block { display: grid; gap: var(--pc-space-2); padding-top: var(--pc-space-4); border-top: var(--pc-border-width) solid var(--pc-color-line); }
.hsf-summary__title { color: var(--pc-color-muted); font-size: var(--pc-text-xs); font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-tracking-label); text-transform: uppercase; }
.hsf-summary__text { overflow-wrap: anywhere; }
.hsf-summary__hint { color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-address { font-style: normal; overflow-wrap: anywhere; }
.hsf-purchases { display: grid; gap: var(--pc-space-3); margin: 0; padding: 0; list-style: none; }
.hsf-purchase { display: grid; gap: var(--pc-space-1); }
.hsf-purchase__name { font-size: var(--pc-text-sm); line-height: var(--pc-leading-compact); overflow-wrap: anywhere; }
.hsf-purchase__vehicle,
.hsf-purchase__fit { color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-purchase__k { font-weight: var(--pc-weight-bold); }
.hsf-purchase__fit--fits { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); }
.hsf-purchase__evidence,
.hsf-part__evidence { display: block; color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); overflow-wrap: anywhere; }
.hsf-purchase__k,
.hsf-part__k { font-weight: var(--pc-weight-bold); }
.hsf-part__evidence { margin-top: var(--pc-space-1); }

/* ======================================================================
 * Your Parts
 * ====================================================================== */
.hsf-parts { display: grid; gap: var(--pc-space-4); align-content: start; }
.hsf-parts .hsf-head { padding-bottom: var(--pc-space-2); }
.hsf-notice-slot:empty { display: none; }
.hsf-parts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pc-space-4); margin: 0; padding: 0; list-style: none; }
.hsf-parts__list:has(details[open]) { align-items: start; }
.hsf-part { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-account-part-card-radius); background: var(--pc-color-surface); }
.hsf-part__media { flex-shrink: 0; height: var(--pc-account-part-image-height); border-bottom: var(--pc-border-width) solid var(--pc-color-search-border); background: var(--pc-color-surface); }
.hsf-thumb--part { height: 100%; background: var(--pc-color-surface); }
.hsf-thumb--part .hsf-thumb__img { padding: var(--pc-space-4); }
.hsf-part__body { display: flex; flex: 1; flex-direction: column; gap: var(--pc-space-3); min-width: 0; padding: var(--pc-space-5); }
.hsf-part__title { font-size: var(--pc-account-part-title-size); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); overflow-wrap: anywhere; }
.hsf-part__title a { color: inherit; text-decoration: none; }
.hsf-part__title a:hover { text-decoration: underline; text-underline-offset: var(--pc-space-1); }
.hsf-part__facts { display: grid; gap: var(--pc-space-2); margin: 0; font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-part__fact { display: grid; grid-template-columns: var(--pc-account-part-label-width) minmax(0, 1fr); gap: var(--pc-space-3); }
.hsf-part__fact dt { padding-top: var(--pc-space-1); color: var(--pc-color-muted); font-size: var(--pc-text-xs); font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-tracking-label); text-transform: uppercase; }
.hsf-part__fact dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.hsf-part__orders,
.hsf-part__vehicles { display: grid; gap: var(--pc-space-1); margin: 0; padding: 0; list-style: none; }
.hsf-part__order .hsf-link { min-height: 1.5rem; font-weight: var(--pc-weight-regular); font-size: inherit; }
@media (pointer: coarse) { .hsf-part__order .hsf-link { min-height: var(--pc-control-height); } }
.hsf-part__note { display: block; margin-top: var(--pc-space-1); color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-part__order .hsf-part__note { display: inline; margin: 0; }
/* The state of this purchase ("1 label created, awaiting carrier handoff · 1 not yet assigned") reads as its own line under the order link. */
.hsf-part__order .hsf-part__order-state { display: block; margin-top: var(--pc-space-1); }
.hsf-part__actions { display: flex; flex-wrap: wrap; gap: var(--pc-space-3); margin-top: auto; padding-top: var(--pc-space-2); }
.hsf-part__actions:empty { display: none; }
.hsf-part__review-note { color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-part__review { padding-top: var(--pc-space-2); border-top: var(--pc-border-width) solid var(--pc-color-line); }
.hsf-part__review-toggle { display: flex; align-items: center; gap: var(--pc-space-2); min-height: var(--pc-control-height); list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: var(--pc-space-1); }
.hsf-part__review-toggle::-webkit-details-marker { display: none; }
.hsf-part__review-toggle::after { content: ""; width: var(--pc-icon-sm); height: var(--pc-icon-sm); background: currentColor; -webkit-mask: var(--hsf-glyph-down) center / contain no-repeat; mask: var(--hsf-glyph-down) center / contain no-repeat; }
.hsf-part__review[open] > .hsf-part__review-toggle { margin-bottom: var(--pc-space-3); }
.hsf-part__review[open] > .hsf-part__review-toggle::after { transform: rotate(180deg); }
.hsf-part__review > .hsf-notice { margin-bottom: var(--pc-space-3); }

/* ======================================================================
 * Your Details
 * ====================================================================== */
.hsf-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pc-space-4); align-items: start; }
.hsf-details > .hsf-head { grid-column: 1 / -1; padding-bottom: var(--pc-space-2); }
.hsf-details > .hsf-notice--page { grid-column: 1 / -1; margin-bottom: 0; }
.hsf-details > .hsf-card--email,
.hsf-details > .hsf-garage-slot,
.hsf-details > .hsf-card--signout { grid-column: 1 / -1; }
.hsf-garage-slot { min-width: 0; }
.hsf-card--email { gap: var(--pc-space-2); }
.hsf-card--email .hsf-link { justify-self: start; }
.hsf-form.hsf-card { gap: var(--pc-account-form-gap); }
.hsf-form.hsf-card > .hsf-card__title { padding-bottom: var(--pc-space-1); }
.hsf-form.hsf-card > .hsf-card__hint { padding-top: var(--pc-space-1); }
.hsf-card--data .hsf-card__foot form { display: contents; }
.hsf-card--signout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--pc-space-5); }
.hsf-card--signout > .hsf-card__title,
.hsf-card--signout > .hsf-card__text { grid-column: 1; }
.hsf-card--signout > .hsf-button { grid-column: 2; grid-row: 1 / span 2; }

/* Garage card (the plugin renders the list; the theme's picker adds and selects). */
.hsf-garage__list { display: grid; gap: var(--pc-space-2); margin: 0; padding: 0; list-style: none; }
.hsf-garage__item { display: grid; grid-template-columns: var(--pc-control-height-compact) minmax(0, 1fr) auto; align-items: center; gap: var(--pc-space-1) var(--pc-space-3); padding: var(--pc-space-3); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-garage-row-radius); }
.hsf-garage__item.is-active { border-color: var(--pc-color-ink); background: var(--pc-color-search-surface); }
.hsf-garage__icon { display: grid; grid-row: 1 / span 2; place-items: center; width: var(--pc-control-height-compact); height: var(--pc-control-height-compact); border-radius: var(--pc-radius-pill); background: var(--pc-color-soft); }
.hsf-garage__item.is-active .hsf-garage__icon { background: var(--pc-color-surface); }
.hsf-garage__text { display: grid; grid-column: 2; min-width: 0; line-height: var(--pc-leading-compact); }
.hsf-garage__title { font-size: var(--pc-text-base); overflow-wrap: anywhere; }
.hsf-garage__sub { margin-top: var(--pc-space-1); color: var(--pc-color-muted); font-size: var(--pc-text-xs); }
.hsf-garage__item > .hsf-badge { grid-column: 3; grid-row: 1; justify-self: end; }
.hsf-garage__shop,
.hsf-garage__remove { grid-row: 2; min-height: var(--pc-control-height); font-size: var(--pc-text-sm); }
.hsf-garage__shop { grid-column: 2; justify-self: start; }
.hsf-garage__remove { grid-column: 3; justify-self: end; color: var(--pc-color-muted); }
.hsf-garage__remove:hover { color: var(--pc-color-ink); }
.hsf-garage__item > .hsf-garage__shop + .hsf-garage__remove { grid-column: 3; }

/* ======================================================================
 * Contact ("Timing board", owner 2026-11-10): HRD's form system on Podium's own first screen.
 * One banner that keeps its height in every state. The topics are rows, then tabs once one is chosen.
 * Sky stays on navy (owner #11): the tab strip's navy base keeps it off the white page.
 * ====================================================================== */
.hsf-contact-page { padding: 0; }

.hsf-contact {
	--hsf-contact-pad: calc(var(--pc-contact-frame) + var(--pc-page-gutter));
	--hsf-contact-checker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 112 226 188'%3E%3Cg fill='%2391D2FF'%3E%3Cpath d='M94 112h80l-30 60H64z'/%3E%3Cpath d='M146 176h80l-30 60h-80z'/%3E%3Cpath d='M30 240h80l-30 60H0z'/%3E%3C/g%3E%3C/svg%3E");
	--hsf-contact-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30'%3E%3Cg fill='%2391D2FF'%3E%3Cpath d='M15 0h14l-5 10H10z'/%3E%3Cpath d='M-13 0H1l-5 10h-14z'/%3E%3Cpath d='M24 10h14l-5 10H19z'/%3E%3Cpath d='M-4 10h14L5 20H-9z'/%3E%3Cpath d='M5 20h14l-5 10H0z'/%3E%3C/g%3E%3C/svg%3E");
	display: block;
	color: var(--pc-color-ink);
	letter-spacing: var(--pc-contact-tracking-text);
	line-height: var(--pc-leading-compact);
}
.hsf-contact :where(p, h1, h2, dl, dt, dd) { margin: 0; padding: 0; }
.hsf-contact [hidden] { display: none; }
.hsf-contact :focus-visible { outline: var(--pc-focus-width) solid var(--pc-color-ink); outline-offset: var(--pc-focus-offset); }

/* small underlined capitals: Copy address, Change car, Clear */
.hsf-contact__tool { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-decoration: underline; text-transform: uppercase; text-underline-offset: 3px; cursor: pointer; }
.hsf-contact__tool:hover { text-decoration-thickness: 2px; }
@media (pointer: coarse) { .hsf-contact__tool { min-height: var(--pc-control-height); } }

/* ---------- the stage: banner and board ---------- */
.hsf-contact__stage { background: var(--pc-color-ink); color: var(--pc-color-inverse); }
.hsf-contact__stage :focus-visible { outline-color: var(--pc-color-sky); }
.hsf-contact__banner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--pc-space-8); padding: 2.75rem var(--hsf-contact-pad) 2.25rem; }
.hsf-contact__head { display: grid; gap: 0.875rem; min-width: 0; }
.hsf-contact__kicker { color: var(--pc-contact-on-ink); font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-button); text-transform: uppercase; }
.hsf-contact__headline { font-size: var(--pc-contact-headline); font-weight: var(--pc-weight-bold); letter-spacing: -0.05em; line-height: 0.95; white-space: nowrap; }
.hsf-contact__headline:focus { outline: none; }
.hsf-contact__break { display: none; }
.hsf-contact[data-state="sent"] .hsf-contact__kicker { color: var(--pc-color-sky); }
.hsf-contact[data-state="sent"] .hsf-contact__headline { white-space: normal; overflow-wrap: anywhere; }

.hsf-contact__email { display: grid; flex: none; justify-items: start; gap: 0.3125rem; padding-bottom: 0.375rem; }
.hsf-contact__email--board,
.hsf-contact__after { display: none; }
.hsf-contact[data-state="sent"] .hsf-contact__email { display: none; }
.hsf-contact__email-label { color: var(--pc-contact-on-ink); font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }
.hsf-contact__mail { color: inherit; font-size: 1.25rem; font-weight: var(--pc-weight-bold); letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; }
.hsf-contact__mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.hsf-contact__email-acts { display: flex; align-items: center; gap: var(--pc-space-3); }
.hsf-contact__copied { color: var(--pc-color-sky); font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }
.hsf-contact__copied:empty { display: none; }

.hsf-contact__reply { font-size: var(--pc-text-md); line-height: 1.4; }
.hsf-contact__reply strong { font-weight: var(--pc-weight-bold); overflow-wrap: anywhere; }
.hsf-contact__reply a { color: inherit; text-underline-offset: 3px; }
.hsf-contact__reply--banner { flex: none; width: 23rem; max-width: 100%; padding-bottom: 0.375rem; color: rgb(255 255 255 / 86%); }
.hsf-contact__reply--banner strong,
.hsf-contact__reply--banner a { color: var(--pc-color-inverse); }
.hsf-contact__reply--body { display: none; }
.hsf-contact__flag { height: 1.875rem; background: var(--hsf-contact-flag) left top / 1.75rem 1.875rem repeat-x; }
.hsf-contact[data-state="sent"] .hsf-contact__stage { padding-bottom: 1.125rem; }

/* every topic, on the board or the strip */
.hsf-contact__types { container-type: inline-size; position: relative; border-top: var(--pc-border-width) solid var(--pc-contact-rule); }
.hsf-contact[data-state="sent"] .hsf-contact__types { display: none; }
.hsf-contact__type { color: var(--pc-color-inverse); font-weight: var(--pc-weight-bold); text-decoration: none; }
.hsf-contact__type:hover { background: var(--pc-color-band); }
.hsf-contact__type:focus-visible { outline-offset: calc(var(--pc-focus-width) * -2); }
.hsf-contact__type--ask { background: var(--pc-color-band); }
.hsf-contact__type-no { color: var(--pc-color-sky); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hsf-contact__type-no::before { content: "P"; }
.hsf-contact__type--ask .hsf-contact__type-no::before { content: ""; display: block; width: 1.125rem; height: 0.9375rem; background: var(--hsf-contact-checker) center / contain no-repeat; }
.hsf-contact__type-arrow::before { content: "\2192"; font-weight: var(--pc-weight-regular); }
.hsf-contact__type--ask .hsf-contact__type-arrow::before { content: "\2197"; }
.hsf-contact__change { display: none; }

/* the board: nothing chosen yet */
.hsf-contact[data-state="empty"] .hsf-contact__type { display: grid; grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1fr) 2.5rem; align-items: center; min-height: var(--pc-contact-row-height); padding-inline: var(--hsf-contact-pad); border-bottom: var(--pc-border-width) solid var(--pc-contact-rule); }
.hsf-contact[data-state="empty"] .hsf-contact__type:last-of-type { border-bottom: 0; }
.hsf-contact[data-state="empty"] .hsf-contact__type-no { font-size: var(--pc-text-base); }
.hsf-contact[data-state="empty"] .hsf-contact__type-label { font-size: var(--pc-contact-row-label); letter-spacing: -0.035em; line-height: 1; }
.hsf-contact[data-state="empty"] .hsf-contact__type-short { color: var(--pc-contact-on-ink); font-size: var(--pc-text-base); font-weight: var(--pc-weight-regular); }
.hsf-contact[data-state="empty"] .hsf-contact__type-arrow { justify-self: end; font-size: 1.25rem; line-height: 1; }

/* the strip: a topic is chosen. Its description stays in the link's accessible name. */
.hsf-contact[data-state="form"] .hsf-contact__types { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-inline: var(--pc-contact-frame); border-bottom: 3px solid var(--pc-color-ink); }
.hsf-contact[data-state="form"] .hsf-contact__type { display: flex; align-items: center; gap: 0.625rem; min-height: var(--pc-contact-tab-height); padding-inline: var(--pc-space-4); border-left: var(--pc-border-width) solid var(--pc-contact-rule); font-size: var(--pc-text-base); letter-spacing: -0.02em; white-space: nowrap; }
.hsf-contact[data-state="form"] .hsf-contact__type:first-of-type { padding-left: var(--pc-page-gutter); border-left: 0; }
.hsf-contact[data-state="form"] .hsf-contact__type-no { font-size: 0.75rem; }
.hsf-contact[data-state="form"] .hsf-contact__type-short { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hsf-contact[data-state="form"] .hsf-contact__type-arrow { display: none; margin-left: auto; font-size: 1.125rem; line-height: 1; }
.hsf-contact[data-state="form"] .hsf-contact__type--ask .hsf-contact__type-arrow,
.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-arrow { display: block; }
.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-arrow::before { content: "\2193"; }
.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] { border-left-color: var(--pc-color-sky); background: var(--pc-color-sky); color: var(--pc-color-ink); }
.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-no { color: var(--pc-color-ink); }
.hsf-contact[data-state="form"] .hsf-contact__type[aria-current]:focus-visible { outline-color: var(--pc-color-ink); }
@container (max-width: 77.5rem) {
	.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-arrow { display: none; }
}
@container (max-width: 64rem) {
	.hsf-contact[data-state="form"] .hsf-contact__type { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.125rem; padding-inline: var(--pc-space-3); font-size: var(--pc-text-sm); white-space: normal; }
	.hsf-contact[data-state="form"] .hsf-contact__type--ask .hsf-contact__type-arrow { display: none; }
}

/* ---------- body: one left edge with the header, the board and the footer ---------- */
.hsf-contact__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--pc-space-10) var(--pc-space-12); align-items: start; padding: var(--pc-space-14) var(--hsf-contact-pad) 5.5rem; }
@media (max-width: 1100px) { .hsf-contact__body { column-gap: var(--pc-space-8); } }
.hsf-contact[data-state="empty"] .hsf-contact__body { display: none; }
.hsf-contact__side { position: sticky; top: calc(var(--pc-header-sticky-offset) + var(--pc-header-height, 4.5rem) + var(--pc-space-4)); display: grid; gap: 1.125rem; min-width: 0; }
.hsf-contact__title { font-size: var(--pc-contact-title); font-weight: var(--pc-weight-bold); letter-spacing: -0.04em; line-height: 0.95; }
.hsf-contact__about { color: var(--pc-color-muted); font-size: 1.0625rem; }
.hsf-contact__note { padding: var(--pc-space-3) 0.875rem; background: var(--pc-color-soft); font-size: var(--pc-text-sm); line-height: 1.45; }
.hsf-contact__foot { display: flex; flex-wrap: wrap; gap: 0.125rem 1.125rem; padding-top: 0.875rem; border-top: var(--pc-border-width) solid var(--pc-color-line); }
.hsf-contact__foot .hsf-link { display: inline-flex; align-items: center; min-height: 2rem; color: var(--pc-color-ink); font-size: 0.875rem; font-weight: var(--pc-weight-bold); text-decoration: none; }
.hsf-contact__foot .hsf-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hsf-contact__foot .hsf-link::after { content: "\2197"; padding-left: 0.3125rem; font-weight: var(--pc-weight-regular); }

/* attached (verified) context */
.hsf-attached { display: grid; gap: 0.625rem; padding: 0.875rem; border: var(--pc-border-width) solid var(--pc-color-ink); }
.hsf-attached__title { font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }
.hsf-attached__list { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.hsf-attached__item { font-size: var(--pc-text-base); font-weight: var(--pc-weight-bold); letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.hsf-attached__item[data-kind="vehicle"] { color: var(--pc-color-muted); font-weight: var(--pc-weight-regular); }
.hsf-attached .hsf-link { justify-self: start; min-height: 1.5rem; font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }

/* ---------- the form: the question, then where to reply ---------- */
.hsf-cf { container-type: inline-size; display: grid; gap: var(--pc-space-9); min-width: 0; }
[data-hsf-sum-slot]:empty { display: none; }
.hsf-cf__group { display: grid; gap: var(--pc-space-5); min-width: 0; }
.hsf-cf__group-title { padding-top: var(--pc-space-3); border-top: var(--pc-border-width) solid var(--pc-color-ink); font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-button); text-transform: uppercase; }
.hsf-cf__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pc-space-5) var(--pc-space-4); }
.hsf-contact__set { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pc-space-5) var(--pc-space-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.hsf-contact__set:not(:has(.hsf-field, .hsf-contact__note)) { display: none; } /* a topic with no fields of its own */
.hsf-contact__set > .hsf-contact__note { grid-column: 1 / -1; }
@container (min-width: 30rem) {
	.hsf-cf__row,
	.hsf-contact__set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 46rem) {
	.hsf-cf__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hsf-cf .hsf-field { gap: var(--pc-space-2); }
.hsf-cf .hsf-field__label { display: flex; justify-content: space-between; gap: var(--pc-space-3); font-size: var(--pc-text-xs); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }
.hsf-cf .hsf-field__optional { font-weight: var(--pc-weight-bold); }
.hsf-cf .hsf-field__input { min-height: var(--pc-contact-field-height); padding: var(--pc-space-3) 0.875rem; border: var(--pc-border-width) solid var(--pc-color-ink); border-radius: 0; font-size: var(--pc-text-md); letter-spacing: -0.02em; }
.hsf-cf textarea.hsf-field__input { min-height: 10.5rem; line-height: 1.45; }
.hsf-cf .hsf-field__input:focus-visible { outline-offset: var(--pc-focus-offset); }
.hsf-cf .hsf-field.has-error .hsf-field__input { padding: calc(var(--pc-space-3) - var(--pc-border-width)) calc(0.875rem - var(--pc-border-width)); border: calc(var(--pc-border-width) * 2) solid var(--pc-color-error); }
.hsf-cf .hsf-field__error { font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); line-height: 1.35; }
.hsf-cf .hsf-field__hint { color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: 1.35; }
.hsf-cf [data-hsf-field="email"] .hsf-field__hint { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* "Where we reply" says it; screen readers keep the hint */
.hsf-cf [data-hsf-field="message"] { grid-template-columns: minmax(0, 1fr) auto; }
.hsf-cf [data-hsf-field="message"] > :is(.hsf-field__label, .hsf-field__input, .hsf-field__error) { grid-column: 1 / -1; }
.hsf-cf [data-hsf-field="message"] .hsf-field__hint { grid-column: 1; }
.hsf-cf [data-hsf-field="message"] .hsf-field__count { grid-column: 2; align-self: baseline; }
.hsf-cf .hsf-field__count { color: var(--pc-color-muted); font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); }
.hsf-cf .hsf-field__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--pc-space-4); font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); text-transform: uppercase; }
.hsf-cf .hsf-field__note[hidden] { display: none; }
.hsf-cf [data-hsf-garage-text]::before { content: ""; display: inline-block; width: 0.4375rem; height: 0.4375rem; margin-right: 0.4375rem; border-radius: 50%; background: var(--pc-color-ink); vertical-align: 0.0625rem; }
/* files: the browser's own picker without JavaScript; view.js adds is-enhanced for the target and the list */
.hsf-cf__pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-2) 0.875rem; min-height: 4rem; padding: var(--pc-space-3) 0.875rem; border: var(--pc-border-width) dashed var(--pc-color-ink); }
.hsf-cf__plus { display: none; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border: var(--pc-border-width) solid var(--pc-color-ink); font-size: 1.25rem; line-height: 1; }
.hsf-cf__pick-text { display: grid; gap: 0.125rem; flex: 1 1 12rem; min-width: 0; }
.hsf-cf__pick-title { font-size: 0.875rem; font-weight: var(--pc-weight-bold); letter-spacing: -0.02em; line-height: 1.25; }
.hsf-cf__pick-limits { color: var(--pc-color-muted); font-size: 0.625rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-micro); line-height: 1.4; text-transform: uppercase; }
.hsf-cf__file { flex: 1 1 100%; width: 100%; min-width: 0; font: inherit; font-size: var(--pc-text-sm); } /* a width, or the native control's intrinsic size widens the field on a phone */
.hsf-cf__pick.is-enhanced { flex-wrap: nowrap; }
.hsf-cf__pick.is-enhanced .hsf-cf__plus { display: grid; }
.hsf-cf__pick.is-enhanced .hsf-cf__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hsf-cf__pick.is-enhanced:hover { background: var(--pc-color-soft); }
.hsf-cf__pick:has(.hsf-cf__file:focus-visible) { outline: var(--pc-focus-width) solid var(--pc-color-ink); outline-offset: var(--pc-focus-offset); }
.hsf-field.has-error .hsf-cf__pick { padding: calc(var(--pc-space-3) - var(--pc-border-width)) calc(0.875rem - var(--pc-border-width)); border: calc(var(--pc-border-width) * 2) solid var(--pc-color-error); }
.hsf-cf[aria-busy="true"] .hsf-cf__pick { background: var(--pc-color-soft); }
.hsf-cf__files { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.hsf-cf__file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--pc-space-3); padding: 0.25rem 0.875rem; background: var(--pc-color-soft); font-size: 0.875rem; letter-spacing: -0.02em; }
.hsf-cf__file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--pc-weight-bold); }
.hsf-cf__file-size { color: var(--pc-color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hsf-cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hsf-cf[aria-busy="true"] .hsf-field__input { background: var(--pc-color-soft); }
.hsf-cf[aria-busy="true"] .hsf-cf__submit { opacity: var(--pc-disabled-opacity); cursor: progress; }

.hsf-form-summary { display: grid; gap: var(--pc-space-2); padding: var(--pc-space-4); border: var(--pc-border-width) solid var(--pc-color-error); border-left-width: calc(var(--pc-border-width) * 3); border-radius: var(--pc-radius-sm); background: var(--pc-color-error-surface); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-form-summary:focus { outline: none; }
.hsf-form-summary:focus-visible { outline: var(--pc-focus-width) solid var(--pc-color-focus); outline-offset: var(--pc-focus-offset); }
.hsf-form-summary__title { color: var(--pc-color-error); font-weight: var(--pc-weight-bold); }
.hsf-form-summary ul { display: grid; gap: var(--pc-space-1); margin: 0; padding-left: var(--pc-space-5); }
.hsf-form-summary a { color: var(--pc-color-ink); font-weight: var(--pc-weight-bold); text-underline-offset: var(--pc-space-1); }
.hsf-cf .hsf-form-summary { padding: var(--pc-space-4) 1.125rem; border-width: calc(var(--pc-border-width) * 2); border-radius: 0; background: var(--pc-color-surface); font-size: 0.875rem; }
.hsf-cf .hsf-form-summary__title { font-size: var(--pc-text-base); }

.hsf-cf__fail { display: grid; gap: var(--pc-space-2); padding: var(--pc-space-4) 1.125rem; border: calc(var(--pc-border-width) * 2) solid var(--pc-color-error); background: var(--pc-color-surface); font-size: 0.875rem; line-height: 1.45; }
.hsf-cf__fail:focus { outline: none; }
.hsf-cf__fail:focus-visible { outline: var(--pc-focus-width) solid var(--pc-color-ink); outline-offset: var(--pc-focus-offset); }
.hsf-cf__fail-title { color: var(--pc-color-error); font-size: var(--pc-text-md); font-weight: var(--pc-weight-bold); }
.hsf-cf__fail-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-5); padding-top: var(--pc-space-1); }
.hsf-cf__fail-acts .hsf-button { border-radius: 0; }

.hsf-cf__send { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); align-items: center; gap: var(--pc-space-6); }
.hsf-cf__submit { width: 100%; min-height: var(--pc-contact-field-height); padding-inline: var(--pc-space-4); border-radius: 0; font-size: var(--pc-text-sm); letter-spacing: var(--pc-contact-tracking-button); text-transform: uppercase; }
.hsf-cf__submit:hover { border-color: var(--pc-color-band); background: var(--pc-color-band); }
.hsf-cf__privacy { color: var(--pc-color-muted); font-size: 0.75rem; line-height: 1.45; }
.hsf-cf__privacy .hsf-link { min-height: 0; font-weight: var(--pc-weight-regular); font-size: inherit; color: var(--pc-color-ink); }
/* A 44px tap height for the inline Privacy link without moving the line: the negative margin cancels the extra height. */
@media (pointer: coarse) { .hsf-cf__privacy .hsf-link { min-height: var(--pc-control-height); margin-block: calc((1lh - var(--pc-control-height)) / 2); } }

/* ---------- sent: what they sent, under the same banner ---------- */
.hsf-contact__recap { min-width: 0; }
.hsf-contact__recap-list { border-top: var(--pc-border-width) solid var(--pc-color-line); }
.hsf-contact__recap-row { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: var(--pc-space-3); padding: 0.625rem 0; border-bottom: var(--pc-border-width) solid var(--pc-color-line); font-size: var(--pc-text-base); line-height: 1.35; }
.hsf-contact__recap-row dt { color: var(--pc-color-muted); }
.hsf-contact__recap-row dd { overflow-wrap: anywhere; white-space: pre-line; }
.hsf-contact__recap-next { display: flex; flex-wrap: wrap; gap: var(--pc-space-1) var(--pc-space-6); padding-top: var(--pc-space-3); }

/* ---------- motion: only while a change runs (view.js sets the class); text never scales ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hsf-contact__types.is-entering,
	.hsf-contact__body.is-entering { animation: hsf-contact-in 0.22s ease-out both; }
}
@keyframes hsf-contact-in { from { opacity: 0; transform: translateY(0.375rem); } }

/* ---------- narrow: the chosen row stands in for the strip; the address follows the page ---------- */
@media (max-width: 850px) {
	.hsf-contact__banner { display: grid; gap: var(--pc-space-5); padding: 1.875rem var(--pc-page-gutter) 1.625rem; }
	.hsf-contact__headline { min-height: 1.9em; font-size: var(--pc-contact-headline-narrow); text-wrap: balance; white-space: normal; }
	.hsf-contact__break { display: inline; }
	.hsf-contact__email--banner,
	.hsf-contact__reply--banner { display: none; }
	.hsf-contact[data-state="empty"] .hsf-contact__email--board { display: grid; padding: var(--pc-space-5) var(--pc-page-gutter) 1.625rem; }

	.hsf-contact[data-state="empty"] .hsf-contact__type { grid-template-columns: 2.75rem minmax(0, 1fr) 1.5rem; grid-template-rows: auto auto; row-gap: 0.1875rem; min-height: 4.25rem; padding: var(--pc-space-3) var(--pc-page-gutter); }
	.hsf-contact[data-state="empty"] .hsf-contact__type-no { grid-row: 1 / 3; font-size: var(--pc-text-sm); }
	.hsf-contact[data-state="empty"] .hsf-contact__type-label { font-size: 1.375rem; }
	.hsf-contact[data-state="empty"] .hsf-contact__type-short { grid-column: 2; grid-row: 2; font-size: var(--pc-text-sm); }
	.hsf-contact[data-state="empty"] .hsf-contact__type-arrow { grid-column: 3; grid-row: 1 / 3; }

	.hsf-contact[data-state="form"] .hsf-contact__types { display: block; padding-inline: 0; }
	.hsf-contact[data-state="form"] .hsf-contact__type:not([aria-current]) { display: none; }
	.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 0; min-height: 4rem; padding: 0 var(--pc-page-gutter); border-left: 0; font-size: 1.375rem; letter-spacing: -0.035em; white-space: normal; }
	.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-no { font-size: var(--pc-text-sm); letter-spacing: 0.04em; }
	.hsf-contact[data-state="form"] .hsf-contact__type[aria-current] .hsf-contact__type-arrow { display: none; }
	.hsf-contact[data-state="form"] .hsf-contact__change { position: absolute; top: 0; right: var(--pc-page-gutter); display: inline-flex; align-items: center; height: 4rem; color: var(--pc-color-ink); font-size: 0.6875rem; font-weight: var(--pc-weight-bold); letter-spacing: var(--pc-contact-tracking-button); text-transform: uppercase; text-underline-offset: 3px; }
	.hsf-contact[data-state="form"] .hsf-contact__change:focus-visible { outline-color: var(--pc-color-ink); }

	.hsf-contact__body { grid-template-columns: minmax(0, 1fr); gap: var(--pc-space-6); padding: var(--pc-space-5) var(--pc-page-gutter) 3.5rem; }
	.hsf-contact[data-state="sent"] .hsf-contact__body { padding-top: var(--pc-space-8); }
	.hsf-contact__side { position: static; }
	.hsf-contact__side:has(.hsf-contact__about) .hsf-contact__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the lit row names the topic */
	.hsf-contact__title { font-size: 2.375rem; }
	.hsf-contact__about { font-size: var(--pc-text-base); }
	.hsf-contact__side .hsf-contact__foot { display: none; }
	.hsf-contact[data-state="sent"] .hsf-contact__side .hsf-contact__foot { display: flex; }
	.hsf-contact__after { display: grid; gap: var(--pc-space-3); padding-top: 1.125rem; border-top: var(--pc-border-width) solid var(--pc-color-line); }
	.hsf-contact[data-state="sent"] .hsf-contact__after { display: none; }
	.hsf-contact__after .hsf-contact__email-label { color: var(--pc-color-muted); }
	.hsf-contact__after .hsf-contact__copied { color: var(--pc-color-ink); }
	.hsf-contact__after .hsf-contact__foot { padding-top: 0; border-top: 0; }
	.hsf-contact__reply--body { display: block; font-size: 1.0625rem; }
	.hsf-cf__send { grid-template-columns: minmax(0, 1fr); gap: var(--pc-space-3); }
	.hsf-contact__recap-row { grid-template-columns: 6.875rem minmax(0, 1fr); }
}

/* ======================================================================
 * Review form (Your Parts and the product page)
 * ====================================================================== */
.hsf-review { display: grid; gap: var(--pc-space-3); min-width: 0; }
.hsf-review__title { font-size: var(--pc-text-lg); font-weight: var(--pc-weight-bold); line-height: var(--pc-leading-compact); letter-spacing: var(--pc-tracking-heading); }
.hsf-review__body { display: grid; gap: var(--pc-space-3); min-width: 0; }
.hsf-review__content { display: grid; gap: var(--pc-space-3); }
.hsf-review__loading { color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-review[data-state="loading"] .hsf-review__loading::before { content: ""; display: block; width: 60%; height: var(--pc-space-3); margin-bottom: var(--pc-space-3); border-radius: var(--pc-radius-sm); background: var(--pc-color-soft); }
.hsf-review__error { display: flex; align-items: flex-start; gap: var(--pc-space-2); color: var(--pc-color-error); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-review__error::before { content: ""; flex-shrink: 0; width: var(--pc-icon-sm); height: var(--pc-icon-sm); margin-top: 0.15em; background: currentColor; -webkit-mask: var(--hsf-glyph-alert) center / contain no-repeat; mask: var(--hsf-glyph-alert) center / contain no-repeat; }
.hsf-review-gate { display: grid; justify-items: start; gap: var(--pc-space-3); }
.hsf-review-gate__text { margin: 0; max-width: 40rem; font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-review-gate--pending,
.hsf-review-gate--closed,
.hsf-review-gate--not-purchased { padding: var(--pc-space-3) var(--pc-space-4); border-left: calc(var(--pc-border-width) * 3) solid var(--pc-color-muted); background: var(--pc-color-soft); }
.hsf-review-gate--pending:is([data-detail="label_created"], [data-detail="label_mixed"]) { border-left-style: dashed; } /* a label is not a shipment in motion */
.hsf-review-gate--unavailable { padding: var(--pc-space-3) var(--pc-space-4); border: var(--pc-border-width) solid var(--pc-color-error); border-left-width: calc(var(--pc-border-width) * 3); background: var(--pc-color-error-surface); }
.hsf-review-form { display: grid; gap: var(--pc-space-4); min-width: 0; }
.hsf-review-form[data-state="saved"] { padding: var(--pc-space-3); border: var(--pc-border-width) solid var(--pc-color-ink); border-radius: var(--pc-radius-md); }
.hsf-review-form[data-state="error"] { padding: var(--pc-space-3); border: var(--pc-border-width) solid var(--pc-color-error); border-radius: var(--pc-radius-md); }
.hsf-review-form[data-state="expired"] { padding: var(--pc-space-3); border: var(--pc-border-width) solid var(--pc-color-error); border-radius: var(--pc-radius-md); background: var(--pc-color-error-surface); }
.hsf-review-form[data-state="saving"] .hsf-field__input { background: var(--pc-color-soft); }
.hsf-review-form__note { color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }

.hsf-stars { min-width: 0; margin: 0; padding: 0; border: 0; }
.hsf-stars__legend { padding: 0; font-size: var(--pc-text-sm); font-weight: var(--pc-weight-bold); }
.hsf-stars__row { display: flex; flex-wrap: wrap; gap: var(--pc-space-2); padding-top: var(--pc-space-2); }
.hsf-stars__option { position: relative; display: inline-flex; }
.hsf-stars__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hsf-stars__label { display: grid; place-items: center; width: var(--pc-control-height); height: var(--pc-control-height); border-radius: var(--pc-radius-md); color: var(--pc-color-field-border); cursor: pointer; }
.hsf-stars__label .hsf-icon > .pc-icon { width: var(--pc-icon-lg); height: var(--pc-icon-lg); }
.hsf-stars__input:focus-visible + .hsf-stars__label { outline: var(--pc-focus-width) solid var(--pc-color-focus); outline-offset: calc(var(--pc-focus-offset) * -1); }
/* A rating fills every star up to the chosen one; hover previews the same. */
.hsf-stars__input:checked + .hsf-stars__label,
.hsf-stars__option:has(~ .hsf-stars__option > .hsf-stars__input:checked) .hsf-stars__label,
.hsf-stars__option:hover .hsf-stars__label,
.hsf-stars__option:has(~ .hsf-stars__option:hover) .hsf-stars__label { color: var(--pc-color-ink); }
.hsf-stars__input:checked + .hsf-stars__label .pc-icon,
.hsf-stars__option:has(~ .hsf-stars__option > .hsf-stars__input:checked) .hsf-stars__label .pc-icon,
.hsf-stars__option:hover .hsf-stars__label .pc-icon,
.hsf-stars__option:has(~ .hsf-stars__option:hover) .hsf-stars__label .pc-icon { fill: currentColor; }
/* No icon supplied (sprite without `star`): draw the same star with a mask so the control never goes blank. */
.hsf-stars__label:not(:has(.hsf-icon))::before { content: ""; width: 1.75rem; height: 1.75rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat; }


.hsf-starters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pc-space-2); margin: 0; padding: 0; list-style: none; }
.hsf-starter,
.hsf-prompt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: max(var(--pc-chat-nav-height), var(--pc-control-height-compact));
	padding: var(--pc-space-1) var(--pc-space-4);
	border: var(--pc-border-width) solid var(--pc-color-search-border);
	border-radius: var(--pc-radius-pill);
	background: var(--pc-color-surface);
	color: var(--pc-color-ink);
	font: inherit;
	font-size: var(--pc-text-sm);
	line-height: var(--pc-leading-compact);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.hsf-starter:hover,
.hsf-prompt:hover { background: var(--pc-color-search-surface); border-color: var(--pc-color-line-strong); }
@media (pointer: coarse) { .hsf-starter, .hsf-prompt { min-height: var(--pc-control-height); } }

.hsf-note { color: var(--pc-color-muted); font-size: var(--pc-text-sm); }
.hsf-note--signed { display: flex; align-items: center; gap: var(--pc-space-2); }
.hsf-note--signed::before { content: ""; flex-shrink: 0; width: var(--pc-icon-sm); height: var(--pc-icon-sm); background: currentColor; -webkit-mask: var(--hsf-glyph-check) center / contain no-repeat; mask: var(--hsf-glyph-check) center / contain no-repeat; }
.hsf-signin--inline { width: 100%; max-width: 28rem; margin-inline: 0; padding: 0; gap: var(--pc-space-3); }
.hsf-signin--inline .hsf-signin__lede { color: var(--pc-color-muted); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-signin--inline .hsf-signin__card { padding: var(--pc-space-4); box-shadow: none; }

/* Keep this conversation (a guest chat, now signed in) */
.hsf-keep { display: grid; gap: var(--pc-space-3); width: min(calc(100% - var(--hsf-gutters)), var(--hsf-col)); margin: var(--pc-space-4) auto 0; padding: var(--pc-space-4); border: var(--pc-border-width) solid var(--pc-color-search-border); border-left: calc(var(--pc-border-width) * 3) solid var(--pc-color-ink); border-radius: var(--pc-radius-md); background: var(--pc-color-soft); font-size: var(--pc-text-sm); line-height: var(--pc-leading-body); }
.hsf-keep__list { display: grid; gap: var(--pc-space-2); margin: 0; padding: 0; list-style: none; }
.hsf-keep__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pc-space-1) var(--pc-space-4); }
.hsf-keep__title { flex: 1 1 12rem; min-width: 0; font-weight: var(--pc-weight-bold); overflow-wrap: anywhere; }
.hsf-keep__status { color: var(--pc-color-muted); }
.hsf-keep__status:empty { display: none; }
/* ---------- Composer, level 1 (account pages) ---------- */
.hsf-composer--persona { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: normal; gap: var(--pc-space-4) var(--pc-space-5); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hsf-composer--persona > .hsf-slot { grid-column: 1 / -1; display: grid; gap: var(--pc-space-4); min-width: 0; }
.hsf-composer--persona > .hsf-composer__text { grid-column: 1; font-size: var(--pc-text-sm); }
.hsf-composer--persona > .hsf-composer__fallback { grid-column: 2; }
.hsf-composer__ask { min-width: 0; display: flex; align-items: center; gap: var(--pc-space-2); padding: var(--pc-space-2) var(--pc-space-2) var(--pc-space-2) var(--pc-space-5); border: var(--pc-border-width) solid var(--pc-color-search-border); border-radius: var(--pc-chat-composer-radius); background: var(--pc-color-surface); box-shadow: var(--pc-shadow-finder); }
.hsf-composer__ask:focus-within { border-color: #CFCFD6; box-shadow: 0 0 0 1px #CFCFD6, 0 8px 28px rgba(4, 1, 29, .09); }
.hsf-composer__ask .hsf-composer__input { flex: 1 1 0; width: 0; min-width: 0; min-height: var(--pc-control-height); padding: 0; border: 0; background: transparent; color: var(--pc-color-ink); font: inherit; font-size: var(--pc-text-md); }
.hsf-composer__ask .hsf-composer__input::placeholder { color: var(--pc-color-subtle); opacity: 1; }
.hsf-composer__ask .hsf-composer__input:focus-visible { outline: none; }
.hsf-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pc-space-2); margin: 0; padding: 0; list-style: none; }

.hsf-nav--guest .hsf-nav__text { padding: var(--pc-space-1) var(--pc-space-3); color: var(--pc-color-muted); font-size: var(--pc-text-xs); line-height: var(--pc-leading-body); }
.hsf-nav--guest .hsf-nav__text { font-size: var(--pc-text-sm); }
.hsf-nav__signin { margin-left: var(--pc-space-3); }


/* ======================================================================
 * Responsive
 * ====================================================================== */
@media (max-width: 850px) {
	.hsf-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; border-inline: 0; }
	.hsf-app__bar { grid-column: 1; display: none; }
	:root.pc-js .hsf-app__bar { display: flex; }
	.hsf-app__main { grid-column: 1; grid-row: 3; padding-top: 0; }
	/* No JavaScript: the navigation is a plain block above the page. */
	.hsf-app__side { grid-column: 1; grid-row: 2; border-right: 0; border-bottom: var(--pc-border-width) solid var(--pc-color-search-border); }
	.hsf-app__side .hsf-me { display: none; }
	.hsf-app__menu { display: none; }
	.hsf-nav__label { display: none; }
	.hsf-nav__list { display: flex; flex-wrap: wrap; }
	.hsf-nav__badge { margin-left: var(--pc-space-2); }

	/* JavaScript: the navigation becomes a drawer behind the Menu button. */
	:root.pc-js .hsf-app__side {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: calc(var(--pc-z-popover) + 1);
		width: min(var(--pc-chat-sidebar-width), 85%);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-bottom: 0;
		border-right: var(--pc-border-width) solid var(--pc-color-search-border);
		box-shadow: var(--pc-shadow-dropdown);
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform var(--pc-motion-ui) var(--pc-ease-standard), visibility 0s linear var(--pc-motion-ui);
	}
	:root.pc-js .hsf-app.is-nav-open .hsf-app__side { visibility: visible; transform: none; transition-delay: 0s; }
	:root.pc-js .hsf-app__side .hsf-me { display: flex; }
	:root.pc-js .hsf-nav__label { display: block; }
	:root.pc-js .hsf-nav__list { display: grid; }
	:root.pc-js .hsf-nav__badge { margin-left: auto; }
	:root.pc-js .hsf-app__menu { display: inline-flex; }
	:root.pc-js .hsf-app__scrim { position: fixed; inset: 0; z-index: var(--pc-z-popover); display: block; border: 0; background: var(--pc-color-backdrop); }
	:root.pc-js .hsf-app__scrim[hidden] { display: none; }
	:root.pc-js:has(.hsf-app.is-nav-open) { overflow: hidden; }
	:root.pc-js .hsf-app__close { display: inline-grid; align-self: flex-end; place-items: center; flex-shrink: 0; width: var(--pc-control-height); height: var(--pc-control-height); border: 0; border-radius: var(--pc-radius-pill); background: transparent; color: var(--pc-color-ink); cursor: pointer; }
	:root.pc-js .hsf-app__close:hover { background: var(--pc-color-search-border); }

	.hsf-order__layout { grid-template-columns: minmax(0, 1fr); }
	.hsf-summary { position: static; }
	.hsf-parts__list { grid-template-columns: minmax(0, 1fr); }
	.hsf-details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
	.hsf-app__bar { padding-inline: var(--pc-space-3); }
	.hsf-app__content { padding: var(--pc-space-2) var(--pc-space-4) var(--pc-space-10); }
	.hsf-app { --hsf-gutters: var(--pc-space-8); }
	.hsf-composer { margin-bottom: var(--pc-space-6); padding: var(--pc-space-4); }
	.hsf-head__title { font-size: var(--pc-heading-card); }
	.hsf-order-card,
	.hsf-orders .hsf-order-card,
	.hsf-section--past .hsf-order-card { grid-template-columns: minmax(0, 1fr); }
	.hsf-order-card__media { min-height: 6.5rem; height: 6.5rem; border-right: 0; border-bottom: var(--pc-border-width) solid var(--pc-color-search-border); }
	.hsf-order-card__body,
	.hsf-orders .hsf-order-card__body,
	.hsf-section--past .hsf-order-card__body { padding: var(--pc-space-4); }
	.hsf-shortcuts { grid-template-columns: minmax(0, 1fr); }
	.hsf-status { padding: var(--pc-space-4); }
	.hsf-status__sentence { font-size: var(--pc-text-lg); }
	.hsf-shipment { padding: var(--pc-space-4); }
	.hsf-summary { padding: var(--pc-space-4); }
	.hsf-card { padding: var(--pc-space-4); }
	.hsf-card--signout { grid-template-columns: minmax(0, 1fr); }
	.hsf-card--signout > .hsf-button { grid-column: 1; grid-row: auto; justify-self: start; }
	.hsf-signin { padding-top: var(--pc-space-8); }
	.hsf-signin__card { padding: var(--pc-space-5) var(--pc-space-4); }
	.hsf-part__fact { grid-template-columns: var(--pc-account-part-label-width) minmax(0, 1fr); }
}

@media (max-width: 370px) {
	.hsf-app__content { padding-inline: var(--pc-space-3); }
	.hsf-app { --hsf-gutters: var(--pc-space-6); }
	.hsf-field__input--code { letter-spacing: 0.25em; }
	.hsf-line { grid-template-columns: var(--pc-control-height) minmax(0, 1fr) auto; }
	.hsf-line__media { width: var(--pc-control-height); height: var(--pc-control-height); }
	.hsf-part__fact { grid-template-columns: minmax(0, 1fr); gap: var(--pc-space-1); }
	.hsf-part__fact dt { padding-top: 0; }
}

/* Short landscape phones: keep the drawer scrollable and the sign-in card reachable. */
@media (max-height: 500px) {
	.hsf-signin { padding-block: var(--pc-space-4); }
}

/* ---------- Podi responsive ---------- */
@media (max-width: 620px) {
	.hsf-composer--persona { grid-template-columns: minmax(0, 1fr); }
	.hsf-composer--persona > .hsf-composer__fallback { grid-column: 1; justify-self: start; }
	.hsf-composer__ask { padding-left: var(--pc-space-4); }
}

@media (forced-colors: active) {
	.hsf-progress__step::before { background: GrayText; }
	.hsf-progress__step.is-done::before,
	.hsf-progress__step.is-current::before { background: CanvasText; }
	.hsf-badge { border-color: CanvasText; }
	.hsf-thumb--empty:not(:has(.hsf-icon))::before { background: GrayText; }
	.hsf-contact__type[aria-current] { outline: var(--pc-focus-width) solid CanvasText; outline-offset: calc(var(--pc-focus-width) * -1); } /* the sky fill is gone in this mode */
}
