#lista-view .container { max-width: 980px; }
#lista-view .view-title { margin-bottom: 20px; }
.sb-workspace { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-white); }
#lista-view .lista-input-area { padding: 0; margin-bottom: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
#lista-view .lista-name-input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 4px 0 10px; margin-bottom: 12px; font-weight: 600; background: transparent; }
.sb-entry { position: relative; display: flex; align-items: stretch; }
#lista-view .lista-textarea { height: 48px; min-height: 48px; max-height: 48px; resize: none; padding: 12px 54px 10px 13px; font-size: 15px; line-height: 22px; border-width: 1px; border-radius: 9px; }
#shopping-add { position: absolute; inset-block: 4px; right: 4px; width: 40px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; cursor: pointer; font-size: 26px; line-height: 1; }
#lista-view .lista-hint { margin-top: 8px; line-height: 1.5; }
#lista-view .lista-actions { margin-top: 14px; }
#lista-view .lista-match-btn, #lista-view .lista-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 44px; padding: 10px 8px; font-size: 12px; border-radius: 9px; }
#lista-view .lista-actions svg { flex-shrink: 0; }
.sb-save-status { color: var(--text-muted); font-size: 11px; line-height: 1.4; margin: 9px 0; }
.sb-save-status:empty { display: none; }
#lista-view #lista-empty { display: none; }
.shopping-board { --sb-columns: minmax(0, 1fr) minmax(0, 1fr) 128px; background: transparent; border: 0; border-radius: 0; padding: 0; margin-top: 18px; }
.sb-gesture-hint { margin: 0 0 12px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.sb-workspace-footer { margin-top: 18px; }
.sb-board-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 17px; }
.sb-board-heading h3 { font-size: 17px; font-weight: 700; margin: 0; }
.sb-board-heading > span { font-size: 11px; color: var(--text-muted); }
.sb-columns { display: grid; grid-template-columns: var(--sb-columns); gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sb-columns h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 650; }
.sb-columns h4 > span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 50%; background: #ecf2e8; color: #426443; font-size: 10px; }
.sb-columns .sb-price-heading { justify-content: flex-end; padding-right: 4px; }
.sb-row { display: grid; grid-template-columns: var(--sb-columns); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0e8; }
.sb-cell { min-width: 0; min-height: 48px; display: flex; align-items: center; position: relative; }
.sb-cart-cell { border-left: 1px dashed var(--border); padding-left: 7px; }
.sb-pill { position: relative; display: flex; align-items: stretch; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #bed3b5; border-radius: 13px; background: #e7f0df; color: #1b5037; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sb-pill.in-cart { background: #196448; border-color: #196448; color: #fff; }
.sb-pill.is-moving { z-index: 5; box-shadow: 0 8px 20px #153c3726; }
.sb-remove { flex: 0 0 32px; padding: 0; border: 0; border-radius: 13px 0 0 13px; color: inherit; background: transparent; font-size: 20px; cursor: pointer; opacity: .7; }
.sb-remove:hover { opacity: 1; background: #00000008; }
.sb-move { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 10px 10px 0; border: 0; border-radius: 0 13px 13px 0; color: inherit; background: transparent; text-align: left; font: inherit; font-size: 13px; line-height: 1.4; font-weight: 600; cursor: grab; touch-action: pan-y; }
.sb-move > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sb-move-icon { flex-shrink: 0; font-size: 15px; opacity: .75; }
.sb-remove:focus-visible, .sb-move:focus-visible { outline: 2px solid #678456; outline-offset: 2px; }
.sb-price { display: flex; align-items: center; min-width: 0; }
.sb-price-label { display: none; }
.sb-money-field { display: flex; align-items: center; width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #fafbf7; }
.sb-money-field > span { flex-shrink: 0; font-size: 11px; color: var(--text-muted); padding-left: 7px; }
.sb-money-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; padding: 10px 7px 10px 2px; outline-offset: 2px; border-radius: 8px; }
.sb-money-field.is-estimate { background: #f1f5ec; }
.sb-money-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px #19815314; }
.shopping-board input[aria-invalid="true"] { outline: 2px solid #cb4a39; }
.sb-empty { display: flex; align-items: center; gap: 15px; padding: 27px 2px; color: var(--text-muted); }
.sb-empty[hidden] { display: none; }
.sb-empty svg { color: #6f8f60; flex-shrink: 0; }
.sb-empty p { margin: 0; font-size: 13px; line-height: 1.7; }
.sb-checkout { max-width: 450px; margin: 22px 0 0 auto; }
.sb-total-row, .sb-rebate-row, .sb-final-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.sb-total-row { font-size: 14px; }
.sb-total-row strong { font-size: 21px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.sb-price-note { color: #7a5d34; font-size: 11px; line-height: 1.5; margin: 7px 0 0; }
.sb-price-note:empty { display: none; }
.sb-promotion { border-top: 1px solid var(--border); padding-top: 17px; margin-top: 17px; }
.sb-promotion h4 { margin: 0 0 10px; font-size: 12px; font-weight: 650; }
.sb-promotion-fields { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.sb-promotion-fields label { min-width: 0; color: var(--text-muted); font-size: 11px; }
.sb-promo-field { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fafbf7; margin-top: 5px; }
.sb-promo-field > span { flex-shrink: 0; padding: 0 10px; color: var(--text-muted); font-size: 12px; }
.sb-promo-field input { width: 100%; min-width: 0; padding: 11px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); background: transparent; }
.sb-promo-field:focus-within { border-color: var(--primary); }
.sb-rebate-row { color: #386b41; font-size: 12px; margin-top: 14px; }
.sb-final-row { padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--border); color: var(--primary); font-size: 13px; }
.sb-final-row strong { font-size: 26px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sb-checkout-hint { font-size: 11px; line-height: 1.6; color: var(--text-muted); margin: 10px 0 0; }
.sb-comparison { margin-top: 22px; }
.sb-comparison > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 14px 0; color: var(--primary); }
.sb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
    .sb-workspace { padding: 14px; }
    .shopping-board { --sb-columns: minmax(0, 1fr) minmax(0, 1fr) 90px; padding: 0; }
    .sb-columns, .sb-row { gap: 7px; }
    .sb-board-heading { display: block; padding-inline: 2px; }
    .sb-board-heading > span { display: block; margin-top: 4px; }
    .sb-pill { border-radius: 11px; }
    .sb-remove { flex-basis: 26px; }
    .sb-move { padding-right: 5px; gap: 3px; font-size: 11px; }
    .sb-move-icon { font-size: 11px; }
    .sb-cart-cell { padding-left: 4px; }
    .sb-money-field input { font-size: 11px; padding-right: 4px; }
    .sb-money-field > span { font-size: 10px; padding-left: 4px; }
    .sb-checkout { margin-top: 19px; padding-inline: 2px; }
}
@media (max-width: 359px) {
    .shopping-board { --sb-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sb-columns .sb-price-heading { display: none; }
    .sb-price { grid-column: 1 / -1; justify-self: end; gap: 8px; width: 160px; }
    .sb-price-label { display: block; font-size: 10px; color: var(--text-muted); }
    .sb-money-field input { font-size: 12px; }
    .sb-final-row strong { font-size: 23px; }
}
