/* Shared functional components, followed by the Madaith workspace design. */
@import url('/assets/css/community.css');
@import url('/assets/css/social-brands.css');
@import url('/assets/css/admin-legal.css');
@import url('/assets/css/notices-about.css');
@import url('/assets/css/profile-system.css');
@import url('/assets/css/project-content.css');
@import url('/assets/css/bbcode-images.css');
@import url('/assets/css/bbcode-headings.css');
@import url('/assets/css/project-information.css');
@import url('/assets/css/profile-appearance.css');
@import url('/assets/css/project-admin.css');

:root {
  --green: #163d2d;
  --black: #101813;
  --ink: #18261e;
  --muted: #657369;
  --surface: #fff;
  --canvas: #f3f5f0;
  --line: #dfe5dd;
  --green-soft: #e7eee5;
  --sidebar-width: 232px;
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-synthesis: none;
}
body.studio-site {
  background: var(--canvas);
  padding-left: var(--sidebar-width);
}
button,
input,
textarea,
select {
  font-family: inherit;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(34px, 4vw, 54px);
}
h2 {
  font-size: clamp(25px, 2.5vw, 34px);
}
a:hover {
  text-decoration: none;
}
::selection {
  background: #c2d7c3;
  color: #12271b;
}
:focus-visible {
  outline: 3px solid #68977b;
  outline-offset: 4px;
}
.wrap {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 36px;
}
.page-heading {
  padding-block: 38px 24px;
}
.panel {
  border-radius: 14px;
  box-shadow: 0 2px 3px rgb(18 39 27 / 2%);
}
.ms-button {
  border-radius: 8px;
  font-weight: 700;
  min-height: 46px;
}
.ms-button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.ms-button.primary:hover {
  background: #254f38;
  color: #fff;
  border-color: #254f38;
}
.ms-button.secondary {
  color: var(--green);
  background: #fff;
  border-color: var(--line);
}
.ms-button.secondary:hover {
  background: var(--green-soft);
  color: var(--green);
}
.ms-button:disabled,
.ms-button.primary:disabled {
  background: #e4e7e2;
  color: #71776f;
  border-color: #d6dcd3;
  box-shadow: none;
}
.text-link {
  background: transparent;
  color: var(--green);
}
.eyebrow {
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 700;
}
.skip-link {
  color: #fff;
  border-radius: 8px;
}

/* A permanent library on desktop, an accessible menu on small screens. */
.ms-header {
  position: sticky;
  top: 0;
  background: #fff;
  color: var(--ink);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}
.studio-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 34px 20px 20px;
  background: #10291f;
  color: #f2f6ef;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 50;
}
.studio-sidebar .ms-brand {
  padding: 0 6px;
  gap: 11px;
  font-size: 16px;
  letter-spacing: 0.09em;
  margin-bottom: 44px;
}
.studio-sidebar .ms-brand img {
  width: 38px;
  height: 38px;
}
.studio-sidebar .brand-sub {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: #b7c8ba;
}
.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a0b5a5;
  margin: 0 12px 12px;
}
.studio-sidebar .ms-desktop-nav,
.sidebar-personal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}
.studio-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 12px;
  border-radius: 8px;
  color: #c2d0c4;
  font-size: 13px;
  font-weight: 600;
}
.studio-sidebar nav a svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.studio-sidebar nav a:hover {
  background: #1a3729;
  color: #fff;
}
.studio-sidebar nav a[aria-current] {
  background: #274734;
  color: #fff;
  text-decoration: none;
}
.studio-sidebar nav a[aria-current]::after {
  display: none;
}
.sidebar-divider {
  border-top: 1px solid #2c4335;
  margin: 25px 12px;
}
.sidebar-external {
  margin-left: auto;
  font-size: 15px;
  color: #90ab96;
  flex-shrink: 0;
}
.sidebar-library {
  margin-top: 34px;
}
.sidebar-project {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
}
.sidebar-project:hover {
  background: #1a3729;
}
.sidebar-project img {
  width: 36px;
  height: 47px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-project > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sidebar-project strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-project small {
  display: block;
  color: #a7b9ab;
  font-size: 10px;
  margin-top: 3px;
}
.sidebar-project > span:last-child {
  font-size: 15px;
}
.sidebar-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.studio-sidebar nav .sidebar-text,
.ms-mobile-nav .sidebar-text {
  flex: 1;
}
.sidebar-text-track {
  display: inline-block;
  width: max-content;
  vertical-align: top;
}
.sidebar-text.is-overflowing .sidebar-text-track {
  animation: sidebar-text-pan var(--sidebar-text-duration, 12s) ease-in-out infinite;
}
a:hover .sidebar-text.is-overflowing .sidebar-text-track,
a:focus-within .sidebar-text.is-overflowing .sidebar-text-track {
  animation-play-state: paused;
}
@keyframes sidebar-text-pan {
  0%,
  12%,
  88%,
  100% {
    transform: translateX(0);
  }
  44%,
  56% {
    transform: translateX(var(--sidebar-text-offset));
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .sidebar-text-track {
    width: auto;
    max-width: 100%;
    transform: none;
  }
}
.sidebar-invitation {
  margin-top: auto;
  padding: 21px 16px;
  border: 1px solid #3b5541;
  border-radius: 12px;
  background: #193628;
}
.sidebar-library + .sidebar-invitation {
  margin-top: 34px;
}
.invitation-mark {
  color: #c4d9b8;
  font-size: 29px;
  line-height: 1;
  display: inline-block;
  margin-bottom: 13px;
}
.sidebar-invitation h2 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
.sidebar-invitation p {
  font-size: 11px;
  color: #b5c7b8;
  line-height: 1.65;
  margin-bottom: 17px;
}
.sidebar-invitation a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a1b6a6;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 24px 12px 0;
}
.studio-status-dot {
  width: 5px;
  height: 5px;
  background: #b0cba7;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.ms-nav {
  height: 76px;
  gap: 22px;
}
.topbar-context {
  display: flex;
  gap: 13px;
  font-size: 11px;
  align-items: center;
}
.topbar-context > span {
  color: var(--muted);
}
.topbar-context > strong {
  font-weight: 600;
}
.topbar-studio-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-left: auto;
  font-size: 10px;
}
.topbar-studio-note .studio-status-dot {
  background: #456f4f;
}
.topbar-mobile-brand {
  display: none;
}
.topbar-mobile-brand img,
.ms-footer .ms-brand img {
  background: var(--green);
  border-radius: 7px;
  padding: 4px;
}
.ms-nav-actions {
  gap: 11px;
}
.ms-account {
  color: var(--ink);
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
}
.ms-account svg {
  width: 14px;
  height: 14px;
}
.ms-account:hover {
  background: var(--green-soft);
}
.ms-icon-button {
  color: var(--ink);
  border-radius: 50%;
  border: 0;
  background: #f0f3ed;
  width: 38px;
  height: 38px;
}
.ms-icon-button svg {
  width: 17px;
  height: 17px;
}
.ms-icon-button:hover,
.ms-icon-button[aria-expanded='true'] {
  color: #fff;
  background: var(--green);
}
.ms-menu-button,
.ms-mobile-nav {
  display: none;
}
.ms-notification-panel {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgb(16 41 31 / 13%);
  top: 48px;
}
[data-notification-count] {
  color: #fff;
  border-radius: 20px;
}

/* The home is a browsable studio library with the original main.webp. */
.home-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 30px 22px;
}
.home-welcome h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}
.home-welcome p {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--muted);
}
.home-welcome > span {
  font-size: 10px;
  color: var(--muted);
}
.home-hero {
  position: relative;
  isolation: isolate;
  border: 0;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #10251b url('/assets/images/main.webp') center / cover no-repeat;
}
.home-hero::before {
  background: linear-gradient(
    90deg,
    rgb(6 20 13 / 93%) 0%,
    rgb(6 20 13 / 72%) 48%,
    rgb(6 20 13 / 18%) 100%
  );
}
.home-hero-layout.wrap {
  width: 100%;
  padding: 45px 42px;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.75fr);
  align-items: center;
  gap: 32px;
}
.hero-eyebrow {
  color: #d4e0ce;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.hero-eyebrow > span {
  background: #adc6a2;
  width: 5px;
  height: 5px;
}
.home-hero h1 {
  font-size: clamp(38px, 4.1vw, 65px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.055em;
  color: #fff;
  margin: 0 0 20px;
}
.home-hero h1 > span {
  color: #bed2b4;
}
.hero-description {
  max-width: 410px;
  font-size: 13px;
  line-height: 1.8;
  color: #d1dbce;
  margin-bottom: 25px;
}
.home-hero .hero-actions {
  align-items: center;
  gap: 20px;
}
.home-hero .ms-button.primary {
  background: #eef4e7;
  color: #163c28;
  border-color: #eef4e7;
  font-size: 11px;
  padding: 12px 17px;
}
.home-hero .ms-button.primary:hover {
  background: #fff;
  border-color: #fff;
}
.home-hero .text-link {
  color: #e9f0e6;
  font-size: 10px;
  gap: 10px;
}
.hero-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  gap: 14px;
  font-size: 9px;
  color: #bfd0b9;
}
.hero-note-number {
  color: #fff;
  font-size: 10px;
}
.home-feature {
  border-radius: 12px;
  background: rgb(7 21 14 / 65%);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(213 227 203 / 25%);
  box-shadow: 0 16px 44px rgb(0 0 0 / 15%);
  overflow: hidden;
}
.home-feature-art {
  height: 255px;
  position: relative;
  background: #17372b;
}
.home-feature-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.home-feature-art::after {
  background: linear-gradient(0deg, rgb(6 19 12 / 55%), transparent 70%);
  pointer-events: none;
}
.home-feature-art .hero-brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 1;
}
.hero-art-top {
  inset: 17px 18px auto;
  font-size: 8px;
  z-index: 2;
}
.hero-art-label {
  color: #eaf2e5;
  font-size: 8px;
}
.hero-art-live {
  font-size: 7px;
  color: #e3ebde;
}
.hero-art-bottom {
  inset: auto 18px 17px;
  z-index: 2;
  color: #fff;
}
.hero-art-bottom > span:first-child {
  font-size: 19px;
  line-height: 1.12;
}
.hero-art-arrow {
  font-size: 30px;
}
.hero-video-toggle {
  position: absolute;
  inset: auto 12px 14px auto;
  z-index: 3;
  border-radius: 30px;
  font-size: 8px;
  padding: 7px 9px;
  background: rgb(15 37 23 / 75%);
  color: #fff;
  border-color: rgb(255 255 255 / 30%);
}
.hero-art-bottom .hero-art-arrow {
  display: none;
}
.home-feature-caption {
  padding: 13px 17px;
  color: #d5dfcf;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.home-projects {
  padding-top: 33px;
}
.section-heading {
  margin-bottom: 23px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
}
.section-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
  color: var(--muted);
}
.section-description {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.section-heading .text-link {
  font-size: 10px;
  white-space: nowrap;
  gap: 9px;
}
.catalog-grid {
  display: flex;
  overflow-x: auto;
  gap: 22px;
  padding-block: 5px 17px;
  scroll-snap-type: x proximity;
  scrollbar-color: #aabca7 transparent;
  scrollbar-width: thin;
  align-items: start;
}
.catalog-card {
  flex: 0 0 min(320px, 75vw);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgb(24 38 30 / 4%);
  scroll-snap-align: start;
}
.catalog-cover {
  height: auto;
  aspect-ratio: 16 / 9;
}
.catalog-cover img {
  object-fit: cover;
}
.catalog-card-body {
  padding: 19px;
}
.catalog-card h3 {
  font-size: 19px;
}
.catalog-card-body p {
  font-size: 11px;
}
.catalog-edition {
  font-size: 11px;
}
.catalog-language {
  font-size: 10px;
}
.catalog-page .catalog-heading {
  margin: 27px 32px 0;
  border-radius: 16px;
  background: var(--green);
}
.catalog-heading .page-heading {
  padding-block: 36px;
}
.catalog-heading h1 {
  font-size: 42px;
}
.catalog-page .project-poster-grid {
  display: flex;
  overflow-x: auto;
  align-items: start;
  justify-content: flex-start;
  gap: 24px;
  padding: 7px 2px 24px;
  scroll-snap-type: x proximity;
}
.project-poster-card {
  flex: 0 0 222px;
  scroll-snap-align: start;
}
.project-poster-link {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  border: 1px solid rgb(12 35 20 / 8%);
  box-shadow: 0 6px 15px rgb(16 41 31 / 7%);
}
.project-poster-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgb(16 41 31 / 13%);
}
.project-poster-image {
  position: static;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
}
.home-services {
  background: transparent;
  color: var(--ink);
  padding-block: 14px 26px;
}
.services-heading {
  align-items: end;
  margin-bottom: 23px;
  gap: 28px;
}
.services-heading h2 {
  font-size: 27px;
}
.services-heading > p {
  color: var(--muted);
  font-size: 11px;
  max-width: 340px;
}
.service-grid {
  gap: 16px;
}
.service-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.service-top {
  color: var(--green);
  margin-bottom: 27px;
}
.service-top > span:first-child {
  color: #6b7c6d;
  font-size: 10px;
}
.service-grid h3 {
  font-size: 21px;
  color: var(--green);
  margin-bottom: 10px;
}
.service-grid p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.service-detail {
  border-top: 1px solid var(--line);
  color: #657963;
  font-size: 8px;
  margin-top: 23px;
  padding-top: 15px;
  letter-spacing: 0.08em;
}
.contact-layout {
  padding-block: 28px 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  clip-path: none;
}
.contact-layout .eyebrow,
.contact-layout .muted {
  color: var(--muted);
}
.contact-layout h2 {
  font-size: 27px;
}
.contact-layout p {
  font-size: 11px;
}
.contact-email {
  font-size: clamp(12px, 1.5vw, 18px);
}
.contact-layout .text-link {
  font-size: 10px;
}

/* Project details and reputation keep their useful controls in clear panels. */
.project-page {
  padding-top: 30px;
}
.project-page .page-heading {
  background: var(--green);
  border-radius: 16px;
  padding: 24px 30px;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: none;
  clip-path: none;
}
.project-page > .back-link {
  background: transparent;
  color: var(--green);
  box-shadow: none;
  clip-path: none;
}
.project-page .page-heading::before {
  display: none;
}
.project-logo-heading {
  min-height: 85px;
}
.project-logo-heading .project-logo {
  max-width: min(440px, 100%);
  height: 110px;
}
.project-page .page-heading .eyebrow {
  color: #b6cdbb;
  margin-bottom: 9px;
}
.project-edition {
  color: #d6e2d4 !important;
  font-size: 11px !important;
  margin: 6px 0 0;
}
.project-store-layout {
  gap: 24px;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
}
.gallery-stage {
  border-radius: 12px;
  background: #0e1912;
  overflow: hidden;
}
.gallery-thumbnails button {
  border-radius: 6px;
}
.project-summary {
  background: #163d2d;
  border-color: #163d2d;
  color: #fff;
  padding: 19px;
}
.project-summary p,
.project-summary dt,
.project-summary .muted {
  color: #c9d9c9;
}
.project-summary .project-short-description {
  font-size: 12px;
}
.project-summary-cover {
  border-radius: 7px;
}
.project-content-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 24px;
  margin-top: 25px;
}
.project-description h2,
.project-comments h2 {
  font-size: 25px;
}
.project-description p {
  line-height: 1.9;
  font-size: 13px;
}
.project-support-panel p {
  font-size: 11px;
  color: var(--muted);
}
.download-panel h2 {
  font-size: 21px;
}
.download-panel h3 {
  font-size: 16px;
}
.store-image-button {
  border-radius: 8px;
}
.download-choice {
  position: relative;
}
.download-choice:focus-within {
  outline: 2px solid #719477;
  outline-offset: 3px;
  border-radius: 8px;
}
.download-button:disabled {
  background: #e4e7e2;
  color: #737b71;
  border-color: #d6dcd3;
}
.rating-icon-button {
  border-radius: 30px;
  min-width: 72px;
  font-weight: 600;
}
.rating-slider-field legend {
  font-size: 12px;
}
.rating-form > .ms-button {
  background: #eaf1e4;
  color: #163d2d;
  border-color: #eaf1e4;
  border-radius: 7px;
}
.rating-form > .ms-button:hover {
  background: #fff;
  color: #163d2d;
}
.rating-form input[type='range'] {
  accent-color: #c1d3b4;
}
.comment-avatar,
.member-avatar,
.profile-avatar,
.avatar,
#preview-avatar {
  border-radius: 50%;
}

/* Round avatars overlap a solid banner, followed by readable profile sections. */
.profile-card {
  border-radius: 16px;
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 7px 25px rgb(16 41 31 / 5%);
}
.profile-card > .profile-banner {
  height: 190px;
  background-color: #214733;
}
.profile-banner--empty {
  background: #214733;
  background-image: none;
}
.profile-card > .profile-identity {
  background: #fff;
  color: var(--ink);
  padding-bottom: 25px;
}
.profile-card .profile-identity > .profile-avatar {
  width: 116px;
  height: 116px;
  border: 6px solid #fff;
  background: #e2ebdc;
  color: #244b33;
  margin-top: -48px;
}
.profile-card .profile-meta > .muted {
  color: var(--muted);
}
.profile-card .profile-meta > .tag,
.role-badge {
  background: #e8eee3;
  color: #2c5135;
  border: 1px solid #d3dfcd;
  border-radius: 30px;
  padding: 4px 11px;
}
.profile-card .profile-socials .social-link {
  background: #edf1e9;
  color: #244831;
  border-color: #dce5d8;
  border-radius: 30px;
}
.profile-facts {
  background: #f5f7f1;
  color: var(--ink);
}
.profile-facts dd {
  color: var(--ink);
}
.member-card {
  background: #fff;
  border-radius: 12px;
}
.auth-layout {
  margin-block: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.auth-story {
  background: var(--green);
}
.auth-card {
  background: #fff;
}
input:not([type='checkbox']):not([type='radio']):not([type='range']),
textarea,
select {
  border-radius: 8px;
}
.legal-document,
.terms-acceptance {
  background: #fff;
  border-radius: 14px;
}
.studio-site main > .page-heading {
  margin-top: 28px;
  border-radius: 16px;
  background: var(--green);
  box-shadow: none;
  clip-path: none;
  padding: 32px;
}
.terms-page {
  margin-top: 28px;
  border-radius: 16px;
}
.terms-block {
  scroll-margin-top: 95px;
}
.ms-footer {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 28px 0 22px;
  margin-top: 18px;
}
.ms-footer .ms-brand {
  color: var(--ink);
  font-size: 12px;
}
.ms-footer .brand-sub {
  color: var(--muted);
  font-size: 7px;
}
.ms-footer-top {
  gap: 25px;
  padding-bottom: 20px;
}
.ms-footer-top > p,
.ms-footer-bottom {
  color: var(--muted);
}
.ms-footer .social-link {
  color: var(--green);
  font-size: 10px;
}
.ms-footer-bottom {
  border-color: var(--line);
  font-size: 10px;
}

@media (min-width: 1600px) {
  :root {
    --sidebar-width: 250px;
  }
  .studio-sidebar {
    padding-inline: 25px;
  }
  .home-hero-layout.wrap {
    padding: 54px;
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar-width: 208px;
  }
  .studio-sidebar {
    padding-inline: 15px;
  }
  .wrap,
  .home-hero {
    width: calc(100% - 48px);
  }
  .topbar-studio-note {
    display: none;
  }
  .ms-nav-actions {
    margin-left: auto;
  }
  .home-hero-layout.wrap {
    padding: 34px 28px;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
  }
  .home-hero h1 {
    font-size: 46px;
  }
  .home-feature-art {
    height: 250px;
  }
  .hero-art-top {
    inset-inline: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-art-live {
    display: none;
  }
  .home-hero .hero-actions {
    gap: 13px;
  }
  .catalog-page .catalog-heading {
    margin-inline: 24px;
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar-width: 190px;
  }
  .studio-sidebar {
    padding-inline: 12px;
  }
  .studio-sidebar .ms-brand {
    font-size: 14px;
  }
  .studio-sidebar .ms-brand img {
    width: 31px;
  }
  .home-hero-layout.wrap {
    grid-template-columns: 1fr;
  }
  .home-feature {
    display: none;
  }
  .hero-copy {
    max-width: 530px;
  }
  .home-hero h1 {
    font-size: 52px;
  }
  .hero-description {
    max-width: 420px;
  }
  .home-hero::before {
    background: linear-gradient(90deg, rgb(6 20 13 / 91%), rgb(6 20 13 / 35%));
  }
  .service-grid {
    gap: 12px;
  }
  .service-grid article {
    padding: 20px 17px;
  }
  .service-grid h3 {
    font-size: 18px;
  }
  .service-detail {
    font-size: 7px;
  }
  .project-store-layout,
  .project-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
  }
  .project-summary > [data-project-ratings] {
    grid-column: 1 / -1;
  }
  .rating-votes {
    flex-wrap: nowrap;
  }
  .project-summary .project-summary-cover {
    grid-row: span 2;
  }
  .project-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .project-support-panel {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  body.studio-site {
    padding-left: 0;
  }
  .studio-sidebar {
    display: none;
  }
  .ms-nav {
    height: 66px;
    gap: 12px;
  }
  .wrap,
  .home-hero {
    width: calc(100% - 36px);
  }
  .topbar-mobile-brand {
    display: block;
  }
  .topbar-context {
    gap: 7px;
    font-size: 10px;
  }
  .topbar-context > span:first-child,
  .topbar-context > span:nth-child(2) {
    display: none;
  }
  .ms-menu-button {
    display: flex;
  }
  .ms-mobile-nav:not([hidden]) {
    display: flex;
    padding-block: 10px 16px;
    gap: 7px;
  }
  .ms-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    border-color: var(--line);
    border-radius: 7px;
    font-size: 11px;
    padding: 9px 11px;
  }
  .ms-mobile-nav svg {
    width: 15px;
    height: 15px;
  }
  .ms-mobile-nav [aria-current] {
    background: #e4ebdf;
  }
  .ms-account {
    padding: 8px 10px;
    min-height: 35px;
    font-size: 9px;
  }
  .ms-account > svg {
    display: none;
  }
  .ms-nav-actions {
    gap: 7px;
  }
  .ms-icon-button {
    width: 35px;
    height: 35px;
  }
  .home-welcome {
    padding-block: 24px 19px;
  }
  .home-welcome h2 {
    font-size: 21px;
  }
  .home-welcome > span {
    display: none;
  }
  .home-hero {
    border-radius: 14px;
  }
  .home-hero-layout.wrap {
    padding: 35px 25px;
  }
  .home-hero h1 {
    font-size: clamp(39px, 7.7vw, 59px);
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-note {
    margin-top: 22px;
  }
  .section {
    padding-block: 30px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading {
    align-items: end;
    gap: 10px;
  }
  .section-description {
    max-width: 250px;
    font-size: 10px;
  }
  .services-heading {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .services-heading h2 br {
    display: none;
  }
  .services-heading > p {
    max-width: 450px;
    margin: 0;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid article {
    padding: 22px;
  }
  .service-top {
    margin-bottom: 18px;
  }
  .service-grid h3 {
    font-size: 21px;
  }
  .service-detail {
    font-size: 8px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-email {
    font-size: 17px;
  }
  .catalog-page .catalog-heading {
    margin: 20px 18px 0;
    border-radius: 12px;
  }
  .catalog-heading .page-heading {
    padding-block: 30px;
  }
  .catalog-heading h1 {
    font-size: 33px;
  }
  .catalog-page .project-poster-grid {
    display: flex;
    gap: 18px;
  }
  .project-poster-card {
    flex-basis: 180px;
  }
  .project-summary {
    display: flex;
  }
  .project-sidebar {
    display: block;
  }
  .project-support-panel {
    margin-top: 20px;
  }
  .project-page .page-heading {
    padding: 24px;
  }
  .project-logo-heading .project-logo {
    height: 85px;
  }
  .profile-card > .profile-banner {
    height: 155px;
  }
  .profile-card .profile-identity > .profile-avatar {
    width: 95px;
    height: 95px;
    margin-top: -38px;
    border-width: 5px;
  }
  .ms-footer-top {
    flex-wrap: wrap;
  }
  .ms-footer-top .social-links {
    width: 100%;
  }
  .ms-footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 400px) {
  .wrap,
  .home-hero {
    width: calc(100% - 28px);
  }
  .home-hero-layout.wrap {
    padding: 30px 21px;
  }
  .home-hero h1 {
    font-size: 37px;
  }
  .home-hero .hero-actions {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .home-hero .hero-actions .ms-button {
    width: auto;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .catalog-page .catalog-heading {
    margin-inline: 14px;
  }
  .project-poster-card {
    flex-basis: 166px;
  }
  .topbar-context {
    display: none;
  }
  .profile-card > .profile-identity {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: 20px;
  }
  .profile-card > .profile-banner {
    height: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .project-poster-link:hover,
  .store-image-button:hover {
    transform: none;
  }
}

/* Requested adjustments: confined to project sections, legal pages and account. */
.project-sequential {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.project-sequential > section,
.project-sequential > aside {
  min-width: 0;
  width: 100%;
  margin: 0;
}
.project-sequential .project-cover-section > .project-summary-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project-sequential .project-description {
  padding: 26px;
}
.project-sequential .project-gallery {
  margin: 0;
}
.project-discord-banner a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.project-discord-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-about-panel h2,
.project-base-game-panel h2,
.project-mirrors-panel h2 {
  font-size: 25px;
}
.project-about-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.project-about-panel dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin-block: 18px;
  font-size: 13px;
}
.project-about-panel dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}
.project-ratings-panel {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.project-ratings-panel .muted,
.project-ratings-panel .text-link {
  color: #c9d9c9;
}
.store-buttons,
.mod-store-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 320px));
  gap: 16px;
  align-items: start;
  justify-content: start;
}
.store-image-button,
.project-support-panel .support-paypal-button,
.project-support-panel .paypal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 1;
  padding: 0;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}
.store-image-button img,
.project-support-panel .support-paypal-button img,
.project-support-panel .paypal-button img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.store-image-button:hover,
.project-support-panel .support-paypal-button:hover,
.project-support-panel .paypal-button:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 6px 18px rgb(22 61 45 / 18%);
}
.project-sequential .project-support-panel [data-support-copy] {
  margin-top: 18px;
}

/* Store pages stay readable at desktop sizes; original assets keep their resolution. */
body.studio-site.project-video-page {
  position: relative;
  isolation: isolate;
  background: #0b1510;
}
.project-video-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0b1510;
}
.project-video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.778vh);
  height: max(100vh, 56.25vw);
  max-width: none;
  border: 0;
  filter: blur(3px);
  transform: translate(-50%, -50%) scale(1.04);
  pointer-events: none;
}
.project-video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(5 12 8 / 58%);
}
body.project-video-page .project-page > .back-link {
  color: #e2eee3;
}
body.project-video-page .project-gallery > p {
  color: #cad8ce;
}
.project-page.wrap {
  width: min(1240px, calc(100% - 64px));
  max-width: 1240px;
  margin-inline: auto;
  padding-block: 24px 44px;
}
.project-page > .back-link {
  display: inline-flex;
  padding: 0;
  margin-bottom: 16px;
}
.project-steam-layout {
  gap: 18px;
}
.project-steam-layout .page-heading {
  margin: 0;
  padding: 16px 22px;
  border-radius: 10px;
}
.project-steam-layout .project-logo-heading {
  min-height: 70px;
}
.project-steam-layout .project-cover-section {
  max-width: 100%;
}
.project-steam-layout .project-store-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.project-steam-layout .project-store-sidebar {
  display: block;
  min-width: 0;
  align-self: start;
  position: static;
  top: auto;
}
.project-steam-layout .project-information-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  height: auto;
  max-height: none;
  overflow: visible;
}
.project-steam-layout .project-information-details,
.project-steam-layout .project-information-actions {
  display: grid;
  gap: 11px;
  min-width: 0;
}
.project-steam-layout .project-information-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.project-steam-layout .project-information-heading .project-status {
  padding: 4px 8px;
  border: 1px solid #8aac94;
  border-radius: 5px;
  color: #fff;
}
.project-steam-layout .project-information-actions {
  padding: 0;
  border: 0;
}
.project-steam-layout .project-information-panel h2 {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.project-steam-layout .project-information-panel .project-description {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}
.project-steam-layout .project-information-panel .project-description p {
  color: #cad8ce;
  font-size: 11px;
  line-height: 1.7;
}
.project-steam-layout .project-ratings-panel > h2 {
  margin-bottom: 10px;
}
.project-steam-layout .project-information-panel .rating-average {
  font-size: 20px;
}
.project-steam-layout .project-information-panel .text-link,
.project-steam-layout .project-information-panel .ms-message {
  color: #e2eee3;
}
.project-steam-layout .project-information-panel [data-support-copy] {
  margin-top: 12px;
  color: #cad8ce;
  font-size: 11px;
  line-height: 1.7;
}
.project-steam-layout .project-purchase-panel {
  display: grid;
  gap: 11px;
  min-width: 0;
}
.project-steam-layout .project-purchase-panel .project-download-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.project-steam-layout .project-purchase-panel .download-choice {
  min-width: 0;
}
.project-steam-layout .project-purchase-panel .download-button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #17291c;
  background: linear-gradient(135deg, #ffe39b, #edbb55);
  border: 1px solid #f8d07c;
  box-shadow:
    0 4px 16px rgb(235 187 78 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: normal;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}
.project-steam-layout .project-purchase-panel .download-button:not(:disabled):hover {
  color: #17291c;
  background: linear-gradient(135deg, #ffecb5, #f7c865);
  border-color: #ffe3a0;
  box-shadow:
    0 5px 20px rgb(235 187 78 / 30%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}
.project-steam-layout .project-purchase-panel .download-button:disabled {
  color: #e0e8dd;
  background: linear-gradient(135deg, #294c3c, #1d3d2e);
  border-color: #79917e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
}
.project-steam-layout .project-purchase-panel .download-button--full:not(:disabled) {
  border-color: #ffe3a0;
  box-shadow:
    0 5px 20px rgb(235 187 78 / 24%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}
.project-steam-layout .project-purchase-panel .download-button--demo:not(:disabled) {
  background: linear-gradient(135deg, #eaf5e6, #bddbb7);
  border-color: #c6e1c0;
  box-shadow: 0 4px 14px rgb(147 190 137 / 12%);
}
.project-steam-layout .project-purchase-panel .download-button--demo:not(:disabled):hover {
  background: linear-gradient(135deg, #f5fff1, #cce8c5);
  border-color: #e2f2d9;
  box-shadow: 0 5px 18px rgb(147 190 137 / 22%);
}
.project-steam-layout .download-button-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgb(23 41 28 / 10%);
}
.project-steam-layout .download-button-icon svg {
  width: 23px;
  height: 23px;
}
.project-steam-layout .download-button:disabled .download-button-icon {
  background: rgb(255 255 255 / 7%);
  color: #bacabd;
}
.project-steam-layout .download-button-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.project-steam-layout .download-button-label {
  font-weight: 800;
  line-height: 1.4;
}
.project-steam-layout .download-button-detail {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  opacity: 0.8;
}
.project-steam-layout .download-choice > p {
  width: fit-content;
  margin: 7px 0 0;
  padding: 3px 8px;
  border: 1px solid rgb(216 229 210 / 25%);
  border-radius: 5px;
  color: #d8e5d2;
  background: rgb(216 229 210 / 7%);
  font-size: 10px;
  line-height: 1.5;
}
.project-steam-layout .project-information-panel .project-ratings-panel,
.project-steam-layout .project-purchase-panel > section,
.project-steam-layout .project-information-panel .project-support-panel {
  min-width: 0;
  padding: 13px;
  margin: 0;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
}
.project-steam-layout .project-purchase-panel > section > h2 {
  margin-bottom: 12px;
}
.project-steam-layout .project-purchase-panel .store-buttons,
.project-steam-layout .project-purchase-panel .mod-store-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.project-steam-layout .project-purchase-panel .store-image-button {
  max-width: min(280px, 100%);
}
.project-steam-layout .project-information-panel .support-paypal-button {
  max-width: min(280px, 100%);
}
.project-steam-layout .project-logo-heading .project-logo {
  width: auto;
  max-width: min(320px, 100%);
  height: 70px;
  object-fit: contain;
}
.project-steam-layout .project-store-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(400px, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.project-steam-layout .project-gallery {
  padding: 0;
  min-width: 0;
}
.project-steam-layout .gallery-stage {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.project-steam-layout .gallery-stage :is(img, video, iframe) {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.project-steam-layout .gallery-thumbnails {
  gap: 8px;
  margin-top: 8px;
  padding: 3px 0 7px;
  overflow-x: auto;
}
.project-steam-layout .gallery-thumbnail {
  flex: 0 0 134px;
  width: 134px;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}
.project-steam-layout .project-gallery > p {
  margin: 4px 0 0;
  font-size: 10.5px;
}
.project-steam-layout .project-summary {
  padding: 15px;
  gap: 13px;
  min-width: 0;
  border-radius: 8px;
  box-shadow: none;
}
.project-steam-layout .project-summary-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project-steam-layout .project-summary .project-status {
  font-size: 9px;
}
.project-steam-layout .project-summary .project-short-description {
  font-size: 11px;
  line-height: 1.8;
}
.project-steam-layout .project-summary dl {
  margin: 0;
  font-size: 11px;
}
.project-steam-layout .project-summary dl > div {
  gap: 12px;
}
.project-steam-layout .project-summary dd {
  text-align: right;
  overflow-wrap: anywhere;
}
.project-steam-layout .project-lower-sections {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0;
}
.project-steam-layout .project-main-column {
  gap: 18px;
}
.project-steam-layout .project-main-column > .panel {
  padding: 26px;
  border-radius: 10px;
  margin: 0;
}
.project-steam-layout .project-main-column > .panel h2 {
  font-size: 28px;
}
.project-steam-layout .project-about-panel p {
  font-size: 15px;
}
.project-steam-layout .project-comments :is(p, textarea) {
  font-size: 14px;
}
.project-steam-layout .project-comments .comment-content {
  font-size: 16px;
}
.project-steam-layout .project-description p,
.project-steam-layout .project-about-panel p {
  max-width: 75ch;
}
.project-steam-layout .project-description img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.project-steam-layout .project-discord-banner a {
  border-radius: 8px;
}
.project-steam-layout .project-discord-banner img {
  aspect-ratio: 1278 / 278;
}
.catalog-page .project-poster-grid {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: start;
  gap: 20px;
  scroll-snap-type: x proximity;
}
.catalog-page .project-poster-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
  height: auto;
}
.catalog-page .project-poster-link {
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 2 / 3;
}
.catalog-page .project-poster-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  /* Keep the original artwork; the 2:3 frame excludes baked-in status strips. */
  transform: scale(1.08);
  transform-origin: center top;
}

@media (max-width: 1180px) {
  .project-steam-layout .project-store-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-steam-layout .project-store-sidebar {
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  .project-page.wrap {
    width: calc(100% - 36px);
    padding-top: 20px;
  }
  .catalog-page .project-poster-grid {
    gap: 16px;
  }
  .catalog-page .project-poster-card {
    flex-basis: 160px;
    width: 160px;
  }
}
@media (max-width: 620px) {
  .project-steam-layout .page-heading {
    padding: 16px 18px;
  }
  .project-steam-layout .project-main-column > .panel {
    padding: 22px;
  }
  .project-steam-layout .gallery-thumbnail {
    flex-basis: 108px;
    width: 108px;
  }
}

.account-view .account-main {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin-inline: auto;
  min-width: 0;
  padding-bottom: 44px;
}
.account-view .account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.account-view .account-grid > div,
.account-view .account-grid > aside,
.account-view .account-grid form,
.account-view .account-grid .field {
  min-width: 0;
}
.account-view .account-grid > div,
.account-view .account-grid > aside {
  display: grid;
  gap: 24px;
  align-content: start;
}
.account-view .account-grid .account-section {
  width: 100%;
  margin: 0;
}
.account-view .account-grid input,
.account-view .account-grid select,
.account-view .account-grid textarea {
  max-width: 100%;
  min-width: 0;
}
.account-view .upload-grid {
  grid-template-columns: 1fr;
}
.account-view .profile-identity #public-profile-link {
  color: #f2f3f5;
}

.legal-page .legal-main {
  min-width: 0;
  padding-bottom: 32px;
}
.legal-page .legal-page-heading,
.legal-page .legal-layout,
.legal-page .terms-acceptance {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.legal-page .legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 28px;
}
.legal-page .legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.legal-page .legal-main > .legal-page-heading .legal-version {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
}
.legal-page .legal-index-card {
  padding: 18px;
  position: sticky;
  top: 96px;
}
.legal-page .legal-index-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-page .legal-index {
  padding: 0;
  position: static;
  border: 0;
  display: grid;
  gap: 6px;
}
.legal-page .legal-index a {
  padding: 10px;
  border-radius: 7px;
  color: var(--green);
  line-height: 1.6;
  font-size: 12px;
}
.legal-page .legal-index a:hover {
  background: var(--green-soft);
}
.legal-page .legal-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 32px;
  overflow-wrap: anywhere;
}
.legal-page .legal-content > section {
  margin: 0 0 26px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-page .legal-content > section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.legal-page .legal-content > section h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.legal-page .legal-content > section p,
.legal-page .legal-content > section li {
  font-size: 14px;
  line-height: 1.9;
}
.legal-page .terms-acceptance {
  margin-block: 0 24px;
  padding: 28px;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .account-view .account-grid .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .account-view .account-main,
  .legal-page .legal-page-heading,
  .legal-page .legal-layout,
  .legal-page .terms-acceptance {
    width: calc(100% - 36px);
  }
  .account-view .account-grid,
  .legal-page .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-page .legal-index-card {
    position: static;
  }
  .legal-page .legal-content {
    padding: 24px;
  }
  .project-sequential {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-image-button,
  .project-support-panel .support-paypal-button,
  .project-support-panel .paypal-button {
    transition: none;
  }
  .store-image-button:hover,
  .project-support-panel .support-paypal-button:hover,
  .project-support-panel .paypal-button:hover {
    transform: none;
  }
}
