:root {
	--twf-orange: #ff5a1f;
	--twf-orange-bright: #ff7443;
	--twf-ink: #0a0b0d;
	--twf-panel: #121417;
	--twf-panel-2: #1a1d21;
	--twf-line: rgba(255, 255, 255, .13);
	--twf-muted: #a8adb5;
	--twf-paper: #f4f2ed;
	--twf-radius: 4px;
}

.twf-dealer-shell,
.twf-inventory,
.twf-dashboard,
.twf-dashboard-gate,
.twf-lead-form,
.twf-vehicle-detail { box-sizing: border-box; }
.twf-dealer-shell *, .twf-inventory *, .twf-dashboard *, .twf-dashboard-gate *, .twf-lead-form *, .twf-vehicle-detail * { box-sizing: border-box; }
.twf-dealer-button,
.twf-lead-form button,
.twf-dashboard button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
	border: 1px solid var(--twf-orange); border-radius: var(--twf-radius); background: var(--twf-orange); color: #090a0b;
	font: 800 .76rem/1.1 inherit; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer;
}
.twf-dealer-button:hover, .twf-lead-form button:hover, .twf-dashboard button:hover { background: var(--twf-orange-bright); color: #090a0b; transform: translateY(-1px); }
.twf-dealer-button:not(.twf-dealer-button--ghost),
.twf-dealer-button:not(.twf-dealer-button--ghost):hover,
.twf-dealer-button:not(.twf-dealer-button--ghost):focus,
.twf-lead-form button[type="submit"],
.twf-vehicle-search button[type="submit"],
.twf-filter-form button[type="submit"],
.twf-dashboard-form button.twf-dealer-button,
.twf-inventory-pagination .current,
.twf-inventory-pagination a:hover {
	color: #090a0b !important;
}
a.twf-dealer-button:not(.twf-dealer-button--ghost) { text-decoration: none !important; }
.twf-dealer-shell { width: min(1500px, calc(100% - 40px)); margin-inline: auto; }

/* Inventory */
.twf-inventory { position: relative; left: 50%; width: min(1500px, calc(100vw - 40px)); max-width: none; margin: 0; transform: translateX(-50%); color: #f7f7f5; }
.twf-inventory-layout { display: grid; grid-template-columns: minmax(400px, 420px) minmax(0, 1fr); gap: clamp(24px, 2.5vw, 40px); width: 100%; align-items: start; }
.twf-inventory-results { min-width: 0; width: 100%; }
.twf-inventory .twf-inventory-filters { position: sticky; top: 110px; min-width: 400px; padding: 0; border: 0; background: transparent; }
.twf-inventory .twf-filter-form { display: block; gap: 0; margin-top: 0; padding: 24px 14px; border: 1px solid var(--twf-line); background: #0e1012; box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.twf-filter-form__heading, .twf-inventory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.twf-filter-form__heading { margin-bottom: 24px; }
.twf-filter-form__heading strong { font-size: 1.05rem; }
.twf-filter-form__heading a { color: var(--twf-orange); font-size: .8rem; }
.twf-filter-form label, .twf-vehicle-search label, .twf-lead-form label, .twf-admin-field, .twf-form-field { display: grid; gap: 8px; min-width: 0; }
.twf-filter-form > label, .twf-filter-pair { margin-bottom: 16px; }
.twf-filter-form label > span, .twf-vehicle-search label > span, .twf-lead-form label > span, .twf-admin-field > span, .twf-form-field > span {
	color: var(--twf-muted); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.twf-filter-form input, .twf-filter-form select, .twf-vehicle-search input, .twf-vehicle-search select,
.twf-lead-form input, .twf-lead-form select, .twf-lead-form textarea,
.twf-dashboard input, .twf-dashboard select, .twf-dashboard textarea {
	width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 2px;
	outline: 0; background: #17191c; color: #f7f7f5; font: inherit;
}
.twf-filter-form input:focus, .twf-filter-form select:focus, .twf-vehicle-search input:focus, .twf-vehicle-search select:focus,
.twf-lead-form input:focus, .twf-lead-form select:focus, .twf-lead-form textarea:focus,
.twf-dashboard input:focus, .twf-dashboard select:focus, .twf-dashboard textarea:focus { border-color: var(--twf-orange); box-shadow: 0 0 0 2px rgba(255,90,31,.16); }
.twf-filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.twf-filter-form .twf-dealer-button { width: 100%; }
.twf-inventory-toolbar { min-height: 52px; margin-bottom: 22px; border-bottom: 1px solid var(--twf-line); }
.twf-inventory-toolbar p { margin: 0; color: var(--twf-muted); }
.twf-inventory-toolbar strong { color: #fff; }
.twf-inventory-toolbar select { min-width: 200px; min-height: 42px; padding: 8px 36px 8px 12px; border-color: var(--twf-line); background: var(--twf-panel); color: #fff; }
.twf-inventory-grid, .twf-vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.twf-inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.twf-vehicle-grid--columns-1 { grid-template-columns: minmax(0,1fr); }
.twf-vehicle-grid--columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.twf-vehicle-grid--columns-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.twf-vehicle-card { min-width: 0; overflow: hidden; border: 1px solid var(--twf-line); background: var(--twf-panel); box-shadow: 0 18px 55px rgba(0,0,0,.14); transition: border-color .2s ease, transform .2s ease; }
.twf-vehicle-card:hover { border-color: rgba(255,90,31,.68); transform: translateY(-4px); }
.twf-vehicle-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: #0c0d0f; }
.twf-vehicle-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.twf-vehicle-card:hover .twf-vehicle-card__media img { transform: scale(1.035); }
.twf-vehicle-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.16); font-size: 4rem; font-weight: 900; letter-spacing: -.08em; }
.twf-vehicle-card__badge { position: absolute; top: 13px; left: 13px; padding: 8px 10px; background: rgba(8,9,10,.88); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(7px); }
.twf-vehicle-card--coming-soon .twf-vehicle-card__badge, .twf-vehicle-card--reserved .twf-vehicle-card__badge { background: var(--twf-orange); color: #090a0b; }
.twf-vehicle-card__content { padding: 20px; }
.twf-vehicle-card h3 { margin: 0 0 7px; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.2; overflow-wrap: normal; word-break: normal; }
.twf-vehicle-card h3 a { color: inherit; text-decoration: none; }
.twf-vehicle-card__tagline { min-height: 1.3em; margin: 0 0 12px; color: var(--twf-muted); font-size: .88rem; }
.twf-vehicle-card__price { margin: 14px 0; color: var(--twf-orange); font-size: 1.32rem; font-weight: 850; }
.twf-vehicle-card__specs { display: flex; flex-wrap: wrap; gap: 7px 13px; min-height: 44px; color: #c5c8cd; font-size: .78rem; }
.twf-vehicle-card__specs span:not(:last-child)::after { content: '·'; margin-left: 13px; color: #555b63; }
.twf-vehicle-card__link { display: inline-flex; margin-top: 18px; color: #fff; font-size: .73rem; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.twf-vehicle-card__link:hover { color: var(--twf-orange); }
.twf-inventory-empty { grid-column: 1/-1; padding: clamp(38px, 7vw, 84px) 28px; border: 1px solid var(--twf-line); text-align: center; background: var(--twf-panel); }
.twf-inventory-empty h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 3vw, 2.2rem); }
.twf-inventory-empty p { margin: 0 auto 22px; color: var(--twf-muted); }
.twf-inventory-empty--compact { padding: 28px; }
.twf-inventory-pagination { margin-top: 38px; }
.twf-inventory-pagination ul { display: flex; justify-content: center; gap: 7px; padding: 0; margin: 0; list-style: none; }
.twf-inventory-pagination a, .twf-inventory-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--twf-line); color: #fff; text-decoration: none; }
.twf-inventory-pagination .current, .twf-inventory-pagination a:hover { border-color: var(--twf-orange); background: var(--twf-orange); color: #090a0b; }

/* Search, dealer info and taxonomy grids */
.twf-vehicle-search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; width: 100%; }
.twf-vehicle-search button { min-height: 48px; padding: 12px 22px; border: 1px solid var(--twf-orange); background: var(--twf-orange); color: #090a0b; font: 800 .75rem inherit; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.twf-vehicle-search button span:last-child { margin-left: 16px; }
.twf-taxonomy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.twf-taxonomy-grid a { display: grid; gap: 8px; min-height: 118px; padding: 23px; border: 1px solid var(--twf-line); background: var(--twf-panel); color: #fff; text-decoration: none; }
.twf-taxonomy-grid a:hover { border-color: var(--twf-orange); transform: translateY(-2px); }
.twf-taxonomy-grid strong { font-size: 1.12rem; }
.twf-taxonomy-grid span { color: var(--twf-muted); font-size: .78rem; }
.twf-dealer-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--twf-line); }
.twf-dealer-info > * { display: grid; gap: 8px; padding: 23px; border-right: 1px solid var(--twf-line); color: #fff; text-decoration: none; }
.twf-dealer-info > *:last-child { border-right: 0; }
.twf-dealer-info span { color: var(--twf-muted); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

/* Lead forms */
.twf-lead-form { max-width: 900px; padding: clamp(24px, 5vw, 50px); border: 1px solid var(--twf-line); background: var(--twf-panel); color: #fff; }
.twf-lead-form h2, .twf-lead-form h3 { margin-top: 0; }
.twf-lead-form__intro { max-width: 660px; color: var(--twf-muted); }
.twf-lead-form__grid, .twf-form-grid, .twf-admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.twf-lead-form textarea, .twf-dashboard textarea { resize: vertical; }
.twf-lead-form__wide, .twf-form-field--wide, .twf-admin-field--wide { grid-column: 1/-1; }
.twf-consent { display: flex !important; grid-column: 1/-1; align-items: flex-start; gap: 10px; margin: 18px 0; color: var(--twf-muted); font-size: .85rem; text-transform: none; }
.twf-consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.twf-consent a { color: var(--twf-orange); }
.twf-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.twf-form-message { margin: 0 0 22px; padding: 14px 17px; border-left: 3px solid #d8dce1; background: rgba(255,255,255,.08); color: #fff; }
.twf-form-message--success { border-color: #45cc89; }
.twf-form-message--error { border-color: #ff5a5f; }

/* Vehicle detail */
.twf-vehicle-detail { background: var(--twf-ink); color: #f7f7f5; }
.twf-vehicle-detail__head { padding: clamp(42px, 7vw, 95px) 0 38px; }
.twf-dealer-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: var(--twf-muted); font-size: .78rem; }
.twf-dealer-breadcrumbs a { color: inherit; }
.twf-vehicle-detail__head h1 { max-width: 1000px; margin: 14px 0 8px; color: #fff; font-size: clamp(2rem, 5.5vw, 5.3rem); line-height: .95; letter-spacing: -.045em; overflow-wrap: normal; word-break: normal; }
.twf-vehicle-detail__head p { margin: 0; color: var(--twf-muted); font-size: 1.05rem; }
.twf-vehicle-detail__status { display: inline-flex; padding: 9px 11px; border: 1px solid var(--twf-orange); color: var(--twf-orange); font-size: .67rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.twf-vehicle-hero { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.twf-vehicle-kicker { color: var(--twf-orange); font-size: .71rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.twf-vehicle-hero h1 { max-width: 1000px; margin: 10px 0 0; color: #fff; font-size: clamp(2rem, 5.5vw, 5.3rem); line-height: .95; letter-spacing: -.045em; overflow-wrap: normal; word-break: normal; }
.twf-vehicle-hero__status { align-self: flex-start; padding: 10px 13px; border: 1px solid var(--twf-orange); color: var(--twf-orange); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.twf-vehicle-gallery { display: grid; gap: 8px; margin-bottom: clamp(40px, 7vw, 80px); background: #070809; }
.twf-vehicle-gallery a { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; background: #111317; }
.twf-vehicle-gallery--count-1 { grid-template: 1fr / 1fr; height: clamp(320px, 55vw, 720px); }
.twf-vehicle-gallery--count-1 > a:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.twf-vehicle-gallery--count-2 { grid-template: 1fr / repeat(2, minmax(0, 1fr)); height: clamp(340px, 44vw, 620px); }
.twf-vehicle-gallery--count-2 > a:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.twf-vehicle-gallery--count-2 > a:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.twf-vehicle-gallery--count-3 { grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 2fr) minmax(0, 1fr); height: clamp(430px, 60vw, 700px); }
.twf-vehicle-gallery--count-3 > a:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.twf-vehicle-gallery--count-3 > a:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.twf-vehicle-gallery--count-3 > a:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.twf-vehicle-gallery--count-4 { grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); height: clamp(430px, 60vw, 700px); }
.twf-vehicle-gallery--count-4 > a:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.twf-vehicle-gallery--count-4 > a:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.twf-vehicle-gallery--count-4 > a:nth-child(3) { grid-area: 2 / 1 / 3 / 2; }
.twf-vehicle-gallery--count-4 > a:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }
.twf-vehicle-gallery--count-5 { grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 2fr) repeat(2, minmax(0, 1fr)); height: clamp(450px, 62vw, 720px); }
.twf-vehicle-gallery--count-5 > a:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.twf-vehicle-gallery--count-5 > a:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.twf-vehicle-gallery--count-5 > a:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.twf-vehicle-gallery--count-5 > a:nth-child(4) { grid-area: 1 / 3 / 2 / 4; }
.twf-vehicle-gallery--count-5 > a:nth-child(5) { grid-area: 2 / 3 / 3 / 4; }
.twf-vehicle-gallery .twf-vehicle-gallery__extra { display: none; }
.twf-vehicle-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.twf-vehicle-gallery a:hover img { transform: scale(1.025); }
.twf-vehicle-gallery__more { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; background: rgba(7,8,9,.66); color: #fff; font-size: clamp(1.5rem, 4vw, 3.5rem); font-weight: 900; line-height: 1; text-shadow: 0 2px 18px #000; backdrop-filter: blur(2px); }
.twf-vehicle-gallery__more small { margin-top: 7px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.twf-vehicle-gallery--empty { display: grid; place-items: center; height: 420px; color: rgba(255,255,255,.15); font-size: 7rem; font-weight: 900; }
.twf-vehicle-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: clamp(35px, 6vw, 100px); align-items: start; }
.twf-vehicle-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 0; list-style: none; }
.twf-vehicle-highlights li { padding: 14px 0; border-bottom: 1px solid var(--twf-line); }
.twf-vehicle-highlights li::before { content: '✓'; margin-right: 10px; color: var(--twf-orange); }
.twf-vehicle-summary__label { color: var(--twf-muted); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.twf-vehicle-content section { margin-bottom: 55px; }
.twf-vehicle-content h2 { margin: 0 0 22px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.twf-vehicle-content p { color: #c6c9cf; line-height: 1.8; }
.twf-vehicle-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: solid var(--twf-line); border-width: 1px 0 0 1px; }
.twf-vehicle-spec { display: grid; gap: 8px; min-width: 0; padding: 20px; border: solid var(--twf-line); border-width: 0 1px 1px 0; }
.twf-vehicle-spec span { color: var(--twf-muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.twf-vehicle-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 22px; padding: 0; list-style: none; }
.twf-vehicle-features li::before { content: '✓'; margin-right: 10px; color: var(--twf-orange); }
.twf-vehicle-disclosure { padding: 24px; border: 1px solid rgba(255,90,31,.35); background: rgba(255,90,31,.06); }
.twf-vehicle-disclosure + .twf-vehicle-disclosure { margin-top: 16px; }
.twf-vehicle-disclosure--required { border-width: 2px; }
.twf-vehicle-disclosure--required strong { display: block; margin-bottom: 9px; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.twf-vehicle-disclosure--required p { margin: 0; color: #d7d9dc; font-size: .9rem; line-height: 1.65; }
.twf-vehicle-summary { position: sticky; top: 110px; padding: 29px; border: 1px solid var(--twf-line); background: var(--twf-panel); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.twf-vehicle-summary__price { margin: 7px 0 20px; color: #fff; font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -.04em; }
.twf-vehicle-summary__price-note { margin: -10px 0 20px; color: var(--twf-muted); font-size: .75rem; line-height: 1.55; }
.twf-vehicle-summary__price-note strong { color: #fff; }
.twf-vehicle-summary__stock { color: var(--twf-muted); }
.twf-vehicle-summary dl { margin: 23px 0; border-top: 1px solid var(--twf-line); }
.twf-vehicle-summary dl div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--twf-line); }
.twf-vehicle-summary dt { color: var(--twf-muted); }
.twf-vehicle-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.twf-vehicle-summary > .twf-dealer-button { display: flex; width: 100%; margin-top: 10px; }
.twf-dealer-button--ghost { background: transparent; color: #fff; }
.twf-vehicle-summary__note { color: var(--twf-muted); font-size: .75rem; line-height: 1.55; }
.twf-vehicle-trust { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 70px; border-top: 1px solid var(--twf-line); border-left: 1px solid var(--twf-line); }
.twf-vehicle-trust > div { display: grid; gap: 8px; padding: 22px; border-right: 1px solid var(--twf-line); border-bottom: 1px solid var(--twf-line); }
.twf-vehicle-trust strong { color: #fff; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.twf-vehicle-trust span { color: var(--twf-muted); font-size: .84rem; line-height: 1.5; }
.twf-related-vehicles { padding-top: 85px; }
.twf-related-vehicles > h2 { margin: 8px 0 25px; color: #fff; font-size: clamp(1.6rem,3vw,2.5rem); }

/* Front-end dealer dashboard */
.twf-dashboard, .twf-dashboard-gate {
	position: relative;
	left: 50%;
	width: min(1500px, calc(100vw - 40px));
	max-width: none;
	margin: 50px 0;
	padding: clamp(22px, 4vw, 44px);
	transform: translateX(-50%);
	border: 1px solid var(--twf-line);
	background: #0e1012;
	color: #fff;
}
.twf-dashboard__header, .twf-dashboard-form__top, .twf-dashboard__section-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.twf-dashboard__header { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--twf-line); }
.twf-dashboard__header span, .twf-dashboard-form__top > div > span { color: var(--twf-orange); font-size: .66rem; font-weight: 850; letter-spacing: .13em; }
.twf-dashboard__header h2, .twf-dashboard-form__top h3 { margin: 5px 0 0; }
.twf-dashboard__header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px;
	border: 1px solid rgba(255,255,255,.2); border-radius: var(--twf-radius); background: #17191c; color: #fff !important;
	font-size: .7rem; font-weight: 850; letter-spacing: .075em; line-height: 1; text-decoration: none !important; text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action:hover,
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action:focus-visible { border-color: var(--twf-orange); background: #212429; color: #fff !important; transform: translateY(-1px); }
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--primary { border-color: var(--twf-orange); background: var(--twf-orange); color: #090a0b !important; }
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--primary:hover,
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--primary:focus-visible { background: var(--twf-orange-bright); color: #090a0b !important; }
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--quiet { border-color: transparent; background: transparent; color: var(--twf-muted) !important; }
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--quiet:hover,
.twf-dashboard .twf-dashboard__header-actions .twf-dashboard-action--quiet:focus-visible { border-color: rgba(255,255,255,.2); color: #fff !important; }
.twf-dashboard .twf-dashboard-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: var(--twf-radius);
	background: #17191c;
	color: #fff !important;
	font-size: .69rem;
	font-weight: 850;
	letter-spacing: .075em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.twf-dashboard .twf-dashboard-button:hover,
.twf-dashboard .twf-dashboard-button:focus-visible {
	border-color: var(--twf-orange);
	background: #212429;
	color: #fff !important;
	transform: translateY(-1px);
}
.twf-dashboard .twf-dashboard-button--compact {
	min-height: 34px;
	padding: 8px 12px;
	border-color: var(--twf-orange);
	background: var(--twf-orange);
	color: #090a0b !important;
	font-size: .65rem;
}
.twf-dashboard .twf-dashboard-button--compact:hover,
.twf-dashboard .twf-dashboard-button--compact:focus-visible {
	background: var(--twf-orange-bright);
	color: #090a0b !important;
}
.twf-dashboard__stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.twf-dashboard__stats article { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--twf-line); background: var(--twf-panel); }
.twf-dashboard__stats span { color: var(--twf-muted); font-size: .69rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.twf-dashboard__stats strong { font-size: 2.3rem; }
.twf-dashboard__inventory, .twf-dashboard-form__section { padding: 24px; border: 1px solid var(--twf-line); background: var(--twf-panel); }
.twf-dashboard__section-heading { flex-wrap: wrap; }
.twf-dashboard-table-wrap { overflow-x: auto; margin-top: 18px; }
.twf-dashboard table { width: 100%; border-collapse: collapse; }
.twf-dashboard th, .twf-dashboard td { padding: 13px; border-bottom: 1px solid var(--twf-line); text-align: left; white-space: nowrap; }
.twf-dashboard th { color: var(--twf-muted); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.twf-dashboard td a { color: var(--twf-orange); }
.twf-dashboard-vehicle { display: flex; align-items: center; gap: 12px; }
.twf-dashboard-vehicle img { width: 72px; height: 48px; object-fit: cover; }
.twf-dashboard-vehicle strong { display: grid; }
.twf-dashboard-vehicle small { color: var(--twf-muted); font-weight: 400; }
.twf-dashboard-form { display: grid; gap: 18px; }
.twf-dashboard-form__top { padding: 20px 0; }
.twf-dashboard-form__top label { display: flex; align-items: center; gap: 10px; color: var(--twf-muted); }
.twf-dashboard-form__top select { min-width: 130px; }
.twf-dashboard-form__top .twf-dashboard-visibility { display: grid; grid-template-columns:auto minmax(130px,170px); gap: 6px 10px; align-items: center; }
.twf-dashboard-visibility small { grid-column: 1/-1; max-width: 330px; color: var(--twf-muted); font-size: .72rem; line-height: 1.45; }
.twf-dashboard-form__section summary { color: #fff; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.twf-dashboard-form__section[open] summary { margin-bottom: 20px; }
.twf-admin-field b { color: var(--twf-orange); }
.twf-admin-field small { color: var(--twf-muted); }
.twf-admin-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.twf-admin-check-grid label { display: flex; align-items: center; gap: 8px; }
.twf-admin-check-grid input { width: 17px; min-height: 17px; }
.twf-gallery-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.twf-gallery-preview img { width: 90px; height: 64px; object-fit: cover; }
.twf-dashboard-form__footer { display: flex; align-items: center; gap: 20px; }
.twf-dashboard-form__footer a { color: #fff; }
.twf-dashboard-trash { margin-top: 30px; }
.twf-dashboard-trash button { min-height: auto; padding: 0; border: 0; background: transparent; color: #ff7378; text-transform: none; }
.twf-vin-result { display: block; color: var(--twf-muted); }

/* Lightbox */
.twf-lightbox-open { overflow: hidden; }
.twf-lightbox[hidden] { display: none; }
.twf-lightbox { position: fixed; z-index: 999999; inset: 0; display: grid; grid-template-columns: 70px minmax(0,1fr) 70px; align-items: center; background: rgba(5,6,7,.96); backdrop-filter: blur(12px); }
.twf-lightbox figure { display: grid; place-items: center; margin: 0; height: 100vh; padding: 55px 0; }
.twf-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.twf-lightbox figcaption { position: absolute; bottom: 18px; color: #bcc0c6; font-size: .75rem; }
.twf-lightbox button { border: 0; background: transparent; color: #fff; font-size: 1.7rem; cursor: pointer; }
.twf-lightbox__close { position: absolute; z-index: 2; top: 16px; right: 22px; font-size: 2.3rem !important; }

@media (max-width: 1180px) {
	.twf-inventory-grid, .twf-vehicle-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.twf-vehicle-search { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.twf-vehicle-search button { grid-column: 1/-1; }
	.twf-taxonomy-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.twf-dashboard__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1080px) {
	.twf-inventory-layout { grid-template-columns: 1fr; }
	.twf-inventory .twf-inventory-filters { position: static; min-width: 0; }
	.twf-inventory-filters .twf-filter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
	.twf-filter-form__heading, .twf-filter-form .twf-dealer-button { grid-column: 1/-1; }
	.twf-filter-form > label, .twf-filter-pair { margin: 0; }
}
@media (max-width: 820px) {
	.twf-inventory-layout { grid-template-columns: 1fr; }
	.twf-inventory-filters { position: static; }
	.twf-inventory-filters .twf-filter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
	.twf-filter-form__heading, .twf-filter-form .twf-dealer-button { grid-column: 1/-1; }
	.twf-filter-form > label, .twf-filter-pair { margin: 0; }
	.twf-vehicle-main { grid-template-columns: 1fr; }
	.twf-vehicle-summary { position: static; }
	.twf-vehicle-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.twf-vehicle-gallery[class*="twf-vehicle-gallery--count-"] { max-height: 580px; }
	.twf-dashboard__header, .twf-dashboard-form__top { align-items: flex-start; flex-direction: column; }
	.twf-admin-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
	.twf-inventory, .twf-dealer-shell, .twf-dashboard, .twf-dashboard-gate { width: min(100% - 24px, 1500px); }
	.twf-inventory-grid, .twf-vehicle-grid, .twf-taxonomy-grid, .twf-vehicle-search,
	.twf-lead-form__grid, .twf-form-grid, .twf-admin-field-grid, .twf-inventory-filters .twf-filter-form { grid-template-columns: 1fr; }
	.twf-filter-form__heading, .twf-filter-form .twf-dealer-button { grid-column: auto; }
	.twf-filter-pair { grid-template-columns: 1fr 1fr; }
	.twf-inventory-toolbar { align-items: stretch; flex-direction: column; padding-bottom: 16px; }
	.twf-inventory-toolbar select { width: 100%; }
	.twf-vehicle-hero { flex-direction: column; }
	.twf-vehicle-gallery[class*="twf-vehicle-gallery--count-"] { grid-template: 1fr / 1fr; height: clamp(260px, 72vw, 430px); }
	.twf-vehicle-gallery[class*="twf-vehicle-gallery--count-"] > a:nth-child(1) { display: block; grid-area: 1 / 1 / 2 / 2; }
	.twf-vehicle-gallery[class*="twf-vehicle-gallery--count-"] > a:not(:first-child) { display: none; }
	.twf-vehicle-spec-grid, .twf-vehicle-features, .twf-vehicle-highlights { grid-template-columns: 1fr; }
	.twf-vehicle-trust { grid-template-columns: 1fr; margin-top: 48px; }
	.twf-dashboard__stats { grid-template-columns: 1fr 1fr; }
	.twf-admin-check-grid { grid-template-columns: 1fr; }
	.twf-lightbox { grid-template-columns: 45px minmax(0,1fr) 45px; }
}
