.theme-controls {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.theme-filters {display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.theme-filters button {font:inherit;line-height:22px;font-weight:600;color:#536981;background:transparent;border:1px solid transparent;padding:7px 13px;border-radius:8px;cursor:pointer}
.theme-filters button[aria-pressed="true"] {color:var(--member-blue);background:#eaf1ff;border-color:#d8e6ff}
.theme-search {display:flex;align-items:center;gap:10px;max-width:100%;width:244px;min-height:38px;margin:0;padding:0 12px;border:1px solid #d8e3f0;border-radius:9px;background:#fff;color:#60738c;font-weight:400}
.theme-search input {min-width:0;width:100%;padding:8px 0;border:0;background:transparent;font:inherit;color:#172b45;outline:0}
.theme-search input::placeholder {color:#677a92}
.theme-search:focus-within {border-color:#628ff1;box-shadow:0 0 0 2px #e2ebff}
.theme-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;padding:0;margin:0;list-style:none}
.theme-list > li {min-width:0;display:flex}
.theme-list > li:nth-child(4n+2) {--accent:#1685a7;--soft:#e9f7fb;--tint:#dff3f8;--ring:#d4edf4}
.theme-list > li:nth-child(4n+3) {--accent:#635bce;--soft:#f0efff;--tint:#eeeaff;--ring:#e1dcef}
.theme-list > li:nth-child(4n) {--accent:#a76619;--soft:#fff5e8;--tint:#fff0d9;--ring:#f8e5c8}
.theme-list .theme-card::before {right:auto;left:-54px}
.theme-list .theme-card::after {right:auto;left:-20px;transform:rotate(-38deg)}
.theme-list .theme-card {width:100%;min-height:124px;aspect-ratio:auto;padding:18px;gap:21px;justify-content:space-between;overflow:clip}
.theme-card .theme-hash {position:absolute;top:10px;left:14px;width:30px;height:30px;display:grid;place-items:center;color:var(--accent,#2864d9);font-size:23px;line-height:1;font-weight:750;pointer-events:none}
.theme-card .theme-name {align-self:stretch;text-align:right;margin:0;padding-left:64px;padding-right:0;overflow-wrap:anywhere;font-size:18px;font-weight:730;line-height:1.45;color:var(--member-blue)}
.theme-link::after {content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.theme-link:focus-visible::after {outline:2px solid var(--member-blue);outline-offset:-3px;border-radius:14px}


.theme-card .tile-bottom {font-size:14px;color:#536981;margin:0;padding-top:11px}
.theme-card .tile-meta {gap:9px;flex-wrap:wrap}
.theme-card .quiet {color:#697b91}
.theme-card .meta-separator {width:3px;height:3px;border-radius:50%;background:#b5c2d1}
.theme-index [hidden] {display:none!important}
.theme-index button:focus-visible {outline:2px solid var(--member-blue);outline-offset:3px}
.theme-empty {padding:32px 18px;text-align:center;color:#536981;border:1px solid #e4eaf2;border-radius:14px;background:#fff}
.theme-empty p {margin:0 0 10px}
.theme-empty button {font:inherit;color:var(--member-blue);background:none;border:0;cursor:pointer}
.theme-index .theme-link:is(:focus-visible,:active),
.theme-index button:not(.theme-follow):enabled:is(:focus-visible,:active) {color:var(--member-blue-hover)}
@media (hover:hover) and (pointer:fine) {
  .theme-index .theme-link:hover,
  .theme-index button:not(.theme-follow):enabled:hover {color:var(--member-blue-hover)}
  .theme-index .topic-more:enabled:hover {border-color:#adc5f5;background:#f5f8ff}
}
@media(max-width:1050px) {.theme-list {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px) {.theme-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}}
@media(max-width:560px) {
  .theme-controls {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:14px}
  .theme-search {grid-row:1;width:100%;min-height:40px}
  .theme-filters {gap:5px}
  .theme-filters button {padding:6px 12px}
  .theme-list {grid-template-columns:minmax(0,1fr);gap:10px}
  .theme-list .theme-card {min-height:105px;padding:14px;gap:14px}
  .theme-list .theme-card::before {width:104px;height:104px;left:-40px;top:-64px}
  .theme-list .theme-card::after {width:52px;height:52px;left:-16px;top:-25px}
  .theme-card .theme-name {font-size:16px}
  .theme-card .theme-hash {top:7px;left:12px;font-size:21px}
  .theme-card .tile-bottom {padding-top:9px}
}
@media(prefers-reduced-motion:reduce) {.theme-index .theme-card,.theme-index .theme-card::before {transition:none}}
