/* === ScriptRiva local fonts START === */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-01.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-02.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-04.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-05.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-06.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-07.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-08.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-09.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-10.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-11.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/quicksand-12.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-01.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-02.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-03.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-04.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-05.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-06.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-07.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-08.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-09.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Railway';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/scriptriva/railway-10.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* === ScriptRiva local fonts END === */

500;600;700;800&display=swap");

@font-face {
  font-family: "Railway";
  src:
    local("Railway"),
    local("Raleway"),
    local("Montserrat"),
    local("Arial Black");
  font-display: swap;
}

.scriptriva-home,
.scriptriva-home * {
  box-sizing: border-box;
}

.scriptriva-home {
  --bg: #111111;
  --panel: rgba(22, 15, 30, .72);
  --panel-2: rgba(31, 20, 45, .82);
  --line: rgba(148, 91, 255, .22);
  --purple: #8b5cf6;
  --purple-2: #7c3aed;
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.68);
  --faint: rgba(255,255,255,.44);

  min-height: calc(100vh - 120px);
  color: var(--text);
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(124,58,237,.22), transparent 30rem),
    radial-gradient(circle at 84% 8%, rgba(139,92,246,.13), transparent 26rem),
    linear-gradient(180deg, #121212 0%, #0d0d0e 45%, #111111 100%);
  overflow: hidden;
}

/* Hero */

.sr-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5.8rem 1.5rem 4.2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  isolation: isolate;
}

.sr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 74%);
  z-index: -4;
}

.sr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(139,92,246,.21), transparent 25rem),
    linear-gradient(90deg, rgba(124,58,237,.08), transparent 38%, transparent 62%, rgba(139,92,246,.06));
  z-index: -3;
}

.sr-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(78px);
  pointer-events: none;
  z-index: -2;
}

.sr-orb-left {
  width: 27rem;
  height: 27rem;
  left: 8%;
  top: 5%;
  background: rgba(124,58,237,.28);
}

.sr-orb-right {
  width: 23rem;
  height: 23rem;
  right: 8%;
  top: 12%;
  background: rgba(168,85,247,.16);
}

.sr-hero-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.sr-hero-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 24px;
  margin: 0 auto 1.85rem;
  display: block;
  box-shadow: 0 26px 80px rgba(0,0,0,.38);
}

.sr-wordmark {
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-family: "Railway", Raleway, Montserrat, Impact, "Arial Black", system-ui, sans-serif !important;
  font-size: clamp(3.25rem, 8.5vw, 8rem) !important;
  line-height: .82 !important;
  letter-spacing: -.075em !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  filter: drop-shadow(0 28px 70px rgba(0,0,0,.42));
}

.sr-wordmark .sr-wordmark-part {
  display: inline-block !important;
  padding: .10em .12em .14em !important;
  line-height: .82 !important;
}

.sr-wordmark .sr-wordmark-script {
  color: #fff !important;
  background: #000 !important;
  border-radius: .095em 0 0 .095em !important;
}

.sr-wordmark .sr-wordmark-riva {
  color: #000 !important;
  background: #fff !important;
  border-radius: 0 .095em .095em 0 !important;
}

.sr-subtitle {
  max-width: 740px;
  margin: 1.7rem auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  line-height: 1.65;
  font-weight: 600;
}

.sr-actions {
  margin-top: 2.1rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.sr-btn {
  border-radius: 999px;
  padding: .86rem 1.18rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.sr-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.sr-btn-primary {
  background: #fff;
  color: #000 !important;
  box-shadow: 0 16px 44px rgba(124,58,237,.20);
}

.sr-btn-secondary {
  color: #fff !important;
  background: rgba(255,255,255,.055);
}

/* Forge */

.sr-forge {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.sr-forge-head {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.sr-kicker {
  margin: 0 0 .85rem;
  color: rgba(214,196,255,.68);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  font-weight: 800;
}

.sr-forge-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.055em;
  line-height: .95;
  font-weight: 800;
}

.sr-org-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.74) !important;
  text-decoration: none !important;
  font-weight: 800;
  white-space: nowrap;
}

.sr-org-link:hover {
  color: #fff !important;
}

.sr-org-link svg {
  width: 18px;
  height: 18px;
}

.sr-forge-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(50,29,76,.72), rgba(12,12,13,.88) 42%, rgba(12,12,13,.94)),
    rgba(0,0,0,.28);
  box-shadow:
    0 28px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.sr-workspaces {
  border-right: 1px solid rgba(139,92,246,.18);
  background:
    linear-gradient(180deg, rgba(139,92,246,.12), rgba(255,255,255,.012)),
    rgba(0,0,0,.24);
}

.sr-workspaces-head {
  padding: 1rem;
  border-bottom: 1px solid rgba(139,92,246,.16);
}

.sr-workspaces-head span {
  color: rgba(214,196,255,.66);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 800;
}

.sr-org-switcher {
  display: grid;
  gap: .65rem;
  padding: 1rem;
}

.sr-org-chip {
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  align-items: center;
  width: 100%;
  padding: .78rem;
  border-radius: 20px;
  border: 1px solid rgba(139,92,246,.18);
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.78);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.sr-org-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(139,92,246,.38);
  box-shadow: 0 14px 46px rgba(124,58,237,.12);
}

.sr-org-chip.is-active {
  background:
    linear-gradient(145deg, rgba(139,92,246,.30), rgba(255,255,255,.08)),
    rgba(20,13,30,.94);
  color: #fff;
  border-color: rgba(168,85,247,.55);
  box-shadow:
    0 18px 55px rgba(124,58,237,.18),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.sr-org-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 15px;
  background: #050505;
}

.sr-org-chip span {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.sr-org-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .98rem;
  font-weight: 800;
}

.sr-org-chip small {
  opacity: .64;
  font-size: .75rem;
  font-weight: 700;
}

.sr-projects {
  min-width: 0;
}

.sr-projects-head {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(139,92,246,.16);
  background: rgba(255,255,255,.018);
}

.sr-active-org {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.sr-active-org img {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  object-fit: cover;
  background: #050505;
  box-shadow: 0 0 0 6px rgba(139,92,246,.07);
}

.sr-active-org p {
  margin: 0 0 .24rem;
  color: rgba(214,196,255,.60);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .65rem;
  font-weight: 800;
}

.sr-active-org h3 {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
}

.sr-repo-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.sr-card,
.sr-loading-card {
  position: relative;
  min-height: 285px;
  padding: 1.25rem;
  border-radius: 26px;
  border: 1px solid rgba(139,92,246,.18);
  background: rgba(0,0,0,.30);
  overflow: hidden;
  box-shadow: 0 22px 65px rgba(0,0,0,.26);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  isolation: isolate;
  text-decoration: none !important;
  color: #fff !important;
}

.sr-card,
.sr-card:hover,
.sr-card:focus,
.sr-card:active,
.sr-card *,
.sr-card:hover *,
.sr-card:focus *,
.sr-card:active * {
  text-decoration: none !important;
}

.sr-card {
  grid-column: span 6;
  display: block;
}

.sr-loading-card {
  grid-column: span 12;
}

.sr-card::before,
.sr-loading-card::before {
  content: "";
  position: absolute;
  inset: -3%;
  background-image:
    linear-gradient(145deg, rgba(13,7,22,.48), rgba(0,0,0,.80)),
    var(--sr-card-bg);
  background-size: cover;
  background-position: center;
  opacity: .92;
  transform: scale(1.01);
  filter: blur(.2px) saturate(1.08) contrast(1.12);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
  z-index: -2;
}

.sr-card.has-project-icon::before {
  background-size: 106%;
  background-repeat: no-repeat;
  background-position: center;
}

.sr-card:not(.has-project-icon)::before {
  background-size: 48%;
  background-repeat: no-repeat;
  background-color: #050505;
  opacity: .46;
}

.sr-card::after,
.sr-loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(139,92,246,.16), transparent 12rem),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.82));
  pointer-events: none;
  z-index: -1;
}

.sr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.42);
  box-shadow:
    0 26px 82px rgba(0,0,0,.30),
    0 0 38px rgba(124,58,237,.13);
}

.sr-card:hover::before {
  opacity: .98;
  transform: scale(1.025);
  filter: blur(0) saturate(1.13) contrast(1.16);
}

.sr-card-meta-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.sr-lang,
.sr-visibility {
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 999px;
  padding: .34rem .58rem;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  font-size: .78rem;
  font-weight: 800;
}

.sr-visibility {
  color: rgba(255,255,255,.66);
}

.sr-card h3,
.sr-loading-card h3 {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
  font-weight: 800;
}

.sr-full-name {
  margin: .45rem 0 0;
  color: rgba(255,255,255,.60);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
}

.sr-desc,
.sr-loading-card p {
  margin: 1.1rem 0 0;
  color: rgba(255,255,255,.84);
  line-height: 1.58;
  max-width: 44rem;
  font-weight: 500;
}

.sr-card-footer {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.15rem;
  display: flex;
  gap: .75rem;
  color: rgba(255,255,255,.68);
  font-size: .86rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.sr-inline-link {
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.sr-loading-bar {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(168,85,247,.72), rgba(139,92,246,.18));
  animation: srPulse 1.4s ease-in-out infinite;
}

@keyframes srPulse {
  0%, 100% { opacity: .35; transform: scaleX(.85); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 900px) {
  .sr-forge-head {
    align-items: start;
    flex-direction: column;
  }

  .sr-forge-shell {
    grid-template-columns: 1fr;
  }

  .sr-workspaces {
    border-right: 0;
    border-bottom: 1px solid rgba(139,92,246,.18);
  }

  .sr-org-switcher {
    display: flex;
    overflow-x: auto;
  }

  .sr-org-chip {
    min-width: 195px;
  }

  .sr-card {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .sr-hero {
    min-height: 66vh;
    padding-top: 4.6rem;
  }

  .sr-hero-logo {
    width: 72px;
    height: 72px;
  }

  .sr-wordmark {
    font-size: clamp(2.85rem, 15vw, 5.3rem) !important;
    letter-spacing: -.072em !important;
  }

  .sr-wordmark .sr-wordmark-part {
    padding: .10em .10em .14em !important;
  }

  .sr-subtitle {
    margin-top: 1.25rem;
  }

  .sr-actions {
    flex-direction: column;
  }

  .sr-btn {
    width: 100%;
  }

  .sr-card-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1.25rem;
  }
}

/* === ScriptRiva optimized styling overrides START === */

.scriptriva-home {
  font-family: "Quicksand", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(124,58,237,.24), transparent 30rem),
    radial-gradient(circle at 84% 8%, rgba(139,92,246,.14), transparent 27rem),
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.055), transparent 24rem),
    linear-gradient(180deg, #121212 0%, #0d0d0e 45%, #111111 100%) !important;
}

/* Keep the page stylized, but avoid expensive huge CSS blur fields. */
.sr-orb,
.sr-hero-halo,
.sr-hero-glow {
  filter: none !important;
  opacity: .55 !important;
}

.sr-orb-left,
.sr-hero-halo-left,
.sr-hero-glow-a {
  background: radial-gradient(circle, rgba(124,58,237,.26), rgba(124,58,237,.10) 38%, transparent 70%) !important;
}

.sr-orb-right,
.sr-hero-halo-right,
.sr-hero-glow-b {
  background: radial-gradient(circle, rgba(168,85,247,.18), rgba(139,92,246,.08) 42%, transparent 70%) !important;
}

.sr-hero-logo,
.sr-logo {
  box-shadow: 0 22px 68px rgba(0,0,0,.34) !important;
}

/* Keep Railway only for the brand wordmark. */
.sr-wordmark {
  font-family: "Railway", Raleway, Montserrat, Impact, "Arial Black", system-ui, sans-serif !important;
}

/* Clearer repo icons: no heavy blur, slight scaling only. */
.sr-card::before,
.sr-loading-card::before {
  inset: -2% !important;
  filter: saturate(1.08) contrast(1.12) !important;
  transform: scale(1.01) !important;
  opacity: .91 !important;
}

.sr-card.has-project-icon::before {
  background-size: 108% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.sr-card:hover::before {
  filter: saturate(1.13) contrast(1.16) !important;
  transform: scale(1.025) !important;
  opacity: .97 !important;
}

/* Preserve depth with cheaper gradients/shadows. */
.sr-forge-shell,
.sr-console {
  background:
    linear-gradient(135deg, rgba(50,29,76,.74), rgba(12,12,13,.90) 42%, rgba(12,12,13,.95)),
    radial-gradient(circle at 0% 0%, rgba(139,92,246,.16), transparent 24rem),
    rgba(0,0,0,.28) !important;
  box-shadow: 0 24px 72px rgba(0,0,0,.28) !important;
}

.sr-card,
.sr-loading-card {
  box-shadow: 0 18px 54px rgba(0,0,0,.24) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scriptriva-home *,
  .scriptriva-home *::before,
  .scriptriva-home *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* === ScriptRiva optimized styling overrides END === */

/* === ScriptRiva homepage optimized gradients START === */

.scriptriva-home {
  font-family: "Quicksand", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background-color: #111111 !important;
  background-image:
    radial-gradient(920px 640px at 12% -8%, rgba(124,58,237,.24), transparent 72%),
    radial-gradient(880px 620px at 88% -5%, rgba(139,92,246,.15), transparent 72%),
    radial-gradient(760px 520px at 50% 10%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(180deg, #121212 0%, #0d0d0e 52%, #111111 100%) !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: 920px 640px, 880px 620px, 760px 520px, 100% 100% !important;
  background-position: left -180px top -160px, right -160px top -120px, center top -120px, center center !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

.sr-hero {
  background: transparent !important;
}

.sr-grid,
.sr-hero-grid {
  background-size: 56px 56px !important;
  opacity: .78 !important;
}

.sr-orb,
.sr-hero-halo,
.sr-hero-glow {
  filter: none !important;
  opacity: .58 !important;
}

.sr-orb-left,
.sr-hero-halo-left,
.sr-hero-glow-a {
  background: radial-gradient(circle, rgba(124,58,237,.28), rgba(124,58,237,.10) 42%, transparent 72%) !important;
}

.sr-orb-right,
.sr-hero-halo-right,
.sr-hero-glow-b {
  background: radial-gradient(circle, rgba(168,85,247,.18), rgba(139,92,246,.08) 44%, transparent 72%) !important;
}

.sr-wordmark {
  font-family: "Railway", Raleway, Montserrat, Impact, "Arial Black", system-ui, sans-serif !important;
}

.sr-forge-shell,
.sr-console {
  background:
    linear-gradient(135deg, rgba(50,29,76,.74), rgba(12,12,13,.90) 42%, rgba(12,12,13,.95)),
    radial-gradient(640px 320px at 0% 0%, rgba(139,92,246,.16), transparent 70%),
    rgba(0,0,0,.28) !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 24px 72px rgba(0,0,0,.28) !important;
}

/* Sharpen repository thumbnails while keeping enough dark overlay for readability. */
.sr-card::before,
.sr-loading-card::before {
  inset: -2% !important;
  filter: saturate(1.08) contrast(1.12) !important;
  transform: scale(1.01) !important;
  opacity: .92 !important;
}

.sr-card.has-project-icon::before {
  background-size: 108% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.sr-card:hover::before {
  filter: saturate(1.13) contrast(1.16) !important;
  transform: scale(1.025) !important;
  opacity: .97 !important;
}

@media (max-width: 800px) {
  .scriptriva-home {
    background-attachment: scroll, scroll, scroll, scroll !important;
  }
}

/* === ScriptRiva homepage optimized gradients END === */
