:root {
  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --ink: #1e1a17;
  --ink-2: #6b625a;
  --ink-3: #9a8f84;
  --rule: #e4ded4;
  --claret: #6e1e2b;
  --claret-2: #8a2a3a;
  --claret-ink: #f6ecee;
  --claret-soft: #f1e3e5;
  --gold: #8a6a1f;
  --gold-soft: #f3ead2;
  --ok: #2f6b3f;
  --warn: #9a5b12;
  --err: #a3242f;
  --focus: #b24a5c;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 26, 23, .14), 0 1px 3px rgba(30, 26, 23, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171413;
    --paper-2: #211c1a;
    --ink: #f1ebe4;
    --ink-2: #b9ada2;
    --ink-3: #8c8178;
    --rule: #332c28;
    --claret: #5a1826;
    --claret-2: #7a2637;
    --claret-ink: #f6ecee;
    --claret-soft: #3a1b22;
    --gold: #d8b45a;
    --gold-soft: #3a301a;
    --ok: #7cc08d;
    --warn: #e0a256;
    --err: #ef7a83;
    --focus: #e58a9a;
    --shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.4 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--claret-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
a { color: var(--claret-2); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #e9a3b0; } }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* Shell */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--claret); color: var(--claret-ink);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 12px;
}
.top-row { display: flex; align-items: center; gap: 12px; max-width: 960px; margin: 0 auto; }
.brand { font-size: 17px; font-weight: 650; letter-spacing: .01em; margin: 0; flex: 1; }
.brand small { display: block; font-size: 12.5px; font-weight: 450; opacity: .78; letter-spacing: 0; }
.icon-btn {
  appearance: none; border: 0; background: transparent; color: inherit; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 22px; height: 22px; }
.search {
  display: block; max-width: 960px; margin: 10px auto 0; position: relative;
}
.search input {
  width: 100%; height: 44px; border-radius: 12px; border: 0; padding: 0 14px 0 40px;
  background: rgba(255,255,255,.14); color: var(--claret-ink); font-size: 16px;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e1e2b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.search input::placeholder { color: rgba(246,236,238,.72); }
.search input:focus { outline: 2px solid rgba(255,255,255,.55); outline-offset: 0; background: rgba(255,255,255,.2); }
.search svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; opacity: .8; }

.actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 960px; margin: 10px auto 0;
}
.action {
  appearance: none; border: 0; border-radius: 12px; padding: 10px 6px;
  background: var(--paper); color: var(--claret); font-weight: 620; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
}
.action svg { width: 19px; height: 19px; flex: none; }
.action:hover { background: var(--claret-soft); }
.action[aria-pressed="true"] { background: var(--gold); color: #1e1a17; }
@media (prefers-color-scheme: dark) { .action { background: #2a1a1e; color: #f3d5db; } .action:hover { background: #3a222a; } }

main { max-width: 960px; margin: 0 auto; padding: 0 0 120px; }

/* Location chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 10px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; appearance: none; cursor: pointer; border: 1px solid var(--rule); background: var(--paper);
  border-radius: 999px; padding: 7px 13px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.chip b { color: var(--ink); font-weight: 620; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] b { color: var(--paper); }

.summary { padding: 0 16px 2px; color: var(--ink-2); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.summary strong { color: var(--ink); font-weight: 600; }
.summary .key { display: inline-flex; align-items: center; gap: 6px; }

.mode-banner {
  margin: 6px 16px 8px; padding: 12px 14px; border: 1.5px solid var(--gold); border-radius: var(--radius);
  background: var(--gold-soft); color: var(--ink); font-size: 14.5px; display: flex; align-items: center; gap: 10px;
}
.mode-banner span { flex: 1; }
.link-btn { appearance: none; border: 0; background: none; color: var(--claret-2); font-weight: 600; cursor: pointer; padding: 6px 4px; }
@media (prefers-color-scheme: dark) { .link-btn { color: #e9a3b0; } }

/* The list */
.section-head {
  position: sticky; top: var(--top-h, 0px); z-index: 5;
  background: var(--paper); padding: 16px 16px 6px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; gap: 8px;
  font-variant: small-caps; letter-spacing: .06em; font-size: 15px; font-weight: 650; color: var(--claret-2);
}
@media (prefers-color-scheme: dark) { .section-head { color: #e2a0ad; } }
.section-head .n { margin-left: auto; font-variant: normal; letter-spacing: 0; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 3.4rem 2.9rem 1fr auto; align-items: baseline; column-gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; position: relative;
}
.row:hover { background: var(--paper-2); }
.row:active { background: var(--claret-soft); }
.bin { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vin { color: var(--ink-2); font-size: 15px; }
.name { display: flex; align-items: baseline; min-width: 0; gap: 6px; }
.name .t { font-size: 15.5px; line-height: 1.3; }
.name .t em { font-style: normal; color: var(--ink-2); font-size: 13px; margin-left: 4px; }
.lead { flex: 1; min-width: 14px; border-bottom: 1.5px dotted var(--ink-3); transform: translateY(-4px); opacity: .7; }
.count { font-weight: 620; font-size: 15.5px; min-width: 1.6rem; text-align: right; }
.ready { width: 7px; height: 7px; border-radius: 99px; background: var(--gold); display: inline-block; transform: translateY(-2px); }
.row .tag { font-size: 12px; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* stepper in move mode */
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button {
  appearance: none; border: 1px solid var(--rule); background: var(--paper); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink);
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 2.6rem; text-align: center; font-weight: 620; font-size: 14.5px; }
.row.picked { background: var(--gold-soft); }
.moving .row { grid-template-columns: 3.4rem 2.9rem 1fr; row-gap: 6px; }
.moving .row .stepper { grid-column: 3; justify-self: end; }
.moving .row .lead { display: none; }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.skeleton { padding: 8px 16px; }
.skeleton div { height: 18px; margin: 14px 0; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--rule), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Bottom bar (move mode) */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bar-in { max-width: 960px; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bar .what { flex: 1 1 100%; font-size: 14.5px; color: var(--ink-2); }
.bar .what strong { color: var(--ink); }

/* Buttons & fields */
.btn {
  appearance: none; border: 0; border-radius: 12px; min-height: 46px; padding: 0 18px; cursor: pointer;
  background: var(--claret); color: var(--claret-ink); font-weight: 620; font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: var(--claret-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.secondary { background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); }
.btn.secondary:hover { background: var(--rule); }
.btn.block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; }
.field { display: grid; gap: 5px; margin: 0 0 14px; }
.field > span { font-size: 13.5px; color: var(--ink-2); font-weight: 520; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
  padding: 10px 12px; font-size: 16px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper-2); border-radius: 10px; padding: 3px; margin: 0 0 14px; }
.seg button { appearance: none; border: 0; background: transparent; border-radius: 8px; min-height: 40px; cursor: pointer; color: var(--ink-2); font-weight: 560; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hint { font-size: 13px; color: var(--ink-3); margin: -8px 0 14px; }
.error { color: var(--err); font-size: 14px; margin: 0 0 12px; }

/* Sheets */
dialog.sheet {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: var(--paper); color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(20, 14, 14, .45); }
@media (min-width: 720px) {
  dialog.sheet { width: 560px; height: auto; max-height: 88vh; margin: auto; border-radius: 16px; box-shadow: var(--shadow); }
}
dialog.sheet[open] { animation: up .22s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(18px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } .skeleton div { animation: none; } }
.sheet-head {
  position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px;
}
.sheet-head h2 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 640; text-align: center; padding-right: 40px; }
.sheet-head .icon-btn:hover { background: var(--paper-2); }
.sheet-body { padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }

/* Wine detail */
.w-title { margin: 0 0 4px; font-size: 22px; line-height: 1.22; font-weight: 660; letter-spacing: -.01em; text-wrap: balance; }
.w-title .v { color: var(--ink-2); font-weight: 560; }
.w-meta { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 18px; }
.facts div { padding: 10px 0; }
.facts div + div { border-left: 1px solid var(--rule); padding-left: 12px; }
.facts dt { font-size: 12.5px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 620; font-size: 16px; }
.facts dd small { display: block; font-weight: 450; font-size: 12px; color: var(--ink-3); }
.facts div + div { padding-left: 10px; }
.h3 { font-variant: small-caps; letter-spacing: .06em; font-size: 14.5px; font-weight: 650; color: var(--claret-2); margin: 22px 0 8px; }
@media (prefers-color-scheme: dark) { .h3 { color: #e2a0ad; } }
.holds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.holds li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.holds .where { flex: 1; }
.holds .where small { display: block; color: var(--ink-3); font-size: 13px; }
.holds .n { font-weight: 620; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }

.window { margin: 4px 0 0; }
.window .track { position: relative; height: 8px; border-radius: 99px; background: var(--paper-2); }
.window .span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--gold); opacity: .8; }
.window .now { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }
.window .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 11px; text-decoration: none; color: var(--ink); font-size: 14.5px;
}
.links a:hover { background: var(--paper-2); }
.links a b { color: var(--claret-2); }
@media (prefers-color-scheme: dark) { .links a b { color: #e9a3b0; } }
.ws { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.ws-step { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
.ws .field { flex: 1; margin: 0; }

.history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.history li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.history time { color: var(--ink-3); }
.history .k { font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 12px; font-size: 14.5px;
  box-shadow: var(--shadow); max-width: calc(100% - 32px);
}

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--claret); }
.signin form { width: 100%; max-width: 380px; background: var(--paper); border-radius: 16px; padding: 24px 20px; box-shadow: var(--shadow); }
.signin h1 { margin: 0 0 4px; font-size: 21px; }
.signin p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

.suggest { list-style: none; margin: -8px 0 14px; padding: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.suggest li button { appearance: none; border: 0; background: var(--paper); width: 100%; text-align: left; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.suggest li:last-child button { border-bottom: 0; }
.suggest li button:hover { background: var(--paper-2); }
.chosen { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); margin: 0 0 14px; }
.chosen span { flex: 1; }
.links a small { color: var(--ink-3); font-size: 12.5px; }
.rev-save { margin: 12px 0 0; }
.rev-save summary { cursor: pointer; color: var(--claret-2); font-weight: 600; font-size: 14.5px; padding: 6px 0; list-style: none; }
.rev-save summary::-webkit-details-marker { display: none; }
.rev-save summary::before { content: "+ "; }
.rev-save[open] summary::before { content: "− "; }
.rev-save[open] summary { margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .rev-save summary { color: #e9a3b0; } }
.paste { display: flex; gap: 8px; }
.paste input { flex: 1; }
.summary { align-items: center; }
.summary .view { margin: 0 0 0 auto; padding: 2px; display: inline-grid; grid-auto-flow: column; }
.summary .view button { min-height: 30px; padding: 0 10px; font-size: 13.5px; }
.group-head {
  margin: 0; padding: 22px 16px 4px; font-size: 20px; font-weight: 680; letter-spacing: -.01em; color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
}
.group-head .n { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.name .t small.due { display: block; font-size: 13px; color: var(--gold); font-weight: 560; margin-top: 2px; }
.name .t small.due.late { color: var(--warn); }
.scan-btn { cursor: pointer; }
.w-head { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; margin: 0 0 6px; }
.label-col { display: grid; justify-items: center; gap: 2px; }
.label-replace { font-size: 13px; padding: 2px 4px; }
.label-slot {
  appearance: none; font: inherit; width: 76px; height: 96px; border-radius: 8px; border: 1.5px dashed var(--rule); background: var(--paper-2) center/cover no-repeat;
  display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--ink-3); font-size: 12px; line-height: 1.2; padding: 6px;
}
.label-slot.has { border: 1px solid var(--rule); }
.label-slot:hover { border-color: var(--ink-3); }
.seg4 button { font-size: 14px; padding: 0 4px; }
dialog.cropper { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #111; color: #f4efea; display: grid; grid-template-rows: auto 1fr auto; }
dialog.cropper::backdrop { background: #111; }
.crop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; }
.crop-head .link-btn { color: #f4efea; }
.crop-head .btn { min-height: 40px; }
.crop-stage { display: grid; place-items: center; min-height: 0; padding: 8px 16px; overflow: hidden; }
.crop-wrap { position: relative; max-width: 100%; max-height: 100%; line-height: 0; overflow: hidden; touch-action: none; }
.crop-wrap img { max-width: 100%; max-height: calc(100vh - 150px); display: block; user-select: none; -webkit-user-drag: none; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.crop-box i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; background: transparent; }
.crop-box i[data-h="nw"] { left: -4px; top: -4px; border-right: 0; border-bottom: 0; cursor: nwse-resize; }
.crop-box i[data-h="ne"] { right: -4px; top: -4px; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.crop-box i[data-h="sw"] { left: -4px; bottom: -4px; border-right: 0; border-top: 0; cursor: nesw-resize; }
.crop-box i[data-h="se"] { right: -4px; bottom: -4px; border-left: 0; border-top: 0; cursor: nwse-resize; }
.crop-hint { margin: 0; padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: 13.5px; color: #b9ada2; }
.name .t small.act { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.row.feed.consumed small.act, .row.feed.removed small.act { color: var(--claret-2); }
.row.feed.purchased small.act, .row.feed.delivered small.act { color: var(--ok); }
@media (prefers-color-scheme: dark) { .row.feed.consumed small.act, .row.feed.removed small.act { color: #e9a3b0; } }
.more { padding: 18px 16px; display: grid; }
.count .pend { color: var(--ink-3); font-weight: 520; }
.holds .n small.left { display: block; font-size: 12px; font-weight: 450; color: var(--ink-3); text-align: right; }
.holds .n { text-align: right; }
.inbox-btn { position: relative; }
.inbox-btn .badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #1e1a17; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.inbox-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.inbox-item { appearance: none; border: 0; background: none; width: 100%; text-align: left; padding: 11px 0; border-bottom: 1px solid var(--rule); cursor: pointer; display: grid; gap: 3px; color: var(--ink); }
.inbox-item:hover { background: var(--paper-2); }
.inbox-list.done .inbox-item { opacity: .7; }
.ib-kind { font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--claret-2); }
.ib-sum { font-size: 15px; }
.inbox-item small { color: var(--ink-3); font-size: 13px; }
.ib-summary { font-size: 16.5px; margin: 0 0 12px; }
.ib-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 14px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ib-facts .wide { grid-column: 1 / -1; }
.ib-facts dt { font-size: 12.5px; color: var(--ink-3); }
.ib-facts dd { margin: 1px 0 0; font-size: 15px; }
.ib-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ib-line { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 7px; }
.ib-l-head { display: flex; gap: 6px; align-items: baseline; font-size: 15px; }
.ib-l-head .num:first-child { font-weight: 650; }
.ib-price { margin-left: auto; font-weight: 620; text-align: right; }
.ib-price small { display: block; font-size: 11.5px; font-weight: 450; color: var(--ink-3); }
.ib-line select { width: 100%; min-height: 42px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); padding: 6px 10px; font-size: 14.5px; }
pre.raw { white-space: pre-wrap; font: 13px/1.4 ui-monospace, Menlo, monospace; background: var(--paper-2); border-radius: 10px; padding: 10px; max-height: 320px; overflow: auto; }
.ib-l-head .num:first-child { white-space: nowrap; }
.ib-line.dup { opacity: .85; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qb {
  appearance: none; width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.qb:hover { border-color: var(--ink-3); color: var(--ink); }
.qb:disabled { opacity: .3; cursor: default; }
.qty .count { min-width: 1.4rem; text-align: center; }
@media (max-width: 480px) { .row { grid-template-columns: 2.9rem 2.6rem 1fr auto; column-gap: 6px; } .row .lead { display: none; } }
