/* partswanted.html - Parts on Request (source page: C:\Websites\PartsonlineMY.au-src\pages\partswanted.html).
   Moved out of the page so it can be cached and reused. The site menu and footer have their own (site-menu.css, site.css). */
/* Layout and colours follow partsonline.com.au/parts-locator.asp */
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden always wins - .btn etc. set display and would otherwise show hidden buttons */
body { margin: 0; background: #eaf0f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;   /* X/Twitter-style system fonts: Segoe UI on Windows, San Francisco on Apple, Roboto on Android */ font-size: 16px; overflow-x: hidden; }
a { color: #337ab7; }

.pl-heading { max-width: 1400px; margin: 30px auto 0; padding: 0 16px; }
.pl-heading h1 { text-align: left; margin: 0 0 5px; font-size: clamp(20px, 4vw, 36px); font-family: 'Yu Gothic UI Light', 'Segoe UI Light', 'Helvetica Neue', -apple-system, sans-serif; font-weight: 300; color: #333; }
.pl-heading h2 { font-size: clamp(14px, 2.5vw, 24px); font-weight: 400; color: #666; margin: 0 0 16px; }

.page-shell { max-width: 1400px; margin: 16px auto 50px; padding: 0 16px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.col-sticky { position: sticky; top: 16px; }
/* Login: Email + Password on one line when there's room (each at least 200px), one under the other on phones */
.login-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; align-items: end; }
.login-pair .input { width: 100%; min-width: 0; box-sizing: border-box; }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw-show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: #333; cursor: pointer; }
.pw-show:hover { background: #f0f2f5; }
/* Request History (left column) - as classic Requests/request-history.asp */
.hist-hd { display: block; }
.hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hist-all { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: #ccc; font-size: 11px; font-weight: 400; text-decoration: none; }
.hist-all span { text-decoration: underline; }
.hist-all svg { flex-shrink: 0; }
.hist-all:hover { color: #fff; text-decoration: underline; }
.hist-key { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 400; color: #aaa; }
.hist-key .hist-dot + .hist-dot, .hist-key .hist-dot:nth-of-type(2) { margin-left: 8px; }
.hist-dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
.hist-dot.on { background: #5cb85c; }
.hist-dot.off { background: #d9534f; }
.hist-bd { padding: 8px; max-height: 480px; overflow-y: auto; background: #f9f9f9; font-size: 13px; color: #999; }
.hist-item { display: block; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.hist-item:hover { border-color: #337ab7; }
.hist-line { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #999; margin-bottom: 4px; }
.hist-veh { font-size: 13px; font-weight: 600; color: #337ab7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-parts { font-size: 12px; color: #999; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-item { cursor: pointer; }
.hist-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 26px; }
.hist-replies { font-size: 12px; color: #999; }
.hist-tools { display: flex; align-items: center; gap: 6px; }
.hist-tool { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #555; cursor: pointer; }
.hist-tool svg { width: 16px; height: 16px; }
.hist-tool:hover { background: #f0f2f5; color: #222; }
.hist-tool.del { color: #d9534f; }
.hist-btn { padding: 2px 8px; font-size: 12px; }
.hist-repost { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; line-height: 20px; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; }
.hist-repost svg { width: 13px; height: 13px; }
.hist-repost:hover { background: #f0f2f5; border-color: #adadad; }
.btn-danger { background: #d9534f; border-color: #d43f3a; color: #fff; }
.btn-danger:hover { background: #c9302c; }
.hist-none { padding: 10px 6px; text-align: center; font-size: 13px; color: #888; line-height: 1.5; }
.hist-none-title { font-weight: 600; color: #555; margin-bottom: 2px; }
.hist-new { display: inline-block; margin-top: 10px; font-size: 13px; }

/* Small request form in the right column (partswanted.html .spr-card) - as classic small-parts-request.asp.
   One big link: clicking anywhere opens the proper request form. */
.spr-card { display: block; margin-bottom: 16px; overflow: hidden; background: #fff; border: 1px solid #dce0e6; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.07); color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.spr-card:hover { border-color: #28a745; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.spr-card:focus-visible { outline: 2px solid #28a745; outline-offset: 2px; }
.spr-card span { display: block; }
.spr-hd { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg, #1b2a4a, #2d4270); color: #fff; }
.spr-hd strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.spr-badge { display: inline-flex !important; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 3px; background: #5cb85c; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.spr-bd { padding: 14px; }
.spr-row { display: flex !important; gap: 10px; }
.spr-row > .spr-field { flex: 1; min-width: 0; }
.spr-field { margin-bottom: 10px; }
.spr-label { margin-bottom: 3px; font-size: 12px; font-weight: 600; color: #555; }
.spr-in { height: 34px; padding: 6px 10px; overflow: hidden; background: #f7f9fc; border: 1px solid #ccd0d8; border-radius: 4px; font-size: 13px; line-height: 20px; color: #999; white-space: nowrap; }
.spr-card:hover .spr-in { background: #fff; border-color: #b9c0cc; }
.spr-go { margin-top: 4px; padding: 8px 12px; border-radius: 4px; background: #28a745; color: #fff; font-size: 14px; font-weight: 500; text-align: center; }
.spr-card:hover .spr-go { background: #218838; }

/* Right column: most popular makes + top 10 wreckers (partswanted.html #popular) - as classic parts-locator.asp */
/* the closed state: one button the width of the column */
.pop-open { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; font: inherit; font-size: 13px; color: #333; text-align: left; cursor: pointer; }
.pop-open:hover { border-color: #28a745; }
/* The heading: the title, and a close (x) icon at the top right (.p-panel-hd comes later in this file, so both classes are needed to win) */
.p-panel-hd.pop-hd { position: relative; display: block; padding-right: 44px; }
.pop-hide { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(255,255,255,.8); cursor: pointer; }
.pop-hide:hover, .pop-hide:focus-visible { background: rgba(255,255,255,.16); color: #fff; outline: none; }
.pop-days { margin-left: 6px; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6); }
/* A ranked list (Most popular makes; Active wreckers in its own window under it): rank, badge + name with a bar under it, the count */
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-list[hidden] { display: none; }
.pop-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 5px; color: #333; font-size: 13px; text-decoration: none; cursor: pointer; }
.pop-row:hover { background: #f4f7fa; }
.pop-row.plain { cursor: default; }
.pop-row.plain:hover { background: none; }
.pop-rank { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #eef1f4; color: #6d7278; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.pop-item.top .pop-rank { background: #1b2a4a; color: #fff; }
.pop-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pop-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-item.top .pop-name > span { font-weight: 600; color: #1b2a4a; }
.pop-logo { flex: none; height: 16px; width: auto; }
.pop-bar { display: block; height: 4px; border-radius: 2px; background: #eef1f4; overflow: hidden; }
.pop-fill { display: block; height: 100%; border-radius: 2px; background: #28a745; }
.pop-n { flex: none; min-width: 26px; color: #1b2a4a; font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* The requests list: no scroll bar of its own - the box is as long as its requests and the page scrolls */
.list-scroll { overflow: visible; }

/* Right column: the top 10 wreckers carousel (partswanted.html #wreckers-carousel) */
.wc-view { overflow: hidden; }
.wc-track { display: flex; transition: transform .45s ease; }
@media (prefers-reduced-motion: reduce) { .wc-track { transition: none; } }
.wc-slide { position: relative; flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 10px; color: #333; text-align: center; text-decoration: none; }
a.wc-slide:hover .wc-name { color: #1e7e34; text-decoration: underline; }
.wc-rank { position: absolute; top: 10px; left: 12px; padding: 1px 8px; border-radius: 999px; background: #1b2a4a; color: #fff; font-size: 12px; font-weight: 700; }
.wc-pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; margin-bottom: 6px; border-radius: 6px; background: linear-gradient(135deg, #1b2a4a, #2d4270); color: #fff; font-size: 44px; font-weight: 600; overflow: hidden; }
.wc-pic.has-logo { background: #fff; border: 1px solid #edf0f3; }
.wc-pic img { width: 100%; height: 100%; object-fit: contain; }
.wc-name { max-width: 100%; font-size: 15px; color: #1b2a4a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-where { font-size: 13px; color: #6d7278; }
.wc-count { margin-top: 2px; padding: 1px 9px; border-radius: 3px; background: #e83e8c; color: #fff; font-size: 11px; font-weight: 700; }
.wc-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px 10px; }
.wc-arrow { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid #dce0e6; border-radius: 50%; background: #fff; color: #1b2a4a; cursor: pointer; }
.wc-arrow:hover { border-color: #28a745; color: #1e7e34; }
.wc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.wc-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cfd5dd; cursor: pointer; }
.wc-dot.on { background: #28a745; }

/* The gear menu next to your name (partswanted.html #ident-menu) */
.ident-menu { position: relative; flex: none; align-self: flex-start; }
.ident-menu-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #dce0e6; border-radius: 50%; background: #fff; color: #1b2a4a; cursor: pointer; transition: border-color .15s, color .15s, transform .25s; }
.ident-menu-btn:hover, .ident-menu-btn[aria-expanded="true"] { border-color: #28a745; color: #1e7e34; }
.ident-menu-btn[aria-expanded="true"] { transform: rotate(60deg); }
.ident-menu-list { position: absolute; z-index: 30; top: 44px; right: 0; min-width: 230px; padding: 6px; background: #fff; border: 1px solid #dce0e6; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.ident-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: none; color: #333; font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.ident-menu-item:hover, .ident-menu-item:focus-visible { background: #f0f4f8; outline: none; }
.ident-menu-ico { flex: none; display: flex; color: #1b2a4a; }
.ident-menu-txt { flex: 1; }
.ident-menu-item .switch { flex: none; margin-left: 8px; }

/* "1,234 in the last 7 days" next to the Parts Requests heading - grey (wins over .p-panel-hd small, which comes later) */
.p-panel-hd small.list-week { color: #aab3c0; font-size: inherit; font-weight: 400; }   /* the same text size as "Parts Requests" */

/* New messages waiting in My Requests / View My Responses: a blue number on the button (newreq.js) */
.btn-pill { display: inline-block; margin-left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #1a73e8; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box; vertical-align: middle; }
.btn-pill[hidden] { display: none; }

/* Login: "Send me the password" after a failed login, and its "sent" message */
.login-send { color: #1e7e34; font-weight: 600; text-decoration: underline; cursor: pointer; }
.login-sent { color: #1e7e34; }

/* "My requests" / "Matching ..." in the Parts Requests heading: in the middle, between the 7-day count and the bell */
.p-panel-hd #list-note { flex: 1 1 auto; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Level 2 accounts, request under 6 hours old: "You can respond in 4 hours" where the quote buttons would be */
.respond-wait { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #f0d9a8; border-radius: 5px; background: #fff8e6; color: #7a5200; font-size: 14px; font-weight: 600; }
.respond-wait::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) 50% 3px / 2px 4px no-repeat, linear-gradient(currentColor, currentColor) 7px 5px / 3px 2px no-repeat; box-sizing: border-box; }
.respond-wait.no { border-color: #dce0e6; background: #f4f6f8; color: #4a5058; }
.respond-wait.no::before { background: linear-gradient(currentColor, currentColor) center / 8px 2px no-repeat; }   /* a "no entry" bar instead of clock hands */
.respond-wait-up { align-self: center; font-size: 13px; color: #1e7e34; }

/* Panels */
.p-panel { background: #fff; border: 1px solid #dce0e6; border-radius: 6px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 1px 5px rgba(0,0,0,.07); }
.p-panel-hd { background: #1b2a4a; color: #fff; padding: 10px 16px; font-size: clamp(15px, 1.8vw, 16px); font-weight: 600; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.p-panel-hd small { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.6); }
.p-panel-bd { padding: 14px; font-size: 15px; color: #555; }

/* Identity panel */
.ident-row { display: flex; align-items: flex-start; gap: 12px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid #eef0f3; }
.ident-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #1b2a4a 0%, #2d4270 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
/* Your logo: as tall as the text beside it (company, email, the line under them), and wider than tall */
.ident-avatar.has-logo { align-self: stretch; height: auto; min-height: 44px; width: auto; aspect-ratio: 1.6 / 1; border-radius: 5px; background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; border: 1px solid #dce0e6; box-shadow: none; }
.ident-info { flex: 1; min-width: 0; }
.ident-name { font-weight: 700; color: #1b2a4a; font-size: clamp(15px, 1.8vw, 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ident-company { font-weight: 700; color: #1b2a4a; font-size: clamp(15px, 1.8vw, 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ident-name.second { font-weight: 400; font-size: 14px; color: #555; }   /* the email, under the company */
.ident-sub { font-size: 14px; color: #888; margin-top: 2px; }
.ident-row { flex-wrap: wrap; }
.ident-btns { flex: 0 0 100%; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }   /* own row, full width of the panel */
.ident-btns .btn { flex: 1 1 auto; }   /* buttons share the full width */
.btn.btn-success { background: #5cb85c; border-color: #4cae4c; color: #fff; }
.btn.btn-success:hover { background: #449d44; border-color: #398439; }
.btn.btn-on { border-color: #1b2a4a; box-shadow: inset 0 0 0 1px #1b2a4a; font-weight: 600; }
/* Toggle switch (Show My Makes Only): grey + knob left = off, green + knob right = on */
.switch { position: relative; flex-shrink: 0; width: 34px; height: 18px; border-radius: 9px; background: #ccc; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.on { background: #5cb85c; }
.switch.on::after { left: 18px; }

/* Buttons and inputs (small corners, 40px inputs) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; font: inherit; font-size: 15px; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #333; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #e6e6e6; border-color: #adadad; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: #1b2a4a; border-color: #1b2a4a; color: #fff; }
.btn-primary:hover { background: #2d4270; border-color: #2d4270; }
.btn-full { width: 100%; height: 40px; font-size: 16px; }
.btn-searchall { display: inline-flex; align-items: center; gap: 6px; background: #1b2a4a; border-color: #1b2a4a; color: #fff; }
.btn-searchall:hover { background: #2a3d66; }
.quote-warn { margin: 0 0 12px; padding: 10px 12px 10px 40px; position: relative; background: #fff4cc; border: 1px solid #e0b100; border-left: 5px solid #e0b100; border-radius: 5px; font-size: 15px; line-height: 1.45; color: #1b2a4a; }
.quote-warn::before { content: '!'; position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: #e0b100; color: #fff; font-weight: 700; font-size: 14px; line-height: 20px; text-align: center; }
/* Loading skeletons: the grey shimmer (.skel) is shared - site.css; the shapes for this page: */
.skel-wrap { padding: 8px 14px 4px; }
.skel-hd { width: 110px; height: 12px; margin-bottom: 12px; }
.skel-resp { display: flex; gap: 10px; padding: 8px 0 12px; }
.skel-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; }
.skel-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.skel-name { width: 40%; height: 13px; }
.skel-text { width: 100%; height: 11px; }
.skel-text.short { width: 65%; }
.skel-title { width: 55%; height: 16px; margin-bottom: 4px; }
.skel-card { padding: 0; }
.skel-card-hd { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #f4f6f8; }
.skel-card-bd { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
/* Photo viewer layer (photo.html in a frame) over the whole page */
.photo-layer { position: fixed; inset: 0; z-index: 1000; background: #111; }
/* Request form layer: the home page's form in a see-through frame (it dims this page itself) */
.request-layer { position: fixed; inset: 0; z-index: 1000; background: transparent; }
.request-layer iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; color-scheme: normal; }
.photo-layer iframe { width: 100%; height: 100%; border: 0; display: block; }
/* "N new requests - Show" bar above the list, and a short highlight on the cards it adds */
.new-bar { display: block; width: 100%; margin: 0 0 12px; padding: 10px 14px; border: 0; border-radius: 6px; background: #1b2a4a; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); position: sticky; top: 8px; z-index: 5; }
.new-bar:hover { background: #2a3d66; }
.new-bar[hidden] { display: none; }
.req-card.is-new { animation: new-card 3s ease-out; }
@keyframes new-card { 0% { box-shadow: 0 0 0 3px #ffd75e; } 100% { box-shadow: 0 1px 5px rgba(0,0,0,.06); } }
@media (prefers-reduced-motion: reduce) { .req-card.is-new { animation: none; } }
a.has-icon { display: inline-flex; align-items: center; gap: 4px; vertical-align: bottom; }
a.has-icon .ico { flex-shrink: 0; }
.ident-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ident-line .ident-name { min-width: 0; }
.list-hd { position: relative; }
.snd-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.snd-btn:hover { background: rgba(255,255,255,.12); }
.snd-btn .bell-off { display: none; }
.snd-btn.off { color: rgba(255,255,255,.55); }
.snd-btn.off .bell-on { display: none; }
.snd-btn.off .bell-off { display: block; }
.list-hd .new-ico { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }   /* centred in the Parts Requests heading */
.new-ico { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 0; border-radius: 13px; background: #28a745; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; animation: new-ico-spin 1.2s ease-in-out 2; }
.new-ico:hover { background: #218838; }
.new-ico[hidden] { display: none; }
.new-ico svg { display: block; }
@keyframes new-ico-spin { 0% { transform: rotate(0); } 50% { transform: rotate(-15deg) scale(1.08); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .new-ico { animation: none; } }
/* A private response you can't see: a small grey locked row (state + when only) */
.resp.resp-locked { align-items: center; gap: 10px; padding: 8px 14px; color: #888; font-size: 14px; }
.resp-lock-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #eef0f3; color: #888; display: flex; align-items: center; justify-content: center; }
.resp-lock-what { font-style: italic; }
.resp-lock-when { color: #aaa; }
/* Footer anchored to the bottom: on a short page (few requests) it sits at the bottom of the window, not halfway up.
   The body is a column; the main area grows to fill the space. width: 100% keeps the centred blocks full width. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .pl-heading, body > .page-shell { width: 100%; }
body > .page-shell { flex: 1 0 auto; }
body > .site-foot, body > #sm { flex-shrink: 0; }
.login-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.login-btns #login-btn { order: 2; }       /* right */
.login-btns #login-cancel { order: 1; }    /* left */
.login-btns .btn { height: 40px; padding: 0 22px; font-size: 16px; }
.input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #ccc; border-radius: 5px; font: inherit; font-size: 16px; color: #333; background: #fff; }
.input:focus { outline: none; border-color: #2d4270; box-shadow: 0 0 0 3px rgba(45,66,112,.15); }
.lbl { display: block; font-size: 16px; color: #555; margin: 0 0 4px; }
.field { margin-bottom: 12px; }
.err { color: #c0392b; font-size: 15px; margin-top: 8px; }
.err:empty { display: none; }
.muted { color: #888; }

/* Request cards */
.req-card { margin-bottom: 16px; background: #fff; border: 1px solid #dce0e6; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.06); overflow: hidden; }
.req-card-hd { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #1b2a4a; }
.req-card-hd-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.req-card-hd-avatar.has-logo { width: 64px; height: 40px; border-radius: 5px; background: #fff; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; }
.req-card-hd-meta { flex: 1; min-width: 0; }
.req-card-hd-name { font-weight: 600; font-size: clamp(15px, 1.8vw, 16px); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-card-hd-sub { font-size: 15px; color: rgba(255,255,255,.6); margin-top: 2px; }
.req-card-hd-sub a { color: #fff; text-decoration: none; }
.req-card-hd-sub a:hover { text-decoration: underline; }
.req-card-hd-id { font-size: 12px; color: rgba(255,255,255,.6); flex-shrink: 0; background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.req-card-hd-state { font-weight: 400; color: rgba(255,255,255,.75); }
/* Admin only: Edit, after the name / state */
.req-card-hd-edit { margin-left: 10px; padding: 1px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 500; line-height: 18px; vertical-align: 1px; cursor: pointer; }
.req-card-hd-edit[disabled] { opacity: .45; cursor: default; }
.req-card-hd-edit:hover:not([disabled]) { background: rgba(255,255,255,.16); border-color: #fff; }
.req-card-hd-au { font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; background: #28a745; padding: 3px 8px; border-radius: 5px; white-space: nowrap; cursor: default; }   /* posted on partsonline.au */
.req-card-hd-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.req-card-hd-when { font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; }

.req-card-vehicle { background: #f4f6f8; padding: 10px 14px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid #eef0f3; }
/* Logo = exactly the title line (24px) + the engine line (4px gap + 18px), lined up with the top of the title */
.req-card-vehicle-logo { flex-shrink: 0; height: 49px; width: auto; max-width: 123px; object-fit: contain; object-position: left center; display: block; }
.req-card-vehicle-title { font-size: clamp(16px, 2.4vw, 19px); font-weight: 700; color: #1b2a4a; line-height: 24px; }
.req-card-vehicle-detail a { color: inherit; text-decoration: none; }   /* VIN still links to Google, but looks like the rest of the line */
.req-card-vehicle-detail a:hover { text-decoration: underline; }
.req-card-vehicle-detail { font-size: 16px; line-height: 20px; color: #333; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }

.req-card-desc { padding: 12px 14px 14px; }
.req-card-desc-hd { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #1b2a4a; text-transform: uppercase; letter-spacing: .03em; }
/* The request text as a speech bubble: light blue, rounded, with a tail pointing up at the heading */
.req-card-desc-text { position: relative; margin-top: 12px; padding: 10px 14px; background: #eef4fb; border: 1px solid #cddbec; border-radius: 6px; font-size: 15px; color: #333; line-height: 1.6; white-space: pre-line; }
.req-card-desc-text::before, .req-card-desc-text::after { content: ""; position: absolute; left: 22px; width: 0; height: 0; border: 9px solid transparent; border-top: 0; }
.req-card-desc-text::before { top: -10px; border-bottom: 10px solid #cddbec; }   /* tail outline */
.req-card-desc-text::after { top: -8px; left: 23px; border-width: 0 8px 9px; border-bottom-color: #eef4fb; }   /* tail fill */
.req-card-images { padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.req-card-images:empty { display: none; }
.req-card-images a { flex: 0 0 calc(33.33% - 3px); }
.req-card-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.req-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 14px; min-height: 42px; }
.req-card-actions .when { margin-left: auto; font-size: 14px; color: #999; }

.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar .input { flex: 1; min-width: 0; }
.search-bar .btn { height: 40px; padding: 0 16px; font-size: 16px; }
/* Quote form inside a card (opened by "Send a quote") - two columns, full-width rows for warranty, notes, photos */
.reply-box { background: #fafbfc; padding: 12px 2px 14px; }   /* fields 2px from the card's left and right edges */
.reply-to { font-size: 16px; font-weight: 700; color: #1b2a4a; overflow-wrap: anywhere; }
.reply-veh { font-size: 15px; color: #888; margin: 2px 0 12px; }
.qf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }   /* 3 fields across (2 on mobile) */
.qf-full { grid-column: 1 / -1; }
.qf .lbl { font-weight: 600; color: #333; }
.req-star { color: #c0392b; }
.qf-hint { font-size: 14px; color: #888; margin-top: 4px; line-height: 1.4; }
.money { position: relative; }
.money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.money .input { padding-left: 24px; }
.input.bad { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.photo-row { display: flex; align-items: center; gap: 10px; }
.photo-row .qf-hint { margin-top: 0; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-thumbs:empty { display: none; }
.photo-thumb { position: relative; width: 72px; height: 72px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; border: 1px solid #dce0e6; display: block; }
.photo-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.reply-text { height: auto; min-height: 80px; padding: 8px 10px; line-height: 1.5; resize: vertical; display: block; }
@media (max-width: 980px) { .qf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }
.reply-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reply-vis { width: auto; flex: 0 1 220px; }
.reply-row .btn { height: 40px; padding: 0 16px; font-size: 16px; }
.reply-msg { font-size: 15px; margin-top: 8px; color: #666; }
.reply-msg:empty { display: none; }
.reply-msg.ok { color: #1e6b3a; }
.reply-msg.bad { color: #c0392b; }
/* Your own request: manage its photos */
.my-photos { padding: 10px 14px 12px; }
.my-photos.in-resp { padding: 10px 0 0; border-bottom: 0; }   /* inside a response: no extra padding or line */
.my-photos-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; font-weight: 400; color: #333; }   /* "Your photos": normal text size */
.my-photos-hd .qf-hint { margin: 0; }
.my-photos-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.my-photo { width: 110px; border: 1px solid #dce0e6; border-radius: 5px; overflow: hidden; background: #fff; }
.my-photo img { width: 100%; height: 82px; object-fit: cover; display: block; }
.my-photo-bar { display: flex; border-top: 1px solid #eef0f3; }
.my-photo-bar button { flex: 1; border: 0; background: #fff; font: inherit; font-size: 14px; padding: 5px 0; cursor: pointer; color: #555; display: flex; align-items: center; justify-content: center; }
.my-photo-bar button svg { display: block; }
.my-photo-bar button + button { border-left: 1px solid #eef0f3; }
.my-photo-bar button:hover { background: #f4f6f8; color: #222; }
.my-photo-add { width: 110px; height: 110px; border: 2px dashed #ccc; border-radius: 5px; background: #fafbfc; color: #888; font: inherit; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.my-photo-add .add-plus { font-size: 24px; line-height: 1; }
.my-photo-add .add-icon { display: none; }
/* Your response photos: a small camera icon instead of the big "+ Add photos" tile */
.my-photos.in-resp:not(.has-photos) .my-photo-add { width: 40px; height: 40px; border-width: 1px; border-style: solid; border-color: #ccc; border-radius: 5px; background: #fff; color: #555; align-self: flex-start; }
.my-photos.in-resp:not(.has-photos) .my-photo-add .add-plus, .my-photos.in-resp:not(.has-photos) .my-photo-add .add-text { display: none; }
.my-photos.in-resp:not(.has-photos) .my-photo-add .add-icon { display: block; }
/* Your response photos: no heading text - the photos, the camera icon, then the count (e.g. 0/5) beside it */
.my-photos.in-resp { padding-top: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 8px; }
.my-photos.in-resp .my-photos-grid { order: 1; }
.my-photos.in-resp.has-photos .my-photos-grid { flex-basis: 100%; gap: 4px; }
.my-photos.in-resp .my-photo { width: calc(33.33% - 3px); }
.my-photos.in-resp .my-photo img { height: auto; aspect-ratio: 4 / 3; }
.my-photos.in-resp.has-photos .my-photo-add { width: calc(33.33% - 3px); height: auto; aspect-ratio: 4 / 3; }   /* the big tile, photo-sized */
.my-photos.in-resp .my-photos-hd { order: 2; margin: 0 0 10px; }
.my-photos.in-resp .my-photos-hd > span:not(.qf-hint) { display: none; }
.my-photos.in-resp .reply-msg { order: 3; flex-basis: 100%; }
.my-photos.in-resp:not(.has-photos) .my-photo-add:hover { border-color: #337ab7; color: #337ab7; background: #f4f8fc; }
.my-photo-add:hover { border-color: #337ab7; color: #337ab7; }
/* Wrecker responses (as responses.asp) */
.responses { min-height: 1px; }   /* takes up space so it can be seen scrolling into view */
.responses.on { }   /* no line between the Send a quote bar and the responses */
.responses-hd { padding: 8px 14px; font-size: 12px; font-weight: 700; color: #1b2a4a; text-transform: uppercase; letter-spacing: .03em; }
.responses-hidden { margin-left: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #888; }   /* "Hidden: 2" - plain text, no badge */
.responses-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 5px; background: #1b2a4a; color: #fff; font-size: 12px; line-height: 20px; text-align: center; letter-spacing: 0; }
.responses-none { padding: 0 14px 10px; font-size: 15px; color: #888; }
.resp { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid #f0f2f5; }
.resp-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #1b2a4a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.resp-avatar.has-logo { width: 56px; height: 40px; border-radius: 5px; background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; border: 1px solid #dce0e6; box-sizing: border-box; }   /* logo fills the box */
.resp-avatar.has-photo { width: 40px; height: 40px; border-radius: 50%; background-color: #e3e7ec; background-size: cover; background-position: center; background-repeat: no-repeat; }   /* private buyers: round, cropped (as responses.asp) */
.resp-body { flex: 1; min-width: 0; }
.resp-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.resp-name { font-weight: 700; font-size: 16px; color: #1b2a4a; }
.resp-icon { display: inline-flex; align-items: center; color: #e05a2b; text-decoration: none; }   /* home + website icons after the name */
.resp-icon:hover { color: #b8441c; }
.resp-icon.off, .resp-icon.off:hover { color: #c4cad3; cursor: default; }   /* house with nowhere to go */
.resp-staff { font-size: 12px; color: #888; }
.resp-when { white-space: nowrap; cursor: default; }   /* "3h 4m ago" at the end of line 2; the full date on hover */   /* admins only: Since: August 2014 · Level 1 */
.resp-sub { font-size: 14px; color: #888; margin-top: 2px; overflow-wrap: anywhere; }
.resp-sub a { color: #337ab7; text-decoration: none; }
/* Each response's text as a speech bubble (tail up at the sender's name): wreckers grey, the requester light blue
   (same as their Request Description bubble) */
.resp-notes { position: relative; margin-top: 10px; padding: 8px 12px; background: #f4f6f8; border: 1px solid #dce0e6; border-radius: 6px; font-size: 15px; color: #333; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.resp-notes::before, .resp-notes::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent; }
.resp-notes::before { top: -9px; left: 14px; border-width: 0 8px 9px; border-bottom-color: #dce0e6; }   /* tail outline */
.resp-notes::after { top: -7px; left: 15px; border-width: 0 7px 8px; border-bottom-color: #f4f6f8; }    /* tail fill */
.resp.from-buyer > .resp-body > .resp-notes { background: #eef4fb; border-color: #cddbec; }
.resp.from-buyer > .resp-body > .resp-notes::before { border-bottom-color: #cddbec; }
.resp.from-buyer > .resp-body > .resp-notes::after { border-bottom-color: #eef4fb; }
.emailfix-box { padding: 12px 14px; background: #fdecea; border-top: 1px solid #f3c1bb; }
.emailfix-text { margin: 0 0 8px; font-size: 15px; color: #5a1f19; line-height: 1.5; }
.emailfix-input { flex: 1 1 240px; max-width: 360px; }
.emailfix-input.code { flex: 0 0 140px; letter-spacing: 4px; font-weight: 600; text-align: center; }
.emailfix-done { margin: 0; color: #1e6b3a; font-weight: 600; font-size: 16px; }
.req-card.mine { border-color: #28a745; box-shadow: 0 0 0 1px #28a745, 0 1px 5px rgba(0,0,0,.06); }   /* your own request */
.req-card-hd-tags { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.req-card-hd-tags:empty { display: none; }
.req-card-hd-sourced { font-size: 12px; font-weight: 600; color: #1b2a4a; background: #ffd75e; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.req-card-hd-sourced[hidden] { display: none; }
.sourced-note { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border: 1px solid #e0b100; border-left: 5px solid #e0b100; border-radius: 5px; background: #fff4cc; color: #1b2a4a; font-size: 16px; font-weight: 700; }
.sourced-note::before { content: '\2713'; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #e0b100; color: #fff; font-size: 13px; }
.req-card-hd-mine { font-size: 12px; font-weight: 600; color: #fff; background: #28a745; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.quote-blocked { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #f3c1bb; border-radius: 5px; background: #fdecea; color: #c0392b; font-size: 15px; font-weight: 600; }
.respond { margin-top: 8px; }
.respond .btn { height: 32px; }
.respond-form { margin-top: 8px; }
.respond-photos { margin-top: 8px; }
/* An emoji inside a sent message: as big as the emoji buttons (the line keeps its height) */
.emoji-big { font-size: 22.5px; line-height: 1; vertical-align: -3px; }
/* Quick emoji under the reply box */
.emoji-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.emoji-btn { width: 40px; height: 40px; padding: 0; border: 1px solid #dce0e6; border-radius: 5px; background: #fff; font-size: 22.5px; line-height: 1; cursor: pointer; }
.emoji-btn:hover, .emoji-btn:focus-visible { border-color: #28a745; background: #e9f7ec; outline: none; }
/* The requester's replies under a wrecker's response: a branch line down the left, an elbow into each reply */
.resp-thread { margin-top: 10px; margin-left: 2px; padding-left: 16px; border-left: 2px solid #cfd5dd; }
.resp.resp-reply { position: relative; padding: 8px 0 4px; border-top: 0; }
.resp.resp-reply::before { content: ''; position: absolute; left: -16px; top: 22px; width: 12px; border-top: 2px solid #cfd5dd; }
.resp.resp-reply .resp-avatar { width: 30px; height: 30px; font-size: 13px; }
.resp.resp-reply .resp-avatar.has-logo { width: 46px; height: 32px; }
.resp.resp-reply .resp-avatar.has-photo { width: 32px; height: 32px; }
/* Response photos: the same as the request's - 3 across, 4:3, 4px apart */
.resp-photos { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.resp-photos a { flex: 0 0 calc(33.33% - 3px); }
.resp-photos img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 4px; display: block; }
/* Wreckers wrecking a ... (as horizontal-ads-parts-locator.asp) */
.wrecking { min-height: 1px; }   /* must take up space (not hidden) so it can be seen scrolling into view */
.wrecking.on { border-top: 1px solid #eef0f3; background: #e3e7ec; }   /* whole section grey: heading + photo slider */
.wrecking-hd { padding: 10px 14px 0; background: transparent; font-size: 15px; color: #333; }
.wrecking-strip { display: flex; gap: 10px; padding: 10px 14px; overflow-x: auto; }
.wreck-tile { position: relative; flex: 0 0 113px; height: 90px; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; display: block; }
.wreck-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wreck-tile img.no-photo { object-fit: contain; background: #fff; padding: 8px; box-sizing: border-box; }   /* PartsOnlineLeft.gif when the car has no photo */
.wreck-name { position: absolute; top: 0; left: 0; right: 0; padding: 3px 8px; background: rgba(0,0,0,.52); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wreck-state, .wreck-count { position: absolute; bottom: 5px; padding: 2px 6px; background: rgba(0,0,0,.52); border-radius: 3px; font-size: 12px; color: #fff; font-weight: 600; }
.wreck-state { left: 5px; }
.wreck-count { right: 5px; }
.more { text-align: center; padding: 4px 0 8px; }
.stat { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f2f5; }
.stat:last-child { border-bottom: 0; }
.stat b { color: #1b2a4a; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: minmax(0, 1fr); padding: 0 2px; }   /* mobile: the whole main area 2px from the screen edges */
  /* mobile: the request cards sit 2px from the panel's left and right edges; account row + search keep their spacing */
  #list-panel .p-panel-bd { padding-left: 2px; padding-right: 2px; }
  #list-panel .ident-row, #list-panel .search-bar, #list-panel .err { margin-left: 12px; margin-right: 12px; }
  .col-sticky { position: static; }
  .pl-heading { margin-top: 15px; }
  .col-hide { display: none; }
  .ident-avatar { width: 36px; height: 36px; font-size: 15px; }
  .ident-sub { display: none; }
}

/* Grey copy of the requests panel while the page starts (partswanted.html #page-skel): gone once a real panel shows */
#login-panel:not([hidden]) ~ #page-skel, #list-panel:not([hidden]) ~ #page-skel { display: none; }

/* Phones: the Parts Requests heading in tidy rows - the title and the bell on the first line, the 7-day numbers on
   their own line under it (smaller, never cut off), then the filter text ("My requests" ...) on its own line */
@media (max-width: 760px) {
  .list-hd { row-gap: 2px; }
  .list-hd .snd-btn { order: 1; }
  .p-panel-hd small.list-week { order: 2; flex: 0 0 100%; font-size: 12px; line-height: 1.4; white-space: normal; }
  .p-panel-hd #list-note { order: 3; flex: 0 0 100%; text-align: left; font-size: 12px; white-space: normal; }
  .p-panel-hd #list-note:empty { display: none; }
}

/* Keep this LAST. The pages check for it to know the whole file arrived (styles.html, "polCssCheck");
   without it the stylesheet is fetched again. */
html { --pol-css-pw: 1; }
