/* ScriptNeo — modern userscripts.org-inspired public shell */
:root {
  --sn-blue-900: #8a6500;
  --sn-blue-800: #b88900;
  --sn-blue-700: #ffd026;
  --sn-blue-100: #fff7d6;
  --sn-green: #4b8f25;
  --sn-green-dark: #39731a;
  --sn-ink: #27313b;
  --sn-muted: #6f7b86;
  --sn-line: #d8dee5;
  --sn-soft: #f3f5f7;
  --sn-paper: #ffffff;
}

html { min-height: 100%; }
body.scriptneo-site {
  min-height: 100vh;
  margin: 0;
  background: #eef1f4;
  color: var(--sn-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #7a5a00; }
a:hover { color: #5e4500; }

.sn-masthead {
  background: linear-gradient(#ffffff, #f4f6f8);
  border-bottom: 1px solid #cfd6dd;
}
.sn-masthead-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
.sn-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1c2d3e;
  text-decoration: none;
}
.sn-brand:hover { color: #1c2d3e; }
.sn-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sn-blue-700), var(--sn-blue-900));
  color: #2b250f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 2px 4px rgba(0,0,0,.12);
  font-size: 22px;
  font-weight: 700;
}
.sn-brand-name {
  display: block;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.6px;
}
.sn-brand-tagline {
  display: block;
  margin-top: 5px;
  color: #78838e;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
}
.sn-account-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #65717c;
  font-size: 13px;
}
.sn-account-links a {
  color: #725400;
  text-decoration: none;
}
.sn-account-links a:hover { text-decoration: underline; }
.sn-account-sep { color: #bac1c8; }

.sn-navbox {
  background: linear-gradient(#ffdc58, #ffd026);
  border-top: 1px solid #ffe47a;
  border-bottom: 1px solid #b88900;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.sn-navbar { min-height: 48px; }
.sn-navbar .navbar-toggler {
  border-color: rgba(43,37,15,.35);
  margin: 7px 0;
}
.sn-navbar .navbar-nav .nav-link {
  color: rgba(43,37,15,.92);
  font-size: 13px;
  font-weight: 700;
  padding: .85rem .72rem;
  border-left: 1px solid rgba(255,255,255,.28);
  border-right: 1px solid rgba(80,55,0,.08);
}
.sn-navbar .navbar-nav .nav-link:hover,
.sn-navbar .navbar-nav .nav-link:focus {
  color: #1f1b0b;
  background: rgba(255,255,255,.28);
}
.sn-navbar .dropdown-menu { font-size: 13px; }
.sn-nav-search {
  width: min(430px, 42vw);
  margin-left: auto;
}
.sn-nav-search .form-control {
  min-height: 32px;
  border: 1px solid #a87b00;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.sn-nav-search .btn {
  min-height: 32px;
  border-radius: 0 4px 4px 0;
  border-color: #a87b00;
  background: #f4f6f8;
  color: #5e4500;
  font-weight: 700;
}

.sn-page {
  padding-top: 22px;
  padding-bottom: 34px;
}

/* Dense, information-first cards reminiscent of classic userscript directories. */
.card {
  border-color: var(--sn-line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(20,35,50,.06) !important;
}
.card-body { padding: 1rem; }
.card-header {
  border-color: var(--sn-line);
  background: linear-gradient(#fbfcfd, #f0f3f5);
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 { color: #26394a; }
h1.h4, h1.h3 { letter-spacing: -.02em; }
.text-muted { color: var(--sn-muted) !important; }

.btn { border-radius: 4px; font-weight: 600; }
.btn-primary {
  --bs-btn-color: #2b250f;
  --bs-btn-bg: #ffd026;
  --bs-btn-border-color: #c79800;
  --bs-btn-hover-color: #211c08;
  --bs-btn-hover-bg: #f4c400;
  --bs-btn-hover-border-color: #b88900;
  --bs-btn-active-color: #211c08;
  --bs-btn-active-bg: #e7b900;
  --bs-btn-active-border-color: #a87b00;
}
.btn-success,
.script-hero-actions .btn-primary {
  --bs-btn-bg: var(--sn-green);
  --bs-btn-border-color: var(--sn-green-dark);
  --bs-btn-hover-bg: var(--sn-green-dark);
  --bs-btn-hover-border-color: #2f6115;
}

.btn-outline-primary {
  --bs-btn-color: #725400;
  --bs-btn-border-color: #d0a300;
  --bs-btn-hover-color: #2b250f;
  --bs-btn-hover-bg: #ffd026;
  --bs-btn-hover-border-color: #c79800;
  --bs-btn-active-color: #2b250f;
  --bs-btn-active-bg: #f4c400;
  --bs-btn-active-border-color: #b88900;
}
.text-primary { color: #725400 !important; }
.bg-primary { background-color: #ffd026 !important; color: #2b250f !important; }
.border-primary { border-color: #d0a300 !important; }
.link-primary { color: #725400 !important; }

.form-control, .form-select, .input-group-text {
  border-color: #cbd3db;
  border-radius: 4px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: #d5a800;
  box-shadow: 0 0 0 .16rem rgba(255,208,38,.28);
}

.table { --bs-table-bg: #fff; font-size: 13px; }
.table > :not(caption) > * > * { padding: .72rem .65rem; border-bottom-color: #e1e6eb; }
.table thead th {
  color: #52606d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom-width: 1px;
  background: #f3f5f7 !important;
}
.table tbody tr:hover { background: #fafbfd; }

.badge { border-radius: 3px; font-weight: 600; }
.badge.text-bg-secondary { background: #708090 !important; }

.alert { border-radius: 4px; }
.alert-info, .notice.info {
  color: #5f4a00;
  background: #fff8d9;
  border-color: #f1d66f;
}

.nav-tabs {
  gap: 2px;
  border-bottom-color: #bfc9d3;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.nav-tabs .nav-link {
  white-space: nowrap;
  border-radius: 4px 4px 0 0;
  padding: .55rem .8rem;
  color: #68520a;
  font-size: 13px;
  font-weight: 700;
  background: #edf1f4;
  border: 1px solid #d6dde4;
  border-bottom: 0;
}
.nav-tabs .nav-link.active {
  color: #3c3008;
  background: #fff;
  border-color: #bfc9d3 #bfc9d3 #fff;
}

.script-hero-card {
  border-top: 3px solid var(--sn-blue-700);
}
.script-hero-title { color: #4b3a00; }
.script-hero-summary { font-size: 14px; }
.script-hero-actions .btn-primary {
  min-width: 132px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

/* Make the classic list view the visual centerpiece. */
.sn-script-title,
.table .fw-semibold a { color: #7a5a00; font-weight: 700; }

.pagination .page-link { color: #725400; border-color: #d2dae2; }
.pagination .active > .page-link { color: #2b250f; background: #ffd026; border-color: #c79800; }

pre {
  border: 1px solid #29333c;
  border-radius: 4px !important;
  max-width: 100%;
  overflow: auto;
}
code { font-size: .92em; }

.sn-footer {
  margin-top: auto;
  border-top: 1px solid #cfd6dd;
  background: #f7f8f9;
  color: #75818c;
}
.sn-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 12px;
}

.dropdown-menu { border-color: #cfd6dd; box-shadow: 0 6px 18px rgba(24,43,60,.14); }
.list-group-item { border-color: #e0e5ea; }

@media (max-width: 991.98px) {
  .sn-masthead-inner { min-height: 68px; }
  .sn-brand-name { font-size: 24px; }
  .sn-account-links { display: none; }
  .sn-navbar { padding: 0; }
  .sn-navbar .navbar-collapse { padding-bottom: 12px; }
  .sn-navbar .navbar-nav .nav-link {
    padding: .6rem .7rem;
    border: 0;
  }
  .sn-nav-search {
    width: 100%;
    margin: 8px 0 0;
  }
}

@media (max-width: 767.98px) {
  body.scriptneo-site { font-size: 13.5px; }
  .sn-masthead-inner { padding-top: 10px; padding-bottom: 10px; }
  .sn-brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .sn-brand-name { font-size: 22px; }
  .sn-brand-tagline { font-size: 11px; }
  .sn-page { padding-top: 14px; }
  .card-body { padding: .85rem; }
  .table-responsive { border-radius: 4px; }
  .sn-script-table th:nth-child(2),
  .sn-script-table td:nth-child(2),
  .sn-script-table th:nth-child(3),
  .sn-script-table td:nth-child(3),
  .sn-script-table th:nth-child(5),
  .sn-script-table td:nth-child(5),
  .sn-script-table th:nth-child(6),
  .sn-script-table td:nth-child(6) { display: none; }
  .sn-script-table th:first-child,
  .sn-script-table td:first-child { width: auto !important; }
  .sn-script-table td:nth-child(4),
  .sn-script-table th:nth-child(4) { white-space: nowrap; }
  .sn-footer-inner { flex-direction: column; text-align: center; }
  .dropdown-menu[style*="min-width: 360px"] { min-width: min(94vw, 360px) !important; }
}
