.library-screen, .audio-sheet { font-family: 'Instrument Sans', sans-serif; color: #2d2d2d; }
.library-screen { padding-bottom: calc(env(safe-area-inset-bottom) + 40px); font-size: 15px; font-weight: 450; line-height: 1.6; letter-spacing: .15px; }
.library-screen .settings-back { min-height: 44px; }
.library-screen .settings-header--back { padding-top: 12px; padding-bottom: 12px; }
.library-title { display: block; font-size: 15px; line-height: 1.45; font-weight: 550; letter-spacing: -.15px; overflow-wrap: anywhere; }
.library-caption { display: block; font-size: 13px; line-height: 1.5; color: #707070; font-weight: 400; }
.library-playlist-row { min-height: 76px; }
.library-list-icon { display: flex; justify-content: center; align-items: center; flex: 0 0 44px; height: 44px; border-radius: 8px; background: #d9efef; color: #1f4d4d; }
.library-list-icon svg { width: 24px; height: 24px; }
.library-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 0; color: #1f4d4d; font-size: 14px; }
.library-text-button { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; }
.library-detail-header { padding: 12px 20px 20px; border-bottom: 1px solid #eee; }
.library-detail-header h1 { color: #1f4d4d; font-size: 17px; font-weight: 550; line-height: 1.45; letter-spacing: -.17px; overflow-wrap: anywhere; }
.library-list { padding: 0; margin: 0; list-style: none; }
.library-audio-row { border-bottom: 1px solid #eee; padding: 16px 20px 0; }
.library-audio-link { display: flex; align-items: center; gap: 12px; }
.library-audio-cover { flex: 0 0 120px; width: 120px; height: 120px; background: #1f4d4d; border-radius: 4px; overflow: hidden; }
.library-audio-cover img, .audio-sheet-cover img { width: 100%; height: 100%; object-fit: cover; }
.library-audio-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; }
.library-audio-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #707070; font-size: 13px; line-height: 1.5; }
.library-audio-status { display: flex; align-items: center; gap: 8px; color: #1f4d4d; font-size: 13px; line-height: 1.5; }
.library-play-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #1f4d4d; color: white; }
.library-audio-row progress { display: block; flex: 0 0 40px; appearance: none; width: 40px; height: 4px; border: none; border-radius: 2px; background: #eee; overflow: hidden; }
.library-audio-row progress::-webkit-progress-bar { background: #eee; }
.library-audio-row progress::-webkit-progress-value { background: #1f4d4d; border-radius: 2px; }
.library-audio-row progress::-moz-progress-bar { background: #1f4d4d; border-radius: 2px; }
.library-remove { display: block; min-height: 44px; margin-left: 132px; color: #707070; font-size: 13px; cursor: pointer; }
.library-empty { padding: 20px; }
.library-empty h2 { font-size: 15px; font-weight: 550; line-height: 1.45; }
.library-empty p { margin-top: 8px; color: #707070; font-size: 13px; line-height: 1.5; }
.library-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.library-form label { color: #1f4d4d; font-size: 11px; font-weight: 600; letter-spacing: .44px; text-transform: uppercase; }
.library-form input[type=text] { width: 100%; border: 1px solid #eee; border-radius: 12px; background: white; padding: 14px 16px; font-size: 16px; color: #2d2d2d; }
.library-danger { min-height: 50px; color: #b3261e; cursor: pointer; }
.library-screen :is(a,button,input):focus-visible { outline: 2px solid #306d6d; outline-offset: -2px; }
.library-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 12px; background: #1f4d4d; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.audio-sheet-header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 16px; }
.audio-sheet-new { display: flex; flex-direction: column; gap: 12px; }
.audio-sheet-new input { width: 100%; border: 1px solid #ddd; border-radius: 10px; background: #fafafa; padding: 12px; font-size: 16px; color: #2d2d2d; }
.audio-options-button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #2d2d2d; border-radius: 12px; background: #eee; }
.audio-options-button[hidden] { display: none; }
.audio-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 480px; max-height: 85dvh; overflow-y: auto; border: 0; border-radius: 24px 24px 0 0; padding: 16px 20px max(24px, env(safe-area-inset-bottom)); background: white; -webkit-user-select: auto; user-select: auto; overscroll-behavior: contain; }
.audio-sheet::backdrop { background: rgb(0 0 0 / 40%); }
.audio-sheet-header { margin-bottom: 12px; }
.audio-sheet-header h2 { grid-column: 2; min-width: 0; text-align: center; font-size: 17px; font-weight: 550; outline: none; }
.audio-sheet-control { display: flex; align-items: center; justify-content: center; width: 48px; height: 36px; border-radius: 12px; background: #eee; }
.audio-sheet-identity { display: flex; align-items: center; gap: 12px; padding: 12px 0 24px; border-bottom: 1px solid #eee; }
.audio-sheet-identity h3 { font-size: 16px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.audio-sheet-cover { width: 56px; height: 56px; border-radius: 8px; background: #1f4d4d; overflow: hidden; flex-shrink: 0; }
.audio-sheet-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 0; text-align: left; font-size: 16px; min-height: 58px; border-bottom: 1px solid #eee; }
.audio-sheet-row .audio-sheet-cover { width: 44px; height: 44px; }
.audio-sheet-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.audio-sheet-copy > span { display: block; }
.audio-sheet-symbol { font-size: 24px; color: #1f4d4d; }
.audio-sheet-references { padding-top: 24px; }
.audio-sheet-check { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #d5dada; border-radius: 50%; flex-shrink: 0; }
.audio-sheet-check--selected { background: #1f4d4d; color: white; border-color: #1f4d4d; }
.audio-sheet-new { padding: 16px 0; }
.audio-sheet-empty { padding: 24px 0; }
.audio-sheet-error { margin: 8px 0; color: #b42318; font-size: 14px; line-height: 1.5; }
.audio-sheet [hidden] { display: none !important; }
.audio-sheet [disabled] { opacity: .55; }
