[hidden] { display: none !important; }
.library-access { margin: 18px 0 24px; border: 1px solid var(--line, #d8ddd8); border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #17201c); }
.library-access [hidden] { display: none !important; }
.library-access summary { padding: 16px 18px; cursor: pointer; font-weight: 650; }
.library-access summary span { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted, #69736e); }
.library-access .access-content { padding: 0 18px 18px; }
.library-access section { padding: 16px 0; border-top: 1px solid var(--line, #d8ddd8); }
.library-access h3 { font-size: 16px; margin: 0 0 10px; }
.library-access .access-help { font-size: 13px; line-height: 1.7; color: var(--muted, #69736e); margin: 10px 0; }
.library-access button { min-height: 42px; border: 1px solid var(--teal, #087f74); border-radius: 6px; padding: 9px 14px; background: var(--teal, #087f74); color: white; font: inherit; font-size: 13px; cursor: pointer; }
.library-access button:disabled { opacity: .55; cursor: wait; }
.library-access button.access-secondary { color: var(--ink, #17201c); background: var(--surface-2, #eef1ed); border-color: var(--line-strong, #bec7c1); }
.library-access .access-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.library-access label { display: block; font-size: 13px; line-height: 1.6; margin: 12px 0 6px; }
.library-access input:not([type="checkbox"]), .library-access textarea { display: block; width: 100%; max-width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line-strong, #bec7c1); border-radius: 6px; background: var(--surface-2, #eef1ed); color: var(--ink, #17201c); font: inherit; font-size: 14px; }
.library-access #newRecoveryCode { font-family: ui-monospace, monospace; overflow-wrap: anywhere; word-break: break-all; resize: vertical; }
.library-access .access-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
.library-access .access-check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.library-access .access-status { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; color: var(--teal, #087f74); margin: 8px 0; }
.library-access .access-error { color: #c9412a; }
@media (max-width: 600px) {
  .library-access summary { padding: 14px; }
  .library-access summary span { display: block; margin: 5px 0 0 16px; }
  .library-access .access-content { padding: 0 14px 14px; }
}
