/* PLM shell — white page, crisp hairlines */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --plm-fg: #111;
  --plm-bg: #fff;
  --plm-text: #111;
  --plm-text-muted: #666;
  --plm-text-subtle: #999;
  --plm-line: #e6e6e6;
  --plm-line-strong: #d4d4d4;
  --plm-shell-max: 68rem;
  --plm-nav-width: 11rem;
  --plm-page-x: 2rem;
}

.plm-shell {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.006em;
  color: var(--plm-text);
  background: var(--plm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.plm-top { display: none; }

.plm-frame {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: var(--plm-shell-max);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.5rem var(--plm-page-x) 4rem;
  background: var(--plm-bg);
}

.plm-nav {
  flex: 0 0 var(--plm-nav-width);
  width: var(--plm-nav-width);
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  padding: 0 1.25rem 0 0;
}

.plm-nav-home {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--plm-text-subtle);
  text-decoration: none;
  transition: color 0.12s ease;
}

.plm-nav-home:hover { color: var(--plm-text); }

.plm-nav-home.is-on {
  color: var(--plm-text);
  font-weight: 500;
}

.plm-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plm-nav-brand {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--plm-text);
  text-decoration: none;
}

.plm-nav-brand:hover { color: var(--plm-fg); }

.plm-nav > ul,
.plm-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plm-nav > ul > li,
.plm-nav-links > li { margin: 0; }

.plm-nav a,
.plm-nav button.plm-nav-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--plm-text-muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease;
}

.plm-nav a::after,
.plm-nav button.plm-nav-btn::after {
  display: none;
}

.plm-nav a:hover,
.plm-nav button.plm-nav-btn:hover {
  color: var(--plm-text);
}

.plm-nav a.is-on,
.plm-nav button.plm-nav-btn.is-on {
  color: var(--plm-text);
  font-weight: 500;
}

.plm-nav a:active,
.plm-nav button.plm-nav-btn:active {
  opacity: 0.72;
}

.plm-nav-sub {
  display: none;
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 0.75rem;
}

.plm-nav-item.is-open > .plm-nav-sub { display: block; }

.plm-nav-sub a {
  display: block;
  width: 100%;
  padding: 1px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--plm-text-subtle);
  text-decoration: none;
}

.plm-nav-sub a::after { display: none; }

.plm-nav-sub a:hover {
  color: var(--plm-text);
}

.plm-nav-sub a.is-on {
  color: var(--plm-text);
  font-weight: 500;
}

.plm-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 0.5rem;
}

.plm-main .chrome {
  margin-left: 0;
  margin-right: 0;
}

.plm-view[hidden] { display: none !important; }

.plm-about {
  max-width: 38rem;
  padding-top: 0;
}

.plm-about h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--plm-text);
}

.plm-about p {
  margin: 0 0 1.1em;
  font-size: 14px;
  line-height: 22px;
  color: #444;
}

.plm-about p:last-child { margin-bottom: 0; }

.plm-about a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--plm-line-strong);
}

.plm-about a:hover {
  text-decoration-color: var(--plm-text-muted);
}

.plm-about blockquote {
  margin: 0 0 1.1em;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 22px;
  font-style: italic;
  color: #444;
}

.plm-about h3 {
  margin: 1.5em 0 0.75em;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--plm-text);
}

.plm-about .plm-about-note {
  margin: 0 0 1.1em;
  font-size: 13px;
  line-height: 20px;
  color: var(--plm-text-subtle);
}

.plm-about pre {
  margin: 0 0 1.1em;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  border: 0;
}

.plm-about img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.1em;
}

.registry-hub {
  max-width: 46rem;
}
.registry-toolbar {
  margin: 0 0 1.5rem;
}
.registry-count {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--plm-text-subtle);
  letter-spacing: 0.01em;
}
.registry-split {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  min-height: 12rem;
}
.registry-list {
  flex: 0 0 10.5rem;
  width: 10.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 1.5rem;
}
.registry-pane {
  flex: 1;
  min-width: 0;
  max-width: 34rem;
}
.registry-pane-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plm-text-subtle);
}
.registry-provider-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.registry-provider-btn .reg-name {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--plm-text-muted);
}
.registry-provider-btn .reg-n {
  font-size: 12px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--plm-text-subtle);
}
.registry-provider-btn:hover .reg-name {
  color: var(--plm-text);
}
.registry-provider-btn.is-on .reg-name {
  color: var(--plm-text);
  font-weight: 500;
}
.registry-models {
  list-style: none;
  margin: 0;
  padding: 0;
}
.registry-models li {
  margin: 0;
  padding: 0;
}
.registry-model-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.registry-model-label {
  font-size: 14px;
  line-height: 22px;
  color: var(--plm-text-muted);
}
.registry-model-date {
  flex: none;
  font-size: 12px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--plm-text-subtle);
}
.registry-model-meta {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 12px;
}
.registry-model-provider {
  font-size: 12px;
  line-height: 22px;
  color: var(--plm-text-subtle);
}
.registry-model-btn:hover .registry-model-label,
.registry-model-btn:focus-visible .registry-model-label {
  color: var(--plm-text);
}
.registry-detail {
  max-width: 34rem;
  padding-top: 0;
}
.registry-back {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  color: var(--plm-text-subtle);
  cursor: pointer;
}
.registry-back:hover {
  color: var(--plm-text);
}
.registry-model-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--plm-text);
}
.registry-note p {
  margin: 0 0 1.1em;
  font-size: 14px;
  line-height: 22px;
  color: #444;
}
.registry-link {
  display: inline-block;
  font-size: 13px;
  line-height: 20px;
  color: var(--plm-text-muted);
  word-break: break-all;
  text-decoration: none;
}
.registry-link:hover {
  color: var(--plm-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--plm-line-strong);
}
.registry-meta {
  margin: 0 0 1.25em;
  padding: 0;
}
.registry-meta-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  margin: 0 0 0.4em;
  font-size: 13px;
  line-height: 20px;
}
.registry-meta-row:last-child { margin-bottom: 0; }
.registry-meta-k {
  color: var(--plm-text-subtle);
}
.registry-meta-v {
  color: #444;
}
.registry-meta-v .registry-link {
  display: block;
  margin: 0 0 0.15em;
}
.registry-links {
  margin: 0 0 1.25em;
}
.registry-config-label {
  margin: 0 0 0.5em;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plm-text-subtle);
}
.registry-config {
  margin: 0 0 2rem;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  border: 0;
}
.registry-empty {
  font-size: 14px;
  color: var(--plm-text-subtle);
  padding: 8px 0;
}

@media (max-width: 800px) {
  :root { --plm-page-x: 1.25rem; }
  .plm-frame {
    flex-direction: column;
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }
  .plm-nav {
    position: static;
    flex: none;
    width: auto;
    padding: 0 0 0.75rem;
  }
  .plm-nav-home {
    display: inline-block;
    margin: 0 0 8px;
  }
  .plm-nav > ul,
  .plm-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 18px;
  }
  .plm-nav a,
  .plm-nav button.plm-nav-btn {
    width: auto;
  }
  .plm-nav-item.is-open { flex: 1 1 100%; }
  .plm-nav-sub {
    display: none;
    padding-left: 0;
  }
  .plm-nav-item.is-open > .plm-nav-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .plm-main {
    padding: 0.75rem 0 0;
  }
  .registry-split {
    flex-direction: column;
    gap: 1rem;
  }
  .registry-list {
    flex: none;
    width: auto;
    padding-right: 0;
    padding-bottom: 0.75rem;
  }
}

/* Setups — crisp pills */
.plm-shell #view-setups {
  max-width: none;
}

.plm-shell .chrome {
  margin: 0 0 1.25rem;
  gap: 12px 16px;
  align-items: center;
}

.plm-shell .navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.plm-shell .navlink {
  --cat: #888;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 10px 5px 12px;
  border: 1px solid var(--plm-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--plm-text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.08s ease;
}

.plm-shell .navlink:hover {
  border-color: #111;
  color: #111;
  background: #fff;
}

.plm-shell .navlink:active {
  transform: scale(0.98);
}

.plm-shell .navlink.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
  box-shadow: none;
}

.plm-shell .navlink .nav-label {
  text-transform: none;
  font-weight: inherit;
}

.plm-shell .navlink .navn,
.plm-shell .navlink.is-off .navn {
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  filter: none;
  overflow: visible;
}

.plm-shell .navlink .navn::before,
.plm-shell .navlink .navn::after {
  display: none;
}

.plm-shell .navlink .navn-num,
.plm-shell .navlink.is-off .navn-num {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--plm-text-subtle);
}

.plm-shell .navlink.is-active .navn-num {
  color: rgb(255 255 255 / 0.55);
}

.plm-shell .navlink.is-off {
  color: #bbb;
  border-color: #ececec;
  background: #fff;
}

.plm-shell .navlink.is-off:hover {
  color: var(--plm-text-muted);
  border-color: var(--plm-line-strong);
}

.plm-shell .nav-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--plm-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--plm-text-subtle);
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, transform 0.08s ease;
}

.plm-shell .nav-clear:hover,
.plm-shell .nav-clear.is-all-off {
  border-color: #111;
  color: #111;
  background: #fff;
}

.plm-shell .nav-clear:active {
  transform: scale(0.96);
}

.plm-shell .chrome-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plm-shell .filter-menu {
  position: relative;
}

.plm-shell .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--plm-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--plm-text-muted);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, transform 0.08s ease;
}

.plm-shell .filter-btn:hover,
.plm-shell .filter-btn[aria-expanded="true"] {
  border-color: #111;
  color: #111;
  background: #fff;
  box-shadow: none;
}

.plm-shell .filter-btn:active {
  transform: scale(0.96);
}

.plm-shell #submit,
.plm-shell #stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}

.plm-shell #submit:hover,
.plm-shell #stats:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.plm-shell #submit:active,
.plm-shell #stats:active {
  transform: scale(0.98);
}

.plm-shell .search-shell {
  display: flex;
  align-items: center;
  min-width: min(13rem, 46vw);
  flex: 0 1 15rem;
  height: 32px;
  border: 1px solid var(--plm-line-strong);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  box-shadow: none;
  gap: 8px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.plm-shell .search-shell:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.04);
}

.plm-shell .search-shell .search-ico,
.plm-shell .search-shell:focus-within .search-ico {
  color: var(--plm-text-subtle);
  flex-shrink: 0;
}

.plm-shell .search-clear {
  color: var(--plm-text-subtle);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.plm-shell .search-clear:hover { color: #111; }

.plm-shell #model-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  color: #111;
  outline: none;
}

.plm-shell #model-search::placeholder { color: #aaa; }

.plm-shell .filter-dropdown {
  min-width: 180px;
  padding: 6px 0;
  border-radius: 10px;
  color: #444;
  background: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
  border: 1px solid var(--plm-line-strong);
}

.plm-shell .grid {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem 1.75rem;
}

.plm-shell .setup-rich {
  --rich-ink: #111;
  --rich-mute: #999;
  --rich-line: #eee;
}

.plm-shell .setup-rich .model-box,
.plm-shell .model-box {
  overflow: visible;
  padding: 0 0 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111;
  border-radius: 0;
  background: none;
  background-image: none;
  border-bottom: 0;
}
.plm-shell .filter-group {
  color: var(--plm-text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 12px 2px;
}
.plm-shell .filter-rule {
  background: var(--plm-line);
  margin: 6px 12px;
}
.plm-shell .filter-option {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--plm-text-muted);
  border-radius: 0;
  padding: 4px 12px;
}
.plm-shell .filter-option:hover {
  background: #fafafa;
  color: var(--plm-text);
}
.plm-shell .filter-option.is-selected {
  color: var(--plm-text);
  background: #fafafa;
  background-image: none;
  isolation: auto;
}
.plm-shell .filter-option.is-selected::before,
.plm-shell .filter-option.is-selected::after {
  display: none;
}

.plm-shell .cats { gap: 2rem; }
.plm-shell .cat-results { padding: 0; }

.plm-shell .setup-rich .model-box::before,
.plm-shell .setup-rich .model-box::after,
.plm-shell .model-box::before,
.plm-shell .model-box::after {
  display: none;
}

.plm-shell .setup-rich .model-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.plm-shell .setup-new .model-name::after {
  background: rgba(0, 0, 0, 0.35);
  box-shadow: none;
  width: 5px;
  height: 5px;
}
.plm-shell .setup-rich .results-box,
.plm-shell .results-box {
  background: none;
  padding: 12px 0 0;
  border-radius: 0;
}
.plm-shell .setup-rich .rich-stack { gap: 8px; }
.plm-shell .setup-rich .rf {
  grid-template-columns: 4.5rem 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
}
.plm-shell .setup-rich .rl {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plm-text-subtle);
}
.plm-shell .setup-rich .rv {
  color: #444;
}
.plm-shell .link-plain:hover { color: var(--plm-text); }
.plm-shell .setup-rich .rich-rule {
  display: none;
}
.plm-shell .setup-rich .mem-allow,
.plm-shell .setup-rich .mem-sep,
.plm-shell .setup-rich .mem-total {
  color: var(--plm-text-subtle);
  font-size: 12px;
}
.plm-shell .setup-rich .mem-bar {
  height: 2px;
  background: #f0f0f0;
  border-radius: 1px;
}
.plm-shell .setup-rich .mem-bar-allow {
  background: var(--plm-line-strong);
}
.plm-shell .setup-rich .mem-bar-fill {
  background: #111;
}
.plm-shell .setup-rich .read-more-btn {
  font-size: 12px;
  color: var(--plm-text-subtle);
  border-bottom-color: var(--plm-line-strong);
}
.plm-shell .setup-rich .read-more-btn:hover {
  color: var(--plm-text);
  border-bottom-color: #111;
}
.plm-shell .setup-rich .rank-src:hover { color: var(--plm-text); }
.plm-shell .setups-load-status {
  font-family: inherit;
  font-size: 14px;
  color: var(--plm-text-subtle);
}

@media (max-width: 960px) {
  .plm-shell .chrome {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .plm-shell .navlinks { flex: none; width: 100%; }
  .plm-shell .chrome-tools {
    margin-left: 0;
    width: 100%;
  }
  .plm-shell .search-shell {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 800px) {
  .plm-shell .chrome {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .plm-shell .chrome-tools {
    margin-left: 0;
    width: 100%;
  }
  .plm-shell .search-shell {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}
