.saved-wrap { min-height: calc(100dvh - var(--tabbar-h) - var(--safe-b)); padding: calc(28px + var(--safe-t)) 20px calc(var(--tabbar-h) + 30px + var(--safe-b)); }
.saved-header { padding: 0 2px 24px; }
.saved-header h1 { margin: 0; color: var(--ink); font: 400 36px/1 var(--serif); letter-spacing: -.025em; }
.saved-header p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.saved-segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.saved-segment { min-height: 44px; padding: 0 7px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font: 500 12px var(--sans); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease); }
.saved-segment span { margin-left: 3px; font-size: 11px; opacity: .75; }
.saved-segment.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.saved-content { padding-top: 22px; }
.saved-list { overflow: hidden; border-top: 1px solid var(--line); }
.saved-group { margin: 22px 0 7px; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.saved-list > .saved-group:first-child { margin-top: 0; }
.saved-item { display: flex; gap: 12px; align-items: flex-start; min-height: 118px; padding: 18px 0 17px; border-bottom: 1px solid var(--line); cursor: pointer; }
.saved-item-main { min-width: 0; flex: 1; }
.saved-item-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font: 500 13px/1.2 var(--sans); }
.saved-item-meta time { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.saved-verse { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--ink); font: 400 22px/1.18 var(--serif); letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.saved-remove { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin: -8px -7px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.saved-remove:hover, .saved-remove:focus-visible { color: var(--danger); background: var(--surface-2); }
.saved-remove .icon { width: 19px; height: 19px; }
.saved-note { display: block; width: 100%; margin: 12px 0 0; padding: 9px 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: italic 16px/1.3 var(--serif); text-align: left; cursor: pointer; }
.saved-note:hover { color: var(--ink-2); }
.saved-empty { display: flex; min-height: 400px; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px 80px; text-align: center; }
.saved-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.saved-empty-icon .icon { width: 21px; height: 21px; }
.saved-empty-line { max-width: 260px; margin: 20px 0 0; color: var(--ink); font: 400 22px/1.15 var(--serif); }
.saved-empty-hint { max-width: 270px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.saved-undo-toast { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; }
.saved-undo-toast button { min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font: 600 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.saved-note-label { display: block; margin-bottom: 8px; color: var(--muted); font: 500 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.saved-note-input { display: block; width: 100%; min-height: 132px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-sm); outline: 0; background: var(--surface-2); color: var(--ink); font: 17px/1.4 var(--serif); }
.saved-note-input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.saved-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.saved-note-save, .saved-note-delete { min-height: 44px; border-radius: var(--r-sm); font: 600 13px var(--sans); cursor: pointer; }
.saved-note-save { min-width: 96px; padding: 0 18px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.saved-note-delete { padding: 0; border: 0; background: transparent; color: var(--danger); }
.saved-note-save:focus-visible, .saved-note-delete:focus-visible, .saved-segment:focus-visible, .saved-note:focus-visible, .saved-remove:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 600px) { .saved-wrap { padding-left: 28px; padding-right: 28px; } }
@media (prefers-reduced-motion: no-preference) { .saved-item { animation: saved-rise 260ms var(--ease) both; } @keyframes saved-rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } } }
.saved-segment { padding: 0 3px; white-space: nowrap; }
