:root {
  --ink: #101b32;
  --ink-soft: #526078;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --line: #d6d8d2;
  --lime: #c9f248;
  --coral: #f06449;
  --green: #147a55;
  --red: #b74233;
  --shadow: 0 24px 70px rgba(16, 27, 50, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 40px)); }
.site-header { position: relative; z-index: 5; background: var(--ink); color: white; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: white; text-decoration: none; }
.brand span:last-child { display: grid; line-height: 1.08; }
.brand small { margin-bottom: 5px; color: #aeb7c8; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand strong { font: 800 19px/1 "Manrope", sans-serif; }
.brand-mark { position: relative; width: 38px; height: 44px; display: inline-block; border: 2px solid var(--lime); border-radius: 50% 50% 46% 46%; transform: rotate(12deg); }
.brand-mark::after { content: ""; position: absolute; width: 3px; height: 16px; background: var(--lime); bottom: -12px; left: 17px; border-radius: 3px; }
.brand-mark i { position: absolute; inset: 10px 4px auto; height: 1px; background: rgba(201,242,72,.55); }
.brand-mark i:last-child { transform: rotate(90deg); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a, .nav-button { color: #dce2eb; border: 0; background: none; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.site-header nav a:hover, .nav-button:hover { color: var(--lime); }
.inline-form { display: inline; margin: 0; }

.hero { overflow: hidden; background: var(--ink); color: white; padding: 70px 0 82px; position: relative; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid rgba(201,242,72,.15); border-radius: 50%; right: -180px; top: -310px; box-shadow: 0 0 0 75px rgba(201,242,72,.025), 0 0 0 150px rgba(201,242,72,.02); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: linear-gradient(90deg, transparent 0 7%, var(--coral) 7% 19%, transparent 19% 100%); opacity: .8; }
.hero-grid { position: relative; z-index: 1; display: flex; justify-content: center; }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.countdown-card { width: min(100%, 520px); padding: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 2px; backdrop-filter: blur(12px); }
.countdown-card .eyebrow { color: var(--lime); }
.status-dot { float: right; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px rgba(201,242,72,.12); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.countdown span { display: grid; gap: 4px; }
.countdown strong { font: 700 30px/1 "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.countdown small { color: #98a5b9; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.closing-time { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #cbd2dd; font-size: 13px; }
.is-closed .status-dot { background: var(--coral); box-shadow: 0 0 0 7px rgba(240,100,73,.12); }

.auction-section, .page-section { padding-block: 72px 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h1, .section-heading h2 { margin: 0; font: 800 clamp(34px, 5vw, 54px)/1 "Manrope", sans-serif; letter-spacing: -.045em; }
.section-heading > span, .signed-in { color: var(--ink-soft); font-size: 14px; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.item-card { min-width: 0; background: var(--white); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item-image { display: block; aspect-ratio: 4/3; overflow: hidden; position: relative; background: #dfe5d4; }
.item-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.item-card:hover .item-image > img { transform: scale(1.025); }
.image-placeholder { width: 100%; height: 100%; min-height: 200px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #dce8bf, #f1e0c8); }
.image-placeholder b { color: rgba(16,27,50,.75); font: 800 80px/1 "Manrope", sans-serif; letter-spacing: -.08em; }
.image-placeholder i { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(16,27,50,.15); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.15), 0 0 0 72px rgba(255,255,255,.10); }
.item-number { position: absolute; top: 14px; left: 14px; padding: 6px 10px; color: white; background: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.item-card-body { padding: 25px; }
.item-card h3 { min-height: 56px; margin: 0 0 22px; font: 700 21px/1.3 "Manrope", sans-serif; }
.item-card h3 a { text-decoration: none; }
.bid-summary { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.bid-summary > span:first-child { display: grid; }
.bid-summary small, .price-panel small { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bid-summary strong { font: 700 21px "Manrope", sans-serif; }
.bid-count { color: var(--ink-soft); font-size: 12px; }
.button { min-height: 48px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: white; text-decoration: none; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.button:hover { background: transparent; color: var(--ink); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button-block { width: 100%; justify-content: space-between; }
.button-accent { background: var(--coral); border-color: var(--coral); }
.button-accent:hover { color: var(--coral); }
.button-light { background: white; border-color: white; color: var(--ink); }
.button-light:hover { color: white; border-color: white; }

.flash-stack { position: relative; z-index: 10; }
.flash { margin-top: 18px; padding: 14px 18px; border-left: 4px solid; background: white; box-shadow: 0 8px 30px rgba(16,27,50,.08); }
.flash-success { border-color: var(--green); }
.flash-error { border-color: var(--red); }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 30px; color: var(--ink-soft); font-size: 13px; }
.breadcrumbs a { color: var(--ink); }
.item-layout { padding-block: 34px 90px; }
.item-showcase { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); background: var(--white); border: 1px solid var(--line); }
.item-hero-image { min-height: 600px; background: #dfe5d4; }
.item-hero-image > img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.image-placeholder.large { min-height: 600px; }
.image-placeholder.large b { font-size: clamp(100px, 15vw, 210px); }
.item-details { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; }
.item-details h1 { margin: 0 0 24px; font: 800 clamp(38px, 5vw, 62px)/1.02 "Manrope", sans-serif; letter-spacing: -.055em; }
.description { color: #3f4a5c; font-size: 17px; }
.price-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: auto 0 24px; padding-top: 32px; }
.price-panel > div { display: grid; }
.price-panel strong { font: 800 32px/1.2 "Manrope", sans-serif; }
.reserve { padding: 7px 10px; border: 1px solid #d7a598; color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.reserve.met { border-color: #8ab7a1; color: var(--green); }
.bid-form { border-top: 1px solid var(--line); padding-top: 24px; }
.bid-form label, .stack-form label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.bid-form label span, .stack-form label span { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.money-input { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.money-input > span { position: absolute; left: 16px; font-weight: 700; }
.money-input input { padding-left: 32px !important; }
.form-note { color: var(--ink-soft); font-size: 12px; text-align: center; }
.sign-in-prompt, .closed-notice { margin-top: auto; padding: 24px; background: #edf1e5; }
.sign-in-prompt .button { width: 100%; }
.closed-notice { display: grid; }
.bid-history { padding-top: 76px; }
.bid-list { border-top: 1px solid var(--ink); }
.bid-row { display: grid; grid-template-columns: 55px 1fr auto auto; align-items: center; gap: 20px; min-height: 82px; border-bottom: 1px solid var(--line); }
.bid-row .rank { color: var(--ink-soft); font: 700 12px "Manrope", sans-serif; }
.bid-row > div { display: grid; }
.bid-row small { color: var(--ink-soft); }
.bid-amount { font: 700 20px "Manrope", sans-serif; }
.invalid { opacity: .52; text-decoration: line-through; }
.invalid-label { padding: 4px 7px; border: 1px solid currentColor; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.item-admin-link { padding-top: 60px; text-align: center; }
.item-admin-link a, .text-link { color: var(--ink-soft); font-size: 13px; }

.panel { padding: clamp(26px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); }
.panel h1 { margin: 0 0 18px; font: 800 clamp(36px, 6vw, 58px)/1.03 "Manrope", sans-serif; letter-spacing: -.05em; }
.panel h2 { margin: 0 0 12px; font: 800 28px/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }
.auth-layout { padding-block: 80px 110px; }
.auth-panel > p:not(.eyebrow):not(.form-note) { color: var(--ink-soft); }
.stack-form { display: grid; margin-top: 28px; }
.stack-form label:not(:first-child) { margin-top: 18px; }
.stack-form input, .stack-form textarea, .bid-form input { width: 100%; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #b9c0c5; border-radius: 0; outline: none; }
.stack-form input:focus, .stack-form textarea:focus, .bid-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,27,50,.09); }
.stack-form .button { margin-top: 24px; }
.auth-panel .text-link { display: block; margin-top: 18px; text-align: center; }
.empty-state { padding: 70px 30px; border: 1px dashed #b7bcb7; text-align: center; }
.empty-state > span { color: #adb4ab; font: 800 90px/1 "Manrope", sans-serif; }
.empty-state h3 { margin: 10px 0 4px; font: 700 26px "Manrope", sans-serif; }
.empty-state p { color: var(--ink-soft); }
.empty-state.compact { padding: 34px; }
.prose h1 { margin: 0 0 24px; font: 800 clamp(42px, 7vw, 68px)/1 "Manrope", sans-serif; letter-spacing: -.06em; }
.prose .lede { color: var(--ink-soft); font-size: 21px; }
.prose h2 { margin-top: 40px; font: 700 24px "Manrope", sans-serif; }
.policy-date { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }

.my-bids-list { border-top: 1px solid var(--ink); }
.my-bid-group + .my-bid-group { margin-top: 64px; }
.my-bid-group .section-heading { margin-bottom: 20px; }
.my-bid-group .section-heading h2 { font-size: clamp(28px, 4vw, 40px); }
.my-bid-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-image { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; background: #dfe5d4; font: 800 22px "Manrope", sans-serif; }
.mini-image img { width: 100%; height: 100%; object-fit: cover; }
.my-bid-row > span:nth-child(2), .my-bid-amount { display: grid; }
.my-bid-row small, .my-bid-row em { color: var(--ink-soft); font-size: 12px; font-style: normal; }
.my-bid-amount { text-align: right; }
.my-bid-amount strong { font: 700 20px "Manrope", sans-serif; }
.my-bid-amount small { color: var(--green); font-weight: 700; text-transform: uppercase; }
.my-bid-group.is-outbid .my-bid-amount small { color: var(--red); }
.push-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 42px; background: #edf1e5; }
.push-panel[hidden] { display: none; }
.post-bid-push { margin-top: 24px; }
.push-panel > div:first-child { max-width: 680px; }
.push-panel h2 { margin-bottom: 7px; }
.push-panel p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.push-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.push-actions [hidden] { display: none; }
.push-actions button:disabled { cursor: not-allowed; opacity: .58; }

.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-grid .panel { min-width: 0; }
.accent-panel { background: var(--coral); border-color: var(--coral); color: white; }
.accent-panel .eyebrow { color: var(--ink); }
.file-drop { padding: 22px; border: 1px dashed #aeb6ba; background: #f8f8f3; text-align: center; cursor: pointer; }
.file-drop input { margin-top: 12px; padding: 0; border: 0; }
.text-button, .danger-link { padding: 0; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.admin-items-heading { margin-top: 70px; }
.admin-item-list { border-top: 1px solid var(--ink); }
.admin-item-list > a { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 20px; min-height: 86px; border-bottom: 1px solid var(--line); text-decoration: none; }
.admin-item-list > a:hover { background: rgba(255,255,255,.45); }
.admin-item-list > a.is-hidden { opacity: .58; }
.admin-item-list > a.is-hidden:hover { opacity: .82; }
.admin-item-list a > span:nth-child(2) { display: grid; }
.admin-item-list small { color: var(--ink-soft); }
.admin-item-id { font: 800 23px "Manrope", sans-serif; }
.edit-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.edit-preview { width: 100%; max-height: 320px; margin-top: 18px; object-fit: cover; }
.admin-bid-list { margin-top: 24px; border-top: 1px solid var(--line); }
.admin-bid-list > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-bid-list span { display: grid; }
.admin-bid-list small { color: var(--ink-soft); }
.admin-bid-list form, .admin-bid-list em { grid-column: 1/-1; }
.item-management { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 24px; }
.item-management > div > p:not(.eyebrow) { color: var(--ink-soft); }
.item-management > div > form:not(.stack-form) { margin-top: 22px; }
.item-delete { padding-left: 36px; border-left: 1px solid var(--line); }
.item-delete .stack-form { margin-top: 18px; }
.danger-link { color: var(--red); }
.danger-zone { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.danger-button { min-height: 44px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--red); background: transparent; color: var(--red); font-weight: 700; cursor: pointer; }
.danger-button:hover { background: var(--red); color: white; }
.admin-secondary-link { display: inline-block; margin-top: 24px; }
.admin-intro { max-width: 760px; margin: -12px 0 32px; color: var(--ink-soft); }
.bidder-admin-list { display: grid; gap: 14px; }
.bidder-admin-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.bidder-admin-row > div { display: grid; gap: 4px; }
.bidder-admin-row small { color: var(--ink-soft); }
.bidder-admin-row form { margin: 0; }
.bidder-admin-row .danger-button { margin-top: 0; }
.qr-tool { max-width: 760px; margin-inline: auto; }
.qr-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.qr-ready p { width: 100%; margin: 0; color: var(--ink-soft); }
code { padding: 2px 5px; background: #e8e5dc; font-size: .9em; }

.site-footer { padding: 46px 0; background: var(--ink); color: white; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer strong { font: 700 18px "Manrope", sans-serif; }
.site-footer p { margin: 5px 0 0; color: #98a5b9; font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #cdd5e1; font-size: 13px; }

@media (max-width: 900px) {
  .item-showcase, .edit-layout, .item-management { grid-template-columns: 1fr; }
  .item-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .item-hero-image, .item-hero-image > img, .image-placeholder.large { min-height: min(70vw, 560px); }
  .item-details { min-height: 560px; }
  .admin-grid .panel:last-child { grid-column: 1/-1; }
  .item-delete { padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
  .shell, .narrow { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 78px; }
  .brand small { display: none; }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 29px; height: 34px; }
  .brand-mark::after { left: 12px; }
  .site-header nav { gap: 14px; }
  .site-header nav a, .nav-button { font-size: 12px; }
  .hero { padding: 52px 0 65px; }
  .countdown-card { padding: 22px; }
  .countdown strong { font-size: 25px; }
  .auction-section, .page-section { padding-block: 52px 72px; }
  .item-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .panel:last-child { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .item-details { min-height: auto; padding: 30px 24px; }
  .price-panel { margin-top: 42px; align-items: start; flex-direction: column; }
  .bid-row { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .invalid-label { grid-column: 2/-1; justify-self: start; }
  .my-bid-row { grid-template-columns: 56px 1fr; }
  .mini-image { width: 56px; height: 56px; }
  .my-bid-amount { grid-column: 2; text-align: left; }
  .push-panel { align-items: stretch; flex-direction: column; gap: 20px; }
  .push-actions { align-items: stretch; flex-direction: column; }
  .bidder-admin-row { grid-template-columns: 1fr; }
  .bidder-admin-row .danger-button { width: 100%; }
  .admin-item-list > a { grid-template-columns: 45px 1fr; padding: 14px 0; }
  .admin-item-list > a > span:last-child { grid-column: 2; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
