/* 좋은경험 화면 스타일
   국산 생산품 직거래 장터. 상품이 먼저 보이는 평범하고 빠른 커머스 화면을 기준으로 한다.
   - 색: 로고의 초록을 주요 버튼과 선택 상태에 쓰고, 빨강은 마감 임박과 오류에만 쓴다.
   - 글자: 본문은 15px 아래로 내리지 않는다. 입력칸은 16px(iOS 확대 방지). */

:root {
  --paper: #FFFFFF;
  --paper-dim: #F4F3EF;
  --ink: #191917;
  --ink-soft: #55544E;
  --ink-faint: #74726A;
  --rule: #DDDBD3;
  --seal: #C4301C;
  --seal-dark: #9E2513;
  --seal-wash: #FBEEEB;
  --brand: #1F4A38;
  --brand-dark: #16382A;
  --brand-wash: #EBF1EC;
  --leaf: #1F4A38;
  --wrap: 1240px;
  --gutter: 28px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Electron 창 끌기 영역 */
.titlebar-drag-region { -webkit-app-region: drag; }
.titlebar-no-drag { -webkit-app-region: no-drag; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid #BDBBB2; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--paper-dim); }
.btn:disabled { color: var(--ink-faint); border-color: var(--rule); background: var(--paper-dim); }
.btn--ink { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.btn--ink:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ink:disabled { background: var(--rule); border-color: var(--rule); color: var(--ink-faint); }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn--danger { border-color: var(--rule); color: var(--seal-dark); }
.btn--danger:hover { background: var(--seal-wash); border-color: var(--seal); }
.btn--danger.is-armed { background: var(--seal); border-color: var(--seal); color: var(--paper); }
.link {
  display: inline; color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link:hover { color: var(--seal-dark); }

/* 머리글 */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead__row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius); }
.brand__text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.brand__name { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand__tag { font-size: 14px; line-height: 1; color: var(--ink-soft); white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 46px; padding: 0 64px 0 44px;
  border: 2px solid var(--brand); border-radius: var(--radius);
  background: var(--paper); font-size: 16px;
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: 0; border-color: var(--brand-dark); }
.search svg { position: absolute; left: 14px; top: 23px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink); }
.search__clear { position: absolute; right: 12px; top: 23px; transform: translateY(-50%); font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.search--mobile { display: none; max-width: none; padding-bottom: 12px; }
.account { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.account__who { font-size: 14px; color: var(--ink-soft); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__who b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.account__link { font-weight: 700; padding: 8px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.account__link:hover { text-decoration-color: currentColor; }
.studio { border-top: 1px solid var(--rule); background: var(--paper-dim); }
.studio__row { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.studio__label { color: var(--ink-soft); }
.studio__link { font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; }
.studio__notice { margin-left: auto; font-weight: 600; color: var(--seal-dark); }
.studio__link:hover { border-bottom-color: var(--ink); }
.studio__link.is-active { border-bottom-color: var(--brand); color: var(--brand); }
.window-controls { display: flex; gap: 2px; padding-left: 12px; border-left: 1px solid var(--rule); }
.window-controls button { width: 30px; height: 30px; }
.window-controls button:hover { background: var(--paper-dim); }

/* 첫 화면 소개 */
.intro { background: var(--paper-dim); }
.intro__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.intro__title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.intro__lead { margin-top: 4px; color: var(--ink-soft); }
.intro__side { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.intro__photos { display: flex; gap: 8px; }
.intro__photos img { width: 148px; height: 104px; object-fit: cover; border-radius: var(--radius); }

/* 품목과 지역 */
.cats { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cat { padding: 8px 12px; border-radius: var(--radius); font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.cat:hover { background: var(--paper-dim); color: var(--ink); }
.cat.is-active { background: var(--brand); color: var(--paper); }
.subcats { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.pick { flex-shrink: 0; padding: 4px 8px; border-radius: var(--radius); color: var(--ink-soft); }
.pick:hover { background: var(--paper-dim); color: var(--ink); }
.pick.is-active { color: var(--brand); font-weight: 700; background: var(--brand-wash); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; font-size: 14px; }
.chip { display: inline-flex; gap: 8px; padding: 4px 8px; border: 1px solid #BDBBB2; border-radius: var(--radius); font-weight: 600; }
.chip:hover { border-color: var(--brand); }
.chip span { color: var(--ink-faint); font-weight: 400; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 16px; }
.result-bar.is-empty .result-bar__count { visibility: hidden; }
.result-bar.is-empty .result-bar__tools { display: none; }
.result-bar__count { font-size: 16px; }
.result-bar__count b { font-weight: 800; }
.result-bar__tools { display: flex; gap: 8px; }
.select-plain { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 8px 8px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }

/* 상품 목록 */
.lots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 16px; margin-bottom: 64px; }
.lot { min-width: 0; }
.lot__hit { display: block; width: 100%; text-align: left; }
.lot__photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--paper-dim); }
.lot.is-selected .lot__photo { outline: 2px solid var(--brand); outline-offset: 1px; }
.lot__photo img { width: 100%; height: 100%; object-fit: cover; }
.lot__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-faint); }
.lot__body { display: block; padding-top: 12px; }
.lot__title { font-size: 16px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lot__hit:hover .lot__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lot__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.lot__seller { display: block; font-size: 14px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot__left { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--seal); }

.verified { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--leaf); }

/* 상품이 없을 때 */
.vacancy { grid-column: 1 / -1; padding: 72px 16px 80px; text-align: center; }
.vacancy__title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.vacancy__text { margin: 8px 0 20px; color: var(--ink-soft); }

/* 상세 패널 */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(25, 25, 23, .52); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  display: flex; flex-direction: column; width: 100%; max-width: 500px;
  background: var(--paper); border-left: 1px solid var(--rule);
  transform: translateX(100%); visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.drawer__crumb { font-size: 14px; color: var(--ink-soft); }
.drawer__crumb b { color: var(--ink-faint); font-weight: 500; margin-left: 8px; }
.drawer__crumb b.is-soon { color: var(--seal); font-weight: 700; }
.drawer__body { flex: 1; overflow-y: auto; }
.drawer__photo { position: relative; aspect-ratio: 4 / 3; background: var(--paper-dim); }
.drawer__photo img { width: 100%; height: 100%; object-fit: cover; }
.drawer__nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); }
.drawer__section { padding: 20px 24px; }
.drawer__section + .drawer__section { border-top: 1px solid var(--rule); }
.drawer__title { font-size: 24px; font-weight: 800; line-height: 1.32; letter-spacing: -0.035em; }
.facts { margin-top: 16px; border-top: 1px solid var(--rule); }
.facts__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts__row dt { color: var(--ink-faint); }
.facts__row dd { font-weight: 600; min-width: 0; }
.facts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 14px; }
.facts__producer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-label { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.drawer__foot { flex-shrink: 0; padding: 16px 24px 16px; border-top: 1px solid var(--rule); background: var(--paper); }
.drawer__foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__note { margin-top: 8px; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* 상품 설명 본문 */
.story { font-size: 16px; line-height: 1.75; color: #2C2C29; }
.story > * + * { margin-top: 12px; }
.story__empty { color: var(--ink-soft); }
.story-heading { font-size: 18px; font-weight: 800; margin-top: 24px; letter-spacing: -0.025em; }
.story-quote { margin: 12px 0 0; padding-left: 16px; border-left: 3px solid var(--ink); color: var(--ink-soft); }
.story-box { padding: 12px 16px; border: 1px solid var(--rule); background: var(--paper-dim); border-radius: var(--radius); }
.story-note { font-weight: 700; color: var(--seal-dark); }
.story-figure img { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); }
.story-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-faint); }

/* 창 */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto; background: rgba(25, 25, 23, .52); }
.sheet { position: relative; width: 100%; max-width: 480px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 28px 28px; }
.sheet--wide { max-width: 720px; }
.sheet__close { position: absolute; top: 14px; right: 16px; padding: 8px; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.sheet__title { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; padding-right: 44px; }
.sheet__lead { margin-top: 8px; color: var(--ink-soft); }
.sheet__actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; }
.sheet__actions--end { justify-content: flex-end; flex-wrap: wrap; }
.sheet__hint { display: block; margin-top: 4px; }
.sheet__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-soft); }

/* 입력 */
.field { display: block; margin-top: 16px; }
.field__label { display: block; margin-bottom: 8px; font-weight: 700; }
.field__label small { font-size: 14px; font-weight: 400; color: var(--ink-faint); margin-left: 4px; }
.field__help { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.input {
  display: block; width: 100%; min-height: 48px; padding: 12px 12px;
  border: 1px solid #A9A79E; border-radius: var(--radius);
  background: var(--paper); font-size: 16px;
}
.input::placeholder { color: #8E8C84; }
.input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
textarea.input { line-height: 1.65; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* 가입 단계 */
.stepper { display: flex; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); padding-right: 44px; font-size: 14px; color: var(--ink-faint); flex-wrap: wrap; }
.stepper__item.is-current { color: var(--brand); font-weight: 800; }
.stepper__item.is-done { color: var(--ink-soft); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.choice { display: block; width: 100%; padding: 16px; border: 1px solid #A9A79E; border-radius: var(--radius); text-align: left; }
.choice:hover { border-color: var(--ink); }
.choice strong { display: block; font-size: 18px; font-weight: 800; }
.choice span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.choice.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-wash); }
.agree-all { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-weight: 800; cursor: pointer; }
.agree-all input, .term__label input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--brand); margin: 0; }
.term { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.term__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.term__label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; }
.term__label input { margin-top: 2px; }
.term__tag { margin-right: 4px; font-weight: 800; }
.term__tag--must { color: var(--seal); }
.term__tag--free { color: var(--ink-faint); }
.term__view { flex-shrink: 0; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.term__summary { margin-top: 4px; padding-left: 32px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.term__content { margin: 8px 0 0 32px; padding: 12px; max-height: 240px; overflow-y: auto; background: var(--paper-dim); border-radius: var(--radius); font: inherit; font-size: 14px; line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap; }
.terms-version { margin-top: 8px; font-size: 14px; color: var(--ink-faint); text-align: right; }
.terms-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.terms-body { margin: 12px 0 0; padding: 16px; max-height: 58vh; overflow-y: auto; background: var(--paper-dim); border-radius: var(--radius); font: inherit; line-height: 1.7; color: var(--ink-soft); white-space: pre-wrap; }
.code-field { position: relative; margin-top: 16px; }
.code-field .input { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; padding-right: 64px; }
.code-field .input::placeholder { font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.code-field__timer { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--seal); font-weight: 700; }

/* 탭형 전환 */
.segment { display: inline-flex; border: 1px solid #BDBBB2; border-radius: var(--radius); overflow: hidden; }
.segment--full { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.segment__btn { min-height: 36px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.segment__btn + .segment__btn { border-left: 1px solid #BDBBB2; }
.segment__btn.is-active { background: var(--brand); color: var(--paper); }

/* 생산자 화면 */
.desk { padding-top: 32px; padding-bottom: 64px; }
.desk--narrow { max-width: 836px; }
.desk__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.desk__title { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.desk__lead { margin-top: 4px; color: var(--ink-soft); }
.part { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.part__title { font-size: 18px; font-weight: 800; }
.part__title + .field, .part__title + .field-grid .field { margin-top: 12px; }
.part__title small { font-size: 14px; font-weight: 400; color: var(--ink-faint); margin-left: 2px; }
.part__title + .field-grid .field + .field { margin-top: 12px; }
.part__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.upload { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 12px; }
.upload .input { flex: 1; min-width: 220px; }
.upload__preview { margin-top: 12px; aspect-ratio: 16 / 9; max-height: 260px; background: var(--paper-dim); overflow: hidden; border-radius: var(--radius); }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; padding: 8px; background: var(--paper-dim); border: 1px solid #A9A79E; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.toolbar button { min-height: 34px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.toolbar button:hover { background: var(--paper); }
.toolbar + textarea.input { border-radius: 0 0 var(--radius) var(--radius); }
.editor-preview { margin-top: 12px; min-height: 220px; padding: 16px; border: 1px solid #A9A79E; border-radius: var(--radius); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 24px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tally button { padding: 12px 16px; text-align: left; }
.tally button + button { border-left: 1px solid var(--rule); }
.tally button:hover { background: var(--paper-dim); }
.tally span { display: block; font-size: 14px; color: var(--ink-soft); }
.tally b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.desk__filter { padding: 16px 0 12px; }
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.ledger th { padding: 8px 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-faint); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger td { padding: 12px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ledger__title { display: block; font-weight: 700; }
.ledger__sub { display: block; font-size: 14px; color: var(--ink-soft); }
.ledger__muted { color: var(--ink-soft); white-space: nowrap; }
.ledger__actions, .ledger th.ledger__actions { text-align: right; white-space: nowrap; }
.ledger__actions .btn + .btn { margin-left: 4px; }
.ledger__empty { padding: 36px 12px !important; text-align: center; color: var(--ink-soft); }
.state { font-weight: 700; white-space: nowrap; }
.state--PUBLISHED { color: var(--leaf); }
.state--PENDING { color: var(--seal-dark); }
.state--EXPIRED, .state--DELETED { color: var(--ink-faint); }

/* 꼬리말 */
.colophon { margin-top: auto; border-top: 1px solid var(--rule); background: var(--paper-dim); font-size: 14px; color: var(--ink-soft); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; padding-top: 28px; padding-bottom: 28px; }
.colophon__name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.colophon__links { display: flex; gap: 20px; flex-wrap: wrap; }
.colophon__legal { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); line-height: 1.65; }
.colophon__legal p + p { margin-top: 4px; }

/* 알림 */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; width: calc(100% - 32px); max-width: 480px; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-weight: 600; text-align: center; transition: opacity .2s ease; animation: toast-in .16s ease-out; }
.toast.is-leaving { opacity: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1080px) {
  .lots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro__photos img { width: 104px; height: 80px; }
}

@media (max-width: 900px) {
  .brand__tag { display: none; }
  .intro__photos { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .masthead { position: static; }
  .masthead__row { min-height: 60px; gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 22px; }
  .search--desktop { display: none; }
  .search--mobile { display: block; }
  .account { gap: 12px; }
  .account__who { display: none; }
  .studio__row { gap: 20px; overflow-x: auto; white-space: nowrap; }
  .studio__label { display: none; }
  .studio__row { flex-wrap: wrap; gap: 0 20px; }
  .studio__notice { width: 100%; margin: 0 0 8px; white-space: normal; }
  .intro__photos { display: grid; }
  .intro__row { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .intro__title { font-size: 22px; }
  .intro__side { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .intro__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro__photos img { width: 100%; height: 76px; }
  .intro__side .btn { width: 100%; }
  .brand__tag { display: none; }
  .cats, .subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cats::-webkit-scrollbar, .subcats::-webkit-scrollbar { display: none; }
  .cat { flex-shrink: 0; }
  .result-bar { flex-wrap: wrap; }
  .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .lot__title { font-size: 15px; }
  .modal { padding: 0; align-items: stretch; }
  .sheet, .sheet--wide { max-width: none; border: 0; border-radius: 0; min-height: 100%; padding: 24px 20px 20px; }
  .field-grid, .field-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .desk__title { font-size: 28px; }
  .tally b { font-size: 24px; }
  .tally button { padding: 12px; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 2px 0; border: 0; }
  .ledger td::before { content: attr(data-label); color: var(--ink-faint); font-size: 14px; }
  .ledger td.ledger__empty { display: block; }
  .ledger td.ledger__empty::before { display: none; }
  .ledger td.ledger__actions { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 12px; text-align: left; }
  .ledger td.ledger__actions::before { display: none; }
  .ledger__actions .btn + .btn { margin-left: 0; }
  .colophon__grid { grid-template-columns: minmax(0, 1fr); }
}

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