/* Orbita — Liste (Bring!/Cozi) */
.ls-tabs { display: flex; gap: 6px; margin: 6px 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ls-tabs::-webkit-scrollbar { display: none; }
.ls-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; flex: none; transition: .15s; }
.ls-tabs button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ls-tabs button .n { font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.ls-tabs button.on .n { background: var(--bg); color: var(--fg); }
.ls-tabs button.add { width: 38px; padding: 0; justify-content: center; color: var(--fg2); border-style: dashed; }
.ls-tabs button.add svg { width: 18px; height: 18px; }

.ls-pane { padding: 14px 14px 10px; }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ls-head h2 { font-size: 19px; letter-spacing: -.02em; }
.ls-head h2 .tiny { font-weight: 500; margin-left: 6px; }
.icon-btn.sm { width: 32px; height: 32px; }
.ls-add { display: flex; gap: 8px; }
.ls-add input { flex: 1; border-radius: 12px; }
.ls-add .btn { width: 44px; padding: 0; display: grid; place-items: center; flex: none; }
.ls-add .btn svg { width: 20px; height: 20px; }
.ls-sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.ls-sugg::-webkit-scrollbar { display: none; }
.ls-sugg button { white-space: nowrap; padding: 6px 11px; border-radius: 999px; background: var(--bg3); color: var(--fg2); font-size: 13px; font-weight: 600; flex: none; animation: ls-in .18s both; }
.ls-sugg button:active { background: var(--accent); color: var(--accent-fg); }

.ls-items { margin-top: 10px; }
.ls-empty { text-align: center; color: var(--fg3); padding: 28px 0 22px; font-size: 14px; }
.ls-empty .big { font-size: 34px; margin-bottom: 6px; }
.ls-aisle { margin-top: 10px; }
.ls-aisle-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--fg3); padding: 6px 0 2px; position: sticky; top: calc(54px + env(safe-area-inset-top)); background: var(--bg2); z-index: 2; }
.ls-aisle-h .n { font-weight: 600; color: var(--fg3); opacity: .7; margin-left: auto; letter-spacing: 0; }

/* voce: contenitore fisso con sfondo "Elimina" sotto, riga interna che scorre (swipe) */
.ls-item { position: relative; overflow: hidden; border-top: 1px solid var(--line); animation: ls-in .2s both; }
.ls-aisle .ls-item:first-of-type, .ls-items > .ls-item:first-child, .ls-done-list .ls-item:first-child { border-top: 0; }
.ls-item.slim { animation: none; }
.ls-del-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; background: var(--danger); color: #fff; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity .15s; }
.ls-item.arm .ls-del-bg { opacity: 1; }
.ls-item-in { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0; background: var(--bg2); min-height: 48px; }
.ls-chk { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; color: #fff; transition: background .15s, border-color .15s, transform .15s; }
.ls-chk:active { transform: scale(.9); }
.ls-chk.on { background: var(--ok); border-color: var(--ok); animation: ls-pop .35s cubic-bezier(.3,1.6,.5,1); }
.ls-chk.on svg { animation: ls-tick .25s .05s both; }
.ls-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: default; }
.ls-tx .t { transition: color .2s; overflow: hidden; text-overflow: ellipsis; }
.ls-item.done .ls-tx .t { color: var(--fg3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--fg3) 60%, transparent); }
.ls-due { font-size: 12px; color: var(--fg2); font-weight: 600; }
.ls-due.late { color: var(--danger); }
.ls-due input { padding: 4px 8px; width: auto; font-size: 13px; }
.ls-who { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: transform .15s; }
.ls-who:active { transform: scale(.85); }
.ls-who .av-s { margin: 0; border: 0; width: 26px; height: 26px; }
.ls-who .ghost { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line2); color: var(--fg3); font-size: 14px; display: grid; place-items: center; line-height: 1; }
.ls-item.done .ls-who .ghost { visibility: hidden; }
.ls-x { flex: none; width: 30px; height: 30px; border-radius: 8px; color: var(--fg3); font-size: 14px; display: none; }
.ls-x:hover { background: color-mix(in srgb, var(--danger) 12%, var(--bg2)); color: var(--danger); }
@media (hover: hover) and (pointer: fine) { .ls-x { display: grid; place-items: center; opacity: 0; } .ls-item:hover .ls-x { opacity: 1; } .ls-del-bg { display: none; } }

.ls-done { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ls-done-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg3); text-transform: uppercase; letter-spacing: .07em; padding: 4px 0; }
.ls-done-h .n { font-weight: 600; opacity: .7; letter-spacing: 0; }
.ls-done-h .chev { display: inline-grid; place-items: center; transition: transform .2s; }
.ls-done-h .chev svg { width: 14px; height: 14px; }
.ls-done-h .chev.open { transform: rotate(90deg); }
.ls-done-list { animation: ls-in .2s; }
.ls-done-list .ls-item { animation: none; }

/* Dalle app */
.ls-ext { padding: 12px 14px; border-left: 3px solid var(--c); }
.ls-ext-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ls-ext-h .av-s { margin: 0; }
.ls-ext-empty { color: var(--fg3); font-size: 13px; padding: 8px 0 4px; }
.ls-ext .ls-item-in { min-height: 42px; padding: 7px 0; }

/* sheet leggero (nuova lista / opzioni) */
.ls-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; animation: fi .15s; }
.ls-sheet { background: var(--bg2); width: 100%; max-width: 520px; border-radius: var(--r2) var(--r2) 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: up .22s; }
@media (min-width: 900px) { .ls-backdrop { align-items: center; } .ls-sheet { border-radius: var(--r2); } }
.ls-sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ls-sheet .actions { display: flex; gap: 8px; margin-top: 18px; }
.ls-sheet .actions .btn { flex: 1; }
.ls-emoji { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.ls-emoji button { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; flex: none; border: 2px solid transparent; }
.ls-emoji button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg2)); }

@keyframes ls-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes ls-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ls-tick { from { transform: scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ls-item, .ls-sugg button, .ls-chk.on, .ls-chk.on svg, .ls-done-list { animation: none; } }
