.drsknn-proof-studio {
  --dps-ink: #07151c;
  --dps-muted: #61727b;
  --dps-line: rgba(7, 21, 28, 0.13);
  --dps-teal: #0c7168;
  --dps-teal-soft: #edf6f3;
  --dps-gold: #b88945;
  --dps-paper: #ffffff;
  --dps-canvas: #f6f6f2;
  color: var(--dps-ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.drsknn-proof-library,
.drsknn-proof-preview-wrap {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1520px;
  padding: clamp(22px, 4vw, 64px) clamp(12px, 3vw, 42px);
  width: 100%;
}

.drsknn-proof-studio *,
.drsknn-proof-studio *::before,
.drsknn-proof-studio *::after {
  box-sizing: border-box;
}

.drsknn-proof-studio button,
.drsknn-proof-studio input,
.drsknn-proof-studio a {
  font: inherit;
}

.drsknn-proof-studio button:focus-visible,
.drsknn-proof-studio a:focus-visible,
.drsknn-proof-studio input:focus-visible {
  outline: 3px solid rgba(12, 113, 104, 0.32);
  outline-offset: 3px;
}

.dps-loading,
.dps-status {
  align-items: center;
  background: var(--dps-canvas);
  border: 1px solid var(--dps-line);
  color: var(--dps-muted);
  display: flex;
  justify-content: center;
  min-height: 220px;
  padding: 32px;
  text-align: center;
}

.dps-status {
  flex-direction: column;
  gap: 8px;
}

.dps-status strong {
  color: var(--dps-ink);
  font-size: 18px;
}

.dps-status a {
  color: var(--dps-teal);
  font-weight: 800;
  min-height: 44px;
  padding: 12px;
}

.dps-preview {
  background:
    radial-gradient(circle at 8% 0%, rgba(184, 137, 69, 0.12), transparent 34%),
    var(--dps-paper);
  border: 1px solid var(--dps-line);
  border-radius: 14px;
  box-shadow: 0 20px 54px rgba(7, 21, 28, 0.08);
  overflow: hidden;
  padding: clamp(20px, 3.2vw, 42px);
}

.dps-preview-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.dps-preview-head > div:first-child {
  max-width: 720px;
}

.dps-preview-head h2 {
  color: var(--dps-ink);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  margin: 0;
}

.dps-preview-head p {
  color: var(--dps-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.dps-preview-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dps-secondary-action {
  align-items: center;
  border: 1px solid var(--dps-line);
  border-radius: 7px;
  color: var(--dps-teal);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  text-decoration: none;
}

.dps-secondary-action:hover,
.dps-secondary-action:focus-visible {
  background: var(--dps-teal-soft);
  border-color: rgba(12, 113, 104, 0.28);
}

.dps-preview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.dps-preview-filters button {
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 999px;
  color: var(--dps-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
  padding: 9px 15px;
}

.dps-preview-filters button:hover,
.dps-preview-filters button:focus-visible,
.dps-preview-filters button.is-active {
  background: var(--dps-teal-soft);
  border-color: rgba(12, 113, 104, 0.28);
  color: var(--dps-teal);
}

.dps-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dps-preview-card {
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 9px;
  color: var(--dps-ink);
  cursor: zoom-in;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dps-preview-card:hover,
.dps-preview-card:focus-visible {
  border-color: rgba(12, 113, 104, 0.45);
  box-shadow: 0 12px 28px rgba(7, 21, 28, 0.12);
  transform: translateY(-2px);
}

.dps-preview-media {
  align-items: center;
  aspect-ratio: 1.15;
  background: var(--dps-canvas);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.dps-preview-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.dps-preview-badge {
  background: rgba(7, 21, 28, 0.84);
  bottom: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 5px 7px;
  position: absolute;
  right: 8px;
  text-transform: uppercase;
}

.dps-preview-placeholder {
  color: var(--dps-muted);
  font-size: 12px;
  padding: 18px;
  text-align: center;
}

.dps-media-error {
  align-items: center;
  color: var(--dps-muted);
  display: flex;
  font-size: 12px;
  height: 100%;
  justify-content: center;
  line-height: 1.5;
  min-height: 120px;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.dps-preview-copy {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.dps-preview-copy strong {
  font-size: 13px;
  line-height: 1.3;
}

.dps-preview-copy > span {
  color: var(--dps-muted);
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dps-disclaimer {
  color: var(--dps-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.dps-case-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.dps-case-details li {
  background: var(--dps-teal-soft);
  border-radius: 999px;
  color: var(--dps-teal);
  font-size: 10px;
  font-weight: 750;
  padding: 5px 8px;
}

.dps-match-reason {
  align-items: flex-start;
  background: var(--dps-teal-soft);
  border: 1px solid rgba(10, 118, 109, 0.16);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0 0;
  max-width: 680px;
  padding: 8px 10px;
}

.dps-match-reason strong,
.dps-match-reason span {
  font-size: 10px;
  line-height: 1.4;
}

.dps-match-reason strong {
  color: var(--dps-teal);
  font-weight: 850;
}

.dps-match-reason span {
  color: var(--dps-muted);
  font-weight: 650;
}

.dps-intro {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 22px;
}

.dps-intro-copy {
  max-width: 760px;
}

.dps-eyebrow {
  color: var(--dps-gold);
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dps-intro h2,
.dps-category-head h3 {
  color: var(--dps-ink);
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
}

.dps-intro h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.06;
}

.dps-intro p,
.dps-category-head p,
.dps-caption {
  color: var(--dps-muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.dps-intro p {
  font-size: 14px;
  max-width: 680px;
}

.dps-action,
.dps-icon-button,
.dps-category-button,
.dps-thumb,
.dps-tier,
.dps-mobile-category,
.dps-drawer-close,
.dps-load-more {
  border: 0;
  cursor: pointer;
}

.dps-action {
  align-items: center;
  background: var(--dps-ink);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  white-space: nowrap;
}

.dps-action:hover,
.dps-action:focus-visible {
  background: var(--dps-teal);
}

.dps-shell {
  background: var(--dps-paper);
  border: 1px solid var(--dps-line);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.dps-sidebar {
  background: #fafaf7;
  border-right: 1px solid var(--dps-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 18px 14px;
}

.dps-sidebar-title {
  color: var(--dps-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.dps-search {
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 6px;
  color: var(--dps-ink);
  min-height: 42px;
  outline: 0;
  padding: 10px 12px;
  width: 100%;
}

.dps-search:focus {
  border-color: var(--dps-teal);
  box-shadow: 0 0 0 3px rgba(12, 113, 104, 0.12);
}

.dps-tiers {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.dps-tier {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--dps-muted);
  font-size: 12px;
  font-weight: 750;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
}

.dps-tier.is-active {
  background: var(--dps-teal-soft);
  border-color: rgba(12, 113, 104, 0.23);
  color: var(--dps-teal);
}

.dps-category-list {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  margin: 12px -4px 0 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 5px 4px 0;
  scrollbar-color: rgba(7, 21, 28, 0.34) rgba(7, 21, 28, 0.06);
  scrollbar-width: thin;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.dps-category-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #253841;
  display: flex;
  font-size: 12px;
  font-weight: 720;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.dps-category-button span:first-child {
  min-width: 0;
}

.dps-category-button small {
  background: rgba(7, 21, 28, 0.06);
  border-radius: 999px;
  color: var(--dps-muted);
  flex: 0 0 auto;
  font-size: 10px;
  min-width: 26px;
  padding: 3px 6px;
  text-align: center;
}

.dps-category-button:hover,
.dps-category-button:focus-visible {
  background: #fff;
  border-color: var(--dps-line);
  outline: 0;
}

.dps-category-button.is-active {
  background: var(--dps-ink);
  border-color: var(--dps-ink);
  color: #fff;
}

.dps-category-button.is-active small {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dps-main {
  min-width: 0;
  padding: 22px;
}

.dps-category-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 16px;
}

.dps-category-head h3 {
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.12;
}

.dps-category-head p {
  font-size: 13px;
}

.dps-mobile-category {
  align-items: center;
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 7px;
  color: var(--dps-ink);
  display: none;
  font-size: 12px;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.dps-mobile-category > span:first-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.dps-mobile-category small {
  color: var(--dps-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dps-viewer-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 150px;
}

.dps-viewer {
  min-width: 0;
}

.dps-stage {
  align-items: center;
  aspect-ratio: 1.18;
  background: var(--dps-canvas);
  border: 1px solid var(--dps-line);
  display: flex;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.dps-media {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.dps-media > img,
.dps-media > video {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.dps-media > img {
  cursor: zoom-in;
}

.dps-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
}

.dps-comparison figure {
  height: 100%;
  margin: 0;
  min-width: 0;
  position: relative;
}

.dps-comparison figure + figure {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.dps-comparison img {
  cursor: zoom-in;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dps-comparison figcaption {
  background: rgba(7, 21, 28, 0.78);
  bottom: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  left: 10px;
  letter-spacing: 0.12em;
  padding: 6px 8px;
  position: absolute;
  text-transform: uppercase;
}

.dps-stage-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(7, 21, 28, 0.1);
  border-radius: 50%;
  color: var(--dps-ink);
  display: flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  z-index: 2;
}

.dps-stage-nav:hover,
.dps-stage-nav:focus-visible {
  background: var(--dps-ink);
  color: #fff;
  outline: 0;
}

.dps-stage-nav[data-dps-prev] {
  left: 12px;
}

.dps-stage-nav[data-dps-next] {
  right: 12px;
}

.dps-stage-tap-zone,
.dps-lightbox-tap-zone {
  background: transparent;
  border: 0;
  display: none;
  padding: 0;
  position: absolute;
}

.dps-mobile-tap-hint {
  display: none;
}

.dps-stage-count {
  background: rgba(7, 21, 28, 0.8);
  bottom: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  position: absolute;
  right: 12px;
  z-index: 3;
}

.dps-meta {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 13px 2px 0;
}

.dps-meta-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dps-caption {
  font-size: 14px;
  margin: 0;
  max-width: 680px;
}

.dps-zoom-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--dps-teal);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  min-height: 44px;
  padding: 8px 4px;
}

.dps-result-book {
  background: var(--dps-ink);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
}

.dps-result-book:hover,
.dps-result-book:focus-visible {
  background: var(--dps-teal);
  outline: 0;
}

.dps-thumbs {
  display: grid;
  gap: 8px;
  max-height: 548px;
  overflow: auto;
  padding-right: 3px;
}

.dps-thumb {
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 6px;
  padding: 4px;
  position: relative;
  width: 100%;
}

.dps-thumb img,
.dps-thumb video {
  aspect-ratio: 1.12;
  background: var(--dps-canvas);
  display: block;
  object-fit: cover;
  width: 100%;
}

.dps-thumb.is-active {
  border-color: var(--dps-teal);
  box-shadow: inset 0 0 0 1px var(--dps-teal);
}

.dps-thumb-index {
  background: rgba(7, 21, 28, 0.78);
  bottom: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 6px;
  position: absolute;
  right: 8px;
}

.dps-load-more {
  background: #fff;
  border: 1px solid var(--dps-line);
  border-radius: 6px;
  color: var(--dps-teal);
  font-size: 11px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px;
  width: 100%;
}

.dps-empty {
  color: var(--dps-muted);
  display: grid;
  min-height: 360px;
  padding: 32px;
  place-items: center;
  text-align: center;
}

.dps-drawer,
.dps-lightbox {
  display: none;
  inset: 0;
  position: fixed;
}

.dps-drawer {
  align-items: end;
  background: rgba(7, 21, 28, 0.54);
  justify-content: center;
  z-index: 1000001;
}

.dps-drawer.is-open {
  display: flex;
}

.dps-drawer-panel {
  background: #fff;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  height: min(92vh, 760px);
  height: min(92svh, 760px);
  height: min(92dvh, 760px);
  max-height: calc(100vh - 12px);
  max-height: calc(100svh - 12px);
  max-height: calc(100dvh - 12px);
  min-height: 0;
  overflow: hidden;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  width: min(100%, 620px);
}

.dps-drawer-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dps-drawer-head strong {
  font-size: 17px;
}

.dps-drawer-close,
.dps-lightbox-close,
.dps-lightbox-nav,
.dps-lightbox-zoom {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--dps-ink);
  display: flex;
  justify-content: center;
}

.dps-drawer-close {
  border-color: var(--dps-line);
  border-radius: 50%;
  font-size: 20px;
  height: 44px;
  width: 44px;
}

.dps-drawer-list {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px 8px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.dps-drawer-panel > .dps-search {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.dps-lightbox {
  align-items: center;
  background: rgba(2, 8, 11, 0.94);
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 64px max(18px, env(safe-area-inset-bottom));
  z-index: 1000002;
}

.dps-lightbox.is-open {
  display: flex;
}

.dps-lightbox-media {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.dps-lightbox-media img {
  max-height: 90vh;
  max-height: 90svh;
  max-width: 100%;
  object-fit: contain;
  transform: scale(var(--dps-zoom, 1));
  transition: transform 160ms ease;
}

.dps-lightbox-media video {
  background: #000;
  border-radius: 8px;
  max-height: 84vh;
  max-height: 84svh;
  max-width: min(100%, 1100px);
  width: auto;
}

.dps-lightbox-close,
.dps-lightbox-nav,
.dps-lightbox-zoom {
  border-radius: 50%;
  height: 46px;
  position: absolute;
  width: 46px;
}

.dps-lightbox-close {
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  z-index: 5;
}

.dps-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.dps-lightbox-nav[data-dps-lightbox-prev] {
  left: 14px;
}

.dps-lightbox-nav[data-dps-lightbox-next] {
  right: 14px;
}

.dps-lightbox-tools {
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.dps-lightbox-zoom {
  position: static;
}

.dps-lightbox-caption {
  background: rgba(7, 21, 28, 0.78);
  color: #fff;
  font-size: 11px;
  left: max(16px, env(safe-area-inset-left));
  max-width: min(560px, 65vw);
  padding: 9px 11px;
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
}

@media (max-width: 900px) {
  .dps-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dps-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .dps-main {
    padding: 18px;
  }

  .dps-viewer-grid {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .dps-stage {
    min-height: 330px;
  }
}

/* The full library uses a bounded desktop viewer and a drawer on laptop/tablet. */
@media (min-width: 1101px) {
  .drsknn-proof-studio[data-proof-mode="library"] .dps-shell {
    height: min(720px, calc(100vh - 72px));
    min-height: 640px;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-main {
    min-height: 0;
    overflow: auto;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-stage {
    height: min(520px, calc(100vh - 240px));
    min-height: 390px;
  }
}

@media (max-width: 1100px) {
  .drsknn-proof-studio[data-proof-mode="library"] .dps-shell {
    display: block;
    min-height: 0;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-sidebar {
    display: none;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-main {
    padding: 18px;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-mobile-category {
    display: flex;
    margin-bottom: 14px;
  }

  .drsknn-proof-studio[data-proof-mode="library"] .dps-stage {
    max-height: 480px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .drsknn-proof-library {
    padding: 20px 0;
  }

  .drsknn-proof-preview-wrap {
    padding: 20px 12px;
  }

  .dps-preview {
    border-radius: 10px;
    padding: 18px 14px;
  }

  .dps-preview-head {
    align-items: stretch;
    display: grid;
    gap: 16px;
  }

  .dps-preview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dps-secondary-action {
    width: 100%;
  }

  .dps-preview-filters {
    flex-wrap: nowrap;
    margin-top: 18px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scroll-snap-type: x proximity;
  }

  .dps-preview-filters button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .dps-preview-grid {
    gap: 8px;
  }

  .dps-preview-copy {
    padding: 10px;
  }

  .dps-intro {
    align-items: stretch;
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding-inline: 14px;
  }

  .dps-intro h2 {
    font-size: 32px;
  }

  .dps-action {
    width: 100%;
  }

  .dps-shell {
    display: block;
    min-height: 0;
  }

  .dps-sidebar {
    display: none;
  }

  .dps-main {
    padding: 14px;
  }

  .dps-mobile-category {
    display: flex;
    margin-bottom: 14px;
  }

  .dps-category-head {
    display: block;
    margin-bottom: 12px;
  }

  .dps-category-head h3 {
    font-size: 25px;
  }

  .dps-viewer-grid {
    display: block;
  }

  .dps-stage {
    aspect-ratio: 0.94;
    min-height: 0;
  }

  .dps-stage-nav {
    display: none;
  }

  .dps-stage.is-video .dps-stage-nav {
    display: flex;
    height: 44px;
    width: 44px;
  }

  .dps-stage-tap-zone {
    bottom: 0;
    cursor: pointer;
    display: block;
    top: 0;
    touch-action: manipulation;
    width: 34%;
    z-index: 2;
  }

  .dps-stage-tap-zone--prev {
    left: 0;
  }

  .dps-stage-tap-zone--next {
    right: 0;
  }

  .dps-stage-tap-zone:focus-visible,
  .dps-lightbox-tap-zone:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: -5px;
  }

  .dps-mobile-tap-hint {
    color: var(--dps-muted);
    display: block;
    font-size: 11px;
    line-height: 1.45;
    margin: 8px 2px 0;
  }

  .dps-meta {
    display: grid;
    gap: 8px;
  }

  .dps-meta-actions {
    justify-content: flex-start;
  }

  .dps-zoom-button {
    min-height: 44px;
  }

  .dps-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-height: none;
    overflow-x: auto;
    padding: 0 0 4px;
    scroll-snap-type: x mandatory;
  }

  .dps-thumb {
    flex: 0 0 92px;
    scroll-snap-align: start;
  }

  .dps-load-more {
    flex: 0 0 110px;
  }

  .dps-lightbox {
    padding: max(64px, env(safe-area-inset-top)) 8px max(76px, env(safe-area-inset-bottom));
  }

  .dps-lightbox-caption {
    display: none;
  }

  .dps-lightbox-nav {
    top: auto;
    transform: none;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .dps-lightbox-nav[data-dps-lightbox-prev] {
    left: 14px;
  }

  .dps-lightbox-nav[data-dps-lightbox-next] {
    right: max(76px, calc(env(safe-area-inset-right) + 76px));
  }

  .dps-lightbox-tap-zone {
    bottom: 78px;
    cursor: pointer;
    display: block;
    top: 56px;
    touch-action: manipulation;
    width: 34%;
    z-index: 2;
  }

  .dps-lightbox-tap-zone--prev {
    left: 0;
  }

  .dps-lightbox-tap-zone--next {
    right: 0;
  }

  .dps-lightbox-tools {
    gap: 6px;
  }

  .dps-lightbox-zoom {
    height: 44px;
    width: 44px;
  }
}

.dps-groups {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.dps-drawer-panel .dps-groups {
  flex: 0 0 auto;
}

.dps-groups .dps-tier {
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-inline: 5px;
  text-align: center;
  white-space: normal;
}

@media (max-width: 420px) {
  .dps-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .drsknn-proof-studio *,
  .drsknn-proof-studio *::before,
  .drsknn-proof-studio *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
