.ws-library {
  --ws-ink: #162e26;
  --ws-muted: #596962;
  --ws-line: #dce3dc;
  --ws-accent: #125843;
  color: var(--ws-ink);
  container-type: inline-size;
}
.ws-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background: #0d362e;
  color: #f8fff9;
  padding: clamp(27px, 3.25vw, 52px);
  min-height: clamp(190px, 18vw, 245px);
  display: flex;
  align-items: center;
}
.ws-banner::before, .ws-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ws-banner::before {
  background: url("/workspace-art.webp") center right / cover no-repeat;
}
.ws-banner::after {
  background: linear-gradient(90deg, #103d34 1%, #103d34ed 28%, #103d3470 50%, transparent 72%);
}
.ws-banner h1 {
  color: inherit;
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 690;
  line-height: 1.17;
  letter-spacing: -.047em;
  margin: 0;
}
.ws-banner p {
  margin: 11px 0 0;
  font-size: clamp(14px, 1.18vw, 17px);
  color: #d0e4d9;
  letter-spacing: .025em;
}
.ws-metrics, .ws-metrics span, .ws-tools, .ws-heading, .ws-filters, .ws-search,
.ws-topics, .ws-card-meta, .ws-card-tools, .ws-saved, .ws-primary, .ws-secondary {
  display: flex;
  align-items: center;
}
.ws-metrics { gap: 16px; margin-top: 24px; color: #cee3d6; }
.ws-metrics span { gap: 4px; font-size: 12px; }
.ws-metrics span + span { border-left: 1px solid #76a08f80; padding-left: 16px; }
.ws-metrics .icon { color: #a7d4bb; margin-right: 4px; }
.ws-metrics b { color: #f2fcf4; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ws-directory { margin-top: clamp(26px, 3vw, 42px); }
.ws-heading, .ws-filters { justify-content: space-between; gap: 14px; }
.ws-heading { flex-wrap: wrap; }
.ws-heading h2 { margin: 0; font-size: clamp(23px, 2.1vw, 32px); letter-spacing: -.045em; line-height: 1.25; }
.ws-tools { flex-wrap: wrap; gap: 9px; }
.ws-search, .ws-primary, .ws-secondary { height: 40px; border-radius: 10px; }
.ws-search { color: #65776d; padding: 0 10px 0 13px; gap: 8px; width: clamp(185px, 18vw, 280px); border: 1px solid #d4ddd5; background: white; }
.ws-search:focus-within { border-color: #4d896e; box-shadow: 0 0 0 3px #1f705c12; }
.ws-search input { outline: none; padding: 0; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ws-ink); font-size: 13px; }
.ws-search input::placeholder { color: #67746d; opacity: 1; }
.ws-search input::-webkit-search-cancel-button { display: none; }
.ws-search kbd, .ws-search button { display: grid; place-items: center; flex-shrink: 0; }
.ws-search kbd { width: 20px; height: 21px; border-radius: 4px; border: 1px solid #e0e5e0; color: #7b877e; font: 12px monospace; }
.ws-search button { border: none; color: #526158; background: #edf2ee; width: 23px; height: 23px; border-radius: 6px; line-height: 1; font-size: 17px; }
.ws-library [hidden] { display: none !important; }
.ws-primary, .ws-secondary, .ws-saved { justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 0 14px; white-space: nowrap; }
.ws-primary { background: var(--ws-accent); color: white; border: 1px solid transparent; }
.ws-secondary, .ws-saved { color: var(--ws-accent); border: 1px solid #d5ded6; background: white; }
.ws-filters { margin-top: 19px; padding-bottom: 13px; border-bottom: 1px solid var(--ws-line); }
.ws-topics { gap: 3px; min-width: 0; flex-wrap: wrap; }
.ws-library .ws-tab, .ws-theme-add, .ws-saved { border-radius: 8px; }
.ws-library .ws-tab { box-shadow: none; background: transparent; border: 1px solid transparent; color: #52645a; font-weight: 540; font-size: 13px; padding: 7px 11px; line-height: 1.35; }
.ws-library .ws-tab.active { background: #dfece2; border-color: #d0e3d4; color: #194d36; font-weight: 680; }
.ws-library .ws-tab:hover, .ws-theme-add:hover { background: #e9efe9; }
.ws-theme-add { border: 1px dashed #b3c4b7; color: #54735f; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-left: 4px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
.ws-saved { min-height: 33px; padding: 0 11px; font-size: 12px; border-color: transparent; background: transparent; }
.ws-view-tools { display: flex; align-items: center; flex-shrink: 0; }
.ws-share { color: #4c6555; border: 0; background: transparent; border-radius: 8px; min-height: 33px; width: 33px; display: grid; place-items: center; }
.ws-share:hover { color: var(--ws-accent); background: #edf4ee; }
.ws-saved[aria-pressed=true] { border-color: #c3d8c8; background: #e6f1e8; }
.ws-saved[aria-pressed=true] .icon, .ws-card-tool[aria-pressed=true] .icon { fill: #c5dfcf; }
.ws-results { margin: 13px 0; color: #65746b; line-height: 1.45; font-size: 12px; font-variant-numeric: tabular-nums; }
.ws-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.ws-library .ws-card { border: 1px solid #d9e2d9; background: #fffffe; border-radius: 16px; box-shadow: 0 2px 4px #1e392404; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ws-library .ws-card:focus-within { border-color: #8dad97; z-index: 1; }
@media (hover:hover) {
  .ws-library .ws-card:hover { transform: translateY(-2px); border-color: #adbfaf; box-shadow: 0 8px 20px -12px #214b3442; }
}
.ws-card .card-detail {
  min-height: 173px;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  padding: 20px 20px 14px;
  background: transparent;
  border-radius: 16px 16px 0 0;
}
.ws-library button:hover { filter: none; }
.ws-primary:hover { background: #0c4938; }
.ws-secondary:hover, .ws-saved:hover { background: #edf4ee; }
.ws-card .ws-tile { min-width: 44px; width: 44px; height: 44px; border-radius: 13px; font-size: 23px; box-shadow: inset 0 0 0 1px #233d2c08; }
.ws-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; text-align: left; color: var(--ws-ink); font-weight: 680; font-size: 19px; letter-spacing: -.033em; line-height: 1.4; margin-top: 14px; }
.ws-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 5px; color: var(--ws-muted); font-size: 13px; line-height: 1.6; }
.ws-card-meta { flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; color: #65726b; font-size: 11px; line-height: 1.4; }
.ws-group, .ws-kind { overflow-wrap: anywhere; }
.ws-group { border-radius: 5px; background: #eff3ef; padding: 3px 7px; color: #415b4d; }
.ws-pending { color: #856229; background: #f9f2e3; border-radius: 5px; padding: 3px 7px; }
.ws-kind::before { content: ""; display: inline-block; margin-right: 8px; width: 3px; height: 3px; border-radius: 50%; background: #9baa9e; vertical-align: middle; }
.ws-card-tools { position: absolute; top: 16px; right: 13px; gap: 3px; }
.ws-card-tool { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 16px; padding: 0; color: #758078; }
.ws-card-tool:hover { background: #f0f4f0; color: var(--ws-accent); }
.ws-card-tool[aria-pressed=true] { color: #276747; }
.ws-library .card-actions { margin: 0 18px; padding: 12px 0 14px; border-top: 1px solid #e6ece6; gap: 4px; }
.ws-library .card-actions .btn { min-width: 0; gap: 4px; padding: 7px 5px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; min-height: 32px; }
.ws-library .card-actions .visit, .ws-library .card-actions .ws-credential { color: #195d41; background: #e8f2e9; border-color: #dcebdd; }
.ws-library .card-actions .visit:hover, .ws-library .card-actions .ws-credential:hover { background: #d7eadb; }
.ws-library .card-actions .admin-entry, .ws-library .card-actions .card-sso { color: #465d50; background: transparent; }
.ws-library .card-actions .admin-entry:hover, .ws-library .card-actions .card-sso:hover { background: #edf3ee; color: #154b33; }
.ws-library .ws-card .menu { right: 14px; top: 47px; border-radius: 10px; border-color: var(--ws-line); box-shadow: 0 8px 24px #20352b18; }
.ws-empty { display: grid; justify-items: center; text-align: center; padding: 42px 20px; background: #fcfdfb; border: 1px dashed #cad6cb; border-radius: 14px; }
.ws-empty > span { color: var(--ws-accent); background: #eaf2eb; padding: 12px; display: grid; border-radius: 12px; }
.ws-empty h3 { font-size: 18px; margin: 15px 0 5px; }
.ws-empty p { margin: 0; font-size: 13px; color: var(--ws-muted); }
.ws-empty button { margin-top: 17px; }
.ws-library button:focus-visible { outline: 2px solid #51866b; outline-offset: 2px; }
@container (max-width: 680px) {
  .ws-banner { padding: 24px; min-height: 177px; border-radius: 17px; }
  .ws-heading { align-items: flex-start; }
  .ws-tools { flex: 1 1 100%; }
  .ws-search { flex: 1 1 160px; width: auto; }
  .ws-tools .ws-secondary { order: 1; }
  .ws-filters { align-items: flex-start; gap: 6px; }
  .ws-topics { flex-wrap: nowrap; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
  .ws-tab, .ws-theme-add { flex: none; white-space: nowrap; }
  .ws-view-tools { margin-top: 3px; }
}
@container (max-width: 399px) {
  .ws-banner { padding: 20px; min-height: 158px; }
  .ws-banner::after { background: linear-gradient(90deg, #103d34f2 8%, #103d34b5 53%, #103d3430 88%); }
  .ws-metrics { margin-top: 19px; }
  .ws-filters { flex-wrap: wrap; }
  .ws-topics { max-width: 100%; }
  .ws-saved { padding: 0 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .ws-library .ws-card { transition: none; }
  .ws-library .ws-card:hover { transform: none; }
}
