.lists-view { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; background: var(--feed-bg); padding: 22px 18px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 28px); }
.lists-view::-webkit-scrollbar { display: none; }
.lists-container { width: 100%; max-width: 1150px; margin: 0 auto; }
.lists-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.lists-toolbar p { margin: 0; color: #637084; font-size: 12px; line-height: 1.5; }
.list-primary, .list-secondary, .list-danger-button { min-height: 44px; padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 650; }
.list-primary { background: var(--primary); color: #fff; flex-shrink: 0; }
.list-primary:hover { background: #2055c9; }
.list-primary > span { font-size: 19px; margin-right: 3px; }
.list-secondary { background: #f0f3f8; color: #52647b; }
.list-danger-button { background: var(--danger); color: #fff; }
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.list-card { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid #e4e9f1; background: #fff; border-radius: 20px; text-align: left; color: var(--text-primary); box-shadow: 0 3px 10px #162f5c03; }
.list-card:hover { border-color: #a9bfea; box-shadow: 0 6px 20px #162f5c0a; }
.list-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.list-card-icon { width: 38px; height: 38px; display: grid; place-items: center; background: #edf3ff; border-radius: 12px; color: var(--primary); font-size: 23px; }
.list-card-state { font-size: 11px; font-weight: 600; color: #66758a; }
.list-card-arrow { margin-left: auto; color: #718299; font-size: 23px; }
.list-card-title { font-size: 18px; letter-spacing: -.03em; line-height: 1.4; overflow-wrap: anywhere; }
.list-card-preview { display: grid; align-content: start; gap: 9px; min-height: 92px; margin: 17px 0 20px; font-size: 13px; }
.list-preview-line { display: flex; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #5a6576; }
.list-preview-line > span[aria-hidden] { color: #94a4bc; flex-shrink: 0; }
.list-preview-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-preview-line.is-done { text-decoration: line-through; color: #7c838e; }
.list-card-placeholder { color: #7c838e; line-height: 1.7; }
.list-card-progress { margin-top: auto; font-size: 11px; color: #66758a; padding-bottom: 10px; }
.list-progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; background: #edf0f5; accent-color: var(--primary); }
.list-progress::-webkit-progress-bar { background: #edf0f5; border-radius: 8px; }
.list-progress::-webkit-progress-value { background: var(--primary); border-radius: 8px; }
.list-progress::-moz-progress-bar { background: var(--primary); border-radius: 8px; }
.list-card.is-complete .list-card-icon { color: var(--success); background: #e8f5ee; }
.list-card.is-complete .list-card-state { color: var(--success); }
.lists-empty { max-width: 440px; margin: 48px auto; text-align: center; }
.lists-empty-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: #e5edfc; color: var(--primary); font-size: 40px; margin-bottom: 20px; }
.lists-empty h2 { font-size: 23px; letter-spacing: -.04em; }
.lists-empty p { color: #637084; font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
#list-detail { max-width: 760px; margin: auto; }
.list-back { min-height: 44px; background: transparent; padding: 0 0 12px; color: var(--primary); font-size: 13px; }
.list-detail-card { background: #fff; border: 1px solid #e4e9f1; border-radius: 22px; padding: 28px; }
.list-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.list-title-wrap { min-width: 0; }
.list-eyebrow { color: #718299; font-size: 10px; letter-spacing: .13em; font-weight: 700; margin-bottom: 9px; }
#list-title { margin: 0; font-size: 26px; letter-spacing: -.04em; line-height: 1.3; overflow-wrap: anywhere; }
.list-progress-copy { color: #637084; font-size: 12px; margin: 18px 0 10px; }
.list-add-form { display: flex; gap: 8px; padding: 24px 0 20px; }
.list-add-form input, .list-input { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border: 1px solid #dce3ee; background: #f9fafc; border-radius: 12px; color: var(--text-primary); }
.list-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.list-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #637084; cursor: pointer; }
.list-options input { width: 17px; height: 17px; accent-color: var(--primary); }
.list-text-button { background: transparent; color: var(--primary); font-size: 12px; min-height: 44px; padding: 5px; }
.list-entries { padding: 0; margin: 0; list-style: none; }
.list-entry { display: flex; align-items: center; gap: 3px; min-height: 62px; border-bottom: 1px solid #eff1f5; }
.list-entry-check { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; min-height: 58px; padding: 12px 0; cursor: pointer; }
.list-entry-check input { flex-shrink: 0; width: 21px; height: 21px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.list-entry-check span { overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.list-entry.is-done .list-entry-check span { color: #7c838e; text-decoration: line-through; }
.list-entry-action { flex-shrink: 0; display: grid; place-items: center; width: 40px; min-height: 44px; background: transparent; border-radius: 10px; color: #718299; }
.list-entry-action:hover { background: #f4f6fa; }
.list-entry-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.list-delete { color: #b43c4b; background: transparent; font-size: 12px; min-height: 44px; }
.list-detail-empty { color: #637084; font-size: 13px; line-height: 1.8; text-align: center; margin: 26px 0; }
.list-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.list-detail-footer > span { color: #7c838e; font-size: 11px; }
.list-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.list-field { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 650; }
.list-field span { color: #7c838e; font-weight: 400; }
.list-hint { font-size: 12px; line-height: 1.6; color: #637084; margin: 6px 0 0; }
.list-error { color: var(--danger); font-size: 13px; line-height: 1.6; margin-top: 12px; }
#list-confirm-copy { overflow-wrap: anywhere; line-height: 1.7; }
.list-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.list-scope { max-width: 360px; margin-bottom: 20px; }
.list-sharing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.list-entry-copy { display: flex; flex-direction: column; min-width: 0; }
.list-entry-copy small { color: #64748b; font-size: 11px; line-height: 1.6; margin-top: 3px; text-decoration: none; }
.list-entry.is-done .list-entry-check .list-entry-copy { text-decoration: none; }
.list-entry.is-done .list-entry-text { text-decoration: line-through; }
.list-history-events { list-style: none; padding: 0; margin: 16px 0; }
.list-history-events li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.list-history-events time { display: block; font-size: 11px; color: #64748b; }
.list-shared-status { max-width: 760px; margin: 18px auto; color: #81581a; background: #fff5df; border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.6; }
.list-dialog button:disabled, .lists-view button:disabled { opacity: .6; cursor: wait; }
.list-card-state, .list-eyebrow { overflow-wrap: anywhere; }
@media (max-width: 599px) {
    .lists-grid { grid-template-columns: minmax(0, 1fr); }
    .list-detail-card { padding: 19px 15px; }
    .list-detail-heading { align-items: flex-start; }
    .list-detail-heading .list-secondary { padding: 9px; font-size: 11px; }
    #list-title { font-size: 23px; }
    .list-add-form { flex-wrap: wrap; }
    .list-add-form input { flex: 1 1 160px; }
    .list-options { flex-wrap: wrap; }
    .bottom-nav-inner { padding: 0 4px; }
    .bottom-nav-item { min-width: 0; padding: 4px 1px; }
    .bottom-nav-label { font-size: 10px; }
}
@media (max-width: 359px) { .bottom-nav-label { font-size: 9px; } }
@media (min-width: 900px) {
    .lists-view { padding: 24px 28px; border: 1px solid #e8ebef; border-radius: 20px; }
    .lists-toolbar { margin-bottom: 24px; }
    .lists-toolbar p { font-size: 13px; }
}
