.rh-home {
  --rh-ink: var(--rl-ink);
  --rh-muted: var(--rl-muted);
  --rh-violet: var(--rl-indigo);
  --rh-border: var(--rl-line);
  box-sizing: border-box;
  width: min(1456px, 100%);
  margin: 0 auto;
  padding: clamp(23px, 2vw, 34px) clamp(22px, 4.7vw, 80px) 62px;
  color: var(--rh-ink);
  font-family: Inter, Arial, sans-serif;
}
.rh-home *, .rh-home *::before, .rh-home *::after {box-sizing: border-box;}
.rh-home [hidden] {display: none !important;}
.rh-home :where(h1,h2,p) {margin: 0;}
.rh-home button, .rh-home input {font: inherit;}
.rh-home button {cursor: pointer;}
.rh-home :is(button,a,input):focus-visible {
  outline: 3px solid var(--rl-focus);
  outline-offset: 3px;
}
.home-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(208px, 16vw, 244px);
  overflow: hidden;
  border-radius: 16px;
  padding: 30px clamp(24px, 3.2vw, 50px);
  background: linear-gradient(107deg, var(--rl-ink) 33%, #20203d 62%, #3535ae 100%);
  color: white;
}
.home-intro::before, .home-intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.home-intro::before {
  inset: 0 0 0 54%;
  background: repeating-linear-gradient(0deg, transparent 0 11px, #b6b5ff2e 11px 12px);
  mask-image: linear-gradient(105deg, transparent 6%, black 90%);
}
.home-intro::after {
  top: -15%;
  right: 7%;
  height: 114%;
  aspect-ratio: 1;
  background: linear-gradient(150deg, #b0b1ff 0%, #7979ff 44%, #5c5bfa 85%);
  mask: url("./brand/rasterlab-mark.svg") center / contain no-repeat;
}
.home-titlebox {position: relative; max-width: 73%;}
.rh-home .home-title {
  font-size: clamp(38px, 3.7vw, 58px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -.066em;
  text-wrap: balance;
}
.home-title span {color: #9292ff;}
.rh-home .home-subtitle {
  margin-top: 13px;
  font-size: clamp(15px, 1.15vw, 17px);
  color: #dedde8;
  line-height: 1.5;
  letter-spacing: -.016em;
}
.home-browse {display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px;}
.rh-home .home-browse-heading {font-size: clamp(23px, 2vw, 29px); font-weight: 650; line-height: 1.2; letter-spacing: -.048em;}
.home-toolbar {margin: 12px 0 16px;}
.rh-home .home-upload {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; margin-top: 20px; padding: 10px 18px; border: 1px solid #fff;
  border-radius: 8px; background: white; color: #21203f; font-size: 15px; font-weight: 650;
  box-shadow: 0 3px 8px #10101a1a;
}
.home-upload:hover {background: #eeedff;}
.home-upload .home-icon {color: var(--rl-indigo); width: 19px; height: 19px;}
.home-formats {display: inline-block; margin-left: 14px; color: #d1d0de; font-size: 13px;}
.home-drop-hint {display: none;}
.home-dragging .home-drop-hint {
  position: fixed; inset: auto 50% 28px auto; transform: translateX(50%); z-index: 5;
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 20px;
  max-width: calc(100vw - 28px); width: max-content; color: white; background: var(--rl-indigo);
  font-weight: 620; border-radius: 12px; box-shadow: 0 5px 24px #1515273b; pointer-events: none;
}
.home-dragging .home-intro {outline: 3px dashed var(--rl-indigo); outline-offset: 4px;}

.home-search {
  flex: 0 1 282px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  margin: 0 0 1px;
  padding: 0 12px 0 14px;
  height: 45px;
  background: white;
  border: 1px solid #d8d9e1;
  border-radius: 9px;
  box-shadow: 0 1px 2px #26263704;
  color: #747582;
  cursor: text;
}
.home-search .home-icon {width: 17px; height: 17px;}
.home-search:focus-within {
  border-color: #766fec;
  box-shadow: 0 0 0 3px #7163e41b;
}
.rh-home .home-search input {
  display: block;
  flex: 1; min-width: 0; height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--rh-ink);
  font-size: 13px;
  outline: none;
}
.home-search input::placeholder {color: #71717f; opacity: 1;}
.home-shortcut {
  display: grid;
  flex: none;
  width: 21px; height: 23px;
  place-items: center;
  border: 1px solid #e5e5ea;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 12px/1 Inter,Arial,sans-serif;
  background: #f7f7f9;
  color: #747383;
}
.home-search:focus-within .home-shortcut {visibility: hidden;}
.home-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 3px 0;
}
.rh-home .home-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  flex: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #646472;
  background: transparent;
  line-height: 1;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -.012em;
  transition: color .15s, background .15s;
}
.home-filter:hover {background: #ebebf1;}
.rh-home .home-filter[aria-pressed="true"] {
  color: white;
  background: var(--rl-indigo);
  border-color: var(--rl-indigo);
}
.home-count {
  display: inline-grid;
  align-items: center;
  min-width: 16px;
  padding: 2px 3px;
  border-radius: 4px;
  background: #e9e9ee;
  color: #656574;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 625;
  font-variant-numeric: tabular-nums;
}
.home-filter[aria-pressed="true"] .home-count {background: #ffffff30; color: white;}
.home-feature-grid, .home-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.rh-home .home-card {
  position: relative;
  display: flex;
  min-width: 0;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 14px;
  box-shadow: 0 2px 4px #22223303;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.home-card:hover {
  border-color: #9695ef;
  box-shadow: 0 6px 17px #26243e0c;
  transform: translateY(-2px);
}
.home-feature {flex-direction: column;}
.home-thumb {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2.13;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  border-bottom: 1px solid #251b4210;
  background: #e7e6eb;
}
.home-thumb img {display: block; width: 100%; height: 100%; object-fit: cover;}
.home-thumb-upscale img {object-position: 50% 44%;}
.home-thumb-jersey img {object-position: 50% 48%;}
.home-thumb-edge {
  display: grid;
  place-items: center;
  background-color: #e5ddfb;
  background-image: radial-gradient(ellipse at 38% 30%,#eee7ffb0,transparent 58%),
                    linear-gradient(125deg,#d6c9f1 0%,#e6dff6 52%,#d7cbea 100%);
}
.home-thumb-edge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(#aea0c7 .7px,transparent .9px);
  background-size: 8px 8px;
  opacity: .43;
}
.home-edge-sample {
  position: absolute;
  left: 50%;
  top: -2%;
  height: 119%;
  width: auto;
  aspect-ratio: 583 / 842;
  transform: translateX(-50%) rotate(-7deg);
  filter: drop-shadow(0 5px 3px #51406536);
}
.home-edge-sample img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white)
          drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white);
}
.home-feature .home-card-info {
  flex: 1;
  padding: 18px 18px 20px;
}
.home-studio-name {
  display: block; color: #514f69; font-size: 13px; line-height: 1.45;
}
.home-studio-name .home-icon {width: 12px; height: 12px; vertical-align: -.08em;}
.rh-home .home-card-name {
  color: var(--rl-ink); font-size: clamp(19px, 1.55vw, 24px); line-height: 1.12;
  font-weight: 660; letter-spacing: -.043em; margin: 0 0 6px;
}
.rh-home .home-card-desc {
  color: var(--rh-muted); font-size: 14px; line-height: 1.48; letter-spacing: -.01em;
  overflow-wrap: anywhere; margin-top: 10px;
}
.rh-home .home-more {
  margin: 31px 0 14px;
  color: var(--rh-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 635;
  letter-spacing: -.045em;
}
.home-compact-grid {gap: 12px;}
.rh-home .home-compact {
  min-height: 98px;
  align-items: flex-start;
  gap: 13px;
  border-radius: 11px;
  padding: 16px;
}
.home-tool-icon, .home-empty-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border-radius: 9px;
  color: #6555b3;
  background: #f1edf9;
}
.home-compact[data-category="print"] .home-tool-icon {background: #ecf3ef; color: #477061;}
.home-compact[data-category="product"] .home-tool-icon {background: #eff1fa; color:#586c96;}
.home-compact .home-card-info {flex: 1; min-width: 0;}

.rh-home .home-compact .home-card-name {font-size:17px; margin: 0 0 4px; letter-spacing: -.034em;}
.rh-home .home-compact .home-card-desc {font-size: 13px; line-height: 1.45; margin-top: 6px;}
.home-empty {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed #d4d2de;
  border-radius: 13px;
  text-align: center;
}
.home-empty h2 {font-size: 18px; letter-spacing: -.035em; font-weight: 620;}
.home-empty p {font-size: 13px; color: var(--rh-muted);}
.rh-home .home-clear {
  background: white; border: 1px solid var(--rh-border); border-radius:6px;
  color: var(--rh-violet); font-size: 12px; font-weight: 580; padding:7px 11px;
}
.home-sr {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
@media (max-width: 1050px) {
  .home-feature-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px;}
  .home-feature .home-card-info {padding: 16px;}
  .home-compact-grid {grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 750px) {
  .rh-home {padding: 18px max(15px,4.5vw) 40px;}
  .home-intro {min-height: 150px; padding: 24px;}
  .home-intro::after {height: 118%; top: 0; right: 0; opacity: .68;}
  .home-titlebox {max-width: 71%;}
  .home-toolbar {margin: 8px 0 14px;}
  .home-search {flex: 1 1 180px; min-width: 0;}
  .home-filters {margin:0; gap:3px; max-width: 100%;}
  .rh-home .home-filter {padding:6px 9px; font-size:12px;}
  .home-feature-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
  .rh-home .home-more {margin-top:25px;}
}
@media (max-width: 520px) {
  .home-intro {padding: 22px 18px; border-radius: 12px;}
  .home-titlebox {max-width: 100%;}
  .home-intro::after {height: 123%; top: 0; right: -22%; opacity: .18;}
  .rh-home .home-title {font-size: clamp(31px,7.5vw,40px); text-wrap: initial;}
  .rh-home .home-subtitle {font-size: 14px; margin-top: 8px;}
  .rh-home .home-upload {margin-top: 16px; padding: 8px 12px; font-size: 14px;}
  .home-formats {font-size: 12px; margin: 8px 0 0 9px;}
  .home-browse {flex-wrap: wrap; gap: 10px; margin-top: 24px;}
  .home-browse-heading {flex: 1 1 auto;}
  .home-browse .home-search {flex: 1 1 128px; min-width: 120px; height: 40px; padding: 0 8px;}
  .home-shortcut {display: none;}
  .home-filters {flex-wrap: wrap; gap: 3px; overflow: visible;}
  .rh-home .home-filter {padding: 5px 7px; min-height: 33px; font-size: 12px; gap: 3px;}
  .home-count {display: none;}
  .home-feature-grid {grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px;}
  .home-compact-grid {grid-template-columns: minmax(0,1fr);}
  .home-feature .home-card-info {padding: 12px;}
  .rh-home .home-feature .home-card-name {font-size: 16px; line-height: 1.15; letter-spacing: -.036em; margin-bottom: 5px;}
  .home-feature .home-studio-name {font-size: 12px; line-height: 1.35;}
  .home-feature .home-card-desc {display: none;}
  .home-thumb {aspect-ratio: 2.3;}
}
@media (max-width: 380px) {
  .home-formats {display: block; margin: 7px 0 0;}
  .home-feature .home-card-info {padding: 10px;}
}
@media (prefers-reduced-motion: reduce) {
  .rh-home *, .rh-home *::before, .rh-home *::after {transition:none!important;}
  .home-card:hover {transform:none;}
}

.home-chooser {
  width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px); margin: auto; padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--rl-line); border-radius: 16px; background: #fff; color: var(--rl-ink);
  box-shadow: 0 26px 100px #15152742; overflow: auto; overscroll-behavior: contain;
}
.home-chooser::backdrop {background: #14132989;}
.chooser-heading {display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;}
.chooser-title {font-size: clamp(22px,3vw,29px); letter-spacing: -.052em; line-height: 1.2; font-weight: 675;}
.chooser-title:focus {outline: none;}
.rh-home .chooser-close {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--rl-line); background: #fff; border-radius: 8px; color: var(--rl-muted);
}
.chooser-close .home-icon {width: 17px; height: 17px;}
.chooser-file {
  display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px 12px;
  margin: 20px 0 16px; background: #f6f6fa; border: 1px solid #ebebf2; border-radius: 10px;
}
.chooser-preview {display: block; flex: none; width: 45px; height: 45px; object-fit: contain; background: white; border-radius: 5px;}
.chooser-file-details {min-width: 0;}
.chooser-file-name {display: block; font-size: 14px; font-weight: 615; overflow-wrap: anywhere;}
.rh-home .chooser-change {padding: 4px 0; margin-top: 1px; border: 0; background: transparent; color: var(--rl-indigo); text-decoration: underline; text-underline-offset: .2em; font-size: 13px;}
.chooser-options {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;}
.rh-home .chooser-option {
  display: flex; align-items: center; gap: 10px; text-align: left; color: var(--rl-ink);
  min-height: 54px; padding: 9px 10px; border: 1px solid var(--rl-line); background: white; border-radius: 9px;
}
.rh-home .chooser-option:hover, .rh-home .chooser-option:focus-visible {background: #f7f7ff; border-color: #9290e6;}
.rh-home .chooser-option:disabled {opacity: .65; cursor: progress;}
.chooser-icon {display: grid; place-items: center; flex: none; width: 30px; height: 32px; color: var(--rl-indigo);}
.chooser-icon .home-icon {width: 19px; height: 19px;}
.chooser-task {font-size: 14px; font-weight: 590; line-height: 1.25;}
.rh-home .chooser-error {color: #9c282d; font-size: 14px; line-height: 1.45;}
@media (max-width: 470px) {
  .chooser-options {grid-template-columns: 1fr; gap: 6px;}
  .rh-home .chooser-option {min-height: 45px; padding: 5px 10px;}
  .chooser-file {margin: 13px 0; padding: 8px 10px;}
}
