.cs-library {
  --cs-ink: #18342e;
  --cs-muted: #57716a;
  --cs-border: #d8e3da;
  --cs-green: #246f59;
  box-sizing: border-box;
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  background: #fbfcf8;
  color: var(--cs-ink);
  box-shadow: 0 24px 100px #102e3440;
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  color-scheme: light;
}
.cs-library *, .cs-library *::before, .cs-library *::after { box-sizing: border-box; }
.cs-library [hidden] { display: none !important; }
.cs-library::backdrop { background: #102e34a6; backdrop-filter: blur(5px); }
.cs-library .cs-library-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; background: #eef4eb; border-bottom: 1px solid var(--cs-border);
}
.cs-library .cs-eyebrow { margin: 0 0 3px; color: var(--cs-green); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.cs-library h2 { margin: 0; color: var(--cs-ink); font: 750 24px/1.25 system-ui, sans-serif; }
.cs-library h3 { margin: 0 0 10px; color: var(--cs-ink); font: 700 17px/1.4 system-ui, sans-serif; }
.cs-library p { margin: 0 0 12px; }
.cs-library .cs-library-body { padding: 24px 28px 28px; }
.cs-library .cs-library-intro { font-size: 16px; font-weight: 600; }
.cs-library .cs-help { color: var(--cs-muted); font-size: 13px; line-height: 1.55; }
.cs-library .cs-connection { margin: 20px 0 16px; padding: 18px; border: 1px solid var(--cs-border); border-radius: 16px; background: white; }
.cs-library .cs-connection > strong { display: block; margin-bottom: 5px; }
.cs-library .cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cs-library button.cs-button {
  appearance: none; width: auto; min-height: 40px; margin: 0; padding: 8px 13px;
  border: 1px solid #bccfc3; border-radius: 10px; background: #fff; color: var(--cs-ink);
  font: 650 13px/1.3 system-ui, sans-serif; text-align: center; cursor: pointer;
  box-shadow: none; transform: none; white-space: normal;
}
.cs-library button.cs-button:hover { background: #eef4eb; border-color: #7caa95; }
.cs-library button.cs-button-primary { background: var(--cs-green); border-color: var(--cs-green); color: white; }
.cs-library button.cs-button-primary:hover { background: #185b47; }
.cs-library button.cs-button-quiet { background: transparent; border-color: transparent; }
.cs-library button.cs-button:disabled { opacity: .45; cursor: default; }
.cs-library button:focus-visible, .cs-library input:focus-visible, .cs-library select:focus-visible, .cs-library a:focus-visible { outline: 3px solid #88ad34; outline-offset: 3px; }
.cs-library .cs-drive-link { color: #17604c; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.cs-library .cs-notice { min-height: 1.55em; color: #815815; font-size: 13px; overflow-wrap: anywhere; }
.cs-library .cs-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0 22px; }
.cs-library .cs-filter { display: grid; flex: 1 1 190px; gap: 5px; color: var(--cs-ink); font-size: 12px; font-weight: 700; }
.cs-library .cs-filter input, .cs-library .cs-filter select {
  appearance: auto; width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px;
  background: white; color: var(--cs-ink); border: 1px solid var(--cs-border); border-radius: 9px;
  font: 14px/1.3 system-ui, sans-serif; box-shadow: none;
}
.cs-library .cs-compatible { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--cs-muted); font-size: 12px; }
.cs-library .cs-compatible input { appearance: auto; width: 17px; height: 17px; margin: 0; accent-color: var(--cs-green); }
.cs-library .cs-file-section { margin: 24px 0; }
.cs-library .cs-file-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cs-border); border-radius: 13px; overflow: hidden; background: white; }
.cs-library .cs-file { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #e7ede6; }
.cs-library .cs-file:last-child { border-bottom: 0; }
.cs-library .cs-file-info { display: grid; min-width: 0; gap: 3px; }
.cs-library .cs-file-name { color: var(--cs-ink); font-size: 14px; overflow-wrap: anywhere; }
.cs-library .cs-file-meta { color: var(--cs-muted); font-size: 12px; }
.cs-library .cs-file-status { color: #24694f; font-size: 12px; overflow-wrap: anywhere; }
.cs-library .cs-file-status.cs-pending { color: #866015; }
.cs-library .cs-file-reason { color: #765b37; font-size: 11px; overflow-wrap: anywhere; }
.cs-library .cs-incompatible { flex-shrink: 0; color: #7f887f; font-size: 11px; }
.cs-library .cs-empty { padding: 20px 16px; color: var(--cs-muted); font-size: 13px; }
.cs-dialog-fallback { position: fixed; inset: 20px 0; z-index: 10000; overflow: auto; box-shadow: 0 0 0 100vmax #102e34a6; }
.cs-library-toast { position: fixed; z-index: 2147483646; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(680px, calc(100vw - 32px)); padding: 15px 20px; border: 1px solid #c4d5c7; border-radius: 12px; background: #f3f7ed; color: #18342e; box-shadow: 0 8px 40px #102e3430; font: 14px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
@media (max-width: 580px) {
  .cs-library { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 17px; }
  .cs-library .cs-library-header { padding: 18px; }
  .cs-library h2 { font-size: 20px; }
  .cs-library .cs-library-body { padding: 18px; }
  .cs-library .cs-connection { padding: 14px; }
  .cs-library .cs-file { align-items: start; padding: 12px; }
  .cs-library .cs-incompatible { max-width: 70px; text-align: right; }
  .cs-library .cs-compatible { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cs-library *, .cs-library-toast { scroll-behavior: auto; transition: none; } }

.cs-management{padding:12px;border:1px solid #a1b8a466;border-radius:10px;margin:14px 0}.cs-file>input[type=checkbox]{width:20px;height:20px;flex:none}.cs-management .cs-actions{flex-wrap:wrap}.cs-file-meta{overflow-wrap:anywhere}
