.studio .post-wizard .composer-attachments {
  display: grid;
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
}

.studio .composer-attachments legend {
  padding-inline: .3rem;
  font-weight: 600;
}

.studio .post-wizard .composer-attachments button,
.studio .post-wizard .composer-actions .primary {
  min-height: 44px;
}

.studio .post-wizard .composer-attachments .media-edit {
  justify-content: flex-start;
}

.studio .post-wizard .composer-attachments .capture-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.studio .feed .loft-post--text .post-caption {
  -webkit-line-clamp: 7;
}

.studio button.loft-tile--text,
.studio .member-grid button.loft-tile--text {
  min-height: 7rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #f7f8f7;
}

.lot-card__media { position: relative; }
.lot-card__time svg, .lot-card__location svg, .auction-overview__details svg,
.watch-button svg, .dialog-close svg, .lot-photo-expand svg, .lot-link svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lot-card__location { display: flex; align-items: center; gap: .34rem; }
.watch-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  color: var(--forest);
  border: 1px solid #b4bbb2;
  border-radius: 50%;
  background: var(--white);
}
.watch-button:not(:disabled):hover { color: var(--warm-dark); border-color: var(--warm); }
.watch-button[aria-pressed="true"] { color: var(--warm-dark); border-color: var(--warm); }
.watch-button[aria-pressed="true"] svg { fill: currentColor; }
.watch-button:disabled { cursor: default; opacity: .6; }
.watch-button--card { position: absolute; right: .8rem; bottom: .8rem; }
.catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}
.catalog-empty p:first-child { margin-top: 0; }
.catalog-empty p:last-child { margin-bottom: 0; }

.app-dialog { width: min(32rem, calc(100% - 2rem)); }
.app-dialog--wide { width: min(68rem, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); }
.portal-panel { padding: clamp(1.2rem, 4.3vw, 2.6rem); }
.portal-panel { max-width: 44rem; margin-inline: auto; }
.listing-portal { max-width: 55rem; }
.portal-heading { margin: 0 2.5rem 1.65rem 0; }
.portal-kicker {
  margin: 0 0 .5rem;
  color: var(--warm-dark);
  line-height: 1.35;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .125em;
  text-transform: uppercase;
}
.portal-heading h2 {
  width: fit-content;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(2.65rem, 5.6vw, 4rem)/.99 var(--serif);
  letter-spacing: -.021em;
  overflow-wrap: anywhere;
}
.portal-heading h2:focus { outline: none; }
.portal-subtitle { max-width: 55ch; margin: .7rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.portal-form { display: grid; gap: .94rem; align-items: start; }
.portal-form > .portal-primary { justify-self: start; }
.portal-field { display: grid; gap: .4rem; min-width: 0; font-size: .92rem; font-weight: 700; }
.portal-field small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.post-title-count { display: block; text-align: end; color: var(--muted); font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.portal-field :is(input, select, textarea) { width: 100%; min-width: 0; font-size: 1rem; font-weight: 400; }
.portal-field input[readonly] { color: var(--muted); background: #efeee7 !important; }
.password-field__input { position: relative; min-width: 0; }
.app-dialog .password-field__input input { min-height: 2.75rem; padding-inline-end: 3.25rem; }
.password-field__toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: .2rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .35rem;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.password-field__toggle:hover { color: var(--ink); }
.password-field__toggle:focus-visible { outline-offset: -3px; }
.password-field__toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #59655a 50%), linear-gradient(135deg, #59655a 50%, transparent 50%) !important;
  background-repeat: no-repeat !important;
  background-size: .35rem .35rem !important;
  background-position: right 1.05rem center, right .7rem center !important;
  padding-right: 2.1rem !important;
}
.portal-primary { color: var(--white); background: var(--forest); border-color: var(--forest); }
.portal-primary:not(:disabled):hover { background: #304d3d; border-color: #304d3d; }
.portal-muted { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.portal-callout {
  margin: 0;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: #f4f2ea;
  color: var(--muted);
}
.portal-text-button {
  width: fit-content;
  border: 0;
  padding: .15rem 0;
  background: transparent;
  color: var(--warm-dark);
  font-size: .91rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2rem;
}
.portal-panel > .portal-text-button { margin-top: .8rem; }
.portal-text-button:hover { color: var(--ink); }
.portal-demo {
  display: grid;
  gap: .7rem;
  margin-top: 1.3rem;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  background: #f5f4ec;
}
.portal-demo .portal-kicker, .portal-demo p { margin: 0; }
.portal-demo p:not(.portal-kicker, .form-note) { color: var(--muted); font-size: .9rem; }
.portal-demo div { display: flex; flex-wrap: wrap; gap: .5rem; }
.portal-demo .button { min-height: 2.5rem; padding: .42rem .8rem; }
.form-note {
  align-self: center;
  margin: 0;
  color: #8a3829;
  font-size: .91rem;
  overflow-wrap: anywhere;
}
.form-note[data-type="success"] { color: #2c5e43; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .65rem; }
.portal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-dialog.app-dialog--lot {
  width: min(38rem, calc(100% - 2rem));
  max-height: min(48rem, calc(100dvh - 2rem));
  scroll-padding-block: 4.5rem .75rem;
  border-color: var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 18px 65px #1d1d1f38;
}
.app-dialog--lot::backdrop { background: #1d1d1f6b; backdrop-filter: blur(4px); }
.auction-portal { --lot-padding: clamp(1rem, 5vw, 1.65rem); }
.auction-sheet__bar {
  position: sticky;
  z-index: 3;
  inset-block-start: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem var(--lot-padding);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.auction-sheet__bar h2 { margin: 0; font: 650 1.0625rem/1.2 var(--sans); }
.auction-sheet__bar h2:focus { outline: none; }
.auction-sheet__utilities { display: flex; flex: none; gap: .25rem; }
.auction-sheet__bar .auction-sheet__icon {
  position: static;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.auction-sheet__bar .dialog-close { background: var(--paper); }
.auction-sheet__bar .auction-sheet__icon:not(:disabled):hover { background: #ebebef; color: var(--ink); }
.auction-sheet__bar .watch-button[aria-pressed="true"] { color: var(--warm); }
.auction-sheet__icon svg { width: 1.15rem; height: 1.15rem; }
.auction-sheet__body { display: grid; gap: 1rem; padding: 1.1rem var(--lot-padding) 1.5rem; }
.auction-sheet__body h3 { margin: 0; overflow-wrap: anywhere; }
.auction-sheet__identity { display: grid; gap: .35rem; }
.auction-sheet__identity h3 { font: 700 clamp(1.3rem, 4.8vw, 1.65rem)/1.17 var(--sans); letter-spacing: -.025em; }
.auction-sheet__identity p, .auction-sheet__lot { margin: 0; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.auction-sheet__lot { font-weight: 600; }
.auction-sheet__updates { display: grid; gap: .5rem; }
.auction-sheet__updates > p { margin: 0; font-size: .9rem; }
.auction-sheet__updates .lot-seller-update { margin: 0; border: 0; border-radius: .65rem; background: var(--paper); }
.lot-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.35rem; padding: 0; border: 0; background: none; color: var(--warm-dark); font-size: .86rem; font-weight: 700; }
.lot-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.auction-portal__bid { min-width: 0; padding: 1rem; border-radius: 1.1rem; background: var(--paper); }
.auction-portal__bid:focus { outline: none; }
.auction-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  gap: .6rem;
  align-items: end;
  font-variant-numeric: tabular-nums;
}
.auction-overview__price, .auction-overview__clock { display: grid; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.auction-overview__price > span, .auction-overview__clock > span { color: var(--muted); font-size: .875rem; }
.auction-overview__price > strong { font: 700 clamp(1.85rem, 8vw, 2.65rem)/1.08 var(--sans); letter-spacing: -.035em; }
.auction-overview__clock { padding-bottom: .15rem; text-align: end; }
.auction-overview__clock > strong { font-size: .95rem; font-weight: 650; }
.auction-bid-content { display: grid; gap: .8rem; margin-top: .9rem; }
.auction-bid-content .portal-primary { width: 100%; }
.auction-bid-content .portal-callout { padding: 0; border: 0; background: transparent; color: var(--muted); }
.auction-bid-content .portal-callout + .button { margin-top: .75rem; }
.auction-bid-content .portal-my-bid { justify-content: space-between; }
.auction-bid-content .bid-modes { border: 0; border-radius: 999px; background: #e8e8ed; }
.auction-bid-content .bid-mode[aria-pressed="true"] { border-color: transparent; }
.auction-bid-content .bid-alert-choice { border-color: var(--line); border-radius: .75rem; background: var(--white); }
.app-dialog--lot :is(input, select, textarea):not([type='checkbox'], [type='radio']) { border-color: var(--line); border-radius: .65rem; }
.auction-sheet__sections { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; }
.auction-sheet__section + .auction-sheet__section { border-top: 1px solid var(--line); }
.auction-sheet__section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .55rem;
  min-height: 3.15rem;
  padding: .5rem 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.auction-sheet__section > summary::-webkit-details-marker { display: none; }
.auction-sheet__section > summary::after {
  grid-column: 3;
  justify-self: end;
  width: .45rem;
  height: .45rem;
  margin-inline-end: .12rem;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: "";
}
.auction-sheet__section[open] > summary::after { transform: translateY(.15rem) rotate(225deg); }
.auction-sheet__section > summary:focus-visible { outline-offset: -3px; border-radius: .6rem; }
.auction-sheet__value { color: var(--muted); font-size: .875rem; font-weight: 400; }
.auction-sheet__section-body { min-width: 0; padding: 0 1rem 1rem; }
.auction-sheet__description { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.auction-terms, .lot-facts { display: grid; margin: 0; }
.auction-terms div, .lot-facts div {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 1.6fr);
  align-items: baseline;
  gap: .6rem;
  padding: .65rem 0;
  border-top: 1px solid var(--line);
}
.auction-terms dt, .lot-facts dt { color: var(--muted); font-size: .875rem; }
.auction-terms dd, .lot-facts dd { margin: 0; text-align: end; font-size: .875rem; overflow-wrap: anywhere; }
.auction-sheet__description + .lot-facts { margin-top: .75rem; }
.auction-portal__media { min-width: 0; margin: 0; }
.auction-portal__photo { position: relative; overflow: hidden; border-radius: .75rem; background: var(--paper); }
.auction-portal__photo :is(img, video) { display: block; width: 100%; height: auto; max-height: min(52dvh, 25rem); aspect-ratio: 4 / 3; object-fit: contain; }
.auction-portal__photo video { background: var(--ink); }
.auction-portal__illustration { margin-top: .5rem; }
.lot-gallery-thumbnails { display: flex; gap: .4rem; overflow-x: auto; margin-top: .4rem; padding: .25rem; }
.lot-gallery-thumb { display: grid; position: relative; place-items: center; flex: 0 0 3.75rem; height: 3rem; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.lot-gallery-thumb[aria-pressed="true"] { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }
.lot-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lot-gallery-thumb svg { position: absolute; width: 1.45rem; height: 1.45rem; padding: .2rem; border-radius: 50%; color: var(--white); background: #1d1d1fd9; }
.lot-gallery-video-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; margin-top: .25rem; }
.lot-photo-expand { position: absolute; display: grid; place-items: center; bottom: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.lot-photo-expand:hover { color: var(--warm); border-color: var(--warm); }
.lot-photo-dialog { width: fit-content; max-width: min(72rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--white); box-shadow: 0 18px 75px #0005; }
.lot-photo-dialog::backdrop { background: #101511c9; }
.lot-photo-dialog header { min-height: 3.65rem; padding: .85rem 3.7rem .7rem 1rem; }
.lot-photo-dialog h3 { margin: 0; font: 400 1.65rem/1.1 var(--serif); overflow-wrap: anywhere; }
.lot-photo-dialog img { width: auto; height: auto; max-height: calc(100dvh - 5.7rem); object-fit: contain; }
.bid-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin: 0;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: #eeeae0;
}
.bid-mode {
  min-height: 2.5rem;
  padding: .4rem .25rem;
  border: 1px solid transparent;
  border-radius: .15rem;
  background: transparent;
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.25;
}
.bid-mode[aria-pressed="true"] { border-color: #d9d7cd; background: var(--white); box-shadow: 0 1px 4px #252b2214; }
.bid-mode:disabled { cursor: default; opacity: .45; }
.bid-mode:not(:disabled):hover { color: var(--warm-dark); }
.bid-minimum, .portal-my-bid { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .9rem; }
.bid-minimum { justify-content: space-between; }
.bid-minimum span, .portal-my-bid > span:not(.status-pill) { color: var(--muted); }
.bid-minimum strong, .portal-my-bid strong { color: var(--ink); }
.portal-money-input { position: relative; }
.portal-money-input > span { position: absolute; top: 50%; left: .75rem; transform: translateY(-50%); color: var(--muted); font-weight: 400; pointer-events: none; }
.portal-money-input input { padding-left: 1.6rem !important; }
.bid-history { max-height: 18rem; margin: 0; padding: 0 .3rem 0 0; overflow-y: auto; scrollbar-gutter: stable; list-style: none; }
.bid-history li {
  display: grid;
  grid-template-columns: minmax(4rem, .85fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .6rem .55rem;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.bid-history li:first-child { background: var(--paper); }
.bid-history li strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bid-history time, .bid-history li span { color: var(--muted); }
.bid-history li span { overflow-wrap: anywhere; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.dashboard-stats div { min-width: 0; padding: .7rem .8rem; border: 1px solid var(--line); background: #f5f2e9; }
.dashboard-stats span { display: block; color: var(--muted); font-size: .83rem; }
.dashboard-stats strong { display: block; color: var(--ink); font: 400 2.1rem/1 var(--serif); }
.dashboard-section { margin-top: 1.25rem; }
.dashboard-section:first-child { margin-top: 0; }
.dashboard-section h3, .dashboard-create h3 { margin: 0 0 .6rem; font: 400 2rem/1.05 var(--serif); }
.dashboard-create h3 { margin-bottom: .3rem; }
.dashboard-empty { margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); color: var(--muted); font-size: .91rem; }
.dashboard-lots { display: grid; gap: .42rem; margin: 0; padding: 0; list-style: none; }
.dashboard-lot {
  display: flex;
  align-items: center;
  gap: .67rem;
  min-width: 0;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: .15rem;
}
.dashboard-lot__picture { width: 3.5rem; height: 3.5rem; padding: 0; flex: none; overflow: hidden; border: 0; border-radius: .15rem; background: #536858; }
.dashboard-lot__picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.dashboard-lot__info { display: grid; gap: .13rem; flex: 1; min-width: 0; }
.dashboard-lot__info > span { color: var(--muted); font-size: .79rem; overflow-wrap: anywhere; }
.dashboard-lot__name { width: fit-content; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); font: 400 1.46rem/1.02 var(--serif); overflow-wrap: anywhere; }
.dashboard-lot__name:hover { color: var(--warm-dark); }
.dashboard-lot__amount { display: grid; justify-items: end; gap: .24rem; font-size: .91rem; }
.dashboard-lot__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: .55rem; }
.status-pill {
  display: inline-flex;
  padding: .15rem .4rem;
  color: #4f5b52;
  border: 1px solid #d9dfd7;
  border-radius: .15rem;
  background: #edf0ea;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill:is([data-status="leading"], [data-status="won"], [data-status="active"]) { color: #28563a; border-color: #c7dbc9; background: #e8f2e7; }
.status-pill:is([data-status="outbid"], [data-status="pending"]) { color: #754326; border-color: #e3d1be; background: #f5eadc; }
.status-pill[data-status="cancelled"] { color: #7c3527; border-color: #e4d3cd; background: #f4ebe6; }
.dashboard-create { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; margin-bottom: 1rem; }
.profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-form__address { grid-column: 1 / -1; }
.profile-form .form-actions { grid-column: 2; }

.app-toast {
  position: fixed;
  z-index: 10;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-width: min(17rem, calc(100% - 2rem));
  max-width: min(30rem, calc(100% - 2rem));
  padding: .78rem 1rem;
  color: var(--white);
  background: var(--forest);
  border: 1px solid #65796a;
  border-radius: .24rem;
  box-shadow: 0 6px 25px #18231c55;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .app-dialog--wide { max-height: calc(100dvh - 1.4rem); }
  .app-dialog.app-dialog--lot {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top, 0px)));
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
  }
  .auction-sheet__body { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .app-dialog { width: calc(100% - 1.1rem); }
  .portal-heading { margin-bottom: 1.15rem; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form .form-actions { grid-column: 1; }
  .dashboard-lot { flex-wrap: wrap; gap: .48rem; }
  .dashboard-lot__picture { width: 3rem; height: 3rem; }
  .dashboard-lot__actions { justify-content: end; flex-basis: auto; }
  .dashboard-lot__actions:has(.button) { flex-basis: 100%; }
  .dashboard-stats div { padding-inline: .55rem; }
  .bid-history li { grid-template-columns: minmax(3.2rem, .8fr) minmax(0, 1fr) minmax(3.5rem, .95fr); padding-inline: .25rem; gap: .4rem; font-size: .8rem; }
  .bid-history time { text-align: right; }
  .app-toast { right: .55rem; bottom: .55rem; max-width: calc(100% - 1.1rem); }
}

.push-setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  padding: .72rem .8rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.push-setting__icon, .outbid-toast__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: var(--warm-dark);
  background: #f4ebe0;
}
.push-setting__icon svg, .outbid-toast svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.push-setting__text h3 { margin: 0; font-size: .93rem; font-weight: 700; }
.push-setting__text p { margin: .1rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.push-setting .button { min-height: 2.3rem; padding: .4rem .63rem; }

.outbid-toast {
  position: fixed;
  z-index: 20;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .35rem .7rem;
  width: min(25rem, calc(100% - 2rem));
  padding: .8rem;
  border: 1px solid #65796a;
  border-radius: .24rem;
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 6px 25px #18231c55;
}
:is(body, .app-dialog):has(> .app-toast:not([hidden])) > .outbid-toast {
  bottom: max(4.4rem, calc(env(safe-area-inset-bottom) + 3.4rem));
}
.outbid-toast__icon { grid-row: span 2; }
.outbid-toast__text { display: grid; gap: .1rem; margin-top: .06rem; font-size: .93rem; line-height: 1.4; overflow-wrap: anywhere; }
.outbid-toast__text span { color: #e0e0d3; font-size: .86rem; }
.outbid-toast__dismiss {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.outbid-toast__dismiss:hover { background: #fff2; }
.outbid-toast__lot {
  grid-column: 2;
  justify-self: start;
  padding: .16rem 0;
  border: 0;
  color: #f4bc9d;
  background: transparent;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18rem;
}
.outbid-toast__lot:hover { color: #fff; }

@media (max-width: 480px) {
  .push-setting { grid-template-columns: auto minmax(0, 1fr); }
  .push-setting .button { grid-column: 2; justify-self: start; }
  .outbid-toast { right: .55rem; bottom: max(.55rem, env(safe-area-inset-bottom)); width: min(25rem, calc(100% - 1.1rem)); }
}

.bid-alert-choice {
  display: grid;
  gap: .75rem;
  padding: .82rem;
  border: 1px solid #dfd4c2;
  border-radius: .18rem;
  background: #f5f0e6;
}

.bid-alert-choice__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .58rem;
  align-items: start;
}

.bid-alert-choice__heading h3 { margin: 0 0 .15rem; font-size: .94rem; }
.bid-alert-choice__heading p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.bid-alert-choice__actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.bid-alert-choice__actions .button { min-height: 2.55rem; }
.bid-alert-confirmation { color: #375844; }

@media (max-width: 480px) {
  .bid-alert-choice__actions { display: grid; }
  .bid-alert-choice__actions .button { white-space: normal; }
}

.app-install-setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .65rem;
  margin-bottom: .85rem;
  padding: .72rem .8rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.app-install-setting__text { align-self: center; }
.app-install-setting__text h3 { margin: 0; font-size: .93rem; font-weight: 700; }
.app-install-setting__text p { margin: .1rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.app-install-setting .button { align-self: center; min-height: 2.3rem; padding: .4rem .7rem; }
.app-install-setting__steps { grid-column: 2 / -1; }
.install-steps {
  margin: .36rem 0 0;
  padding-inline-start: 1.15rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.install-steps li + li { margin-top: .22rem; }
.bid-install-guide { padding-top: .65rem; border-top: 1px solid #dfd4c2; }
.bid-install-guide h4 { margin: 0; font-size: .88rem; }

@media (max-width: 480px) {
  .app-install-setting { grid-template-columns: auto minmax(0, 1fr); }
  .app-install-setting .button { grid-column: 2; justify-self: start; }
}

.seller-media {
  display: grid;
  min-width: 0;
  gap: .7rem;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .18rem;
  background: #f8f5ed;
}
.seller-media legend { padding-inline: .3rem; color: var(--ink); font-size: .93rem; font-weight: 700; }
.seller-media__picker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.seller-media__picker .button { position: relative; min-height: 2.55rem; padding: .44rem .68rem; cursor: pointer; }
.seller-media__picker .button:has(:focus-visible) { outline: 2px solid #a75738; outline-offset: 3px; }
.seller-media__picker .button.is-disabled { opacity: .55; pointer-events: none; }
.seller-media__files { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.seller-media__files:empty { display: none; }
.seller-media__file {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr);
  gap: .72rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: .16rem;
  background: var(--white);
}
.seller-media__file:has(video) { grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); }
.seller-media__preview {
  display: grid;
  align-self: start;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: .12rem;
  background: #e8e6dd;
}
.seller-media__preview:has(video) { aspect-ratio: 4 / 3; background: var(--forest); }
.seller-media__preview :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.seller-media__preview video { min-height: 0; object-fit: contain; }
.seller-media__no-preview { padding: .3rem; color: var(--muted); font-size: .77rem; text-align: center; }
.seller-media__detail { display: grid; align-content: start; gap: .28rem; min-width: 0; }
.seller-media__topline { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.seller-media__topline strong { min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.seller-media__cover { padding: .14rem .34rem; border-radius: .14rem; color: var(--warm-dark); background: #f0e6d7; font-size: .76rem; font-weight: 700; }
.seller-media__meta, .seller-media__file-status { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.seller-media__file-status[data-status="failed"] { color: #8a3829; }
.seller-media__detail progress { width: 100%; height: .45rem; accent-color: var(--warm-dark); }
.seller-media__actions { display: flex; flex-wrap: wrap; gap: .24rem .5rem; }
.seller-media__actions button {
  min-height: 2.15rem;
  padding: .1rem .22rem;
  border: 0;
  background: none;
  color: var(--warm-dark);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15rem;
}
.seller-media__actions button:disabled { color: var(--muted); cursor: default; opacity: .6; text-decoration: none; }

@media (max-width: 480px) {
  .seller-media__file { grid-template-columns: minmax(4.25rem, 5.2rem) minmax(0, 1fr); gap: .5rem; }
  .seller-media__file:has(video) { grid-template-columns: minmax(0, 1fr); }
  .seller-media__file:has(video) .seller-media__preview { width: 100%; max-height: 12rem; }
}
.lot-seller-update {background:#f2f6f2;border-left:3px solid #536e5a;padding:10px 14px;margin-block:10px;overflow-wrap:anywhere}
.lot-seller-update time {font-size:.85rem;color:#565f59}
.lot-seller-update p {white-space:pre-wrap;margin-top:4px}

.community-report {
  display: grid;
  gap: .5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.community-report__excerpt { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-report__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.community-report__actions button { min-height: 2.75rem; }
[data-community-report-form] select {
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background-color: white;
}
[data-community-report-form] select:focus-visible { outline: 3px solid #2674c5; outline-offset: 3px; }
[data-community-report-form] .primary { min-height: 2.75rem; }

/* Keep form rows inside their own grid tracks, including native date controls. */
.portal-form > *, .listing-close-field, .portal-money-input { min-width: 0; }
.portal-form fieldset { max-width: 100%; margin-inline: 0; }
.portal-form :is(input, select, textarea), .portal-field input[type="datetime-local"] {
  box-sizing: border-box;
  max-width: 100%;
}
.portal-field input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
.portal-form :is(.form-actions, [data-form-note]) { grid-column: 1 / -1; }
.form-actions .button { max-width: 100%; white-space: normal; }
@media (max-width: 760px) {
  .portal-heading h2 { font-size: clamp(1.65rem, 7vw, 2.45rem); line-height: 1.1; }
  .profile-form { grid-template-columns: minmax(0, 1fr); }
  :is(.app-dialog, .studio) :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="file"]) {
    font-size: max(16px, 1rem);
  }
  .app-dialog :is(.dashboard-lot, .bid-history li, .payment-order) { overflow-wrap: anywhere; }
  .keyboard-open .app-dialog[open] {
    position: fixed;
    inset: calc(var(--visible-screen-top) + 4px) 0 auto;
    max-height: calc(var(--visible-screen-height) - 8px);
    margin-block: 0;
    scroll-padding-block: 12px;
  }
  .keyboard-open .app-dialog--lot[open] { scroll-padding-block-start: 4.5rem; }
  body:has(.studio) > .app-toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body:has(.studio) > .outbid-toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body:has(.studio) > .app-toast:not([hidden]) ~ .outbid-toast { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
}
