@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #0d1019;
  --panel: #161b27;
  --panel2: #1b2030;
  --text: #f1f2f8;
  --muted: #a1a9bd;
  --line: #2b3244;
  --accent: #9664f5;
  --cyan: #62d6f7;
  --shadow: 0 18px 60px #0004;
  --sidebar: 244px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
body.light {
  color-scheme: light;
  --bg: #f5f6fb;
  --panel: #fff;
  --panel2: #f0f2f8;
  --text: #172033;
  --muted: #5e6980;
  --line: #dce1ed;
  --cyan: #136da1;
  --shadow: 0 18px 60px #26345812;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--cyan);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
h1,
h2,
h3,
.brand-name {
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1rem;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 0.8125rem;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 290px;
}
.brand-logo {
  width: 43px;
  height: 49px;
  object-fit: contain;
}
.brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand-caption {
  font-size: 0.8125rem;
  color: var(--muted);
}
.topnav {
  display: flex;
  gap: 20px;
  margin: auto;
}
.topnav button {
  background: none;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.9375rem;
  position: relative;
}
.topnav button.active {
  background: #8d67e51b;
  color: #ded0ff;
}
.topnav button.active:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
body.light .topnav button.active {
  color: #6136b5;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-button,
.quiet-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
}
.icon-button {
  padding: 10px;
  width: 42px;
  height: 42px;
}
.icon-button:hover,
.quiet-button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--panel2);
}
.primary {
  background: linear-gradient(110deg, #a034e8, #4841ce);
  border: 1px solid #9468fa;
  color: white;
  box-shadow: 0 5px 20px #7737de1c;
}
.primary:hover {
  background: linear-gradient(110deg, #b14df1, #5650dc);
  color: white;
}
.sun {
  color: #f7c945;
}
.language {
  padding: 9px 10px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
}
.mobile-menu {
  display: none;
}
.sidebar {
  position: fixed;
  inset: 82px auto 0 0;
  width: var(--sidebar);
  background: linear-gradient(145deg, var(--bg), var(--panel) 260%);
  border-right: 1px solid var(--line);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  z-index: 19;
  overflow: auto;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 3px;
}
.side-link svg {
  width: 21px;
}
.side-link span {
  flex: 1;
}
.side-link.active {
  color: var(--text);
  background: #9868e52b;
}
.side-link:hover {
  background: var(--panel2);
  color: var(--text);
}
.side-link .count {
  font-size: 0.75rem;
  color: var(--muted);
  flex: 0;
}
.side-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 12px;
}
.side-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 5px 14px 10px;
}
.side-category {
  font-size: 0.8125rem;
  padding-top: 8px;
  padding-bottom: 8px;
}
.side-category svg {
  width: 17px;
  height: 17px;
}
.sidebar-bottom {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-bottom svg {
  color: var(--cyan);
  width: 31px;
  height: 31px;
}
.sidebar-bottom strong {
  font-size: 0.875rem;
}
.sidebar-bottom small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
}
.main {
  margin-left: var(--sidebar);
  padding: 32px 36px 24px;
  max-width: 1900px;
  min-height: calc(100vh - 82px);
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 8px 16px 20px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  width: 47%;
  max-width: 560px;
  height: 100%;
  right: -35px;
  top: -10px;
  object-fit: contain;
  z-index: -1;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 5%, transparent 74%);
  z-index: -1;
  pointer-events: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow:before {
  content: "";
  height: 1px;
  width: 23px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.1rem, 3.1vw, 3rem);
  font-weight: 750;
  margin: 0 0 13px;
  max-width: 740px;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.hero h1 em {
  color: #a16cf5;
  font-style: normal;
}
.hero p {
  font-size: 1.05rem;
  max-width: 630px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 19px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  border: 1px solid #8b67f0;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(90deg, #61e6f0, #7860ff) border-box;
  border: 2px solid transparent;
  padding: 12px 16px;
  max-width: 790px;
  box-shadow: 0 0 22px #6465df0b;
}
.search-box svg {
  color: var(--muted);
  width: 23px;
  height: 23px;
}
.search-box input {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  outline: none;
  font-size: 1rem;
  min-width: 0;
}
.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.95;
}
.search-box:focus-within {
  box-shadow: 0 0 0 4px #8b67f01c;
}
.search-box input:focus-visible {
  outline: 0;
}
.search-box kbd {
  font-family: inherit;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 6px;
  white-space: nowrap;
  padding: 5px 8px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.hero-buttons .button {
  padding: 13px 21px;
}
.soon-pill {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff15;
  padding: 2px 5px;
  border-radius: 4px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 26px;
}
.category-tile {
  text-align: left;
  min-height: 154px;
  padding: 19px 18px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel2), var(--panel));
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.category-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tile) 65%, var(--line));
}
.category-tile .icon {
  color: var(--tile);
  width: 30px;
  height: 30px;
  margin: 0 0 13px;
}
.category-tile strong {
  display: block;
  line-height: 1.3;
  font-size: 0.9375rem;
  letter-spacing: -0.035em;
}
.category-tile small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 7px;
}
.home-columns {
  display: grid;
  grid-template-columns: 1fr 1.02fr 1fr;
  gap: 18px;
}
.panel {
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panel-heading {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.panel-heading svg {
  color: #bbc1d5;
}
.panel-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.panel-list {
  padding: 0 18px;
}
.resource-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  min-height: 85px;
}
.resource-row:last-child {
  border-bottom: 0;
}
.resource-row button.row-info {
  background: none;
  text-align: left;
  flex: 1;
  padding: 0;
  min-width: 0;
}
.resource-row strong {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  line-height: 1.35;
}
.resource-row small {
  font-size: 0.75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
}
.resource-row .resource-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1rem;
}
.resource-row .icon-button {
  width: 29px;
  height: 30px;
  padding: 5px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.resource-row .icon-button svg {
  width: 17px;
  height: 17px;
}
.panel-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.text-button {
  color: var(--cyan);
  background: none;
  font-size: 0.8125rem;
  padding: 0;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.resource-mark {
  background: color-mix(in srgb, var(--mark) 14%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--mark) 25%, var(--line));
  color: var(--mark);
  height: 44px;
  width: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Manrope, system-ui;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 25px;
}
.page-heading h1 {
  font-size: 2.2rem;
  margin: 8px 0 10px;
}
.page-heading p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 20px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
}
.tabs button.active {
  color: var(--text);
  border-color: var(--accent);
}
.selects {
  display: flex;
  gap: 8px;
}
.selects select,
select.field {
  appearance: none;
  background-color: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 34px 10px 12px;
  font-size: 0.8125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23919bb2' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    140deg,
    var(--panel),
    color-mix(in srgb, var(--panel2) 60%, var(--bg))
  );
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  min-height: 240px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.resource-card:hover {
  border-color: #7a62af;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.card-top .name-button {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  padding: 0;
}
.card-top h3 {
  margin: 0 0 4px;
  line-height: 1.3;
}
.card-top .domain {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  color: var(--muted);
}
.favorite {
  width: 31px;
  height: 31px;
  padding: 5px;
  border: 0;
  background: none;
  color: var(--muted);
}
.favorite.saved {
  color: #bd99ff;
}
.favorite.saved svg {
  fill: #9e68ee25;
}
.card-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-bottom: 16px;
}
.tag,
.license {
  font-size: 0.6875rem;
  border-radius: 5px;
  padding: 3px 7px;
  letter-spacing: 0.01em;
  background: var(--panel2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.license {
  color: #a3d4bd;
  background: #4ba4770c;
  border-color: #4ba47725;
}
.private-tag {
  color: #f8c57f;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.card-bottom .button {
  padding: 6px 10px;
  font-size: 0.75rem;
  background: transparent;
}
.card-bottom small {
  font-size: 0.75rem;
}
.card-bottom svg {
  width: 15px;
  height: 15px;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 55px 25px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty svg {
  width: 38px;
  height: 38px;
  color: #8772ab;
  margin-bottom: 10px;
}
.empty h3 {
  color: var(--text);
  margin: 8px 0;
}
.empty p {
  font-size: 0.875rem;
  max-width: 440px;
  margin: 8px auto 20px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.collection-card {
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
}
.collection-card svg {
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.collection-card h3 {
  margin: 20px 0 8px;
}
.info-note {
  padding: 14px 17px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: 18px 0;
}
.site-footer {
  margin-top: 38px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  gap: 12px;
  color: var(--muted);
}
.site-footer button {
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0;
}
.site-footer div {
  display: flex;
  gap: 18px;
}
.metric-strip {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 22px;
  padding-left: 16px;
}
.metric-strip strong {
  color: var(--text);
  font-weight: 600;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #050712bb;
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: min(620px, 100%);
  max-height: 90dvh;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: auto;
  position: relative;
  padding: 29px;
}
.modal.wide {
  width: min(860px, 100%);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}
.modal h2 {
  font-size: 1.7rem;
  margin: 5px 40px 18px 0;
}
.modal p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.modal-head {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 35px 20px 0;
}
.modal-head h2 {
  margin: 0 0 7px;
}
.modal-head .resource-mark {
  width: 58px;
  height: 58px;
  font-size: 1.6rem;
}
.modal .detail-description {
  color: var(--text);
}
.detail-category {
  font-size: 0.8125rem;
  color: var(--muted);
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0 8px;
}
.field {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  outline: none;
}
.field:focus {
  border-color: var(--accent);
}
textarea.field {
  min-height: 110px;
  resize: vertical;
}
label.form-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 15px 0 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  padding-top: 15px;
}
.form-error {
  color: #ff9ca7;
  font-size: 0.8125rem;
  margin: 12px 0;
  min-height: 1em;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
  line-height: 1.7;
  background: #070a11;
  color: #c6d0e8;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  font-family: Consolas, monospace;
  font-size: 0.8125rem;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.admin-tabs button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 0.875rem;
}
.admin-tabs button.active {
  border-color: var(--accent);
  color: #b794f4;
}
.admin-list {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.admin-row {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  background: var(--panel);
}
.admin-row:last-child {
  border-bottom: 0;
}
.admin-row .grow {
  flex: 1;
  min-width: 0;
}
.admin-row strong {
  font-size: 0.875rem;
  display: block;
  overflow-wrap: anywhere;
}
.admin-row small {
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
}
.admin-row .button {
  font-size: 0.75rem;
  padding: 7px 10px;
}
.admin-settings {
  max-width: 700px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.auth-card {
  max-width: 480px;
  margin: 45px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.auth-card h1 {
  font-size: 1.8rem;
}
.auth-card p {
  font-size: 0.875rem;
  color: var(--muted);
}
.auth-card .button {
  margin-top: 22px;
  width: 100%;
}
.warning-note {
  border-color: #b99d4335;
  background: #b99d4309;
}
.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}
.brand-symbol {
  font-size: 3rem;
  letter-spacing: -0.16em;
  font-weight: 800;
  color: var(--cyan);
}
.brand-symbol span {
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 100;
  padding: 12px 22px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  text-align: center;
  font-size: 0.875rem;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-overlay {
  display: none;
}
.suggestion-url {
  font-size: 0.8125rem;
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.danger {
  color: #ff9ca7;
}
.inline-actions {
  display: flex;
  gap: 7px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .main {
    padding-left: 44px;
    padding-right: 44px;
  }
  .hero {
    min-height: 350px;
  }
  .hero-art {
    right: 0;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .category-tile {
    min-height: 170px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 220px;
  }
  .topbar {
    gap: 16px;
    padding: 0 20px;
  }
  .brand {
    min-width: 230px;
  }
  .brand-caption {
    font-size: 0.6875rem;
  }
  .topnav {
    gap: 5px;
  }
  .topnav button {
    padding: 12px 9px;
    font-size: 0.875rem;
  }
  .main {
    padding: 25px 24px;
  }
  .hero {
    padding-left: 4px;
  }
  .hero h1 {
    font-size: 2.5rem;
    max-width: 640px;
  }
  .hero p {
    max-width: 580px;
  }
  .hero-art {
    opacity: 0.6;
    right: -50px;
    width: 50%;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-tile {
    min-height: 138px;
  }
  .category-tile .icon {
    float: left;
    margin-right: 12px;
  }
  .home-columns {
    grid-template-columns: 1fr 1fr;
  }
  .home-columns .panel:last-child {
    grid-column: 1/-1;
  }
  .home-columns .panel:last-child .panel-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-buttons .button {
    padding: 12px 14px;
  }
  .hero-buttons {
    gap: 9px;
  }
  .top-actions {
    gap: 7px;
  }
}
@media (max-width: 960px) {
  .brand {
    min-width: 200px;
  }
  .brand-caption {
    display: none;
  }
  .brand-name {
    font-size: 1.4rem;
  }
  .brand-logo {
    width: 35px;
    height: 42px;
  }
  .topnav button {
    font-size: 0.8125rem;
    padding: 10px 7px;
  }
  .topnav {
    gap: 0;
  }
  .login-label {
    display: none;
  }
  .top-actions .quiet-button {
    padding: 10px;
  }
  .main {
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-buttons .button {
    font-size: 0.8125rem;
    padding: 12px;
  }
  .hero-art {
    display: none;
  }
  .search-box kbd {
    display: none;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-columns {
    grid-template-columns: 1fr;
  }
  .home-columns .panel:last-child .panel-list {
    display: block;
  }
  .hero-buttons .soon-pill {
    display: none;
  }
  .category-tile {
    padding: 16px;
  }
  .category-tile strong {
    font-size: 0.8125rem;
  }
  .category-tile small {
    font-size: 0.75rem;
  }
  .metric-strip {
    padding-left: 4px;
    gap: 17px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 260px;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    min-width: 0;
    gap: 9px;
    margin-right: auto;
  }
  .brand-name {
    font-size: 1.4rem;
  }
  .brand-logo {
    width: 31px;
    height: 36px;
  }
  .topnav {
    display: none;
  }
  .mobile-menu {
    display: flex;
    border: 0;
    background: none;
    width: 28px;
    padding: 0;
  }
  .language {
    padding: 8px;
    font-size: 0.75rem;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .icon-button {
    width: 34px;
    height: 36px;
    padding: 7px;
  }
  .top-actions .quiet-button {
    padding: 7px;
    height: 36px;
  }
  .top-actions svg {
    width: 19px;
    height: 19px;
  }
  .sidebar {
    top: 70px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .mobile-overlay.visible {
    display: block;
    position: fixed;
    inset: 70px 0 0;
    background: #0009;
    z-index: 18;
  }
  .main {
    margin-left: 0;
    padding: 23px 18px 20px;
  }
  .hero {
    min-height: 0;
    padding: 7px 0 12px;
  }
  .eyebrow {
    font-size: 0.625rem;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.16;
    letter-spacing: -0.05em;
  }
  .hero p {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }
  .hero-art {
    display: block;
    width: 56%;
    opacity: 0.2;
    right: -70px;
    top: -40px;
    height: 235px;
  }
  .hero:after {
    background: linear-gradient(90deg, var(--bg), transparent);
  }
  .search-box {
    padding: 12px;
    gap: 8px;
  }
  .search-box input {
    font-size: 0.875rem;
  }
  .search-box svg {
    width: 20px;
  }
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
  }
  .hero-buttons .button {
    white-space: normal;
    padding: 12px 9px;
    font-size: 0.75rem;
    gap: 7px;
  }
  .hero-buttons .button:first-child {
    grid-column: 1/-1;
  }
  .hero-buttons .soon-pill {
    display: inline;
    font-size: 0.5625rem;
  }
  .hero-buttons svg {
    width: 18px;
    height: 18px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 20px 0;
  }
  .category-tile {
    min-height: 137px;
    padding: 17px 15px;
  }
  .category-tile .icon {
    float: none;
    width: 25px;
    height: 25px;
    margin: 0 0 10px;
  }
  .category-tile strong {
    font-size: 0.875rem;
  }
  .category-tile small {
    font-size: 0.75rem;
    margin-top: 6px;
  }
  .home-columns {
    gap: 15px;
  }
  .panel-heading {
    padding: 16px 18px;
  }
  .panel-heading h2 {
    font-size: 1rem;
  }
  .resource-row {
    min-height: 80px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .resource-card {
    min-height: 230px;
    padding: 20px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .page-heading .button {
    font-size: 0.75rem;
    padding: 10px;
  }
  .toolbar {
    margin: 20px 0 16px;
    gap: 16px;
  }
  .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow: auto;
  }
  .tabs button {
    font-size: 0.8125rem;
    white-space: nowrap;
    padding: 10px 12px;
  }
  .selects {
    width: 100%;
    justify-content: space-between;
  }
  .selects select {
    flex: 1;
    min-width: 0;
  }
  .site-footer {
    display: block;
    font-size: 0.6875rem;
    line-height: 1.6;
  }
  .site-footer div {
    margin-top: 10px;
    font-size: 0.75rem;
  }
  .metric-strip {
    flex-wrap: wrap;
    gap: 7px 17px;
    margin-top: 19px;
    font-size: 0.6875rem;
    padding-left: 0;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    padding: 24px 20px;
    max-height: 94dvh;
    border-radius: 16px;
  }
  .modal h2 {
    font-size: 1.4rem;
  }
  .modal-head {
    gap: 11px;
  }
  .modal-head .resource-mark {
    width: 48px;
    height: 48px;
  }
  .modal-head h2 {
    font-size: 1.3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions .button {
    font-size: 0.8125rem;
    flex-grow: 1;
  }
  .admin-row {
    gap: 8px;
    padding: 14px 12px;
  }
  .admin-row .resource-mark {
    display: none;
  }
  .admin-row .inline-actions {
    flex-direction: column;
  }
  .admin-row .button {
    padding: 6px 9px;
  }
  .admin-tabs button {
    font-size: 0.75rem;
    padding: 9px 11px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 23px;
    margin: 20px auto;
  }
  .admin-settings {
    padding: 18px;
  }
  .hero .desktop-break {
    display: none;
  }
}
.primary {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--accent), #b82ef2 30%),
    color-mix(in srgb, var(--accent), #263ac0 45%)
  );
  border-color: var(--accent);
}
.primary:hover {
  background: var(--accent);
}
.hero h1 em {
  color: var(--accent);
}
.topnav button.active:after,
.eyebrow:before {
  background: var(--accent);
}
.card-bottom small {
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .hero-art {
    opacity: 0.12;
  }
  .sidebar.open:focus-within {
    visibility: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
