:root {
  --bg: #faf6ef;
  --paper: #fffdf9;
  --ink: #2a2220;
  --muted: #8b7f78;
  --line: #e9dfd2;
  --red: #b3262d;
  --red-deep: #8f1d23;
  --red-soft: #f8e9e6;
  --gold: #b08d57;
  --radius: 18px;
  --serif: "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --shadow: 0 1px 2px rgba(80, 40, 20, .04), 0 8px 28px rgba(120, 60, 30, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans); padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.paper {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(176, 141, 87, .08) 1px, transparent 1px);
  background-size: 4px 4px;
}
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; margin: 14px 14px 0; padding: 22px 20px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  outline: 1px solid var(--line); outline-offset: -8px; box-shadow: var(--shadow);
}
.hero-meta, .hero-foot {
  display: flex; justify-content: space-between; align-items: center;
  font: 10px/1 var(--sans); letter-spacing: .22em; color: var(--muted); position: relative;
}
.hero-foot { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.stamp {
  color: var(--red); border: 1px solid var(--red); padding: 4px 6px; border-radius: 3px;
  transform: rotate(-3deg); letter-spacing: .12em;
}
.hero-mark {
  position: absolute; right: -14px; top: 4px; font: 900 168px/1 var(--serif); color: var(--red);
  opacity: .09; pointer-events: none; user-select: none;
}
.hero h1 {
  position: relative; margin: 26px 0 6px; font: 700 32px/1.2 var(--serif); letter-spacing: .06em;
}
.hero h1::after {
  content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-top: 12px; border-radius: 2px;
}
.sub { position: relative; margin: 10px 0 16px; color: var(--muted); font-size: 14px; max-width: 30em; }
.theme-tabs { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.theme-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer;
}
.theme-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.theme-tab:disabled { cursor: not-allowed; color: #b9ada5; }
.theme-tab small { font-size: 10px; margin-left: 4px; }

/* ---------- banner ---------- */
.banner {
  margin: 12px 14px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px;
  background: #fff7e8; border: 1px solid #f0dcb4; color: #7a5a1f;
}
.banner code { background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- layout ---------- */
.layout { padding: 0 14px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font: 700 18px/1.3 var(--serif); letter-spacing: .04em; }
.card-head .no { font: italic 600 13px/1 Georgia, serif; color: var(--red); letter-spacing: .05em; }
.aside { color: var(--muted); font-size: 12px; }
.card-head .aside { margin-left: auto; }
.tip { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.tip.small { font-size: 11.5px; }
.center { text-align: center; }

/* ---------- photo ---------- */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #f3ece2;
  border-radius: 12px; padding: 4px; margin-bottom: 14px;
}
.segmented button {
  border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted);
}
.segmented button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.slots { display: grid; grid-template-columns: 1fr; gap: 12px; }
.slots.two { grid-template-columns: 1fr 1fr; }
.slot {
  position: relative; aspect-ratio: 4 / 3; border: 1.5px dashed #d9c9b3; border-radius: 14px;
  background: repeating-linear-gradient(-45deg, #fffaf3, #fffaf3 10px, #fdf5ea 10px, #fdf5ea 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s;
}
.slots.two .slot { aspect-ratio: 3 / 4; }
.slot:hover { border-color: var(--red); }
.slot:active { transform: scale(.99); }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot .plus {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-size: 26px; line-height: 1;
}
.slot .label { font-weight: 600; font-size: 14px; }
.slot .hint { font-size: 11.5px; color: var(--muted); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled { border-style: solid; border-color: var(--line); }
.slot .tag {
  position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); border-radius: 999px;
  font-size: 11px; padding: 2px 9px; z-index: 2;
}
.slot .remove {
  position: absolute; right: 8px; top: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; cursor: pointer; line-height: 1;
}
.identity {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--red-soft); color: var(--red-deep); font-size: 13px;
}
.identity em { font-style: normal; color: #b0726f; font-size: 12px; }
.check {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 11px; margin-top: 2px;
}

/* ---------- presets ---------- */
.presets {
  display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto;
  margin: 0 -16px; padding: 5px 16px 8px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.presets::-webkit-scrollbar { display: none; }
.preset {
  scroll-snap-align: start; border: 1.5px solid transparent; background: none; padding: 0; cursor: pointer; text-align: left;
  border-radius: 12px; transition: transform .2s;
}
.preset img {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #f3ece2;
}
.preset span { display: block; font-size: 12.5px; margin: 6px 2px 0; }
.preset.active img { outline: 2px solid var(--red); outline-offset: 2px; }
.preset.active span { color: var(--red); font-weight: 600; }
.preset:hover { transform: translateY(-2px); }

/* ---------- fields ---------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .flabel { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field .fhint { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px;
  cursor: pointer; transition: all .15s; line-height: 1.3;
}
.chip:hover { border-color: #d7b9a6; }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 3px 10px rgba(179, 38, 45, .22); }
.chip.custom { border-style: dashed; color: var(--muted); }
.chip.custom.active { color: #fff; border-style: solid; }
.custom-input { margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 .full { grid-column: 1 / -1; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px;
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
  min-height: 44px;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 38, 45, .1); }
.input::placeholder, .textarea::placeholder { color: #c2b7ae; }
.group-note { margin: -8px 0 14px; font-size: 12px; color: var(--muted); }

.ratios { display: flex; gap: 10px; flex-wrap: wrap; }
.ratio {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px 8px; min-width: 58px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12px;
}
.ratio i { display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .6; }
.ratio.active { border-color: var(--red); color: var(--red); background: var(--red-soft); font-weight: 600; }
.ratio.active i { opacity: 1; }

/* ---------- prompt ---------- */
.prompt-card { padding: 0; overflow: hidden; }
.prompt-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; background: none;
  padding: 16px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.prompt-toggle .chev { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.prompt-panel { border-top: 1px dashed var(--line); padding: 14px 16px 16px; }
.prompt-panel pre {
  margin: 0; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.75 var(--sans); color: #4c403b;
  background: #fbf7f1; border-radius: 10px; padding: 12px; max-height: 360px; overflow: auto;
}
.prompt-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px;
  border: 1px solid transparent; padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .1s, background .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(179, 38, 45, .28); }
.btn.primary:hover { background: var(--red-deep); }
.btn.primary:disabled { opacity: .55; cursor: progress; box-shadow: none; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; font-weight: 500; }
.btn.big { padding: 13px 26px; font-size: 16px; letter-spacing: .08em; }

/* ---------- bottom bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(250, 246, 239, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.bar-inner { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; }
.bar .btn.big { flex: 1; max-width: 360px; margin-left: auto; }
.provider { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.provider span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c9bdb3; flex: none; }
.provider.ok .dot { background: #3aa76d; box-shadow: 0 0 0 3px rgba(58, 167, 109, .15); }
.provider.warn .dot { background: #e0a030; box-shadow: 0 0 0 3px rgba(224, 160, 48, .18); }

/* ---------- result ---------- */
.result-stage {
  position: relative; min-height: 300px; border-radius: 12px; background: #fbf7f1; display: grid; place-items: center; overflow: hidden;
}
.result-stage img { display: block; width: 100%; height: auto; border-radius: 12px; animation: reveal .6s ease; }
@keyframes reveal { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.loading { text-align: center; padding: 40px 20px; }
.loader {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--red-soft); border-top-color: var(--red); animation: spin 1.4s linear infinite;
}
.loader span { font: 900 36px/1 var(--serif); color: var(--red); animation: spin 1.4s linear infinite reverse, pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .5; } }
.loading p { margin: 4px 0; }
.result-actions { display: flex; gap: 10px; margin-top: 14px; }
.result-actions .btn { flex: 1; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 560px; margin: 0 auto; background: #2a2220; color: #fff; padding: 12px 16px; border-radius: 12px;
  font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: up .25s ease;
}
.toast.error { background: #8f1d23; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- desktop ---------- */
@media (min-width: 600px) {
  .hero, .banner, .layout { max-width: 640px; margin-left: auto; margin-right: auto; }
  .layout { padding: 0; }
  .bar-inner { max-width: 640px; }
  .slots:not(.two) .slot { aspect-ratio: 16 / 9; }
  .hero { margin-top: 24px; padding: 30px 32px 20px; }
  .hero h1 { font-size: 38px; }
  .card { padding: 22px 22px; }
  .presets { margin: 0 -22px; padding: 5px 22px 8px; grid-auto-columns: 124px; }
  .prompt-card { padding: 0; }
}

.result-error { text-align: center; padding: 36px 22px; color: var(--red-deep); font-size: 14px; }
.result-error p { margin: 10px 0 0; line-height: 1.7; }
.err-mark {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--red); color: var(--red); font: 700 22px/1 Georgia, serif;
}
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a7d73 50%), linear-gradient(135deg, #8a7d73 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.warn-text { color: #b3262d; margin-top: 4px; }

/* ---------- 结果画廊（单张 / 多张） ---------- */
.gallery { display: grid; gap: 14px; width: 100%; align-self: stretch; }
.gallery:empty { display: none; }
.gallery.multi { grid-template-columns: 1fr 1fr; gap: 10px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; animation: reveal .6s ease; }
.shot-ph { aspect-ratio: 3 / 4; border-radius: 12px; background: rgba(179, 38, 45, .04); border: 1px dashed rgba(179, 38, 45, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.shot.failed .shot-ph { color: var(--red-deep); }
.shot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
.gallery.multi .shot-actions .btn { flex-basis: 100%; }
.shot figcaption { font-size: 11px; color: var(--muted); line-height: 1.5; }
.loader.sm { width: 46px; height: 46px; margin: 0; }
.loader.sm span { font-size: 20px; }
.cost-estimate { margin: 10px 0 6px; padding: 9px 12px; border-radius: 10px; background: rgba(179, 38, 45, .06); color: var(--red-deep); font-size: 12.5px; line-height: 1.6; }
.photo-only { display: none; }
body[data-kind="photo"] .photo-only { display: block; }

/* 婚纱照风格示例卡片 */
.chips.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.style-card { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #f4eee9; cursor: pointer; aspect-ratio: 3 / 4; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: transform .15s, border-color .15s; }
.style-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card:hover { transform: translateY(-2px); }
.style-card.active { border-color: var(--red); box-shadow: 0 4px 14px rgba(179, 38, 45, .28); }
.style-card.active::after { content: '✓'; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.style-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 7px; font-size: 12.5px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.style-zoom { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; line-height: 24px; text-align: center; }
.style-grid .chip.custom { aspect-ratio: 3 / 4; height: auto; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.style-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.style-preview { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.style-preview figure { margin: 0; max-width: min(520px, 100%); }
.style-preview img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; display: block; }
.style-preview figcaption { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-top: 10px; font-size: 15px; }
.style-preview-close { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 16px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 520px) { .chips.style-grid { gap: 8px; } .style-name { font-size: 11.5px; } }

.preset-thumb { position: relative; }
.preset-thumb .style-zoom { font-style: normal; cursor: zoom-in; }
.style-zoom { cursor: zoom-in; }

/* ---------- 日期 / 时间选择器 ---------- */
.picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; font-family: var(--serif); color: var(--ink); }
.picker-trigger.empty span { color: #c2b7ae; font-family: var(--sans); }
.picker-trigger span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.picker-icon { font-style: normal; font-size: 15px; opacity: .75; }
.picker-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(42, 34, 32, 0); display: flex; align-items: center; justify-content: center; padding: 16px; transition: background .18s; }
.picker-overlay.show { background: rgba(42, 34, 32, .45); }
.picker-sheet { width: min(380px, 100%); background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -6px; box-shadow: 0 20px 60px rgba(60, 20, 10, .25); padding: 14px 16px 18px; transform: translateY(12px); opacity: 0; transition: transform .18s, opacity .18s; }
.picker-overlay.show .picker-sheet { transform: none; opacity: 1; }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.picker-head strong { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.picker-link { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.picker-link.ok { color: #fff; background: var(--red); border-radius: 14px; padding: 5px 14px; }
.cal-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cal-title { flex: 1; text-align: center; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.cal-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--red); font-size: 16px; line-height: 1; cursor: pointer; }
.cal-arrow:hover { border-color: var(--red); }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week span { font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal-week .weekend { color: var(--red); }
.cal-grid { gap: 4px 0; }
.cal-day { height: 38px; margin: 0 auto; width: 38px; border-radius: 50%; border: 0; background: none; font: 15px var(--serif); color: var(--ink); cursor: pointer; position: relative; }
.cal-day.weekend { color: var(--red-deep); }
.cal-day:hover:not(.blank) { background: var(--red-soft); }
.cal-day.today::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal-day.sel { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(179, 38, 45, .3); }
.cal-day.sel::before { content: '囍'; position: absolute; top: -6px; right: -4px; font-size: 10px; color: var(--gold); background: var(--paper); border-radius: 50%; width: 16px; height: 16px; line-height: 16px; }
.cal-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); text-align: center; font-family: var(--serif); color: var(--red); font-size: 15px; letter-spacing: .04em; }
.tp-preview { text-align: center; font: 34px/1.1 var(--serif); color: var(--red); letter-spacing: .06em; margin: 2px 0 10px; }
.tp-preview small { display: block; font: 12px var(--sans); color: var(--muted); letter-spacing: .2em; margin-top: 4px; }
.tp-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tp-quick .chip { padding: 4px 10px; font-size: 13px; }
.tp-quick-label { font-size: 12px; color: var(--muted); width: 100%; }
.tp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-col { height: 184px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 4px; scrollbar-width: thin; }
.tp-item { display: block; width: 100%; border: 0; background: none; padding: 8px 0; border-radius: 8px; font: 15px var(--serif); color: var(--ink); cursor: pointer; }
.tp-item:hover { background: var(--red-soft); }
.tp-item.sel { background: var(--red); color: #fff; }
@media (max-width: 520px) {
  .picker-overlay { align-items: flex-end; padding: 0; }
  .picker-sheet { width: 100%; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.tp-col { position: relative; }
.field { min-width: 0; }
.picker-trigger { min-width: 0; }
