:root {
  --ink: #111; --sub: #6b6b6b; --line: #e6e6e6; --bg: #fff;
  --dot: #c0392b; --ok: #1e7a46;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px 96px; }
.wide { max-width: 1024px; }

/* header */
header.site { padding: 22px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.wordmark { font-size: 13px; letter-spacing: .22em; font-weight: 700; }
.wordmark a { border: none; }
.showline { margin-top: 6px; font-size: 13px; color: var(--sub); letter-spacing: .02em; }
.nav { margin-top: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { color: var(--sub); margin-right: 18px; padding-bottom: 2px; }
.nav a.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* index list */
.worklist { list-style: none; }
.worklist li { border-bottom: 1px solid var(--line); }
.worklist a { display: flex; gap: 14px; padding: 16px 0; align-items: center; }
.thumb { width: 64px; height: 64px; background: #f2f2f0; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #b5b5b5; letter-spacing: .1em; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.wl-main { flex: 1; min-width: 0; }
.wl-artist { font-size: 14px; font-weight: 700; }
.wl-title { font-size: 14px; font-style: italic; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-price { font-size: 13px; text-align: right; color: var(--ink); flex: none; }
.wl-price .por { color: var(--sub); font-style: italic; }

/* artwork page */
.workimg { width: 100%; background: #f2f2f0; margin-bottom: 22px; }
.workimg img { width: 100%; display: block; }
.w-artist { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.w-title { font-size: 18px; font-style: italic; margin-top: 2px; }
.w-meta { margin-top: 10px; color: var(--sub); font-size: 14px; }
.w-price { margin-top: 16px; font-size: 17px; }
.w-price .por { font-style: italic; color: var(--sub); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sub); margin-top: 8px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); display: inline-block; }

.actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.btn { display: block; width: 100%; padding: 14px 16px; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  cursor: pointer; font-family: inherit; transition: opacity .15s; }
.btn.primary { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.saved { background: #f5f5f3; border-color: var(--line); color: var(--ink); }
.hint { margin-top: 14px; font-size: 12.5px; color: var(--sub); }

/* sheets */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; z-index: 40; }
.overlay.open { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 50;
  transform: translateY(105%); transition: transform .22s ease; padding: 24px 20px 32px;
  border-top: 1px solid var(--line); max-width: 480px; margin: 0 auto; max-height: 86vh; overflow-y: auto; }
.sheet.open { transform: none; }
.sheet h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.sheet .sub { font-size: 13px; color: var(--sub); margin-bottom: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sub); margin-bottom: 5px; }
.field input, .field textarea { width: 100%; padding: 12px; border: 1px solid #ccc;
  font-size: 16px; font-family: inherit; background: #fff; border-radius: 0; -webkit-appearance: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.dollar { position: relative; }
.dollar span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sub); }
.dollar input { padding-left: 26px; }
.sheet .err { color: var(--dot); font-size: 13px; margin-top: 8px; display: none; }
.sheet .row { display: flex; gap: 10px; margin-top: 16px; }
.sheet .row .btn { flex: 1; }
.closex { position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 22px; color: var(--sub); cursor: pointer; line-height: 1; }

/* toast / confirm */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px; z-index: 60;
  transition: transform .25s ease; max-width: 88vw; text-align: center; }
.toast.show { transform: translateX(-50%); }

.done { text-align: center; padding: 26px 0 8px; }
.done .mark { font-size: 30px; }
.done h4 { font-size: 15px; margin-top: 10px; letter-spacing: .04em; }
.done p { font-size: 13.5px; color: var(--sub); margin-top: 6px; }

footer.site { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--sub); letter-spacing: .06em; line-height: 1.7; }

/* my list */
.empty { color: var(--sub); font-size: 14px; padding: 30px 0; text-align: center; font-style: italic; }

/* admin */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.tile { border: 1px solid var(--line); padding: 14px; }
.tile .n { font-size: 26px; font-weight: 700; }
.tile .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); margin-top: 2px; }
.sect { margin-top: 30px; }
.sect > h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline; }
.sect > h2 .mini { font-size: 11px; color: var(--sub); text-transform: none; letter-spacing: 0; font-weight: 400; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sub); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
table.grid td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; font-size: 11px; padding: 2px 7px; border: 1px solid var(--line);
  margin: 1px 3px 1px 0; letter-spacing: .04em; }
.offercard { border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; }
.offercard.hot { border-color: var(--ink); }
.offercard .amt { font-size: 20px; font-weight: 700; }
.offercard .vs { font-size: 12px; color: var(--sub); }
.offercard .who { margin-top: 6px; font-size: 13.5px; }
.offercard .msg { margin-top: 6px; font-size: 13.5px; color: var(--sub); font-style: italic; }
.offercard .ops { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px;
  border: 1px solid #ccc; background: #fff; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-accepted { color: var(--ok); }
.status-declined, .status-archived { color: var(--sub); }
.small { font-size: 12px; color: var(--sub); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.btn.compact { width: auto; padding: 10px 14px; font-size: 12px; }
@media (max-width: 720px) {
  table.grid.responsive thead { display: none; }
  table.grid.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.grid.responsive td { display: block; border: none; padding: 2px 0; }
}
