/* ==========================================================================
   The Fine Art Auction — site stylesheet
   Bonhams-inspired structure and rhythm, The Fine Art Auction's navy + gold.
   Sections: 1 tokens · 2 reset/base · 3 layout · 4 header · 5 footer · 6 buttons
   7 forms · 8 cards · 9 chips/badges · 10 hero · 11 sections/grids · 12 modal
   13 tables · 14 catalog/lot pages · 15 team/admin · 16 misc · 17 responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy: #1d285c;            /* primary brand navy (TFAA theme primary) */
  --navy-deep: #011750;       /* logo ink, hover on navy */
  --navy-tint: rgba(29, 40, 92, 0.08);
  --navy-40: rgba(29, 40, 92, 0.4);
  --gold: #fdb926;            /* CTA gold (TFAA/AVC bidding palette) */
  --gold-dark: #e0a010;
  --ink: #0c0c0c;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --rule: #eaeae9;
  --grey-900: #212934;
  --grey-700: #3d3d3b;
  --grey-600: #4f4e4f;
  --grey-500: #8a8a87;
  --grey-400: #ababab;
  --grey-200: #e2e2e2;
  --grey-100: #f6f6f6;
  --success: #12b878;
  --danger: #c90000;
  --warning: #f1ae2a;
  --live: #d7263d;

  --shadow-card: 0 0 10px 3px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 0 5px 3px rgba(0, 0, 0, 0.02);
  --shadow-hero: 0 0 15px 5px rgba(0, 0, 0, 0.1);
  --shadow-pop: 0 10px 30px rgba(15, 31, 80, 0.18);

  --radius-btn: 4px;
  --radius-card: 3px;
  --radius-input: 2px;
  --radius-pill: 500px;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Montserrat', Arial, Helvetica, sans-serif;

  --container: 1170px;
  --container-wide: 1440px;
  --pad-x: 15px;
  --section-gap: 50px;
  --header-h: 64px;
}

/* 2. Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--navy); font-family: var(--font-serif); font-weight: 600; }
h1, .h1 { font-size: 2.0625rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.01em; }
h2, .h2 { font-size: 1.75rem; line-height: 1.15; }
h3, .h3 { font-size: 1.3rem; line-height: 1.2; }
h4, .h4 { font-size: 1.05rem; line-height: 1.3; font-family: var(--font-sans); font-weight: 600; }
.h1--serif-plain { text-transform: none; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--grey-700); }
small, .small { font-size: 0.875rem; }
.muted { color: var(--grey-600); }
.eyebrow { font: 600 0.75rem/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy); }
.eyebrow--gold { color: var(--gold-dark); }
hr, .rule { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 12px; z-index: 200; border: 2px solid var(--navy); border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }
/* Longhand padding on purpose: these classes often sit on the same element as .container, and the
   shorthand form would wipe out the container's horizontal padding (content flush to the screen edge). */
.section { padding-top: var(--section-gap); }
.section--last { padding-bottom: var(--section-gap); }
.section--band { background: var(--surface); padding-top: var(--section-gap); padding-bottom: var(--section-gap); margin-top: var(--section-gap); }
.section--navy { background: var(--navy); color: #fff; padding-top: var(--section-gap); padding-bottom: var(--section-gap); margin-top: var(--section-gap); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy a { color: #fff; }
.section--navy .eyebrow { color: var(--gold); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { text-transform: uppercase; font-size: 1.85rem; }
.section-head .link-upper { margin-bottom: 4px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
/* Phones: one column (the lot grid keeps Bonhams' 2-up — see the review-fixes block); 2/3/4 columns from 640px. */
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.split { display: grid; gap: 30px; grid-template-columns: 1fr; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 50px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.page-head { padding-top: 40px; padding-bottom: 10px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--grey-600); padding-top: 16px; }
.breadcrumb a { color: var(--grey-600); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--grey-400); }
.prose { max-width: 760px; line-height: 1.7; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: #fff; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); }
.prose blockquote cite { display: block; margin-top: 8px; font: 500 0.8rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); font-style: normal; }

/* 4. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 70; background: var(--surface); box-shadow: var(--shadow-card); }
.topbar { background: var(--navy); color: #fff; font-size: 0.78rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 15px; }
.topbar a { color: #fff; opacity: 0.9; }
.topbar a:hover { opacity: 1; color: var(--gold); text-decoration: none; }
.topbar__socials { display: flex; gap: 12px; }
.topbar__socials a { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; }
.topbar__socials svg { width: 14px; height: 14px; fill: currentColor; }
.topbar__contact { display: flex; gap: 16px; white-space: nowrap; }
.topbar__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.topbar__live .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(215,38,61,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,0.6); } 70% { box-shadow: 0 0 0 7px rgba(215,38,61,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); } }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.brand:hover { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-search { display: none; position: relative; }
.header-search input { height: 36px; width: 240px; padding: 6px 36px 6px 12px; border: 1px solid var(--rule); border-radius: var(--radius-input); font: 400 0.9rem var(--font-sans); background: #fff; }
.header-search input::placeholder { font-style: italic; color: var(--grey-600); }
.header-search input:focus { outline: none; border-color: var(--navy); }
.header-search button { position: absolute; right: 2px; top: 2px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.header-search svg { width: 17px; height: 17px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; }
.primary-nav { border-top: 1px solid var(--rule); }
.primary-nav__inner { display: none; align-items: center; justify-content: space-between; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0; }
.primary-nav a { display: block; padding: 12px 15px; font: 500 0.9rem/1.2 var(--font-sans); color: var(--grey-700); letter-spacing: 0.02em; }
.primary-nav li:first-child a { padding-left: 0; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--navy); text-decoration: none; }
.primary-nav a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.primary-nav a.nav-live { color: var(--live); font-weight: 600; }
.site-header.is-open .primary-nav__inner { display: block; }
.site-header.is-open .primary-nav ul { flex-direction: column; }
.site-header.is-open .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.site-header.is-open .header-search { display: block; padding: 12px 0; }
.site-header.is-open .header-search input { width: 100%; }
/* account dropdown */
.account-menu { position: relative; }
.account-menu__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius-btn); background: #fff; font: 500 0.85rem var(--font-sans); color: var(--navy); cursor: pointer; }
.account-menu__btn .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; }
.account-menu__btn .chev { width: 12px; height: 12px; transition: transform 0.2s; }
.account-menu.is-open .account-menu__btn .chev { transform: rotate(180deg); }
.account-menu__panel { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 8px 0; z-index: 80; }
.account-menu.is-open .account-menu__panel { display: block; }
.account-menu__panel a, .account-menu__panel button { display: block; width: 100%; text-align: left; padding: 10px 16px; font: 400 0.9rem var(--font-sans); color: var(--grey-900); background: none; border: 0; cursor: pointer; }
.account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--navy-tint); text-decoration: none; color: var(--navy); }
.account-menu__panel .role-tag { display: block; padding: 6px 16px 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-500); border-bottom: 1px solid var(--rule); margin-bottom: 4px; }

/* 5. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #fff; margin-top: var(--section-gap); border-top: 6px solid var(--gold); }
.site-footer a { color: #d9dceb; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding: 50px 0 40px; }
.footer-col h4 { color: #fff; font: 600 0.8rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-col p { font-size: 0.9rem; color: #d9dceb; margin-bottom: 8px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer-socials { display: flex; gap: 12px; margin-top: 14px; }
.footer-socials a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.footer-socials a:hover { border-color: var(--gold); }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-input); background: rgba(255,255,255,0.06); color: #fff; font: 400 0.9rem var(--font-sans); }
.newsletter input::placeholder { color: #b9bed6; font-style: italic; }
.copyright { background: #141c45; color: #9aa1c4; font-size: 0.8rem; padding: 16px 0; }
.copyright__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.copyright a { color: #c5c9de; }

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 8px 18px; border-radius: var(--radius-btn); border: 2px solid transparent;
  font: 500 0.9rem/1.2 var(--font-sans); letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.btn--primary:hover { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy-tint); color: var(--navy); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--navy); padding: 8px 10px; }
.btn--ghost:hover { background: var(--navy-tint); }
.btn--white { background: #fff; border-color: #fff; color: var(--navy); }
.btn--white:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { height: 32px; padding: 4px 12px; font-size: 0.8rem; }
.btn--lg { height: 50px; padding: 10px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.55; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.link-upper { font: 600 0.8rem/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); }
.link-upper:hover { text-decoration: underline; }
.link-upper::after { content: ' →'; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; color: var(--navy); font: 500 0.85rem var(--font-sans); cursor: pointer; }
.btn-icon:hover { text-decoration: underline; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon.is-on { color: var(--live); }

/* 7. Forms ----------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form--inline { grid-template-columns: 1fr auto; align-items: end; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-field { display: grid; gap: 6px; }
.form-field label, .form-label { font: 600 0.78rem/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-700); }
.form-field .req { color: var(--danger); }
.form-field .help { font-size: 0.8rem; color: var(--grey-600); }
.form-field .error { font-size: 0.8rem; color: var(--danger); }
.input, .form-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-field select, .form-field textarea {
  width: 100%; height: 46px; padding: 8px 12px; border: 1px solid var(--grey-200); border-radius: var(--radius-input);
  background: #fff; font: 400 0.95rem var(--font-sans); color: var(--ink);
}
.form-field textarea { height: auto; min-height: 120px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder, .input::placeholder { font-style: italic; color: var(--grey-500); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.form-field input[type=file] { font-size: 0.9rem; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.checkbox input { margin-top: 3px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-msg { padding: 12px 14px; border-radius: var(--radius-card); font-size: 0.9rem; }
.form-msg--error { background: #fdecec; color: #8f0e0e; border: 1px solid #f5c2c2; }
.form-msg--success { background: #e8f8f0; color: #0f6b43; border: 1px solid #b9e8d0; }
.form-msg--info { background: var(--navy-tint); color: var(--navy); }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 18px; margin: 0; background: #fff; }
legend { padding: 0 8px; font: 600 0.78rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); }
.image-picker { display: grid; gap: 10px; }
.image-picker__preview { width: 100%; max-width: 320px; aspect-ratio: 4/3; border: 1px dashed var(--grey-300, #d2d2d2); border-radius: var(--radius-card); background: var(--grey-100) center/contain no-repeat; display: grid; place-items: center; color: var(--grey-500); font-size: 0.85rem; overflow: hidden; }
.image-picker__preview img { width: 100%; height: 100%; object-fit: contain; }
.image-picker__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 8. Cards ----------------------------------------------------------------- */
.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
/* Hover: no lift and no image zoom (design brief §9.9) — the artist card's gentle scale is the one exception. */
.card:hover { box-shadow: var(--shadow-pop); }
.card:hover .card__title { color: var(--navy-deep); }
.card a.card__link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a.card__link:hover { text-decoration: none; }
.card__media { position: relative; background: var(--grey-100); aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card--contain .card__media img { object-fit: contain; padding: 10px; }
.card--artist:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; top: 10px; left: 10px; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; color: var(--navy); font-weight: 600; }
.card__meta { font-size: 0.85rem; color: var(--grey-600); }
.card__meta strong { color: var(--ink); font-weight: 600; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--grey-600); }
.card__status { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); }
.card--lot .card__media { aspect-ratio: 1/1; background: #fff; }
.card--lot .card__media img { object-fit: contain; padding: 8px; }
.card--lot .card__body { padding: 12px 14px 14px; gap: 3px; }
.card--lot .lot-no { font: 600 0.72rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-600); }
.card--lot .card__title { font-size: 1.1rem; }
.card--lot .artist { font-size: 0.9rem; color: var(--ink); }
.card--highlight .card__media { aspect-ratio: 1/1; }
.thumb--sm { width: 56px; height: 56px; background: #fff; border: 1px solid var(--grey-200); display: flex; align-items: center; justify-content: center; }
.thumb--sm img { max-width: 100%; max-height: 100%; object-fit: contain; }
tr.is-missing td { color: var(--grey-600); }
.card--lot .estimate { font-size: 0.85rem; color: var(--grey-700); margin-top: 4px; }
.card--lot .estimate strong { color: var(--navy); }
.card--lot .watch-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 1px solid var(--rule); display: grid; place-items: center; cursor: pointer; color: var(--grey-600); opacity: 0; transition: opacity 0.2s; }
.card--lot:hover .watch-btn, .card--lot .watch-btn.is-on { opacity: 1; }
.card--lot .watch-btn.is-on { color: var(--live); }
.card--lot .watch-btn svg { width: 16px; height: 16px; }
.card--artist .card__media { aspect-ratio: 1/1; }
.card--artist .card__title { font-size: 1.15rem; }
.card--news .card__media { aspect-ratio: 2/1; }
.card--news .card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card--event .card__media { aspect-ratio: 16/10; }
.card--event .date-block { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--navy); border-radius: var(--radius-card); padding: 6px 10px; text-align: center; box-shadow: var(--shadow-card); line-height: 1.05; }
.card--event .date-block b { display: block; font-size: 1.3rem; font-family: var(--font-serif); }
.card--event .date-block span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }
.card--flat { box-shadow: none; border: 1px solid var(--rule); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-card); }
.card--static:hover { transform: none; box-shadow: var(--shadow-card); }
.tile { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; background: var(--navy); color: #fff; aspect-ratio: 1/1; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 0.4s, opacity 0.3s; }
.tile:hover img { transform: scale(1.04); opacity: 0.45; }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; font: 700 1.1rem/1.2 var(--font-sans); color: #fff; text-transform: uppercase; letter-spacing: 0.06em; }
.tile:hover { color: #fff; text-decoration: none; }
.stat-tile { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px 20px; }
.stat-tile .num { font: 600 2rem/1 var(--font-serif); color: var(--navy); }
.stat-tile .lbl { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); margin-top: 6px; }

/* 9. Chips & badges -------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 0.68rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; background: #fff; color: var(--navy); border: 1px solid var(--rule); }
.badge--live { background: var(--live); color: #fff; border-color: var(--live); }
.badge--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.badge--upcoming { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge--closed, .badge--past { background: var(--grey-100); color: var(--grey-600); }
.badge--sold { background: var(--success); color: #fff; border-color: var(--success); }
.badge--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.badge--danger { background: #fdecec; color: var(--danger); border-color: #f5c2c2; }
.badge--online { background: #eef1fb; color: var(--navy); border-color: #d6dcf2; }
.badge--role-admin { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge--role-team { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.badge--role-user { background: var(--grey-100); color: var(--grey-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: #fff; font: 500 0.8rem var(--font-sans); color: var(--grey-700); cursor: pointer; user-select: none; }
.chip:hover, .chip.is-active { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.chip.is-active { background: var(--navy-tint); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); margin-bottom: 22px; }
.filter-bar .filter-label { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); }
.filter-bar .input { height: 40px; width: 100%; max-width: 320px; }
.filter-bar select { height: 40px; padding: 0 10px; border: 1px solid var(--grey-200); border-radius: var(--radius-input); background: #fff; font: 400 0.9rem var(--font-sans); }
.result-count { font-size: 0.85rem; color: var(--grey-600); margin: 0 0 14px; }

/* 10. Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__media { position: relative; height: 62vw; max-height: 560px; min-height: 320px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,80,0.05) 30%, rgba(15,31,80,0.55) 100%); }
.hero__caption { position: relative; background: #fff; color: var(--ink); padding: 20px var(--pad-x) 26px; }
.hero__caption .eyebrow { margin-bottom: 6px; }
.hero__caption h2 { font-size: 1.6rem; text-transform: none; margin-bottom: 6px; }
.hero__caption p { color: var(--grey-700); margin-bottom: 12px; }
.hero__caption .cluster { gap: 14px; }
.hero--slim { background: var(--navy); }
.hero--slim .hero__inner { padding-top: 60px; padding-bottom: 60px; }
.hero--slim h1 { color: #fff; }
.hero--slim p { color: #d9dceb; max-width: 720px; }
.hero--slim .eyebrow { color: var(--gold); }
.live-banner { background: #fff; border: 1px solid var(--rule); border-left: 5px solid var(--live); border-radius: var(--radius-card); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-soft); }
.live-banner strong { color: var(--live); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.value-props { display: grid; gap: 20px; grid-template-columns: 1fr; }
.value-prop { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px 22px; }
.value-prop .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.value-prop .icon svg { width: 22px; height: 22px; }
.value-prop h3 { margin-bottom: 8px; font-size: 1.2rem; }
.value-prop p { color: var(--grey-700); font-size: 0.95rem; margin: 0; }
.testimonial { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5; color: var(--navy); }
.testimonial cite { display: block; margin-top: 12px; font: 600 0.72rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-600); font-style: normal; }

/* 11. Carousels / scroll rows --------------------------------------------- */
.scroll-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.scroll-row > * { flex: 0 0 260px; scroll-snap-align: start; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 3px; }
.month-head { font: 600 0.8rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin: 34px 0 18px; }
.empty-state { background: #fff; border: 1px dashed var(--grey-200); border-radius: var(--radius-card); padding: 40px 20px; text-align: center; color: var(--grey-600); }
.empty-state h3 { margin-bottom: 8px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius-btn); background: #fff; font-size: 0.85rem; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 12. Modal (login / sign-up) ---------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 31, 80, 0.55); backdrop-filter: blur(2px); }
.modal.is-open { display: flex; }
.modal__panel { background: #fff; width: 100%; max-width: 440px; border-radius: 6px; box-shadow: var(--shadow-pop); overflow: hidden; max-height: calc(100vh - 40px); overflow-y: auto; animation: modal-in 0.2s ease-out; }
@keyframes modal-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal__head img { height: 40px; width: auto; }
.modal__close { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; color: var(--grey-600); font-size: 1.4rem; line-height: 1; border-radius: 50%; }
.modal__close:hover { background: var(--grey-100); color: var(--ink); }
.modal__body { padding: 16px 22px 26px; }
.tabs { display: flex; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; font: 600 0.8rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); cursor: pointer; margin-bottom: -1px; }
.tabs button.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.modal__foot { text-align: center; font-size: 0.85rem; color: var(--grey-600); margin-top: 16px; }
.modal__foot button { background: none; border: 0; padding: 0; color: var(--navy); font: 600 0.85rem var(--font-sans); cursor: pointer; text-decoration: underline; }
.auth-page { max-width: 460px; margin: 50px auto; background: #fff; border-radius: 6px; box-shadow: var(--shadow-card); padding: 30px 26px; }
.auth-page .brand-lockup { text-align: center; margin-bottom: 18px; }
.auth-page .brand-lockup img { height: 54px; margin: 0 auto 8px; }

/* 13. Tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table th { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); background: var(--grey-100); white-space: nowrap; }
.table tbody tr:hover { background: #fbfbfd; }
.table td .sub { display: block; font-size: 0.78rem; color: var(--grey-500); }
.table select { height: 34px; padding: 0 8px; border: 1px solid var(--grey-200); border-radius: var(--radius-input); font: 500 0.82rem var(--font-sans); background: #fff; }
/* The cell stays a table cell; the flex row lives on an inner .cluster so the buttons never leave the row. */
.table td.actions { white-space: nowrap; text-align: right; width: 1%; }
.table .actions > .cluster { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table mark { background: #fff3c4; padding: 0 1px; border-radius: 2px; }
.table tr.is-me td { background: #fffbea; }

/* 14. Catalog & lot pages -------------------------------------------------- */
.sale-head { display: grid; gap: 26px; grid-template-columns: 1fr; padding: 34px 0 28px; border-bottom: 1px solid var(--rule); }
.sale-head h1 { font-size: 2rem; margin: 6px 0 10px; }
.sale-head .when { font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.sale-head .where { color: var(--grey-600); margin-bottom: 12px; }
.sale-head .desc { color: var(--grey-700); max-width: 640px; }
.sale-head__actions { display: flex; flex-direction: column; gap: 12px; }
.sale-head__actions .icon-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* Covers are portrait or square and are never cropped (design brief §9.10): contain on white, capped height. */
.sale-head__cover { border-radius: var(--radius-card); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.sale-head__cover img { width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: top; }
.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary { cursor: pointer; padding: 16px 0; font: 600 0.9rem var(--font-sans); color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.3rem; color: var(--grey-500); }
.accordion details[open] summary::after { content: '−'; }
.accordion .acc-body { padding: 0 0 18px; color: var(--grey-700); font-size: 0.95rem; line-height: 1.6; max-width: 760px; }
.lot-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.85rem; }
.lot-nav .prev-next { display: flex; gap: 14px; }
.lot-layout { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 26px 0; }
.lot-gallery { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 16px; }
/* Fixed image height (Bonhams: 330px on phones, 430px on desktop) so landscape works do not float in a tall white square. */
/* the picture box takes the shape of the picture (whole work visible, nothing cropped) */
.lot-gallery__main { min-height: 240px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.lot-gallery__main img { max-width: 100%; max-height: 72vh; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.lot-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.lot-gallery__thumbs img { width: 70px; height: 62px; object-fit: contain; border: 1px solid var(--rule); padding: 3px; cursor: pointer; }
.lot-gallery__thumbs img.is-active { border-color: var(--ink); }
.lot-info .lot-no { font: 600 0.75rem var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-600); }
.lot-info h1 { text-transform: none; font-size: 1.9rem; margin: 6px 0 2px; }
.lot-info .lot-title { font-size: 1.15rem; color: var(--ink); margin-bottom: 14px; }
.lot-info .sale-link { font-size: 0.9rem; margin-bottom: 4px; }
.lot-info .meta { color: var(--grey-600); font-size: 0.9rem; margin-bottom: 14px; }
.estimate-box { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px 20px; margin: 16px 0; }
.estimate-box .lbl { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-600); }
.estimate-box .val { font: 600 1.5rem/1.2 var(--font-serif); color: var(--navy); }
.estimate-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.estimate-box .row:last-of-type { border-bottom: 0; }
.estimate-box .sold { color: var(--success); font-weight: 600; }
.link-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; margin: 12px 0 18px; }
.link-bar a { text-decoration: underline; color: var(--navy); }
.lot-desc { padding-top: 10px; padding-bottom: 30px; }
.lot-desc h3 { margin: 22px 0 8px; }
.lot-desc dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 0.95rem; margin: 14px 0; }
.lot-desc dt { font: 600 0.75rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); padding-top: 3px; }
.lot-desc dd { margin: 0; }
.specialist { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 14px 16px; }
.specialist .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy-tint); display: grid; place-items: center; color: var(--navy); font-weight: 600; }
.specialist .name { font-weight: 600; }
.specialist .sub { font-size: 0.82rem; color: var(--grey-600); }

/* 15. Team & admin --------------------------------------------------------- */
.dash { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 30px 0 50px; }
.dash-nav { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 10px 0; align-self: start; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: var(--grey-900); font-size: 0.92rem; }
.dash-nav a:hover, .dash-nav a.is-active { background: var(--navy-tint); color: var(--navy); text-decoration: none; box-shadow: inset 3px 0 0 var(--gold); }
.dash-nav .dash-nav__head { padding: 8px 18px 10px; font: 600 0.7rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey-500); }
.dash-main { min-width: 0; }
/* the Admin console uses the whole width of the window */
.container--console { max-width: 1700px; }
@media (min-width: 900px) { .dash--console { grid-template-columns: 220px minmax(0, 1fr); } }
.notice-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d7263d; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 2px #fff; }
.notice-dot[hidden] { display: none; }
.notice-dot--btn { position: absolute; top: -3px; right: -3px; margin: 0; width: 11px; height: 11px; }
.account-menu__btn { position: relative; }
.notice-dot--card { position: absolute; top: 10px; right: 10px; margin: 0; width: 14px; height: 14px; z-index: 2; }
.reg-card { position: relative; }
.user-cell { display: flex; gap: 10px; align-items: center; }
.avatar--sm { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 0.72rem; font-weight: 600; }
.table--users td { vertical-align: middle; }
.table--users .actions { width: 56px; text-align: right; }
.row-menu { position: relative; display: inline-block; }
.row-menu__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--grey-200); background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--grey-700); letter-spacing: 0.08em; }
.row-menu__btn:hover, .row-menu__btn[aria-expanded="true"] { background: var(--navy-tint); color: var(--navy); border-color: var(--navy-tint); }
.row-menu__pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; text-align: left; }
.row-menu__pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 4px; font: 500 0.9rem var(--font-sans); color: var(--ink); cursor: pointer; }
.row-menu__pop button:hover { background: var(--grey-100); }
.row-menu__pop button.is-danger { color: #b3261e; }
.modal--console .modal__panel { max-width: 480px; }
.modal--console .modal__head h2 { margin: 0; }
.perm-list { border: 1px solid var(--grey-200); border-radius: 6px; padding: 10px 14px 6px; margin: 0 0 10px; display: grid; gap: 6px; }
.perm-list legend { font: 600 0.72rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-600); padding: 0 6px; }
.perm-list .checkbox { margin: 0; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.reg-card { text-align: left; background: #fff; border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.reg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.reg-card__media { aspect-ratio: 16/9; background: var(--grey-100); overflow: hidden; }
.reg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.reg-card__body { padding: 14px 16px 16px; }
.reg-card__body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.reg-card__count { margin-top: 10px; font-size: 0.9rem; color: var(--grey-700); }
.reg-card__count b { font-size: 1.4rem; color: var(--navy); margin-right: 4px; }
.popup { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.popup[hidden] { display: none; }
.popup__box { position: absolute; width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,0.35); pointer-events: auto; display: flex; flex-direction: column; overflow: hidden; }
.popup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--grey-200); cursor: move; user-select: none; background: var(--grey-50, #fafafa); }
.popup__head h2 { margin: 0; }
.popup__body { padding: 14px 16px 18px; overflow: auto; }
.reg-add { position: relative; margin-bottom: 12px; }
.reg-add__results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop); z-index: 5; max-height: 240px; overflow: auto; }
.reg-add__results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font: inherit; cursor: pointer; }
.reg-add__results button:hover { background: var(--grey-100); }
.reg-add__results .sub { display: inline; margin-left: 6px; }
[data-reg-table] td:nth-child(3), [data-reg-table] td:nth-child(4), [data-reg-table] th:nth-child(3), [data-reg-table] th:nth-child(4) { white-space: nowrap; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.dash-head h1 { font-size: 1.7rem; }
.dash-head .sub { color: var(--grey-600); font-size: 0.9rem; margin-top: 4px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 26px; }
.panel { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.panel--form { max-width: 860px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.search-box { position: relative; }
.search-box .input { padding-left: 40px; height: 48px; font-size: 1rem; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--grey-500); pointer-events: none; }
.search-box .spinner { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 2px solid var(--rule); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.search-box.is-loading .spinner { display: block; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list-row:last-child { border-bottom: 0; }
.list-row .thumb { width: 64px; height: 52px; object-fit: cover; border-radius: 3px; background: var(--grey-100); flex-shrink: 0; }
.list-row .grow { flex: 1; min-width: 200px; }
.list-row .title { font-weight: 600; color: var(--navy); }
.list-row .sub { font-size: 0.82rem; color: var(--grey-600); }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 4px; box-shadow: var(--shadow-pop); font-size: 0.9rem; max-width: 340px; animation: modal-in 0.2s ease-out; }
.toast--error { background: var(--danger); }
.toast--success { background: #0f6b43; }
.confirm-inline { display: inline-flex; gap: 6px; align-items: center; }

/* 16. Misc ----------------------------------------------------------------- */
.error-page { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.error-page .code { font: 600 5rem/1 var(--font-serif); color: var(--navy-40); }
.faq details { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 1rem var(--font-sans); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--grey-500); }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 0 16px; color: var(--grey-700); line-height: 1.6; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 18px; }
.step::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 1rem var(--font-serif); }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--grey-700); font-size: 0.95rem; }
.contact-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { margin-bottom: 6px; font-size: 0.95rem; }
.schedule { display: grid; gap: 10px; }
.schedule__row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; background: #fff; border-radius: var(--radius-card); padding: 12px 16px; box-shadow: var(--shadow-soft); font-size: 0.95rem; align-items: center; }
.schedule__row b { color: var(--navy); }
.field-error { color: #b3261e; font-size: 0.82rem; margin-top: 4px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox__box { position: relative; background: #fff; padding: 14px; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(92vh - 28px); object-fit: contain; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--navy, #1d285c); color: #fff; font-size: 20px; line-height: 32px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.role-help { font-size: 0.85rem; color: var(--grey-600); }
.role-help b { color: var(--navy); }
.two-col { columns: 2; column-gap: 30px; }
.two-col li { break-inside: avoid; }

/* 17. Responsive ----------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: span 2; }
  .value-props { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__caption { position: absolute; left: 30px; bottom: 30px; min-width: 380px; max-width: 540px; padding: 22px 24px; border-radius: var(--radius-card); background: rgba(255,255,255,0.93); box-shadow: var(--shadow-hero); }
  .hero__media { height: 46vw; }
}
@media (min-width: 900px) {
  :root { --pad-x: 20px; --section-gap: 70px; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.4fr 1fr; }
  .nav-toggle { display: none; }
  .primary-nav__inner { display: flex; }
  .header-search { display: block; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .sale-head { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .lot-layout { grid-template-columns: 1.1fr 0.9fr; }
  .dash { grid-template-columns: 230px 1fr; }
  .brand img { height: 72px; }
  .hero__caption h2 { font-size: 1.85rem; }
}
@media (min-width: 1200px) {
  :root { --pad-x: 25px; }
  .scroll-row > * { flex-basis: 275px; }
}
@media (max-width: 999px) {
  .topbar__contact { display: none; }
}
@media (max-width: 899px) {
  /* The utility strip is desktop-only (design brief §3.1); phones get the single 64px brand bar. */
  .topbar { display: none; }
  .table { min-width: 560px; }
}
@media print {
  .site-header, .site-footer, .modal, .toast-wrap { display: none !important; }
}

/* === team dashboard === */
.page-team main { border-top: 3px solid var(--gold); }
.page-team .breadcrumb { padding-top: 18px; }
a.stat-tile { display: block; color: inherit; }
a.stat-tile:hover { text-decoration: none; box-shadow: var(--shadow-pop); }
.stats--inline { margin-bottom: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 0; }
.panel-head .count { display: inline-block; font: 600 0.72rem/1 var(--font-sans); color: var(--grey-600); background: var(--grey-100); border-radius: var(--radius-pill); padding: 5px 9px; vertical-align: middle; margin-left: 4px; }
.team-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 6px; }
.team-filter .search-box { flex: 1; min-width: 220px; }
.team-filter .search-box .input { height: 42px; font-size: 0.95rem; }
.team-list { margin-top: 4px; }
.team-list .empty-state { margin-top: 10px; }
.team-row .thumb { width: 72px; height: 54px; object-fit: cover; }
.team-row .thumb--square { width: 54px; height: 54px; border-radius: 50%; }
.team-row__title { gap: 8px; }
.team-row .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.team-row .sub b { color: var(--ink); }
.dash-head .sub .badge { vertical-align: middle; }
.dash-head h1 { overflow-wrap: anywhere; }
/* form pages: form + sticky live preview */
.team-form-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.team-form { min-width: 0; }
.team-form .panel h2 { font-size: 1.15rem; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.team-form .panel h2 .muted { font-family: var(--font-sans); font-weight: 400; }
.team-form > .form-msg { margin-bottom: 16px; }
.team-preview { min-width: 0; }
.team-preview > .eyebrow { display: block; margin-bottom: 10px; }
.team-preview .card { max-width: 340px; }
.team-preview .card__media { pointer-events: none; }
.lot-desc--preview { padding: 16px 0 0; font-size: 0.9rem; max-width: 340px; }
.lot-desc--preview .lot-info h3 { font-size: 1.35rem; text-transform: none; margin: 2px 0; }
.lot-desc--preview .lot-title { font-size: 1rem; margin-bottom: 8px; }
.lot-desc--preview p { margin-bottom: 4px; }
.lot-desc--preview p:empty { display: none; }
.form-grid--3 .span-3 { grid-column: 1 / -1; }
.form-actions--bar { position: sticky; bottom: 0; z-index: 5; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(4px); border-top: 1px solid var(--rule); padding: 14px 16px; margin: 0 -4px; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.form-actions--bar .push-right { margin-left: auto; }
.btn.is-armed { background: var(--danger); color: #fff; }
.form-field .form-label { margin: 0; }
.form-field .checkbox, .form-field .radio-card { text-transform: none; letter-spacing: 0; font: 400 0.9rem/1.4 var(--font-sans); color: var(--ink); }
.checkbox b { font-weight: 600; color: var(--navy); }
.checkbox .help { font-weight: 400; }
/* radio cards */
.radio-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card__body { display: block; height: 100%; border: 2px solid var(--rule); border-radius: var(--radius-card); padding: 12px 14px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.radio-card__body b { display: block; font-size: 0.9rem; color: var(--navy); }
.radio-card__body small { display: block; font-size: 0.78rem; line-height: 1.35; color: var(--grey-600); margin-top: 3px; }
.radio-card:hover .radio-card__body { border-color: var(--grey-400); }
.radio-card input:checked + .radio-card__body { border-color: var(--navy); background: var(--navy-tint); box-shadow: inset 0 0 0 1px var(--navy); }
.radio-card input:focus-visible + .radio-card__body { box-shadow: 0 0 0 3px var(--navy-tint), inset 0 0 0 1px var(--navy); }
/* image picker */
.image-picker__preview { cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.image-picker__preview:hover { border-color: var(--navy); }
.image-picker.is-drag .image-picker__preview { border-color: var(--navy); background-color: var(--navy-tint); }
.image-picker--cover .image-picker__preview { aspect-ratio: 2/1; max-width: 420px; }
.image-picker--cover .image-picker__preview img { object-fit: cover; }
.image-picker.is-uploading .btn { opacity: 0.55; pointer-events: none; }
.image-picker .input { max-width: 100%; }
/* artist picker */
.picker { position: relative; }
.picker__menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 3px; box-shadow: var(--shadow-pop); z-index: 30; max-height: 320px; overflow-y: auto; padding: 6px; }
.picker__item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 3px; cursor: pointer; font: 400 0.9rem var(--font-sans); color: var(--ink); }
.picker__item b { display: block; color: var(--navy); font-weight: 600; }
.picker__item span { display: block; font-size: 0.78rem; color: var(--grey-600); }
.picker__item:hover, .picker__item.is-active { background: var(--navy-tint); }
.picker__item--add { color: var(--navy); font-weight: 600; border-top: 1px solid var(--rule); border-radius: 0; margin-top: 4px; padding-top: 12px; }
.picker__empty { padding: 10px; font-size: 0.85rem; color: var(--grey-600); }
.picker__linked { margin-top: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }
.artist-mini { border: 1px dashed var(--grey-200); border-radius: var(--radius-card); padding: 14px; background: var(--grey-100); display: grid; gap: 12px; margin-top: 4px; }
.artist-mini .form-actions { margin-top: 0; }
.form-grid--mini { gap: 10px; }
/* lot manager */
.lot-manager-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.lot-manager-head .cover { width: 120px; height: 90px; object-fit: cover; border-radius: 3px; background: var(--grey-100); flex-shrink: 0; }
.lot-manager-head .stats { flex: 1; min-width: 240px; margin: 0; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lot-manager-head .stat-tile { box-shadow: none; border: 1px solid var(--rule); padding: 12px 14px; }
.lot-manager-head .stat-tile .num { font-size: 1.5rem; }
.lot-table { min-width: 780px; }
.lot-table th, .lot-table td { padding: 10px 10px; }
.lot-table .thumb-cell { width: 66px; min-width: 66px; padding-right: 0; }
.lot-table .lot-thumb { width: 56px; height: 56px; min-width: 56px; max-width: none; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 3px; }
.lot-table td .sub { white-space: normal; }
.lot-table .lot-link b { color: var(--navy); }
.lot-table .est-cell { white-space: nowrap; }
.lot-table .est-cell .sub { text-align: right; }
.lot-table .status-cell { min-width: 118px; }
.lot-table .sold-cell { min-width: 118px; }
.lot-table .actions .btn--sm { padding: 4px 9px; }
.lot-table .results-status { height: 34px; }
.lot-table .results-price { width: 120px; height: 34px; padding: 0 8px; border: 1px solid var(--grey-200); border-radius: var(--radius-input); font: 500 0.85rem var(--font-sans); text-align: right; background: #fff; }
.lot-table .results-price:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.save-state { display: block; font-size: 0.72rem; color: var(--grey-600); margin-top: 4px; min-height: 1em; white-space: normal; max-width: 170px; text-align: right; }
.save-state.is-ok { color: #0f6b43; }
.save-state.is-err { color: var(--danger); }
.save-state.is-warn { color: #9a6b00; }
.results-help { margin-bottom: 14px; }
[data-lot-manager].is-results .lot-table tbody td { background: #fffdf3; }
/* artists page */
.artist-editor { flex-basis: 100%; width: 100%; background: var(--grey-100); border-radius: var(--radius-card); padding: 16px; margin-top: 4px; }
.artist-editor--new { margin-bottom: 16px; border: 1px solid var(--rule); }
.artist-editor .image-picker__preview { max-width: 180px; aspect-ratio: 1/1; }
.artist-editor .form-actions { align-items: center; }
@media (min-width: 640px) {
  .stats--5 { grid-template-columns: repeat(3, 1fr); }
  .radio-cards { grid-template-columns: repeat(3, 1fr); }
  .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid--mini { grid-template-columns: repeat(2, 1fr); }
  .form-grid--artist { grid-template-columns: repeat(4, 1fr); }
  .form-grid--artist .span-2 { grid-column: 1 / -1; }
  .form-grid--artist .form-field:nth-child(-n+2) { grid-column: span 2; }
}
@media (min-width: 900px) {
  .stats--5 { grid-template-columns: repeat(5, 1fr); }
  .lot-manager-head .stats { grid-template-columns: repeat(4, 1fr); }
  .form-grid--mini { grid-template-columns: repeat(5, 1fr); }
  .form-grid--mini .span-2 { grid-column: span 2; }
}
@media (min-width: 1200px) {
  .team-form-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .team-preview { position: sticky; top: 20px; }
}
@media (max-width: 639px) {
  .form-actions--bar .btn { flex: 1 1 auto; }
  .form-actions--bar .push-right { flex-basis: 100%; margin-left: 0; }
  .team-row .actions { width: 100%; }
  .team-row .actions .btn { flex: 1; }
}

/* === public pages === */
/* Shared helpers used by the public views (home, auctions, catalog, lot, events, artists, news, info pages). */
.mb-0 { margin-bottom: 0 !important; }
.lead-serif { font: 500 1.35rem/1.4 var(--font-serif); color: var(--navy); max-width: 820px; }
.eyebrow--live { color: var(--live); }
.eyebrow--live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: middle; animation: pulse 1.6s infinite; }
.btn--on-navy { background: transparent; border-color: #fff; color: #fff; }
.btn--on-navy:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn.is-registered { background: #fff; border-color: var(--success); color: #0f6b43; }
.btn.is-registered:hover { background: #e8f8f0; border-color: var(--success); color: #0f6b43; }
.btn-icon.is-on { color: var(--live); }
.status-label { font: 600 0.8rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); }
.status-label--live { color: var(--live); }
.status-label--closed { color: var(--grey-600); }
.embed-16x9 { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-card); overflow: hidden; }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chip__count { font-size: 0.72rem; color: var(--grey-500); margin-left: 4px; }
.chip.is-active .chip__count { color: var(--navy); }
.chip--clear { border-style: dashed; }
.chip.is-disabled { opacity: 0.5; pointer-events: none; }
a.chip:hover { text-decoration: none; }
.icon-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Filter bars (auctions, catalog, events, artists, search) */
.filter-bar--stack { flex-direction: column; align-items: stretch; gap: 12px; }
.filter-bar__search { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar__search .input { flex: 1 1 240px; max-width: none; }
.filter-bar__search select { height: 40px; padding: 0 10px; border: 1px solid var(--grey-200); border-radius: var(--radius-input); background: #fff; font: 400 0.9rem var(--font-sans); }
.filter-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.search-form { max-width: 640px; margin: 12px 0 16px; }
.search-tabs { margin-bottom: 8px; }

/* Home */
.live-banner__text { font-size: 0.9rem; color: var(--grey-700); margin-top: 2px; }
.hero__caption .cluster { margin-top: 4px; }
.mission__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.mission__inner h2 { text-transform: uppercase; font-size: 1.85rem; margin-bottom: 18px; }
.mission__inner p { font-size: 1.05rem; line-height: 1.7; color: var(--grey-700); }
.cta-band h2 { font-size: 2rem; margin: 6px 0 10px; }
.cta-band__text { max-width: 640px; margin: 0 auto 22px; color: #d9dceb; }

/* Sale (catalog) page */
.sale-head__info > .cluster { margin-bottom: 4px; }
.sale-head__actions { margin-top: 18px; }
.read-more { position: relative; max-height: 190px; overflow: hidden; }
.read-more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(0deg, var(--bg) 11%, rgba(255,255,255,0)); }
.read-more.is-open { max-height: none; }
.read-more.is-open::after { display: none; }
.read-more__btn { background: none; border: 0; padding: 0; margin: 4px 0 10px; color: var(--navy); font: 600 0.8rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; text-decoration: underline; }
.highlights > * { flex-basis: 220px; }
.highlight { display: flex; flex-direction: column; gap: 10px; color: inherit; border-right: 1px solid var(--rule); padding-right: 16px; }
.highlight:hover { text-decoration: none; }
.highlight__media { aspect-ratio: 1/1; background: #fff; border-radius: var(--radius-card); overflow: hidden; }
.highlight__media img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; padding: 8px; }
.highlight__caption { display: grid; gap: 2px; font-size: 0.85rem; color: var(--grey-700); }
.highlight__caption strong { color: var(--navy); }
.highlight__caption em { font-style: normal; color: var(--ink); }
.highlight__caption .lot-no { font: 600 0.7rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); }
.lot-cell[hidden] { display: none !important; }
.table--compact { min-width: 0; }
.table--compact th { width: 60px; text-align: center; }
.sticky-bar { display: none; }
.host-grid .host-card { height: 100%; }
.host-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.host-card__photo { width: 115px; height: 115px; border-radius: 50%; overflow: hidden; background: var(--grey-100); flex-shrink: 0; }
.host-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.host-card__body { width: 100%; }
.host-card__body h3 { font-size: 1.25rem; }
.host-card__role { font-size: 0.85rem; color: var(--grey-600); margin-top: 4px; }
.host-card__bio { margin-top: 8px; text-align: left; font-size: 0.9rem; color: var(--grey-700); }
.host-card__bio summary { cursor: pointer; color: var(--navy); font: 600 0.75rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; text-align: center; list-style: none; }
.host-card__bio summary::-webkit-details-marker { display: none; }
.host-card__bio p { margin: 10px 0 0; line-height: 1.6; }
.host-card__contact { display: grid; gap: 4px; margin-top: 8px; font-size: 0.78rem; min-width: 0; }
.host-card__contact a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; overflow-wrap: anywhere; min-width: 0; }
.host-card__contact svg { flex-shrink: 0; }
.specialist .sub, .contact-card p, .details-list dd { overflow-wrap: anywhere; }
.host-card__contact svg { width: 14px; height: 14px; }
.host-card--compact { padding: 18px 14px; }
.host-card--compact .host-card__photo { width: 84px; height: 84px; }

/* Lot page */
.lot-nav .link-upper--back::after, .lot-nav .link-upper--prev::after { content: ''; }
.lot-nav .link-upper--back::before, .lot-nav .link-upper--prev::before { content: '← '; }
.lot-gallery__main { position: relative; }
.lot-gallery__main .badge { position: absolute; top: 10px; left: 10px; }
.watch-btn--lg { position: absolute; bottom: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid var(--rule); display: grid; place-items: center; cursor: pointer; color: var(--grey-600); }
.watch-btn--lg.is-on { color: var(--live); }
.watch-btn--lg svg { width: 18px; height: 18px; }
.lot-actions { gap: 18px; margin: 4px 0; }
.bid-box { margin: 0; }
.lot-desc__lines { font-size: 1rem; line-height: 1.6; }
.artist-blurb { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 16px; }
.artist-blurb__photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--grey-100); }
.artist-blurb__photo img { width: 100%; height: 100%; object-fit: cover; }
.specialist .avatar--photo { overflow: hidden; flex-shrink: 0; }
.specialist .avatar--photo img { width: 100%; height: 100%; object-fit: cover; }

/* Events */
.open-call { display: grid; gap: 10px; justify-items: start; }
.open-call h2 { font-size: 1.6rem; }
.open-call p { max-width: 760px; color: var(--grey-700); margin: 0; }
.event-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.event-hero__media { position: absolute; inset: 0; }
.event-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.event-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,23,80,0.35), rgba(1,23,80,0.75)); }
.event-hero__inner { position: relative; text-align: center; padding: 50px var(--pad-x) 46px; max-width: 820px; }
.event-hero__inner h1 { color: #fff; margin: 12px 0 10px; }
.event-hero__when { font-size: 1.05rem; margin-bottom: 4px; }
.event-hero__where { color: #d9dceb; margin-bottom: 18px; }
.event-hero__ctas { justify-content: center; }
.event-hero .badge--past { background: rgba(255,255,255,0.15); color: #fff; border-color: transparent; }
.event-body { margin-top: 18px; }
.event-body aside .panel h2 { font-size: 1.2rem; }
.details-list { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 0.92rem; margin: 0 0 14px; }
.details-list dt { font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); padding-top: 3px; }
.details-list dd { margin: 0; }

/* Artists */
.letter-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.letter-bar a, .letter-bar span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--radius-btn); font: 600 0.8rem var(--font-sans); }
.letter-bar a { color: var(--navy); background: var(--navy-tint); }
.letter-bar a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.letter-bar span { color: var(--grey-400); }
.artist-hero { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 30px 0 0; }
.artist-hero__portrait { max-width: 420px; aspect-ratio: 1/1; border-radius: var(--radius-card); overflow: hidden; background: var(--grey-100); box-shadow: var(--shadow-card); }
.artist-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero__media img { border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.valuation-card { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.valuation-card h2 { font-size: 1.6rem; margin: 4px 0 6px; }
.valuation-card p { max-width: 620px; margin: 0; color: var(--grey-700); }

/* News */
.news-feature { display: grid; grid-template-columns: 1fr; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.news-feature__media { aspect-ratio: 2/1; background: var(--grey-100); display: block; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__body { padding: 24px; display: grid; gap: 10px; align-content: center; justify-items: start; }
.news-feature__body h2 { font-size: 1.7rem; }
.news-feature__body p { color: var(--grey-700); margin: 0; }
.news-post__head { padding: 20px 0 16px; max-width: 860px; }
.news-post__head h1 { margin: 6px 0 8px; }
.news-post__hero { border-radius: var(--radius-card); overflow: hidden; background: var(--grey-100); margin-bottom: 26px; max-height: 520px; }
.news-post__hero img { width: 100%; height: 100%; object-fit: cover; }
.source-box { background: #fff; border-left: 3px solid var(--gold); padding: 14px 18px; font-size: 0.9rem; color: var(--grey-700); margin: 24px 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.newsletter--light input { border-color: var(--grey-200); background: #fff; color: var(--ink); }
.newsletter--light input::placeholder { color: var(--grey-500); }

/* Who we are / How to watch / Giving back */
.stats--wide .stat-tile { text-align: center; }
.affiliate-list { display: grid; gap: 8px; margin-bottom: 14px; }
.affiliate-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.quote-grid { columns: 1; column-gap: 20px; }
.quote-grid .testimonial { break-inside: avoid; margin-bottom: 20px; font-size: 1.05rem; }
.player-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.player-card__body { padding: 18px 20px 20px; }
.player-card__status { font-size: 1rem; margin-bottom: 14px; }
.player-card__status .badge { vertical-align: middle; margin-right: 6px; }
.numbered { list-style: decimal; padding-left: 1.3em; margin: 0 0 14px; }
.numbered li { margin-bottom: 6px; }
.provider-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.provider { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 16px; display: grid; gap: 8px; align-content: center; justify-items: center; text-align: center; min-height: 120px; }
.provider img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.provider:hover img { filter: none; opacity: 1; }
.provider strong { color: var(--navy); }
.provider span { font-size: 0.8rem; color: var(--grey-600); }
.photo-card { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--grey-100); }
.statements { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.statements .lead-serif { margin: 0 auto 1.2em; }
.pull-quote { padding: 34px 0; }
.pull-quote__text { font: 600 1.6rem/1.3 var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; color: var(--gold); }
.stories { display: grid; gap: 30px; }
.story-row { display: grid; gap: 20px; grid-template-columns: 1fr; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.story-row__media { background: var(--grey-100); }
.story-row__media img { width: 100%; max-height: 420px; object-fit: cover; }
.story-row__media span { display: block; padding: 8px 16px; }
.story-row__body { padding: 20px 22px 24px; }
.story-row__body h3 { margin-bottom: 10px; }
.story-row__body p { color: var(--grey-700); line-height: 1.65; }
.story-quote { margin: 12px 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--bg); font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); }
.story-quote cite { display: block; margin-top: 6px; font: 600 0.72rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600); font-style: normal; }
.story-more { margin-bottom: 12px; }
.story-more summary { cursor: pointer; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.partner-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.partner { display: grid; place-items: center; text-align: center; min-height: 72px; padding: 12px; background: var(--bg); border-radius: var(--radius-card); border: 1px solid var(--rule); font: 600 0.82rem var(--font-sans); color: var(--grey-700); }
.partner:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }

/* Connect / FAQs / guides */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); color: var(--navy); }
.social-row a:hover { background: var(--navy); color: #fff; }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }
.social-row a svg[stroke] { fill: none; }
.faq-layout { display: grid; gap: 30px; grid-template-columns: 1fr; padding-top: 10px; }
.faq-group-title { font-size: 1.4rem; margin: 26px 0 12px; }
.faq-main > .faq-group-title:first-child { margin-top: 0; }
.guide-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px; }
.guide-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.guide-card p { margin: 0; color: var(--grey-700); font-size: 0.95rem; line-height: 1.6; }
.notice { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: var(--radius-card); padding: 18px 20px; }

@media (min-width: 640px) {
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { columns: 2; }
  .story-row { grid-template-columns: 2fr 3fr; }
  .story-row--flip .story-row__media { order: 2; }
  .story-row--text { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 900px) {
  .artist-hero { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .faq-layout { grid-template-columns: 230px 1fr; }
  .faq-nav { position: sticky; top: 20px; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .partner-grid { grid-template-columns: repeat(5, 1fr); }
  .quote-grid { columns: 3; }
  .details-card { position: sticky; top: 20px; }
  .event-hero__inner { padding: 70px var(--pad-x) 64px; }
  .connect-grid { grid-template-columns: 0.9fr 1.1fr; }
}
@media (max-width: 899px) {
  .sticky-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--pad-x); background: rgba(255,255,255,0.96); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0,0,0,0.08); }
  .page-catalog .site-footer { padding-bottom: 70px; }
}

/* === integration fixes (agent integrate) === */
/* Form fields: when a sibling field in the same row has help text, do not stretch the shorter
   field's rows (that pushed its input down and misaligned the two inputs). */
.form-field { align-content: start; }
/* Admin users table: tighter cells (and phone folded under email) so every column, including the
   Delete button, fits inside the dashboard main column at the 1170px container width. */
[data-users-table] { font-size: 0.85rem; }
[data-users-table] th, [data-users-table] td { padding: 10px 10px; }
[data-users-table] td .sub { font-size: 0.74rem; }
[data-users-table] td:nth-child(4) { white-space: nowrap; }
[data-users-table] select { font-size: 0.78rem; padding: 0 4px; }
/* Header nav: keep all eight links on one row at every desktop width. The link row never wraps;
   the search box shrinks first (min 130px). Measured: 885px of links + 240px search > 1120px content. */
@media (min-width: 900px) {
  .primary-nav__inner { gap: 14px; }
  .primary-nav ul { flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; }
  .primary-nav a { padding: 12px 8px; font-size: 0.8rem; white-space: nowrap; }
  .header-search { flex: 0 1 240px; min-width: 130px; }
  .header-search input { width: 100%; min-width: 0; }
}
@media (min-width: 1200px) {
  .primary-nav a { padding: 12px 11px; font-size: 0.875rem; }
}

/* === review fixes (agent fix) === */
/* Applied from the design / requirements / security review. Each group names the finding it closes. */

/* Keyboard focus: one brand ring on every interactive element (design brief §9.3). */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, .chip:focus-visible, .card__link:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy-40); outline-offset: 2px; border-radius: 3px;
}
.header-search input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--navy-tint); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible, .input:focus-visible { outline: none; }

/* Lot cards: hairline on hover / focus; heart reachable by keyboard and always visible on touch screens. */
.card--lot:hover, .card--lot:focus-within { box-shadow: 0 0 0 1px var(--rule), var(--shadow-card); }
.card--lot .watch-btn:focus-visible, .card--lot:focus-within .watch-btn { opacity: 1; }
.watch-btn:focus-visible, .watch-btn--lg:focus-visible { opacity: 1; outline: 3px solid var(--navy-40); outline-offset: 2px; border-radius: 50%; }
@media (hover: none) {
  .card--lot .watch-btn { opacity: 1; }
}
/* Phones keep Bonhams' 2-up lot grid; every other grid is single-column below 640px. */
@media (max-width: 639px) {
  .lot-grid, .grid:has(> .card--lot), .grid:has(> .lot-cell) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  /* Square artist portraits also read well 2-up. */
  .artist-grid, .grid:has(> .card--artist) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .artists-featured { display: none; }
}
/* Long unbreakable strings (email addresses) inside narrow cards must wrap instead of widening the page. */
.guide-card p, .faq-body, .card__meta, .details-list dd, .contact-card p, .estimate-box .row, .specialist .sub { overflow-wrap: anywhere; }

/* Auction cards + sale header: covers are shown whole (contain, left/top, max 330px) — never cropped. */
.card--auction .card__media { aspect-ratio: auto; background: #fff; }
.card--auction .card__media img { height: auto; max-height: 330px; object-fit: contain; object-position: left top; }
.card__foot { flex-wrap: wrap; row-gap: 6px; }
.card__foot .card__status, .card__foot .link-upper { letter-spacing: 0.06em; }
@media (min-width: 900px) {
  .lot-gallery__main { min-height: 320px; }
}

/* Dashboard side-nav (team, admin, account, FAQ topics) becomes a scrollable chip row on phones/tablets. */
@media (max-width: 899px) {
  .dash-nav { display: flex; gap: 4px; overflow-x: auto; padding: 6px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav__head { display: none; }
  .dash-nav a { white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-pill); box-shadow: none; font-size: 0.85rem; }
  .dash-nav a:hover, .dash-nav a.is-active { box-shadow: none; }
  .dash-nav a.is-active { background: var(--navy); color: #fff; }
  .faq-layout { gap: 16px; }
}
/* Header account button: never wraps a long name onto two lines. */
.account-menu__btn .name { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 399px) {
  .account-menu__btn .name { display: none; }
}
/* Admin console shares the gold staff border with the team pages (design brief §3.22). */
.page-admin main { border-top: 3px solid var(--gold); }
/* Prev / Next pager (admin users table). */
.pagination button { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius-btn); background: #fff; font: 500 0.85rem var(--font-sans); color: var(--navy); cursor: pointer; }
.pagination button:hover:not([disabled]) { border-color: var(--navy); }
.pagination button[disabled] { opacity: 0.45; cursor: default; }
.pagination--pager { margin: 18px 0 6px; align-items: center; }
/* Lot manager table: the title column gets the room (sub-lines clipped to one line each); numeric / status /
   action columns shrink to fit, and Edit / Delete stack so the whole table fits the dashboard column at 1440px. */
.lot-table { min-width: 720px; }
.lot-table th, .lot-table td { padding: 10px 8px; }
.lot-table th:nth-child(3), .lot-table td:nth-child(3) { width: 36%; min-width: 180px; max-width: 0; }
.lot-table td:nth-child(3) .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot-table .est-cell { width: 1%; white-space: nowrap; font-size: 0.85rem; }
.lot-table .status-cell, .lot-table .sold-cell { width: 1%; min-width: 0; white-space: nowrap; }
.lot-table td.actions { width: 1%; }
.lot-table td.actions .cluster { flex-direction: column; align-items: stretch; gap: 4px; }
.lot-table td.actions .btn { justify-content: center; }
.lot-table .sold-cell .save-state { white-space: normal; }
[data-lot-manager].is-results .lot-table .status-cell, [data-lot-manager].is-results .lot-table .sold-cell { min-width: 118px; }
/* Artists index: one alphabetical grid; the first card of each letter carries the anchor and a small tag. */
.artist-cell { position: relative; scroll-margin-top: 20px; }
.artist-cell--first .letter-tag { position: absolute; top: 10px; left: 10px; z-index: 2; min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; background: var(--navy); color: #fff; border-radius: var(--radius-btn); font: 600 0.8rem var(--font-sans); letter-spacing: 0.06em; box-shadow: var(--shadow-card); }
.letter-bar a.is-muted { opacity: 0.35; }
/* Home mission statement: the full six paragraphs, the last three behind a "Read the full statement" toggle. */
.mission__more { margin-bottom: 18px; }
.mission__more summary { cursor: pointer; list-style: none; margin-bottom: 12px; }
.mission__more summary::-webkit-details-marker { display: none; }
.mission__more[open] summary { display: none; }

/* === meeting-notes changes (2026-09-07) === */
.hero--video .hero__media { background: #0b1440; }
.hero--video .hero__media::after { background: linear-gradient(180deg, rgba(15,31,80,0) 40%, rgba(15,31,80,0.45) 100%); }
/* the video box is the video's own 16:9 shape, so nothing is cropped off the top or bottom */
.hero--video .hero__media { height: auto; aspect-ratio: 16 / 9; max-height: none; min-height: 0; }
.hero__video { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__caption .hero__title { font-size: 2.1rem; line-height: 1.1; text-transform: none; margin-bottom: 8px; }
.hero__live-word { color: var(--live); font-weight: 700; letter-spacing: 0.04em; }
@media (min-width: 900px) { .hero__caption .hero__title { font-size: 2.6rem; } .hero--video .hero__media { height: auto; max-height: none; } }
.card--auction .card__media { aspect-ratio: 4/3; background: #eef0f6; }
.card--auction .card__media img { object-fit: contain; padding: 12px; }
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.countdown__unit { min-width: 84px; background: #fff; color: #0c0c0c; padding: 14px 10px; text-align: center; }
.countdown__unit b { display: block; font: 600 2.6rem/1 var(--font-serif); color: #0c0c0c; }
.countdown__unit span { display: block; margin-top: 6px; font: 600 0.65rem var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: #0c0c0c; }
.watch-panel { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 30px 22px; text-align: center; }
.watch-panel h2 { text-transform: none; }
.watch-panel__frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; margin: 18px 0; }
.watch-panel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

html { scroll-padding-top: 130px; }
.topbar__times { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.brand--live img { height: 74px; }
@media (min-width: 900px) { .brand--live img { height: 92px; } }

/* sticky header: compact once the page is scrolled (see site.js for the anti-flicker thresholds) */
.site-header.is-stuck .header-main { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.site-header.is-stuck .brand img { height: 44px; }
.site-header.is-stuck .brand--live img { height: 56px; }
.site-header.is-stuck .primary-nav a { padding-top: 8px; padding-bottom: 8px; }
.site-header .header-main, .site-header .brand img, .site-header .primary-nav a { transition: height 0.2s ease, padding 0.2s ease, min-height 0.2s ease; }

/* footer trust bar (badges, cards, links, phone orders, follow) */
.trustbar { background: #fff; color: var(--navy); border-top: 1px solid var(--rule); padding: 22px 0 14px; }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 34px; }
.trustbar__badge img, img.trustbar__badge { height: 90px; width: auto; display: block; }
.trustbar__h { display: block; font: 700 0.85rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 4px; }
.trustbar__accept { text-align: center; }
.trustbar__accept img { height: 32px; width: auto; margin: 0 auto; }
.trustbar__links { display: grid; gap: 4px; font-size: 0.9rem; }
.trustbar__links a { color: var(--navy); }
.trustbar__phone { display: block; color: var(--navy); text-decoration: none; }
.trustbar__phone strong { font: 600 1.05rem var(--font-sans); }
.trustbar__follow { text-align: center; }
.trustbar__follow a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--navy); }
.trustbar__follow svg { width: 15px; height: 15px; fill: currentColor; }
.trustbar__line { text-align: center; margin: 18px 0 0; font-size: 0.95rem; color: var(--navy); }
@media (max-width: 640px) { .trustbar__inner { gap: 16px 22px; } .trustbar__badge img, img.trustbar__badge { height: 64px; } }
.site-footer .trustbar a, .site-footer .trustbar a:hover { color: var(--navy); }
.schedule__logo { height: 34px; width: auto; justify-self: end; }
.schedule__chan { font: 700 0.9rem var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); align-self: center; }
.table--schedule .input { height: 38px; min-width: 150px; }

/* ---- the inventory link (2026-09-21): product-code row on the lot form, import picker ---- */
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; min-width: 0; }
.field--span2 { grid-column: span 2; }
.row-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-row-main .sub { color: #666; font-size: 0.9em; }

/* ---- the show-sheet upload page (/team/catalogs/upload) ---- */
.sheet-drop { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 34px 20px; border: 2px dashed var(--rule); border-radius: var(--radius-card); background: var(--grey-100); cursor: pointer; }
.sheet-drop:hover, .sheet-drop.is-over { border-color: var(--navy); background: var(--navy-tint); }
.sheet-drop input[type=file] { width: 1px; height: 1px; opacity: 0; position: absolute; }
.sheet-drop .sub { color: var(--grey-600); font-size: 0.85rem; }
#sheet-preview .form-grid { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
#sheet-preview .form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { #sheet-preview .form-grid { grid-template-columns: 1fr; } }
#sheet-preview .notice { margin-bottom: 16px; font-size: 0.9rem; }
#sheet-preview .notice--warn { border-left-color: var(--danger); }
.sheet-cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 1100px) { .sheet-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheet-cards { grid-template-columns: minmax(0, 1fr); } }
.card--edit { overflow: visible; }
.card--edit:hover, .card--edit:focus-within { box-shadow: 0 0 0 1px var(--rule), var(--shadow-card); }
.card--edit .card__media { aspect-ratio: 1/1; background: #fff; border-bottom: 1px solid var(--rule); }
.card--edit .card__media--btn { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; font: inherit; color: inherit; text-align: center; }
.card--edit .card__media--btn:hover { background: var(--grey-100); }
.card--edit .card__media--btn:hover img { opacity: 0.85; }
.card--edit .card__noimg small { display: block; font-size: 0.75rem; color: var(--grey-500); margin-top: 2px; }
.card--edit .card__count { position: absolute; right: 8px; bottom: 8px; top: auto; left: auto; }
.modal--pictures .modal__panel--wide { max-width: 720px; }
.modal--preview { padding: 12px; }
.modal--preview .modal__panel--page { max-width: none; width: 100%; height: calc(100vh - 24px); max-height: none; display: flex; flex-direction: column; overflow: hidden; }
.modal--preview .modal__head { padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.modal--preview .modal__head h2 { font-size: 1.1rem; margin: 0; }
.preview-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.modal--pictures .modal__head h2 { font-size: 1.2rem; margin: 0; }
.pictures-stage { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: start; }
.pictures-main { height: 440px; display: grid; place-items: center; background: var(--grey-100); border-radius: var(--radius-card); overflow: hidden; }
.pictures-main.is-over { outline: 2px dashed var(--navy); outline-offset: -6px; }
.pictures-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pictures-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; }
.pictures-thumb { position: relative; width: 64px; height: 64px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; flex: none; }
.pictures-thumb:hover { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-tint); }
.pictures-thumb img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pictures-thumb__x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid var(--rule); color: var(--danger); font: 700 13px/16px var(--font-sans); text-align: center; opacity: 0; }
.pictures-thumb:hover .pictures-thumb__x { opacity: 1; }
.pictures-thumb__x:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.pictures-mainbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 14px; font-size: 0.85rem; min-height: 32px; }
.pictures-drop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; border: 2px dashed var(--rule); border-radius: var(--radius-card); background: var(--grey-100); cursor: pointer; }
.pictures-drop:hover, .pictures-drop.is-over { border-color: var(--navy); background: var(--navy-tint); }
.pictures-drop input[type=file] { width: 1px; height: 1px; opacity: 0; position: absolute; }
.pictures-drop .sub { color: var(--grey-600); font-size: 0.8rem; }
.pictures-zoom { position: fixed; z-index: 120; width: 300px; height: 300px; padding: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow-pop); pointer-events: none; display: grid; place-items: center; }
.pictures-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
#sheet-draft-note { margin-bottom: 18px; }
.lot-gallery__thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.lot-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.lot-gallery__thumb.is-active, .lot-gallery__thumb:hover { border-color: var(--navy); }
.card--edit .card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card--edit .card__noimg { height: 100%; display: grid; place-items: center; color: var(--grey-500); font-size: 0.85rem; background: var(--grey-100); }
.card--edit .card__body { padding: 12px 14px 8px; gap: 4px; }
.card--edit textarea, .card--edit input[type=text], .card--edit input[type=number] { display: block; width: 100%; margin: 0; border: 0; border-bottom: 1px dashed transparent; border-radius: 0; background: transparent; padding: 1px 0; height: auto; min-height: 0; line-height: 1.3; resize: none; overflow: hidden; font-family: var(--font-sans); }
.card--edit textarea:hover, .card--edit input[type=text]:hover, .card--edit input[type=number]:hover { border-bottom-color: var(--rule); }
.card--edit textarea:focus, .card--edit input[type=text]:focus, .card--edit input[type=number]:focus { outline: none; border-bottom: 1px solid var(--navy); box-shadow: none; background: var(--navy-tint); }
.card--edit textarea { min-height: 1.3em; }
.card--edit .lot-no { display: flex; align-items: baseline; gap: 4px; }
.card--edit .lot-no input { width: 5em; display: inline-block; font: inherit; letter-spacing: inherit; color: inherit; -moz-appearance: textfield; }
.card--edit .lot-no input::-webkit-inner-spin-button, .card--edit .lot-no input::-webkit-outer-spin-button { -webkit-appearance: none; }
.card--edit textarea.artist { font-size: 0.9rem; color: var(--ink); }
.card--edit textarea.card__title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.card--edit textarea.card__meta, .card--edit input.card__meta { font-size: 0.85rem; color: var(--grey-600); }
.card--edit .card__foot { margin-top: 0; padding: 8px 14px 10px; border-top: 1px solid var(--rule); font-size: 0.75rem; }
.card--edit .feature-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 0.72rem var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-700); cursor: pointer; padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.card--edit .feature-toggle:hover { border-color: var(--rule); }
.card--edit .feature-toggle:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.card--edit .feature-toggle input { margin: 0; accent-color: var(--navy); }
.card--edit .card__foot code { color: var(--grey-600); }
.card--edit .card__tagline { padding: 10px 14px 12px; background: var(--navy-tint); border-top: 1px solid var(--rule); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.card--edit .card__tagline-label { display: block; font: 600 0.68rem var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 3px; }
.card--edit textarea.card__tagline-text { font-size: 0.88rem; line-height: 1.4; color: var(--ink); }
.card--edit .card__tagline textarea:hover { border-bottom-color: var(--navy-40); }
.lot-tagline { color: var(--grey-700); }
