.sll-library {
  --sll-bg: #f7f7f4;
  --sll-surface: #ffffff;
  --sll-ink: #151515;
  --sll-muted: #6d6d65;
  --sll-line: #e6e2d9;
  --sll-yellow: #ffe666;
  --sll-green: #2f7d55;
  --sll-shadow: 0 18px 54px rgba(21, 21, 21, 0.13);
  max-width: 1500px;
  margin: 0 auto;
  color: var(--sll-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

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

.sll-library button,
.sll-library input {
  font: inherit;
}

.sll-mobile-header {
  display: none;
}

.sll-mobile-menu,
.sll-floating-menu,
.sll-mobile-drawer {
  display: none;
}

.sll-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(320px, 720px) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  background: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(16px);
}

.sll-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
}

.sll-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--sll-line);
  border-radius: 999px 0 0 999px;
  background: var(--sll-surface);
  color: var(--sll-ink);
  padding: 0 18px;
  outline: none;
}

.sll-search input:focus {
  border-color: var(--sll-ink);
  box-shadow: 0 0 0 3px rgba(255, 230, 102, 0.58);
}

.sll-search-submit,
.sll-mobile-search {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--sll-line);
  background: var(--sll-surface);
  color: var(--sll-muted);
  cursor: pointer;
}

.sll-search-submit {
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.sll-search-submit::before,
.sll-mobile-search::before {
  content: "⌕";
  font-size: 1.45rem;
  font-weight: 900;
}

.sll-clear,
.sll-actions button,
.sll-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--sll-line);
  border-radius: 8px;
  background: var(--sll-surface);
  color: var(--sll-ink);
  padding: 0 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.sll-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 12px 0 24px;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 230, 102, 0.94), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(21, 21, 21, 0.05) 54px 56px);
  padding: 30px;
}

.sll-hero p,
.sll-library-head p {
  margin: 0 0 10px;
  color: var(--sll-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sll-hero h2,
.sll-library-head h2 {
  margin: 0;
}

.sll-hero h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.sll-hero span {
  display: block;
  margin-top: 14px;
  color: #37362f;
  line-height: 1.7;
}

.sll-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(115px, 1fr));
  gap: 10px;
}

.sll-stats span {
  display: grid;
  gap: 2px;
  min-width: 120px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--sll-muted);
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.sll-stats strong {
  color: var(--sll-ink);
  font-size: 1.55rem;
}

.sll-player {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 20px;
  margin: 24px 0;
}

.sll-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 16px 36px rgba(21, 21, 21, 0.16);
}

.sll-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sll-current {
  border: 1px solid var(--sll-line);
  border-radius: 8px;
  background: var(--sll-surface);
  padding: 24px;
}

.sll-current p {
  margin: 0 0 10px;
  color: var(--sll-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sll-current h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.sll-current div[data-sll-current-description] {
  margin-top: 14px;
  color: var(--sll-muted);
  line-height: 1.8;
}

.sll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sll-actions button {
  border-color: var(--sll-ink);
  background: var(--sll-ink);
  color: #fff;
}

.sll-actions button:disabled {
  border-color: var(--sll-green);
  background: var(--sll-green);
}

.sll-library-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 30px 0 18px;
}

.sll-library-head > div:first-child span {
  display: inline-block;
  margin-top: 8px;
  color: var(--sll-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.sll-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sll-chips button {
  min-height: 38px;
  border: 1px solid var(--sll-line);
  border-radius: 999px;
  background: var(--sll-surface);
  color: var(--sll-muted);
  white-space: nowrap;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.sll-chips button.is-active {
  border-color: var(--sll-ink);
  background: var(--sll-ink);
  color: #fff;
}

.sll-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.sll-card {
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.sll-card.is-selected {
  border-color: var(--sll-yellow);
  background: #fffbe4;
}

.sll-card:hover .sll-thumb {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 21, 21, 0.16);
}

.sll-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background: var(--sll-yellow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sll-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sll-thumb small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.sll-thumb b {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: none;
  border-radius: 4px;
  background: rgba(47, 125, 85, 0.94);
  color: #fff;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.sll-card.is-watched .sll-thumb b {
  display: block;
}

.sll-thumb-fallback {
  display: grid;
  align-content: center;
  height: 100%;
  gap: 8px;
  background: #2f5f9e;
  color: #fff;
  padding: 18px;
}

.sll-thumb-fallback em {
  width: fit-content;
  border-radius: 6px;
  background: rgba(21, 21, 21, 0.68);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.sll-thumb-fallback strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
}

.sll-card-body {
  display: grid;
  gap: 5px;
  padding-top: 10px;
}

.sll-card-body strong {
  font-size: 1rem;
  line-height: 1.45;
}

.sll-card-body em,
.sll-card-body span {
  color: var(--sll-muted);
  font-style: normal;
  line-height: 1.45;
}

.sll-card-body em {
  font-size: 0.88rem;
}

.sll-card-body span {
  overflow: hidden;
  display: -webkit-box;
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sll-empty {
  grid-column: 1 / -1;
  color: var(--sll-muted);
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .sll-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sll-player,
  .sll-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sll-mobile-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    background: rgba(247, 247, 244, 0.96);
    backdrop-filter: blur(16px);
  }

  .sll-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--sll-line);
    border-radius: 999px;
    background: var(--sll-surface);
    color: var(--sll-ink);
    padding: 0 16px;
    font-weight: 900;
  }

  .sll-mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 9px;
    font-weight: 900;
  }

  .sll-mobile-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--sll-ink);
    border-radius: 8px;
    background: var(--sll-yellow);
    font-size: 0.8rem;
  }

  .sll-mobile-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sll-mobile-search {
    display: grid;
    flex: 0 0 44px;
    min-height: 44px;
    margin-left: 0;
    border-radius: 50%;
  }

  .sll-library.is-menu-open .sll-mobile-drawer {
    display: block;
  }

  .sll-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
  }

  .sll-mobile-drawer-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 9999;
    overflow-y: auto;
    width: min(84vw, 340px);
    border-right: 1px solid var(--sll-line);
    background: var(--sll-surface);
    padding: 18px;
    box-shadow: 20px 0 50px rgba(21, 21, 21, 0.2);
  }

  .sll-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .sll-mobile-drawer-head .sll-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .sll-mobile-drawer-head .sll-logo strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-head button {
    min-height: 42px;
    border: 1px solid var(--sll-line);
    border-radius: 999px;
    background: var(--sll-bg);
    color: var(--sll-ink);
    padding: 0 14px;
    font-weight: 900;
  }

  .sll-mobile-drawer-panel .sll-side-nav {
    gap: 8px;
  }

  .sll-mobile-drawer-panel .sll-side-nav button,
  .sll-mobile-drawer-panel .sll-side-nav a,
  .sll-mobile-drawer-panel .sll-logout {
    justify-content: start;
    min-height: 48px;
    padding: 9px 14px;
    font-size: 1rem;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box {
    margin-top: 18px;
    padding: 14px;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box small {
    font-size: 0.88rem;
  }

  .sll-mobile-drawer-panel .sll-theme-box strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-panel .sll-logout {
    margin-top: 12px;
    border: 1px solid var(--sll-line);
   background: var(--sll-surface);
  }

  .sll-topbar {
    display: none;
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 0 14px;
  }

  .sll-library.is-search-open .sll-topbar {
    display: grid;
  }

  .sll-topbar::before {
    display: none;
  }

  .sll-search-row {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .sll-search-submit {
    min-height: 48px;
  }

  .sll-hero {
    padding: 22px;
  }

  .sll-stats,
  .sll-grid {
    grid-template-columns: 1fr;
  }

  .sll-library-head {
    display: grid;
  }
}

.sll-library :where(h1, h2, h3, h4, h5, h6, p, figure) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.sll-library :where(h1, h2, h3, h4, h5, h6) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sll-ink) !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
}

.sll-library h1,
.sll-library h2,
.sll-library h3,
.sll-library h4,
.sll-library h5,
.sll-library h6 {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sll-library :where(h1, h2, h3, h4, h5, h6)::before,
.sll-library :where(h1, h2, h3, h4, h5, h6)::after {
  content: none !important;
  display: none !important;
}

.sll-dashboard {
  width: min(100%, 1920px);
  max-width: none;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  border: 1px solid rgba(21, 21, 21, 0.06);
  background: var(--sll-bg);
  overflow: hidden;
}

.sll-app-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  border-right: 1px solid var(--sll-line);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 10px;
}

.sll-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--sll-ink);
  font-weight: 900;
  text-align: center;
}

.sll-logo span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--sll-ink);
  border-radius: 8px;
  background: var(--sll-yellow);
}

.sll-logo strong {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
}

.sll-side-nav {
  display: grid;
  gap: 4px;
  align-content: start;
}

.sll-side-nav button,
.sll-side-nav a,
.sll-logout {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--sll-muted);
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.sll-side-nav button.is-active,
.sll-side-nav button:hover,
.sll-side-nav a:hover {
  background: #efeee9;
  color: var(--sll-ink);
}

.sll-theme-box {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: #fff8bf;
  padding: 10px 6px;
  color: var(--sll-ink);
  text-align: center;
}

.sll-theme-box small {
  color: var(--sll-green);
  font-size: 0.62rem;
  font-weight: 900;
}

.sll-theme-box strong {
  font-size: 0.68rem;
  line-height: 1.35;
}

.sll-logout {
  border: 1px solid var(--sll-line);
  background: #fff;
}

.sll-main {
  min-width: 0;
  padding: 14px 18px 28px;
  overflow: hidden;
  container-type: inline-size;
}

.sll-dashboard .sll-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-template-columns: minmax(260px, 420px) auto;
  justify-content: end;
  gap: 8px;
  padding: 8px 0 12px;
  background: rgba(247, 247, 244, 0.96);
}

.sll-dashboard .sll-search-row {
  min-width: 0;
}

.sll-dashboard .sll-search input,
.sll-dashboard .sll-search-submit {
  min-height: 34px;
  font-size: 0.86rem;
}

.sll-dashboard .sll-clear {
  min-height: 34px;
  padding-inline: 14px;
  font-size: 0.82rem;
}

.sll-dashboard .sll-hero {
  margin: 0 0 16px;
  padding: 22px 26px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sll-dashboard .sll-hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
}

.sll-dashboard .sll-stats {
  grid-template-columns: repeat(4, minmax(82px, 1fr));
}

.sll-dashboard .sll-stats span {
  min-width: 84px;
  padding: 13px 14px;
}

.sll-announcements {
  margin: 44px 0 0;
}

.sll-section-title {
  margin-bottom: 8px;
}

.sll-section-title p {
  color: var(--sll-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sll-section-title h2 {
  margin-top: 4px !important;
  font-size: 1.05rem !important;
  line-height: 1.2;
}

.sll-announcement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 920px;
}

.sll-announcement-card {
  min-width: 0;
  border: 1px solid var(--sll-line);
  border-radius: 6px;
  background: var(--sll-surface);
  padding: 14px 16px;
}

.sll-announcement-card summary {
  display: grid;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.sll-announcement-card summary::-webkit-details-marker {
  display: none;
}

.sll-announcement-card small {
  color: var(--sll-green);
  font-size: 0.72rem;
  font-weight: 900;
}

.sll-announcement-card h3,
.sll-announcement-card summary strong {
  margin-top: 7px !important;
  font-size: 0.92rem !important;
  line-height: 1.45;
}

.sll-announcement-card p,
.sll-announcement-card summary span {
  overflow: hidden;
  display: -webkit-box;
  margin-top: 7px;
  color: var(--sll-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sll-announcement-card summary b {
  width: fit-content;
  border-radius: 999px;
  background: var(--sll-bg);
  color: var(--sll-ink);
  padding: 7px 12px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.sll-announcement-card[open] summary b {
  background: var(--sll-ink);
  color: #fff;
}

.sll-announcement-full {
  margin-top: 16px;
  border-top: 1px solid var(--sll-line);
  padding-top: 16px;
  color: var(--sll-ink);
  font-size: 0.96rem;
  line-height: 1.8;
}

.sll-announcement-full > * + * {
  margin-top: 1em;
}

.sll-announcement-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  margin-top: 14px;
  border: 1px solid var(--sll-line);
  border-radius: 999px;
  background: var(--sll-surface);
  color: var(--sll-ink);
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.sll-dashboard .sll-player {
  grid-template-columns: minmax(0, 2.8fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin: 8px 0 16px;
}

.sll-dashboard .sll-frame {
  border-radius: 6px;
  box-shadow: none;
}

.sll-dashboard .sll-current {
  padding: 22px;
  border-radius: 6px;
}

.sll-dashboard .sll-current h3 {
  font-size: clamp(1.4rem, 2vw, 2.4rem) !important;
}

.sll-dashboard .sll-library-head {
  margin: 18px 0 12px;
}

.sll-dashboard .sll-library-head h2 {
  font-size: 1.4rem !important;
}

.sll-dashboard .sll-chips {
  justify-content: flex-end;
}

.sll-dashboard .sll-chips button {
  min-height: 32px;
  padding-inline: 14px;
  font-size: 0.82rem;
}

.sll-dashboard .sll-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px 16px;
}

.sll-dashboard .sll-card {
  padding: 0;
}

.sll-dashboard .sll-card.is-selected {
  background: transparent;
}

@media (max-width: 1180px) {
  .sll-dashboard {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sll-dashboard .sll-hero,
  .sll-dashboard .sll-player {
    grid-template-columns: 1fr;
  }

  .sll-dashboard .sll-stats,
  .sll-announcement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sll-dashboard {
    display: block;
    border: 0;
  }

  .sll-app-sidebar {
    display: none;
  }

  .sll-main {
    padding: 0 14px 24px;
  }

  .sll-dashboard .sll-topbar {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .sll-dashboard .sll-hero,
  .sll-dashboard .sll-stats,
  .sll-announcement-grid {
    grid-template-columns: 1fr;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 2rem !important;
  }

  .sll-dashboard .sll-library-head {
    display: grid;
  }

  .sll-dashboard .sll-chips {
    justify-content: flex-start;
  }
}

.sll-dashboard .sll-hero {
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 18px;
}

.sll-dashboard .sll-hero > div:first-child {
  display: grid;
  gap: 6px;
}

.sll-dashboard .sll-hero p {
  margin: 0 !important;
  font-size: 0.66rem;
  line-height: 1.1;
}

.sll-dashboard .sll-hero h2 {
  font-size: clamp(1.35rem, 1.75vw, 1.9rem) !important;
  line-height: 1.16 !important;
  word-break: keep-all;
  overflow-wrap: normal;
}

.sll-dashboard .sll-hero span {
  max-width: 560px;
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.sll-dashboard .sll-stats {
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.sll-dashboard .sll-stats span {
  min-width: 76px;
  padding: 10px 12px;
  font-size: 0.72rem;
}

.sll-dashboard .sll-stats strong {
  font-size: 1.2rem;
  line-height: 1.05;
}

.sll-dashboard .sll-current {
  padding: 15px;
}

.sll-dashboard .sll-current h3 {
  font-size: clamp(1rem, 1.15vw, 1.35rem) !important;
  line-height: 1.32 !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sll-dashboard .sll-current div[data-sll-current-description] {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.7;
}

.sll-dashboard .sll-actions {
  margin-top: 16px;
}

.sll-dashboard .sll-actions button,
.sll-dashboard .sll-actions a {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

@container (max-width: 980px) {
  .sll-dashboard .sll-hero {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 1.22rem !important;
  }

  .sll-dashboard .sll-hero span {
    max-width: 100%;
    font-size: 0.76rem;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sll-dashboard .sll-stats span {
    min-width: 0;
    padding: 8px 9px;
    font-size: 0.66rem;
  }

  .sll-dashboard .sll-stats strong {
    font-size: 1.05rem;
  }

  .sll-announcement-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .sll-dashboard .sll-player {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
    gap: 12px;
  }

  .sll-dashboard .sll-current {
    padding: 12px;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 0.98rem !important;
  }

  .sll-dashboard .sll-current div[data-sll-current-description] {
    font-size: 0.78rem;
  }

  .sll-dashboard .sll-library-head {
    align-items: start;
    gap: 10px;
  }

  .sll-dashboard .sll-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@container (max-width: 640px) {
  .sll-dashboard .sll-hero {
    gap: 12px;
    padding: 12px;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 1.12rem !important;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sll-dashboard .sll-player {
    grid-template-columns: 1fr;
  }

  .sll-dashboard .sll-current {
    padding: 12px;
  }

  .sll-dashboard .sll-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sll-dashboard .sll-hero {
    gap: 12px;
    padding: 12px;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 1.12rem !important;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sll-dashboard .sll-stats span {
    min-width: 0;
    padding: 9px 10px;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 0.98rem !important;
  }
}

.sll-library {
  font-size: 18px;
}

.sll-dashboard {
  grid-template-columns: 116px minmax(0, 1fr);
}

.sll-app-sidebar {
  padding: 18px 12px;
}

.sll-logo strong {
  font-size: 0.9rem;
}

.sll-side-nav button,
.sll-side-nav a,
.sll-logout {
  min-height: 42px;
  padding: 6px 8px;
  font-size: 0.86rem;
  line-height: 1.3;
}

.sll-theme-box small {
  font-size: 0.76rem;
}

.sll-theme-box strong {
  font-size: 0.84rem;
}

.sll-dashboard .sll-search input,
.sll-dashboard .sll-search-submit,
.sll-dashboard .sll-clear {
  min-height: 40px;
  font-size: 0.98rem;
}

.sll-dashboard .sll-hero {
  padding: 18px 22px;
}

.sll-dashboard .sll-hero p,
.sll-section-title p,
.sll-library-head p {
  font-size: 0.88rem;
}

.sll-dashboard .sll-hero h2 {
  font-size: clamp(1.65rem, 2vw, 2.2rem) !important;
}

.sll-dashboard .sll-hero span {
  max-width: 720px;
  font-size: 1.05rem;
}

.sll-dashboard .sll-stats span {
  min-width: 100px;
  padding: 13px 15px;
  font-size: 0.95rem;
}

.sll-dashboard .sll-stats strong {
  font-size: 1.55rem;
}

.sll-section-title h2 {
  font-size: 1.45rem !important;
}

.sll-announcement-card {
  padding: 18px 20px;
}

.sll-announcement-card small {
  font-size: 0.9rem;
}

.sll-announcement-card h3 {
  font-size: 1.2rem !important;
}

.sll-announcement-card p,
.sll-announcement-card summary span,
.sll-announcement-full {
  font-size: 1.02rem;
}

.sll-announcement-card summary strong {
  font-size: 1.2rem !important;
}

.sll-dashboard .sll-current {
  padding: 20px;
}

.sll-current p,
.sll-dashboard .sll-current p {
  font-size: 0.98rem;
}

.sll-dashboard .sll-current h3 {
  font-size: clamp(1.35rem, 1.55vw, 1.85rem) !important;
}

.sll-dashboard .sll-current div[data-sll-current-description] {
  font-size: 1rem;
}

.sll-dashboard .sll-actions button,
.sll-dashboard .sll-actions a {
  min-height: 44px;
  padding: 0 16px;
  font-size: 1rem;
}

.sll-dashboard .sll-library-head h2 {
  font-size: 1.7rem !important;
}

.sll-library-head > div:first-child span {
  font-size: 1rem;
}

.sll-dashboard .sll-chips button {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 1rem;
}

.sll-card-body strong {
  font-size: 1.1rem;
}

.sll-card-body em {
  font-size: 1rem;
}

.sll-card-body span,
.sll-empty {
  font-size: 0.98rem;
}

@container (max-width: 980px) {
  .sll-dashboard .sll-hero h2 {
    font-size: 1.5rem !important;
  }

  .sll-dashboard .sll-hero span {
    font-size: 1rem;
  }

  .sll-dashboard .sll-stats span {
    min-width: 0;
    font-size: 0.9rem;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 1.25rem !important;
  }
}

@container (max-width: 640px) {
  .sll-dashboard .sll-hero h2 {
    font-size: 1.35rem !important;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: 1fr;
  }

  .sll-dashboard .sll-stats span {
    min-height: 58px;
  }
}

@media (max-width: 1180px) {
  .sll-dashboard {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .sll-library {
    font-size: 17px;
  }

  .sll-dashboard .sll-hero {
    padding: 16px;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 1.35rem !important;
  }

  .sll-dashboard .sll-hero span {
    font-size: 1rem;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: 1fr;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 1.28rem !important;
  }

  .sll-dashboard .sll-chips button {
    min-height: 44px;
  }
}

.sll-dashboard .sll-library-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  justify-content: start !important;
  gap: 14px;
}

.sll-dashboard .sll-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: center;
  max-width: 100%;
  overflow: visible;
  gap: 10px;
  padding-bottom: 0;
}

.sll-dashboard .sll-chips button {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.sll-dashboard .sll-grid {
  margin-top: 8px;
}

.sll-dashboard .sll-announcement-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 920px;
}

.sll-featured-head {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.sll-featured-head p {
  color: var(--sll-green);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.sll-featured-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  line-height: 1.18 !important;
}

.sll-dashboard .sll-player {
  margin-top: 0;
}

.sll-dashboard .sll-current {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 85, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 218, 0.8)),
    var(--sll-surface);
  box-shadow: 0 16px 42px rgba(21, 21, 21, 0.08);
}

.sll-dashboard .sll-current::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(255, 230, 102, 0.65);
  border-radius: 50%;
  pointer-events: none;
}

.sll-dashboard .sll-current > * {
  position: relative;
  z-index: 1;
}

.sll-dashboard .sll-current p {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: fit-content;
  border: 1px solid rgba(47, 125, 85, 0.24);
  border-radius: 999px;
  background: rgba(47, 125, 85, 0.1);
  color: var(--sll-green);
  padding: 0 14px;
  letter-spacing: 0.04em;
}

.sll-dashboard .sll-current h3 {
  margin-top: 18px !important;
  border-left: 6px solid var(--sll-yellow) !important;
  padding-left: 14px !important;
}

.sll-dashboard .sll-actions {
  gap: 12px;
}

.sll-dashboard .sll-actions button,
.sll-dashboard .sll-actions a {
  border-radius: 999px;
}

.sll-dashboard .sll-actions a {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
  .sll-featured-head {
    margin-bottom: 10px;
  }

  .sll-featured-head h2 {
    font-size: 1.55rem !important;
  }

  .sll-featured-head p {
    font-size: 0.82rem;
  }

  .sll-dashboard .sll-current {
    padding: 18px;
  }

  .sll-dashboard .sll-current h3 {
    margin-top: 16px !important;
    font-size: 1.45rem !important;
  }

  .sll-dashboard .sll-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .sll-dashboard {
    display: block;
    border: 0;
  }

  .sll-app-sidebar {
    display: none;
  }

  .sll-main {
    padding: 0 16px 26px;
  }

  .sll-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    border: 1px solid var(--sll-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    box-shadow: 0 10px 28px rgba(21, 21, 21, 0.08);
    backdrop-filter: blur(14px);
  }

  .sll-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 2px solid var(--sll-ink);
    border-radius: 999px;
    background: var(--sll-ink);
    color: #fff;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
  }

  .sll-mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 9px;
    font-weight: 900;
  }

  .sll-mobile-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--sll-ink);
    border-radius: 8px;
    background: var(--sll-yellow);
    font-size: 0.82rem;
  }

  .sll-mobile-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sll-mobile-search {
    display: grid;
    flex: 0 0 48px;
    min-height: 48px;
    margin-left: 0;
    border-radius: 50%;
  }

  .sll-library.is-menu-open .sll-mobile-drawer {
    display: block;
  }

  .sll-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
  }

  .sll-mobile-drawer-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 9999;
    overflow-y: auto;
    width: min(84vw, 360px);
    border-right: 1px solid var(--sll-line);
    background: var(--sll-surface);
    padding: 18px;
    box-shadow: 20px 0 50px rgba(21, 21, 21, 0.2);
  }

  .sll-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .sll-mobile-drawer-head .sll-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .sll-mobile-drawer-head .sll-logo strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-head button {
    min-height: 42px;
    border: 1px solid var(--sll-line);
    border-radius: 999px;
    background: var(--sll-bg);
    color: var(--sll-ink);
    padding: 0 14px;
    font-weight: 900;
  }

  .sll-mobile-drawer-panel .sll-side-nav {
    gap: 8px;
  }

  .sll-mobile-drawer-panel .sll-side-nav button,
  .sll-mobile-drawer-panel .sll-side-nav a,
  .sll-mobile-drawer-panel .sll-logout {
    justify-content: start;
    min-height: 48px;
    padding: 9px 14px;
    font-size: 1rem;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box {
    margin-top: 18px;
    padding: 14px;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box small {
    font-size: 0.88rem;
  }

  .sll-mobile-drawer-panel .sll-theme-box strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-panel .sll-logout {
    margin-top: 12px;
    border: 1px solid var(--sll-line);
    background: var(--sll-surface);
  }
}

@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  .sll-floating-menu {
    position: fixed;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 10020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 3px solid var(--sll-yellow);
    border-radius: 999px;
    background: var(--sll-ink);
    color: #fff;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    box-shadow: 0 14px 34px rgba(21, 21, 21, 0.28);
  }

  .sll-library.is-menu-open .sll-mobile-drawer {
    display: block;
  }

  .sll-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
  }

  .sll-mobile-drawer-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 9999;
    overflow-y: auto;
    width: min(84vw, 360px);
    border-right: 1px solid var(--sll-line);
    background: var(--sll-surface);
    padding: 18px;
    box-shadow: 20px 0 50px rgba(21, 21, 21, 0.2);
  }

  .sll-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .sll-mobile-drawer-head .sll-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .sll-mobile-drawer-head .sll-logo strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-head button {
    min-height: 42px;
    border: 1px solid var(--sll-line);
    border-radius: 999px;
    background: var(--sll-bg);
    color: var(--sll-ink);
    padding: 0 14px;
    font-weight: 900;
  }

  .sll-mobile-drawer-panel .sll-side-nav {
    gap: 8px;
  }

  .sll-mobile-drawer-panel .sll-side-nav button,
  .sll-mobile-drawer-panel .sll-side-nav a,
  .sll-mobile-drawer-panel .sll-logout {
    justify-content: start;
    min-height: 48px;
    padding: 9px 14px;
    font-size: 1rem;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box {
    margin-top: 18px;
    padding: 14px;
    text-align: left;
  }

  .sll-mobile-drawer-panel .sll-theme-box small {
    font-size: 0.88rem;
  }

  .sll-mobile-drawer-panel .sll-theme-box strong {
    font-size: 1rem;
  }

  .sll-mobile-drawer-panel .sll-logout {
    margin-top: 12px;
    border: 1px solid var(--sll-line);
    background: var(--sll-surface);
  }

  .sll-dashboard .sll-hero {
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px;
  }

  .sll-dashboard .sll-hero > div:first-child {
    gap: 5px;
  }

  .sll-dashboard .sll-hero p {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .sll-dashboard .sll-hero h2 {
    font-size: 1.18rem !important;
    line-height: 1.25 !important;
  }

  .sll-dashboard .sll-hero span {
    display: none;
  }

  .sll-dashboard .sll-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .sll-dashboard .sll-stats span {
    min-width: 0;
    min-height: 0;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .sll-dashboard .sll-stats strong {
    font-size: 1.2rem;
  }
}

.sll-dashboard .sll-player {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
  max-width: 980px;
  margin: 8px 0 30px;
}

.sll-dashboard .sll-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 18px;
}

.sll-dashboard .sll-current::after {
  right: -46px;
  bottom: -78px;
  width: 132px;
  height: 132px;
  border-width: 16px;
}

.sll-dashboard .sll-current p {
  grid-column: 1 / 2;
  margin: 0 !important;
}

.sll-dashboard .sll-current h3 {
  grid-column: 1 / 2;
  margin: 0 !important;
  font-size: clamp(1.2rem, 1.9vw, 1.75rem) !important;
  line-height: 1.28 !important;
}

.sll-dashboard .sll-current div[data-sll-current-description] {
  grid-column: 1 / 2;
  margin: 0;
  color: var(--sll-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sll-dashboard .sll-current div[data-sll-current-description]:empty {
  display: none;
}

.sll-dashboard .sll-actions {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: center;
  margin: 0;
}

.sll-dashboard .sll-actions button,
.sll-dashboard .sll-actions a {
  min-height: 48px;
  padding: 0 18px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .sll-dashboard .sll-player {
    gap: 12px;
    margin-bottom: 26px;
  }

  .sll-dashboard .sll-current {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 1.35rem !important;
  }

  .sll-dashboard .sll-current div[data-sll-current-description],
  .sll-dashboard .sll-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .sll-dashboard .sll-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
  }
}

.sll-library {
  font-size: 16px;
}

.sll-side-nav button,
.sll-side-nav a {
  font-size: 0.8rem;
}

.sll-theme-box small {
  font-size: 0.76rem;
}

.sll-theme-box strong {
  font-size: 0.9rem;
}

.sll-featured-head p,
.sll-section-title p,
.sll-library-head p {
  font-size: 0.78rem;
}

.sll-featured-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem) !important;
}

.sll-section-title h2 {
  font-size: 1.25rem !important;
}

.sll-dashboard .sll-current {
  padding: 14px 16px;
}

.sll-dashboard .sll-current p {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.sll-dashboard .sll-current h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.45rem) !important;
}

.sll-dashboard .sll-current div[data-sll-current-description] {
  font-size: 0.88rem;
}

.sll-dashboard .sll-actions button,
.sll-dashboard .sll-actions a {
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.9rem;
}

.sll-dashboard .sll-library-head h2 {
  font-size: 1.45rem !important;
}

.sll-library-head > div:first-child span {
  font-size: 0.9rem;
}

.sll-dashboard .sll-chips button {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 0.9rem;
}

.sll-announcement-card h3,
.sll-announcement-card summary strong {
  font-size: 1.08rem !important;
}

.sll-announcement-card p,
.sll-announcement-card summary span,
.sll-announcement-full {
  font-size: 0.94rem;
}

.sll-card-body strong {
  font-size: 1rem;
}

.sll-card-body em,
.sll-card-body span,
.sll-empty {
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .sll-library {
    font-size: 15.5px;
  }

  .sll-featured-head h2 {
    font-size: 1.36rem !important;
  }

  .sll-dashboard .sll-current h3 {
    font-size: 1.16rem !important;
  }

  .sll-dashboard .sll-actions button,
  .sll-dashboard .sll-actions a {
    min-height: 42px;
    font-size: 0.92rem;
  }

  .sll-section-title h2,
  .sll-dashboard .sll-library-head h2 {
    font-size: 1.28rem !important;
  }

  .sll-announcement-card h3,
  .sll-announcement-card summary strong {
    font-size: 1.05rem !important;
  }
}
