:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #667069;
  --line: #d9ded8;
  --paper: #fbfaf4;
  --panel: #ffffff;
  --mint: #2f8f78;
  --coral: #e05d44;
  --sun: #f2b84b;
  --ocean: #2778a5;
  --shadow: 0 18px 48px rgba(23, 33, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff8ec;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a,
.top-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 10px 13px;
  font: inherit;
  font-weight: 700;
}

.top-nav-action {
  border: 0;
  background: transparent;
  min-height: auto;
}

.top-nav a:hover,
.top-nav-action:hover {
  background: #edf1ec;
  color: var(--ink);
}

.top-nav-action[aria-pressed="true"],
.top-nav-action.is-active {
  background: #fff0ec;
  color: #b33f2c;
  font-weight: 850;
}

.contact-nav-button {
  cursor: pointer;
}

.contact-dialog {
  width: min(420px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0;
}

.contact-dialog::backdrop {
  background: rgba(23, 33, 27, 0.48);
  backdrop-filter: blur(8px);
}

.contact-dialog-shell {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 34px);
}

.contact-copy {
  padding-right: 34px;
}

.contact-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 36px);
}

.contact-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-qr-card {
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.08);
  padding: 14px;
}

.contact-qr-card img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  border-radius: 6px;
}

.contact-hint {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding-top: 14px;
  text-align: center;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(47, 143, 120, 0.24);
  border-radius: 999px;
  background: #eff7f2;
  color: #14604d;
  font-size: 13px;
  font-weight: 850;
  padding: 0 12px;
  white-space: nowrap;
}

.credit-badge.is-unlimited {
  border-color: rgba(224, 93, 68, 0.22);
  background: #fff3ee;
  color: #b54532;
  font-size: 14px;
}

.credit-badge[hidden] {
  display: none;
}

main {
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 32px) 48px;
}

.search-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 26px);
  padding: clamp(42px, 7vw, 82px) 0 clamp(26px, 5vw, 46px);
  text-align: center;
}

.search-copy {
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #526058;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.finder {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: min(860px, 100%);
}

.search-box {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 38px rgba(23, 33, 27, 0.08);
}

.search-box svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 18px 0 12px;
  font-size: 17px;
}

.primary-action,
.secondary-action,
.segment,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.primary-action {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
  font-weight: 800;
}

.secondary-action {
  font-weight: 750;
}

.primary-action:hover,
.secondary-action:hover,
.segment:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 33, 27, 0.1);
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px, 0.9vw, 12px);
  margin: 0 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.tool-row::-webkit-scrollbar {
  display: none;
}

.segmented {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.65vw, 8px);
  flex: 1 1 auto;
  min-width: 0;
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: clamp(86px, 8vw, 132px);
  overflow: hidden;
  border-color: rgba(47, 143, 120, 0.32);
  color: #286b5c;
  padding-inline: clamp(7px, 1.25vw, 16px);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  text-align: center;
}

.segment-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 24px;
  min-height: 20px;
  border-radius: 8px;
  background: #f4f6f1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 2px 6px;
}

.segment.is-active {
  border-color: var(--mint);
  background: #eaf5ef;
  color: #14604d;
}

.segment.is-active .segment-count {
  background: #fff;
  color: #14604d;
}

.view-tools {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  flex: 0 1 auto;
  min-width: 0;
}

.select-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  height: 42px;
  max-width: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 clamp(22px, 2.4vw, 32px) 0 clamp(9px, 1vw, 12px);
  font-size: clamp(12px, 1.15vw, 14px);
}

.redeem-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: 0;
}

.redeem-form input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 143, 120, 0.14);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button[aria-pressed="true"] {
  border-color: var(--coral);
  background: #fff0ec;
  color: #b33f2c;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.result-meta p {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  align-items: start;
}

.asset-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(23, 33, 27, 0.11);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(23, 33, 27, 0.07);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.asset-card.is-wide {
  grid-column: span 2;
}

.asset-preview {
  position: relative;
  aspect-ratio: 1.45;
  background: #e7ebe5;
  overflow: hidden;
}

.asset-card.has-upload .asset-preview {
  display: grid;
  height: auto;
  aspect-ratio: var(--asset-ratio, 1);
  place-items: center;
  background: #f7f8f4;
  padding: 6px;
}

.asset-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.asset-card.has-upload .asset-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.asset-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 220px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 143, 120, 0.16), rgba(242, 184, 75, 0.24)),
    #f7f8f4;
  color: #14604d;
  cursor: zoom-in;
}

.asset-placeholder span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 33, 27, 0.1);
  font-weight: 900;
}

.asset-overlay {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.asset-card:hover .asset-overlay,
.asset-card:focus-within .asset-overlay {
  opacity: 1;
  transform: translateY(0);
}

.mini-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(23, 33, 27, 0.86);
  color: #fff;
}

.mini-action.is-favorite,
.mini-action[aria-pressed="true"] {
  border-color: rgba(224, 93, 68, 0.75);
  background: #fff;
  color: var(--coral);
}

.mini-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mini-action.is-favorite svg,
.mini-action[aria-pressed="true"] svg {
  fill: currentColor;
}

.asset-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 12px 12px;
}

.asset-topline,
.asset-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-category {
  color: var(--ocean);
  font-size: 11px;
  font-weight: 900;
}

.asset-title {
  margin: 5px 0 7px;
  font-size: 16px;
  line-height: 1.32;
  letter-spacing: 0;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 20px;
}

.asset-tags span,
.dialog-tags span {
  border-radius: 999px;
  background: #f1f2ee;
  color: #59645d;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
}

.asset-bottomline {
  margin-top: auto;
  padding-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #15624e;
  font-weight: 900;
  padding: 0;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 44px;
  text-align: center;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding: 22px 0 8px;
}

.load-more-row[hidden] {
  display: none;
}

.load-more-row .secondary-action {
  min-width: min(280px, 100%);
  font-weight: 850;
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.14);
  font-weight: 850;
  padding: 0 14px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.back-to-top:hover {
  background: #f7f8f4;
  box-shadow: 0 16px 32px rgba(23, 33, 27, 0.16);
  transform: translateY(-1px);
}

.back-to-top[hidden] {
  display: none;
}

.download-status {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 2.6vw, 34px);
  z-index: 60;
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(23, 33, 27, 0.18);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 850;
  padding: 11px 16px;
  transform: translateX(-50%);
}

.download-status[data-tone="success"] {
  background: #14604d;
}

.download-status[data-tone="error"] {
  background: #b54532;
}

.download-status[hidden] {
  display: none;
}

.is-downloading {
  cursor: wait;
  opacity: 0.68;
}

.download-board,
.redeem-band,
.license-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.favorite-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(520px, 100%);
}

.redeem-band {
  align-items: flex-start;
}

.redeem-band p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.redeem-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  width: min(520px, 100%);
}

.redeem-message {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.redeem-message[data-tone="error"] {
  color: #b33f2c;
}

.redeem-message[data-tone="success"] {
  color: #14604d;
}

.redeem-page-main,
.favorites-page-main {
  display: grid;
  min-height: calc(100vh - 72px);
  padding-top: clamp(28px, 6vw, 76px);
}

.redeem-page-main {
  place-items: center;
}

.favorites-page-main {
  align-items: start;
}

.redeem-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  width: min(1080px, 100%);
}

.redeem-page-copy {
  min-width: 0;
}

.redeem-page-copy h1 {
  margin-bottom: 18px;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(48px, 7vw, 88px);
}

.redeem-page-copy .lead {
  margin-left: 0;
  margin-right: 0;
}

.redeem-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(23, 33, 27, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 33, 27, 0.08);
  padding: clamp(22px, 4vw, 34px);
}

.redeem-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.redeem-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.redeem-page-row input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: 0;
}

.redeem-page-row input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 143, 120, 0.14);
}

.redeem-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorites-page {
  display: grid;
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.favorites-page-heading,
.favorites-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.favorites-page-heading h1 {
  margin-bottom: 14px;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(44px, 7vw, 82px);
}

.favorites-page-heading .lead {
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

.favorites-back-link,
.favorites-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.favorites-toolbar {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.favorites-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.favorites-gallery {
  padding-bottom: 22px;
}

.favorites-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 260px;
  place-content: center;
}

.favorites-empty h2,
.favorites-empty p {
  margin: 0;
}

.favorites-empty p {
  max-width: 420px;
  line-height: 1.7;
}

.favorite-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px 6px 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.favorite-pill img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
}

.license-band p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.asset-dialog {
  width: min(1040px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.asset-dialog::backdrop {
  background: rgba(23, 33, 27, 0.48);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(23, 33, 27, 0.72);
  color: #fff;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.dialog-preview {
  min-height: 520px;
  background: #e8ece6;
}

.asset-dialog.has-upload .dialog-preview {
  display: grid;
  place-items: center;
  background: #f7f8f4;
  padding: 14px;
}

.dialog-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.asset-dialog.has-upload .dialog-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: min(70vh, 620px);
  object-fit: contain;
}

.dialog-info {
  padding: 38px 34px;
}

.dialog-info p {
  color: var(--muted);
  line-height: 1.78;
}

.dialog-info dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.dialog-info dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.dialog-info dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dialog-info dd {
  margin: 0;
  font-weight: 850;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@media (min-width: 1700px) {
  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-card.is-wide {
    grid-column: auto;
  }

  .asset-card.has-upload .asset-preview {
    height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .finder {
    grid-template-columns: 1fr;
  }

  .result-meta,
  .download-board,
  .redeem-band,
  .license-band,
  .redeem-page,
  .favorites-page-heading,
  .favorites-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .redeem-form,
  .redeem-page,
  .redeem-page-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .favorites-back-link,
  .favorites-toolbar .secondary-action {
    width: 100%;
  }

  .view-tools {
    width: auto;
    justify-content: flex-start;
  }

  .tool-row {
    gap: 5px;
  }

  .segment {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .select-label,
  .icon-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  select {
    width: 62px;
    height: 38px;
    padding-left: 8px;
    padding-right: 18px;
    font-size: 12px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }

  .back-to-top {
    min-height: 38px;
    padding: 0 12px;
    right: 12px;
  }

  .back-to-top span:last-child {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .asset-card.is-wide {
    grid-column: auto;
  }

  .asset-card.has-upload .asset-preview {
    height: auto;
  }

  .asset-overlay {
    opacity: 1;
    transform: none;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .dialog-preview,
  .dialog-preview img {
    min-height: 320px;
  }

  .dialog-info {
    padding: 28px 20px;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
