:root {
  --ink: #173230;
  --ink-2: #314a48;
  --muted: #72827f;
  --line: #dfe6e2;
  --canvas: #f5f7f5;
  --paper: #ffffff;
  --forest: #123c38;
  --forest-2: #1c514b;
  --orange: #f28a2e;
  --orange-soft: #fff2e4;
  --green-soft: #e6f3ed;
  --red-soft: #fff0ed;
  --red: #bd4a37;
  --shadow: 0 16px 48px rgba(19, 50, 46, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(242, 138, 46, .25); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: radial-gradient(circle at 80% 12%, rgba(242,138,46,.13), transparent 24%), linear-gradient(145deg, #0d2d2a 0%, #153f3a 52%, #0f3430 100%); }
.auth-card { width: min(440px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 26px 80px rgba(3,19,17,.34); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 32px; }
.auth-brand > span:last-child { display: flex; flex-direction: column; color: var(--ink); line-height: 1.12; }
.auth-brand strong { font-size: 15px; }
.auth-brand small { color: var(--muted); font-size: 13px; }
.auth-intro h1 { font-size: 30px; }
.auth-intro > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 18px; padding: 4px; border-radius: 9px; background: #eef2f0; }
.auth-tabs button { min-height: 37px; border: 0; border-radius: 7px; color: #73817e; background: transparent; font-size: 11px; font-weight: 750; }
.auth-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(20,50,46,.08); }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label > span { color: var(--ink-2); font-size: 10px; font-weight: 750; }
.auth-form input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #d8e1dd; border-radius: 8px; outline: 0; }
.auth-form label small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.auth-form .form-error { margin: 0; }
.auth-form .primary-button { width: 100%; margin-top: 4px; }
.setup-callout { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border-radius: 8px; color: #6f4b2a; background: var(--orange-soft); }
.setup-callout strong { font-size: 10px; }
.setup-callout span { font-size: 9px; line-height: 1.45; }
.auth-foot { margin: 22px 0 0; color: #8b9996; text-align: center; font-size: 8px; line-height: 1.5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--forest); color: #fff; padding: 24px 16px 18px; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 9px 26px; color: #fff; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: -.02em; box-shadow: 0 5px 16px rgba(242, 138, 46, .25); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.13; font-size: 15px; }
.brand-copy strong { font-weight: 750; }
.brand-copy span { color: #b9cfca; font-size: 13px; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #c6d8d4; min-height: 43px; border-radius: 9px; padding: 0 11px; display: flex; align-items: center; gap: 11px; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 21px; text-align: center; font-size: 18px; color: #aac5c0; }
.nav-item.active .nav-icon { color: var(--orange); }
.nav-count { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 999px; text-align: center; background: rgba(255,255,255,.1); color: #d6e5e2; font-size: 11px; }
.nav-label { margin: 23px 12px 6px; color: #72948d; font-weight: 750; letter-spacing: .12em; font-size: 10px; text-transform: uppercase; }
.sidebar-bottom { margin-top: auto; }
.private-card { display: flex; gap: 9px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 11px; color: #d8e7e3; }
.private-card .private-icon { color: #91c3b8; font-size: 18px; }
.private-card div { display: flex; flex-direction: column; gap: 2px; }
.private-card strong { font-size: 11px; }
.private-card span { color: #91aaa5; font-size: 10px; }
.company-profile { width: 100%; display: flex; align-items: center; border: 0; background: transparent; color: #fff; padding: 18px 7px 2px; gap: 10px; text-align: left; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #d7e8e4; color: var(--forest); font-size: 11px; font-weight: 800; }
.company-profile > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.company-profile strong { font-size: 12px; }
.company-profile small { color: #8eaaa4; font-size: 10px; }
.logout-button { margin-left: auto; padding: 4px 0 4px 8px; border: 0; color: #9eb5b0; background: transparent; font-size: 9px; }
.logout-button:hover { color: #fff; }

.main { min-width: 0; }
.topbar { height: 68px; padding: 0 34px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #8a9795; font-size: 12px; }
.breadcrumbs b { font-weight: 400; color: #bdc5c3; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.secure-label { display: flex; align-items: center; gap: 6px; color: #6d7d7a; font-size: 11px; border-right: 1px solid var(--line); padding-right: 14px; }
.secure-label i { width: 7px; height: 7px; background: #43a273; border-radius: 50%; box-shadow: 0 0 0 3px #e5f4eb; }
.icon-button { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; font-size: 19px; }
.notification-dot { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); border: 1px solid #fff; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--forest); font-size: 22px; }

.view { display: none; padding: 38px 4.6% 64px; max-width: 1480px; margin: auto; animation: fade .22s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: .45; transform: translateY(3px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.1; font-weight: 720; }
.heading-copy { max-width: 620px; margin: 11px 0 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.market-summary { display: flex; align-items: center; gap: 14px; padding-bottom: 6px; color: #72817e; font-size: 11px; white-space: nowrap; }
.market-summary b { color: var(--ink); font-size: 16px; margin-right: 3px; }
.summary-divider { height: 22px; border-left: 1px solid var(--line); }

.filters-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: minmax(260px, 1fr) 185px 175px auto; gap: 8px; box-shadow: 0 5px 22px rgba(27, 63, 58, .04); }
.search-box { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dbe3e0; border-radius: 8px; }
.search-box span { font-size: 21px; color: #8d9c99; transform: rotate(-10deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); }
.search-box input::placeholder { color: #a2adab; }
select, input, textarea { color: var(--ink); background: #fff; }
.select-wrap select, .results-row select { width: 100%; min-height: 44px; border: 1px solid #dbe3e0; border-radius: 8px; padding: 0 34px 0 11px; }
.filter-button { min-width: 80px; border: 0; background: #edf2f0; color: var(--ink-2); border-radius: 8px; font-weight: 650; }
.results-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 14px; color: var(--muted); font-size: 11px; }
.results-row p { margin: 0; }
.results-row strong { color: var(--ink); }
.results-row label { display: flex; align-items: center; gap: 8px; }
.results-row select { min-height: 34px; width: 140px; font-size: 11px; padding-left: 8px; }

.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.listing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 16px; position: relative; transition: .2s ease; overflow: hidden; }
.listing-card:hover { border-color: #b8cbc6; transform: translateY(-2px); box-shadow: 0 11px 28px rgba(23, 55, 51, .08); }
.listing-card.closing::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--orange); }
.product-thumb { width: 68px; height: 68px; border-radius: 11px; display: grid; place-items: center; font-weight: 850; font-size: 13px; letter-spacing: .04em; color: #315a54; background: linear-gradient(145deg, #e4ece8, #cddbd6); position: relative; overflow: hidden; }
.product-thumb::after { content: ""; position: absolute; width: 58px; height: 58px; border: 12px solid rgba(255,255,255,.35); border-radius: 44% 56% 48% 52%; transform: rotate(22deg); }
.thumb-wool { background: linear-gradient(145deg, #eee9df, #d7cbb9); color: #685a45; }
.thumb-leather { background: linear-gradient(145deg, #d9c9bb, #bba48f); color: #694c37; }
.listing-main { min-width: 0; }
.card-top { display: flex; justify-content: space-between; gap: 12px; }
.card-id { margin: 0 0 6px; color: #91a09d; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.listing-card h3 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.015em; }
.watch-icon { flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid var(--line); background: #fff; color: #8b9996; border-radius: 8px; font-size: 17px; }
.watch-icon.active { color: var(--orange); border-color: #f1c79e; background: #fffaf5; }
.company-line { display: flex; align-items: center; gap: 7px; margin: 8px 0 14px; color: #6f817d; font-size: 10px; }
.verified { width: 14px; height: 14px; display: inline-grid; place-items: center; border-radius: 50%; background: #d8eee5; color: #237655; font-size: 9px; font-weight: 800; }
.lot-preview { display: flex; flex-wrap: wrap; gap: 5px; margin: -3px 0 12px; }
.lot-preview span { max-width: 190px; padding: 4px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #e4ebe8; border-radius: 6px; color: #637672; background: #f8faf9; font-size: 9px; }
.card-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; padding: 11px 0; gap: 12px; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-item span { color: #929e9c; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.meta-item strong { font-size: 11px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.status-pill { padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.status-open { color: #237655; background: var(--green-soft); }
.status-closing { color: #b65b18; background: var(--orange-soft); }
.status-upcoming { color: #4d657c; background: #eaf0f4; }
.detail-link { border: 0; background: transparent; color: var(--forest-2); font-size: 11px; font-weight: 750; padding: 5px 0; }
.detail-link:hover { color: var(--orange); }
.empty-state { text-align: center; background: #fff; border: 1px dashed #cdd8d4; border-radius: 14px; padding: 60px 20px; }
.empty-state > span { display: block; font-size: 35px; color: #a5b2af; }
.empty-state h3 { margin: 10px 0 4px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

.primary-button, .secondary-button { min-height: 42px; border-radius: 8px; padding: 0 17px; font-weight: 750; border: 1px solid transparent; transition: .17s ease; }
.primary-button { color: #fff; background: var(--forest); box-shadow: 0 5px 14px rgba(18,60,56,.12); }
.primary-button:hover { background: #1b514a; transform: translateY(-1px); }
.primary-button.compact { min-height: 36px; padding: 0 13px; font-size: 11px; }
.secondary-button { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary-button:hover { background: #f6f8f7; border-color: #bfcfc9; }
.secondary-button.small { min-height: 35px; font-size: 11px; }
.text-button { border: 0; color: var(--muted); background: transparent; padding: 10px; font-weight: 650; }

.narrow-heading { align-items: start; }
.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.summary-cards article { padding: 19px 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.summary-cards article > span { color: #758681; font-size: 11px; grid-column: 1; }
.summary-cards article > strong { font-size: 26px; letter-spacing: -.04em; margin-top: 8px; grid-column: 1; }
.summary-cards article > small { color: #8d9a97; grid-column: 2; grid-row: 1 / 3; align-self: end; font-size: 9px; }
.positive { display: inline-block; width: 6px; height: 6px; background: #3ca875; border-radius: 50%; margin-right: 4px; }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.table-title { min-height: 69px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-title h2 { margin: 0; font-size: 15px; }
.table-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.table-title > span { color: #94a09e; font-size: 10px; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #84928f; background: #fafbf9; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 11px 20px; white-space: nowrap; }
td { border-top: 1px solid #eef2f0; padding: 14px 20px; color: #556a66; font-size: 11px; white-space: nowrap; }
td strong { color: var(--ink); font-size: 11px; }
.table-listing { display: flex; flex-direction: column; gap: 3px; max-width: 280px; }
.table-listing span { color: #98a5a2; font-size: 9px; }
.company-heading { align-items: end; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(10, 34, 32, .5); backdrop-filter: blur(2px); z-index: 50; opacity: 1; }
.detail-drawer { position: fixed; right: 0; top: 0; height: 100vh; width: min(620px, 92vw); background: #fff; z-index: 51; box-shadow: -20px 0 70px rgba(11, 42, 38, .24); transform: translateX(105%); transition: transform .28s ease; display: grid; grid-template-rows: auto 1fr auto; }
.detail-drawer.open { transform: translateX(0); }
.drawer-header { padding: 25px 28px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.drawer-header h2 { font-size: 23px; letter-spacing: -.035em; line-height: 1.18; margin: 5px 0 0; }
.detail-id { color: #8e9b99; font-size: 9px; font-weight: 750; letter-spacing: .11em; }
.close-button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #73827f; font-size: 22px; line-height: 1; }
.drawer-content { overflow-y: auto; padding: 24px 28px 36px; }
.detail-status-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; }
.deadline-callout { text-align: right; }
.deadline-callout span { color: #8a9795; font-size: 9px; text-transform: uppercase; }
.deadline-callout strong { display: block; margin-top: 3px; font-size: 14px; color: var(--red); }
.company-block { padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.company-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--forest); color: #fff; font-size: 11px; font-weight: 800; }
.company-block div { display: flex; flex-direction: column; gap: 3px; }
.company-block strong { font-size: 12px; }
.company-block span { color: var(--muted); font-size: 10px; }
.detail-section { margin-top: 24px; }
.detail-section h3 { margin: 0 0 9px; font-size: 12px; }
.detail-section p { margin: 0; color: #667874; line-height: 1.65; font-size: 11px; }
.section-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 999px; color: #276a5f; background: #e5f2ee; font-size: 10px; }
.tender-lots { display: grid; gap: 7px; }
.tender-lot { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.tender-lot-main { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.lot-number { width: 42px; height: 42px; display: grid; place-items: center; align-content: center; border-radius: 8px; color: var(--forest); background: #edf3f1; line-height: 1; }
.lot-number span { font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.lot-number strong { margin-top: 3px; font-size: 13px; }
.lot-product { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lot-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.lot-product span { color: var(--muted); font-size: 9px; }
.lot-quantity { min-width: 100px; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.lot-quantity span { color: #8a9795; font-size: 8px; text-transform: uppercase; }
.lot-quantity strong { font-size: 11px; }
.lot-videos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lot-video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f8; }
.lot-video-card video, .lot-video-card iframe, .external-video { width: 100%; aspect-ratio: 16/9; display: block; border: 0; background: #102b28; }
.external-video { color: #fff; text-decoration: none; display: grid; place-items: center; align-content: center; gap: 6px; font-size: 10px; }
.external-video span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.lot-video-card > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; }
.lot-video-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.lot-video-card > div span { color: var(--muted); font-size: 8px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.detail-facts div { background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 5px; }
.detail-facts span { color: #8a9795; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.detail-facts strong { font-size: 11px; }
.documents { display: grid; gap: 7px; }
.document-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.doc-icon { width: 29px; height: 29px; border-radius: 6px; background: var(--orange-soft); color: #b85c15; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.document-row div { display: flex; flex-direction: column; gap: 2px; }
.document-row strong { font-size: 10px; }
.document-row span { color: #8d9a98; font-size: 9px; }
.document-row button { margin-left: auto; border: 0; background: transparent; color: var(--forest-2); font-weight: 750; font-size: 10px; }
.drawer-footer { padding: 16px 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; background: #fff; }

.modal { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 25px 27px; }
#priceModal { width: min(760px, calc(100vw - 32px)); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.step-label { margin: 0; color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.offer-context { display: flex; justify-content: space-between; gap: 16px; padding: 13px 14px; background: #f4f7f5; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 18px; }
.offer-context div { display: flex; flex-direction: column; gap: 3px; }
.offer-context span { color: var(--muted); font-size: 9px; }
.offer-context strong { font-size: 11px; }
.offer-lots-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.offer-lots-heading > div { display: flex; flex-direction: column; gap: 3px; }
.offer-lots-heading strong { font-size: 11px; }
.offer-lots-heading span { color: var(--muted); font-size: 9px; }
.offer-lots { display: grid; gap: 8px; }
.offer-lot-row { display: grid; grid-template-columns: minmax(210px,1.3fr) minmax(135px,.7fr) minmax(145px,.75fr); gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; opacity: .56; transition: .18s ease; }
.offer-lot-row.selected { border-color: #b7cbc6; background: #fff; opacity: 1; box-shadow: 0 4px 14px rgba(25,59,54,.05); }
.lot-select { align-self: center; display: flex; align-items: flex-start; gap: 9px; min-width: 0; cursor: pointer; }
.lot-select input { margin-top: 3px; accent-color: var(--forest); }
.lot-select > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ink); font-size: 11px; font-weight: 700; }
.lot-select b { color: var(--orange); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.lot-select small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; font-weight: 400; }
.lot-quantity-input, .lot-price-input { display: flex; flex-direction: column; gap: 5px; }
.lot-quantity-input > span, .lot-price-input > span { color: #71817e; font-size: 8px; font-weight: 700; }
.offer-terms-grid { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid label, .full-label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label > span, .full-label > span { font-size: 10px; font-weight: 700; color: var(--ink-2); }
label b { color: var(--orange); }
.form-grid input, .form-grid select, .full-label input, .full-label textarea, .full-label select { width: 100%; border: 1px solid #dbe3e0; border-radius: 8px; min-height: 43px; padding: 9px 11px; outline: none; }
.full-label { margin-top: 14px; }
.full-label textarea { resize: vertical; }
.full-label small { float: right; color: #9aa5a3; font-weight: 400; }
.input-affix { min-height: 43px; display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid #dbe3e0; border-radius: 8px; overflow: hidden; background: #fafbf9; }
.input-affix input { border: 0; border-left: 1px solid #e4eae7; border-radius: 0; min-width: 0; }
.input-affix > span { padding: 0 11px; color: #72827f; font-size: 10px; }
.input-affix.suffix { grid-template-columns: 1fr auto; }
.input-affix.suffix input { border-left: 0; border-right: 1px solid #e4eae7; }
.offer-total { display: flex; justify-content: space-between; align-items: center; margin: 17px 0 12px; padding: 13px 14px; border-radius: 8px; background: #f4f7f5; }
.offer-total span { color: var(--muted); font-size: 10px; }
.offer-total strong { font-size: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #6d7c79; font-size: 10px; line-height: 1.45; }
.check-row input { margin: 2px 0 0; accent-color: var(--forest); }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding-top: 19px; margin-top: 18px; border-top: 1px solid var(--line); }
.action-spacer { flex: 1; }
.review-grid { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.review-grid div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.review-grid div:last-child { border-bottom: 0; background: #f5f7f5; }
.review-grid span { color: var(--muted); font-size: 10px; }
.review-grid strong { text-align: right; font-size: 11px; }
.review-grid div:last-child strong { font-size: 16px; }
.review-tender { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.review-tender span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.review-tender strong { font-size: 12px; }
.review-lots { display: grid; gap: 1px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.review-lots > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 13px; background: #fff; }
.review-lots span { display: flex; flex-direction: column; gap: 3px; font-size: 10px; }
.review-lots b { color: var(--orange); font-size: 8px; letter-spacing: .08em; }
.review-lots small { color: var(--muted); font-size: 9px; }
.review-lots > div > strong { font-size: 11px; }
.prototype-notice { margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: var(--orange-soft); color: #93602f; font-size: 10px; }
.success-modal { max-width: 420px; text-align: center; padding: 34px; }
.success-mark { width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: #237655; font-size: 24px; font-weight: 800; }
.success-modal h2 { margin: 0; }
.success-modal p { color: var(--muted); line-height: 1.55; }
.success-ref { padding: 10px; border-radius: 8px; background: #f5f7f5; margin: 16px 0; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.success-modal .primary-button { width: 100%; }
.success-modal .text-button { margin-top: 7px; }
.create-modal { width: min(690px, calc(100vw - 32px)); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
.stepper i { height: 3px; border-radius: 4px; background: #e5eae8; }
.stepper i.active { background: var(--orange); }
.create-step { display: none; }
.create-step.active { display: block; animation: fade .2s ease; }
.lot-builder-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 18px 0 9px; }
.lot-builder-head > div { display: flex; flex-direction: column; gap: 3px; }
.lot-builder-head strong { font-size: 11px; }
.lot-builder-head span { color: var(--muted); font-size: 9px; }
.lot-builder { display: grid; gap: 9px; }
.new-lot-row { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.new-lot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.new-lot-head strong { color: var(--orange); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.remove-lot { padding: 2px 0; border: 0; color: #9a6b61; background: transparent; font-size: 9px; }
.new-lot-fields { display: grid; grid-template-columns: 1.25fr 1fr .55fr .55fr; gap: 8px; }
.new-lot-fields label { display: flex; flex-direction: column; gap: 5px; }
.new-lot-fields label > span { color: #657672; font-size: 8px; font-weight: 700; }
.new-lot-fields input, .new-lot-fields select { width: 100%; min-width: 0; min-height: 39px; padding: 7px 9px; border: 1px solid #dbe3e0; border-radius: 7px; outline: 0; font-size: 10px; }
.lot-media-builder { margin-top: 11px; padding-top: 11px; border-top: 1px solid #e3e9e6; }
.lot-media-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lot-media-heading strong { font-size: 9px; }
.lot-media-heading strong span { color: var(--muted); font-size: 8px; font-weight: 500; }
.lot-media-heading small { color: var(--muted); font-size: 8px; }
.lot-media-fields { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8px; }
.lot-media-fields label { display: flex; flex-direction: column; gap: 5px; }
.lot-media-fields label > span { color: #657672; font-size: 8px; font-weight: 700; }
.lot-media-fields textarea { width: 100%; min-height: 64px; resize: vertical; padding: 8px 9px; border: 1px solid #dbe3e0; border-radius: 7px; outline: 0; font-size: 9px; line-height: 1.4; }
.video-upload { min-height: 64px; justify-content: center; padding: 8px 10px; border: 1px dashed #b8c9c4; border-radius: 8px; background: #fff; cursor: pointer; }
.video-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.video-upload > span { color: var(--forest-2) !important; font-size: 9px !important; }
.video-upload small { color: var(--muted); font-size: 8px; }
.selected-video-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.selected-video-files > span { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 7px; border-radius: 6px; background: #eaf2ef; color: #526c66; font-size: 8px; }
.selected-video-files b { color: var(--forest-2); }
.selected-video-files button { padding: 0 2px; border: 0; background: transparent; color: #8b564c; font-size: 12px; line-height: 1; }
.private-video-note { margin-top: 12px; padding: 10px 12px; border-radius: 7px; color: #526c66; background: #eaf2ef; font-size: 9px; line-height: 1.45; }
.preview-card { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.preview-head { padding: 16px; background: #f4f7f5; }
.preview-head span { color: var(--orange); font-size: 9px; font-weight: 800; }
.preview-head h3 { margin: 6px 0 0; }
.preview-body { padding: 16px; }
.preview-body p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.preview-lots { display: grid; gap: 6px; margin: 13px 0; }
.preview-lots > div { display: grid; grid-template-columns: 55px 1fr auto; gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; }
.preview-lots span { color: var(--orange); font-size: 8px; font-weight: 800; }
.preview-lots strong { font-size: 10px; }
.preview-lots small { color: var(--muted); font-size: 9px; }
.preview-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.preview-facts div { padding: 10px; background: #f7f9f7; border-radius: 7px; display: flex; flex-direction: column; gap: 3px; }
.preview-facts span { color: #8b9996; font-size: 9px; }
.preview-facts strong { font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; min-width: 280px; max-width: calc(100vw - 44px); padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--forest); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; transform: translateY(90px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.13); }
.toast p { margin: 0; font-size: 11px; }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .listing-grid { grid-template-columns: 1fr; }
  .filters-panel { grid-template-columns: minmax(240px, 1fr) 160px 150px auto; }
  .summary-cards article { display: block; }
  .summary-cards article > small { display: block; margin-top: 7px; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; transform: translateX(-105%); transition: .24s ease; width: 244px; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(10,35,32,.3); }
  .mobile-menu { display: block; }
  .breadcrumbs { display: none; }
  .topbar { padding: 0 18px; }
  .view { padding: 28px 18px 50px; }
  .filters-panel { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .filter-button { min-height: 42px; }
  .summary-cards { grid-template-columns: 1fr; }
  .offer-lot-row { grid-template-columns: 1fr 1fr; }
  .lot-select { grid-column: 1 / -1; }
  .new-lot-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .secure-label { display: none; }
  .top-actions { gap: 7px; }
  .page-heading { display: block; }
  .market-summary { margin-top: 18px; }
  .company-heading .primary-button { width: 100%; margin-top: 18px; }
  .filters-panel { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .results-row label { display: none; }
  .listing-card { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .product-thumb { width: 48px; height: 48px; }
  .card-meta { grid-template-columns: repeat(2, 1fr); }
  .card-meta .meta-item:last-child { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 21px 18px; }
  .drawer-header, .drawer-content { padding-left: 20px; padding-right: 20px; }
  .drawer-footer { grid-template-columns: 1fr; padding: 14px 20px; }
  .detail-facts { grid-template-columns: 1fr; }
  .tender-lot-main { grid-template-columns: 42px 1fr; }
  .lot-quantity { grid-column: 2; text-align: left; }
  .lot-videos, .lot-media-fields { grid-template-columns: 1fr; }
  .offer-lot-row { grid-template-columns: 1fr; }
  .lot-select { grid-column: auto; }
  .new-lot-fields { grid-template-columns: 1fr; }
  .preview-lots > div { grid-template-columns: 48px 1fr; }
  .preview-lots small { grid-column: 2; }
  .top-actions .icon-button { display: none; }
}

/* Multi-lot records retain the marketplace's existing visual language. */
.status-closed { background: #edf0ef; color: #6b7774; }
button:disabled { cursor: default; opacity: .55; transform: none; }
.form-error { padding: 12px 14px; margin: 0 0 16px; border: 1px solid #e8b6aa; border-radius: 9px; background: var(--red-soft); color: #943c2b; line-height: 1.5; font-size: 12px; }
.lot-product strong, .lot-select small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.lot-reference { color: #8b9996; font-size: 9px; overflow-wrap: anywhere; }
.lot-quantity small { color: var(--muted); font-size: 9px; }
.lot-subtotal { display: block; color: var(--forest); font-size: 9px; min-height: 13px; padding-top: 2px; }
.input-affix input { width: 100%; padding: 10px; min-height: 42px; outline: none; }
.lot-category-field { grid-column: 1 / 3; }
.record-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.record-meta > span:last-child { color: var(--muted); font-size: 10px; }
.incoming-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: #fafbf9; border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-top: 10px; }
.incoming-offer > span { display: flex; flex-direction: column; gap: 5px; }
.incoming-offer strong { font-size: 11px; }
.incoming-offer small { color: var(--muted); font-size: 9px; }
.admin-manage-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 4px; padding: 13px 14px; border: 1px solid #c8d9d4; border-radius: 9px; background: #edf5f2; }
.admin-manage-bar > div { display: flex; flex-direction: column; gap: 4px; }
.admin-manage-bar strong { font-size: 10px; }
.admin-manage-bar span { color: var(--muted); font-size: 9px; }
.danger-button { min-height: 34px; padding: 7px 12px; border: 1px solid #d99b8d; border-radius: 7px; color: #993f31; background: #fff6f3; font-size: 9px; font-weight: 750; }
.audit-card { margin-top: 16px; }
.admin-badge { padding: 5px 7px; border-radius: 999px; color: #23675d; background: #e2f0ec; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.audit-list { display: grid; }
.audit-row { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); }
.audit-row:first-child { border-top: 0; }
.audit-icon { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #277263; background: #e7f2ef; font-size: 9px; font-weight: 800; }
.audit-row div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.audit-row strong { font-size: 10px; }
.audit-row small { color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.audit-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 10px; }
.access-grid { margin-top: 16px; }
.invite-form { display: grid; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.invite-form .form-grid { grid-template-columns: 1fr 1.15fr .7fr; }
.invite-form input, .invite-form select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #dbe3e0; border-radius: 8px; outline: 0; }
.invite-form .primary-button { justify-self: start; }
.invite-result { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin: 16px 20px; padding: 13px 14px; border: 1px solid #bad1ca; border-radius: 9px; background: #edf5f2; }
.invite-result span { color: var(--muted); font-size: 9px; }
.invite-result strong { grid-column: 1; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; user-select: all; }
.invite-result button { grid-column: 2; grid-row: 1 / 3; }
.review-lots span, .review-grid strong, .listing-main h3 { overflow-wrap: anywhere; }
.review-grid strong { white-space: pre-wrap; }
.review-lots > div > strong { flex-shrink: 0; }
.card-meta strong { overflow-wrap: anywhere; }
.form-grid label > small { color: var(--muted); font-size: 9px; }
#detailDrawer[aria-hidden="true"] { visibility: hidden; }
#detailDrawer.open { visibility: visible; }
@media (max-width: 560px) {
  .auth-card { padding: 26px 20px; }
  .auth-brand { margin-bottom: 26px; }
  .invite-form .form-grid { grid-template-columns: 1fr; }
  .invite-result { grid-template-columns: 1fr; }
  .invite-result strong, .invite-result button { grid-column: 1; grid-row: auto; }
  .lot-category-field { grid-column: auto; }
  .review-lots > div { align-items: flex-start; }
  .review-lots > div > strong { font-size: 10px; }
  .record-meta { align-items: flex-start; flex-direction: column; }
  .offer-lots-heading { align-items: flex-start; }
  .incoming-offer { flex-wrap: wrap; }
  .admin-manage-bar { align-items: flex-start; flex-direction: column; }
}
