:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #17191e;
  background: #fff;
  font-synthesis: none;
  --accent: #002fa7;
  --line: #e3e4e8;
  --muted: #646a75;
  --surface: #f7f7f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
a {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 17px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
button.primary,
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #00257e;
}
button.danger {
  color: #a12727;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.brand {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  max-width: 50px;
  white-space: normal;
  line-height: 1.2;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.nav-heading {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 64px 0 16px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  justify-content: flex-start;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
nav button.active {
  background: var(--surface);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: 0;
}
.sidebar > .text-button {
  text-align: left;
  justify-content: flex-start;
  margin-top: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
}
.sidebar-bottom > a {
  color: var(--muted);
  text-decoration: none;
}
.account {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere;
}
main {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  font-size: 12px;
  color: var(--muted);
}
.internal-label {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 3px;
}
#content {
  padding: 42px 48px 60px;
  max-width: 1500px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 12px 0 14px;
  line-height: 1.05;
}
h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.page-heading p {
  margin-bottom: 0;
  max-width: 620px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 26px;
}
.search {
  max-width: 380px;
  flex: 1;
}
.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9cdd4;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  color: #17191e;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
input[type="file"] {
  font-size: 13px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.plugin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 254px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.plugin-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.plugin-card h3 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-top: 22px;
  overflow-wrap: anywhere;
}
.plugin-card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 25px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  gap: 8px;
}
.plugin-icon {
  height: 52px;
  width: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  border-radius: 10px;
  object-fit: contain;
}
.badge {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 8px;
  font-weight: 500;
  display: inline-block;
  color: var(--muted);
}
.badge.blue {
  color: var(--accent);
  border-color: #cdd7ef;
  background: #f5f7fc;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.6;
}
.empty h2 {
  color: #17191e;
}
.pager {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 26px;
  font-size: 13px;
}
.back {
  padding-left: 0;
  font-size: 13px;
  margin-bottom: 30px;
}
.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 35px;
}
.detail-header .plugin-icon {
  width: 86px;
  height: 86px;
  font-size: 36px;
  flex-shrink: 0;
}
.detail-header h1 {
  font-size: 40px;
  margin-top: 0;
  overflow-wrap: anywhere;
}
.detail-header p {
  margin: 0;
  color: var(--muted);
}
.detail-header .actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.actions {
  display: flex;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 15px 0;
  font-size: 14px;
  color: var(--muted);
}
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
}
.facts {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.facts dl {
  margin: 0;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.facts dd {
  margin: 8px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.description {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.description pre {
  background: var(--surface);
  padding: 16px;
  overflow: auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.gallery img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--surface);
}
.gallery figcaption {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.gallery .actions {
  padding: 0 12px 12px;
  flex-wrap: wrap;
}
.gallery button {
  font-size: 11px;
  padding: 6px 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}
.release {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 25px;
}
.release pre {
  font: inherit;
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.release time {
  font-size: 12px;
  color: var(--muted);
}
.release button {
  align-self: start;
  font-size: 12px;
}
.release h3 {
  font-variant-numeric: tabular-nums;
}
.settings-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  max-width: 800px;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
  font-size: 13px;
}
.key-row code {
  overflow-wrap: anywhere;
}
.audit-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.audit-row small {
  color: var(--muted);
}
#notice {
  padding: 14px 24px;
  background: #f5f7fc;
  border-bottom: 1px solid #cdd7ef;
  color: var(--accent);
  font-size: 14px;
}
.error,
#notice.error {
  color: #9e2222;
  background: #fff5f5;
  padding: 12px;
  border: 1px solid #edc6c6;
  border-radius: 4px;
}
dialog {
  width: min(600px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 16px 60px #0002;
}
dialog::backdrop {
  background: #1118;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-top h2 {
  font-size: 25px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.help {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.secret {
  font-family: monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-intro {
  padding: 48px 64px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-intro h1 {
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -3px;
  margin: 24px 0;
}
.login-intro > div > p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.login-footer {
  font-size: 12px;
  color: var(--muted);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 38px;
  margin: 18px 0 12px;
}
.login-form > .muted {
  margin-bottom: 36px;
}
.login-form > .primary {
  width: 100%;
  margin-top: 8px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
body.read-only .admin-only {
  display: none !important;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 26px 18px;
  }
  .topbar {
    padding: 0 28px;
  }
  #content {
    padding: 32px 28px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .facts {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0;
  }
  .facts dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 25px;
  }
  .detail-header {
    flex-wrap: wrap;
  }
  .detail-header .actions {
    margin-left: 0;
  }
  h1 {
    font-size: 40px;
  }
  .login-intro {
    padding: 40px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 29px;
  }
  .brand span {
    max-width: none;
  }
  .nav-heading {
    margin: 22px 0 8px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .sidebar-bottom {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .account {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 15px;
  }
  .sidebar > .text-button {
    margin: 4px 0;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
  }
  #content {
    padding: 28px 20px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .primary {
    margin-top: 20px;
  }
  h1 {
    font-size: 38px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .plugin-card {
    min-height: 220px;
  }
  .toolbar {
    gap: 10px;
  }
  .detail-header {
    gap: 18px;
  }
  .detail-header h1 {
    font-size: 32px;
  }
  .detail-header .plugin-icon {
    width: 64px;
    height: 64px;
  }
  .detail-header .actions {
    width: 100%;
  }
  .release {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }
  .release > button {
    grid-column: 2;
  }
  .tabs {
    gap: 22px;
  }
  .audit-row {
    display: block;
  }
  .login-layout {
    display: block;
  }
  .login-intro {
    padding: 24px;
    background: #fff;
    border: 0;
  }
  .login-intro > div,
  .login-footer {
    display: none;
  }
  .login-panel {
    padding: 44px 24px;
  }
  .login-form {
    max-width: 420px;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .facts dl {
    display: block;
  }
}
@media (max-width: 650px) {
  .sidebar nav button {
    flex: 0 0 auto;
  }
}
