/* =========================================================
   LEARNING REWIRED STUDIO — LIBRARY PREVIEW V2
   Location: /assets/css/studio-library.css
   Page: /studio/library/index.html

   Purpose:
   Public preview of the future Studio member library.
   ========================================================= */

:root {
  --sl-bg: var(--studio-bg, #eef2f7);
  --sl-panel: var(--studio-panel, #ffffff);
  --sl-panel-soft: var(--studio-panel-soft, #f8fafc);
  --sl-ink: var(--studio-ink, #07111f);
  --sl-muted: var(--studio-muted, rgba(7, 17, 31, 0.62));
  --sl-faint: var(--studio-faint, rgba(7, 17, 31, 0.42));
  --sl-line: var(--studio-line, rgba(15, 23, 42, 0.08));
  --sl-blue: var(--studio-blue, #2563eb);
  --sl-blue-dark: var(--studio-blue-dark, #123f9c);
  --sl-teal: var(--studio-teal, #14b8a6);
  --sl-shadow: var(--studio-shadow, 0 24px 70px rgba(15, 23, 42, 0.10));
  --sl-shadow-soft: var(--studio-shadow-soft, 0 14px 40px rgba(15, 23, 42, 0.07));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sl-bg);
  color: var(--sl-ink);
}

.studio-library-app,
.studio-library-app button,
.studio-library-app input {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.studio-library-app h1,
.studio-library-app h2,
.studio-library-app h3,
.studio-library-app p {
  margin-top: 0;
}

.studio-library-app a {
  color: inherit;
}

.studio-library-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.10), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, var(--sl-bg) 100%);
}

/* =========================================================
   APP SHELL
   ========================================================= */

.sl-v1 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  min-height: 100vh;
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.sl-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px;
  border-right: 1px solid var(--sl-line);
  background:
    radial-gradient(circle at 18% 4%, rgba(37, 99, 235, 0.12), transparent 32%),
    #07111f;
  color: #ffffff;
}

.sl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
}

.sl-brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(20, 184, 166, 0.18));
}

.sl-brand span {
  display: grid;
  gap: 2px;
}

.sl-brand strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.sl-brand em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-nav {
  display: grid;
  gap: 8px;
}

.sl-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.sl-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.sl-nav a.is-active {
  border-color: rgba(147, 197, 253, 0.20);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(20, 184, 166, 0.42));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.sl-nav a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.sl-sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.20);
}

.sl-sidebar-card p {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sl-sidebar-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.sl-sidebar-card span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.48;
}

.sl-sidebar-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f !important;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.sl-main {
  min-width: 0;
  padding: 26px;
}

.sl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.sl-topbar-kicker,
.sl-eyebrow {
  margin: 0 0 8px;
  color: var(--sl-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.sl-topbar h1 {
  margin: 0;
  color: var(--sl-ink);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.052em;
}

.sl-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sl-topbar-btn:hover {
  transform: translateY(-2px);
}

.sl-topbar-btn.primary {
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.sl-topbar-btn.secondary {
  border: 1px solid var(--sl-line);
  background: #ffffff;
  color: var(--sl-ink) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   HERO
   ========================================================= */

.sl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.sl-hero-copy,
.sl-hero-panel {
  border: 1px solid var(--sl-line);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--sl-shadow);
}

.sl-hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 90% 14%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
}

.sl-hero-copy h2 {
  max-width: 840px;
  margin: 0;
  color: var(--sl-ink);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.sl-hero-copy p:not(.sl-eyebrow) {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--sl-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.66;
}

.sl-hero-panel {
  padding: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.10), transparent 32%),
    #ffffff;
}

.sl-hero-panel > p {
  margin: 0 0 16px;
  color: var(--sl-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sl-stat-list {
  display: grid;
  gap: 10px;
}

.sl-stat-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sl-line);
}

.sl-stat-list strong {
  color: var(--sl-ink);
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sl-stat-list span {
  color: var(--sl-muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.sl-hero-panel > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

/* =========================================================
   SEARCH + FILTERS
   ========================================================= */

.sl-search-wrap {
  max-width: 780px;
  margin-top: 28px;
}

.sl-search-wrap label {
  display: block;
  margin-bottom: 10px;
  color: var(--sl-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.sl-search-wrap div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.sl-search-wrap input {
  min-height: 50px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sl-ink);
  outline: none;
  padding: 0 12px;
  font-size: 0.98rem;
}

.sl-search-wrap input::placeholder {
  color: rgba(7, 17, 31, 0.36);
}

.sl-search-wrap button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
  cursor: pointer;
}

.sl-filter-section {
  margin-top: 22px;
  margin-bottom: 26px;
}

.sl-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--sl-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sl-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.sl-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--sl-blue-dark);
}

.sl-filter-btn.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.09);
  color: var(--sl-blue-dark);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.sl-section {
  margin-top: 26px;
}

.sl-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.sl-section-heading h2 {
  margin: 0;
  color: var(--sl-ink);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.055em;
}

/* =========================================================
   FEATURED SHELF
   ========================================================= */

.sl-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sl-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 305px;
  padding: 22px;
  border: 1px solid var(--sl-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
  box-shadow: var(--sl-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sl-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--sl-shadow);
}

.sl-feature-card.available {
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(20, 184, 166, 0.12), transparent 30%),
    #ffffff;
}

.sl-card-label,
.sl-feature-card > span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  margin-bottom: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sl-blue-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sl-feature-card h3 {
  margin: 0 0 12px;
  color: var(--sl-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.055em;
}

.sl-feature-card p {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.96rem;
  line-height: 1.56;
}

.sl-feature-card strong {
  display: inline-flex;
  margin-top: auto;
  color: var(--sl-blue-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

/* =========================================================
   COLLECTIONS
   ========================================================= */

.sl-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sl-collection-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--sl-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
  box-shadow: var(--sl-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sl-collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--sl-shadow);
}

.sl-collection-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sl-blue);
  font-size: 1.08rem;
  font-weight: 950;
}

.sl-collection-card p {
  margin: 0 0 8px;
  color: var(--sl-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sl-collection-card h3 {
  margin: 0 0 12px;
  color: var(--sl-ink);
  font-size: 1.5rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sl-collection-card em {
  margin-top: auto;
  color: var(--sl-muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.5;
}

/* =========================================================
   TOOL INDEX
   ========================================================= */

.sl-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sl-index-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--sl-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--sl-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sl-index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--sl-shadow);
}

.sl-index-card.available {
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(20, 184, 166, 0.12), transparent 30%),
    #ffffff;
}

.sl-index-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--sl-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sl-index-card h3 {
  margin: 0 0 12px;
  color: var(--sl-ink);
  font-size: 1.52rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sl-index-card p {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* =========================================================
   PUBLIC LAB BRIDGE
   ========================================================= */

.sl-final-section {
  padding-bottom: 40px;
}

.sl-bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sl-bridge-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--sl-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
  box-shadow: var(--sl-shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.sl-bridge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--sl-shadow);
}

.sl-bridge-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--sl-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sl-bridge-card h3 {
  margin: 0 0 12px;
  color: var(--sl-ink);
  font-size: 1.55rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sl-bridge-card p {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* =========================================================
   RIGHT RAIL
   ========================================================= */

.sl-right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px 18px 26px 0;
  overflow-y: auto;
}

.sl-member-card,
.sl-quick-actions,
.sl-signal-card {
  border: 1px solid var(--sl-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--sl-shadow-soft);
}

.sl-member-card {
  padding: 24px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.14), transparent 34%),
    #07111f;
  color: #ffffff;
}

.sl-member-card p {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sl-member-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.06em;
}

.sl-member-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sl-member-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f !important;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.sl-quick-actions {
  padding: 20px;
}

.sl-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sl-rail-heading p {
  margin: 0;
  color: var(--sl-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.sl-rail-heading span {
  color: var(--sl-blue);
}

.sl-quick-actions a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 16px;
  color: rgba(7, 17, 31, 0.72) !important;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.sl-quick-actions a:hover {
  transform: translateX(2px);
  background: #f8fafc;
  color: var(--sl-blue-dark) !important;
}

.sl-quick-actions a span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--sl-blue);
}

.sl-signal-card {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.10), transparent 34%),
    #ffffff;
}

.sl-signal-card p {
  margin: 0 0 16px;
  color: var(--sl-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sl-signal-card h3 {
  margin: 0 0 12px;
  color: var(--sl-ink);
  font-size: 1.42rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sl-signal-card span {
  color: var(--sl-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   SEARCH STATES
   ========================================================= */

.sl-library-hidden {
  display: none !important;
}

.sl-search-empty {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: #ffffff;
  color: var(--sl-ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.4;
  box-shadow: var(--sl-shadow);
}

.sl-search-empty.is-visible {
  display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
  .sl-v1 {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .sl-right-rail {
    position: static;
    height: auto;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 26px 34px;
  }

  .sl-member-card,
  .sl-quick-actions,
  .sl-signal-card {
    min-height: 100%;
  }

  .sl-hero {
    grid-template-columns: 1fr;
  }

  .sl-feature-grid {
    grid-template-columns: 1fr;
  }

  .sl-collection-grid,
  .sl-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sl-v1 {
    display: block;
  }

  .sl-sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--sl-line);
  }

  .sl-brand {
    min-height: 46px;
  }

  .sl-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sl-nav a {
    flex: 0 0 auto;
  }

  .sl-sidebar-card {
    display: none;
  }

  .sl-main {
    padding: 22px 16px;
  }

  .sl-right-rail {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 16px 28px;
  }

  .sl-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sl-topbar-actions {
    width: 100%;
  }

  .sl-topbar-btn {
    flex: 1;
  }

  .sl-search-wrap div {
    grid-template-columns: 1fr;
  }

  .sl-search-wrap button {
    width: 100%;
  }

  .sl-bridge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .sl-hero-copy,
  .sl-hero-panel,
  .sl-member-card,
  .sl-quick-actions,
  .sl-signal-card {
    border-radius: 28px;
  }

  .sl-hero-copy {
    padding: 26px 22px;
  }

  .sl-hero-copy h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
  }

  .sl-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sl-collection-grid,
  .sl-index-grid {
    grid-template-columns: 1fr;
  }

  .sl-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sl-filter-btn {
    width: 100%;
  }

  .sl-topbar-actions {
    display: grid;
  }

  .sl-topbar-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sl-main {
    padding: 18px 12px;
  }

  .sl-sidebar {
    padding: 12px;
  }

  .sl-right-rail {
    padding: 0 12px 24px;
  }

  .sl-hero-copy {
    padding: 24px 20px;
  }

  .sl-feature-card,
  .sl-collection-card,
  .sl-index-card,
  .sl-bridge-card {
    padding: 18px;
    border-radius: 24px;
  }

  .sl-member-card,
  .sl-quick-actions,
  .sl-signal-card {
    padding: 20px;
  }

  .sl-filter-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sl-nav a,
  .sl-topbar-btn,
  .sl-feature-card,
  .sl-collection-card,
  .sl-index-card,
  .sl-bridge-card,
  .sl-quick-actions a,
  .sl-filter-btn {
    transition: none !important;
  }

  .sl-nav a:hover,
  .sl-topbar-btn:hover,
  .sl-feature-card:hover,
  .sl-collection-card:hover,
  .sl-index-card:hover,
  .sl-bridge-card:hover,
  .sl-quick-actions a:hover,
  .sl-filter-btn:hover {
    transform: none !important;
  }
}
/* =========================================================
   STUDIO LIBRARY — ACCESS MODEL CARD WIDTH FIX
   Fixes cramped stat labels + CTA wrapping in hero panel
   ========================================================= */

.sl-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

.sl-hero-panel {
  min-width: 0;
  overflow: hidden;
}

.sl-stat-list div {
  align-items: center;
  gap: 18px;
}

.sl-stat-list strong {
  flex: 0 0 auto;
  min-width: 52px;
}

.sl-stat-list span {
  flex: 1 1 auto;
  max-width: 210px;
  text-align: right;
}

.sl-hero-panel > a {
  min-height: 48px;
  padding: 0 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 1280px) {
  .sl-hero {
    grid-template-columns: 1fr;
  }

  .sl-hero-panel {
    max-width: none;
  }

  .sl-stat-list span {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .sl-stat-list div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
  }

  .sl-stat-list span {
    text-align: left;
  }
}
