/* Logo colors and neutral studio colors are deliberately independent. */
:root {
  color-scheme: light;
  --ui-page: #fff9fa;
  --ui-surface: #fff;
  --ui-sidebar: #f7eff2;
  --ui-subtle: #f2e7ec;
  --ui-hover: #eadbe1;
  --ui-text: #292126;
  --ui-secondary: #6e5963;
  --ui-border: #e5d8de;
  --ui-control-border: #cbbbc3;
  --ui-accent: #800020;
  --ui-accent-subtle: #f3e4e9;
  --ui-accent-text: #800020;
  --ui-button: #292126;
  --ui-on-button: #fff;
  --ui-success: #367b53;
  --ui-hero: #f3e9ed;
  --sidebar-width: 212px;
  --panel-width: 280px;
  --header-height: 72px;
  --motion: 180ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ui-page: #21151b;
  --ui-surface: #2b1e25;
  --ui-sidebar: #251a20;
  --ui-subtle: #34222b;
  --ui-hover: #35222b;
  --ui-text: #f6e8ed;
  --ui-secondary: #c2aeb7;
  --ui-border: #4a3640;
  --ui-control-border: #816c75;
  --ui-accent: #c04b68;
  --ui-accent-subtle: #44232f;
  --ui-accent-text: #e9abbc;
  --ui-button: #f6e8ed;
  --ui-on-button: #292126;
  --ui-success: #88c39b;
  --ui-hero: #31212a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ui-page);
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.5;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
}

button {
  color: inherit;
  border: 0;
}

button, a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  opacity: .4;
  cursor: default;
}

input, textarea, select {
  min-width: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, p, dl, dd {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--ui-accent);
  outline-offset: 4px;
}

::selection {
  background: var(--ui-accent-subtle);
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: var(--ui-surface);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow, .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--ui-secondary);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label > span {
  font-size: 9px;
  letter-spacing: 1px;
  opacity: .8;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-secondary);
  transition: background var(--motion), color var(--motion);
}

.icon-button:hover:not(:disabled) {
  background: var(--ui-hover);
  color: var(--ui-text);
}

.button {
  min-height: 40px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--motion), box-shadow var(--motion);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  color: var(--ui-on-button);
  background: var(--ui-button);
}

.button.primary:hover {
  box-shadow: 0 3px 10px #0002;
}

.button.secondary {
  border: 1px solid var(--ui-control-border);
  background: var(--ui-surface);
}

.button.secondary:hover {
  background: var(--ui-subtle);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 8px 0;
  font-size: 11px;
  color: var(--ui-secondary);
}

.text-button:hover {
  color: var(--ui-accent-text);
}

.text-button svg {
  width: 14px;
  height: 14px;
}

/* Sidebar navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  background: var(--ui-sidebar);
  border-right: 1px solid var(--ui-border);
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  overflow-y: auto;
}

.sidebar > * {
  flex-shrink: 0;
}

.sidebar-brand {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.5px;
}

.app-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ui-accent);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 3px 6px #80002014;
}

.app-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.brand-caption {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.45px;
  color: var(--ui-secondary);
  margin-top: 2px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  margin: 17px 0 28px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  border-radius: 10px;
}

.project-avatar {
  width: 30px;
  height: 32px;
  border-radius: 6px;
  background: var(--ui-subtle);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
}

.project-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.project-card div > span {
  display: block;
  font-size: 10px;
  color: var(--ui-secondary);
  margin-top: 3px;
}

.project-card > svg {
  margin-left: auto;
  width: 12px;
  height: 12px;
  color: var(--ui-secondary);
}

.nav-section {
  margin-bottom: 25px;
}

.nav-section > .section-label {
  margin: 0 10px 10px;
}

.filters {
  display: grid;
  gap: 4px;
}

.filters button, .nav-button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  font-size: 13px;
  border-radius: 7px;
  color: var(--ui-secondary);
  text-align: left;
  transition: background var(--motion), color var(--motion);
}

.filters button > svg, .nav-button > svg {
  width: 17px;
  height: 17px;
}

.filters button > span {
  margin-left: auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: .8;
}

.filters button:hover, .nav-button:hover {
  background: var(--ui-hover);
  color: var(--ui-text);
}

.filters button[aria-pressed="true"] {
  background: var(--ui-accent-subtle);
  color: var(--ui-accent-text);
  font-weight: 600;
}

.nav-button .nav-arrow {
  margin-left: auto;
  width: 14px;
  opacity: .5;
}

.sidebar-bottom {
  margin-top: auto;
  padding-bottom: 19px;
}

.studio-note {
  padding: 16px 10px 28px;
}

.note-symbol {
  display: block;
  color: var(--ui-secondary);
  font-size: 36px;
  font-family: Georgia, serif;
  line-height: 1.1;
  margin-bottom: 12px;
}

.studio-note p {
  font-size: 11px;
  font-weight: 500;
}

.studio-note > span:last-child {
  color: var(--ui-secondary);
  font-size: 10px;
}

.appearance {
  border-top: 1px solid var(--ui-border);
  padding: 19px 4px 14px;
}

.version-switch {
  display: flex;
  padding: 3px;
  margin-top: 10px;
  background: var(--ui-hover);
  border-radius: 8px;
}

.version-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 50%;
  min-height: 34px;
  padding: 6px;
  background: transparent;
  border-radius: 6px;
  font-size: 10px;
  color: var(--ui-secondary);
}

.version-switch button svg {
  width: 14px;
  height: 14px;
}

.version-switch button[aria-pressed="true"] {
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: 0 1px 4px #00000010;
}

.local-status {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 4px;
  font-size: 9px;
  color: var(--ui-secondary);
}

.status-dot {
  width: 5px;
  height: 5px;
  background: var(--ui-success);
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-close, .mobile-menu, .inspector-toggle, .inspector-close {
  display: none;
}

/* Studio canvas */
.studio-shell {
  margin-left: var(--sidebar-width);
}

.app-header {
  height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-location {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  color: var(--ui-secondary);
}

.header-location strong {
  font-weight: 500;
  color: var(--ui-text);
}

.breadcrumb-divider {
  color: var(--ui-control-border);
}

.header-actions {
  display: flex;
  gap: 3px;
  align-items: center;
}

.header-actions > .button {
  margin-left: 12px;
}

.more-menu {
  position: relative;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.menu-items {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--ui-surface);
  box-shadow: 0 10px 35px #00000018;
  z-index: 21;
}

.menu-items button {
  padding: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
}

.menu-items button:hover {
  background: var(--ui-subtle);
}

.menu-items button span {
  font-size: 10px;
  color: var(--ui-secondary);
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-width);
}

.main-content {
  padding: 34px 32px 0;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.catalog-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 16px;
}

.catalog-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 9px;
}

.catalog-intro h1 {
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -1.2px;
  line-height: 1.3;
}

.title-dot {
  color: var(--ui-accent);
  margin-left: 3px;
}

.intro-description {
  color: var(--ui-secondary);
  margin-top: 8px;
  font-size: 12px;
}

.collection-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  color: var(--ui-secondary);
  line-height: 1.8;
}

.collection-count strong {
  font-size: 28px;
  font-weight: 350;
  color: var(--ui-text);
  letter-spacing: -1px;
}

.collection-hero {
  position: relative;
  min-height: 232px;
  display: flex;
  align-items: center;
  padding: 28px 30px;
  border-radius: 12px;
  background: var(--ui-hero);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-edition {
  font-size: 8px;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-secondary);
}

.hero-edition i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ui-accent);
}

.hero-copy h2 {
  font-size: clamp(25px, 2.15vw, 35px);
  font-weight: 550;
  letter-spacing: -1.35px;
  line-height: 1.22;
  margin: 17px 0 11px;
}

.hero-copy h2 > span {
  color: var(--ui-secondary);
}

.hero-copy p {
  font-size: 10px;
  color: var(--ui-secondary);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  padding: 0;
  margin-top: 22px;
  min-height: 22px;
}

.hero-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--motion);
}

.hero-link:hover svg {
  transform: translateX(3px);
}

.hero-art {
  position: relative;
  align-self: stretch;
  width: 45%;
  flex-shrink: 0;
}

.hero-artboard {
  position: absolute;
  width: 102%;
  height: 164px;
  left: 5%;
  top: 15px;
  background: #fff;
  color: #777570;
  border: 1px solid #e7e3df;
  box-shadow: 0 15px 30px #2b1e1410;
  padding: 13px 14px;
  border-radius: 3px;
  transform: rotate(-7deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-artboard > img {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.artboard-caption, .artboard-bottom {
  font-size: 5px;
  letter-spacing: 1.1px;
}

.artboard-bottom {
  display: flex;
  justify-content: space-between;
}

.hero-symbol {
  position: absolute;
  width: 85px;
  height: 85px;
  background: #800020;
  box-shadow: 0 8px 20px #80002022;
  border-radius: 9px;
  right: -8px;
  bottom: -8px;
  transform: rotate(8deg);
  display: grid;
  place-items: center;
}

.hero-symbol img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.hero-cross {
  position: absolute;
  font-size: 16px;
  color: var(--ui-secondary);
  opacity: .4;
  font-weight: 300;
}

.cross-one {
  top: -16px;
  right: -8px;
}

.cross-two {
  bottom: -18px;
  left: 10px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 16px;
}

.collection-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.collection-heading h2 {
  font-size: 13px;
  font-weight: 600;
}

.result-count {
  color: var(--ui-secondary);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--ui-border);
  border-radius: 4px;
}

.gallery-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  width: 184px;
  height: 34px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
}

.search-box:focus-within {
  border-color: var(--ui-secondary);
}

.search-box svg {
  width: 14px;
  height: 14px;
  color: var(--ui-secondary);
}

.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ui-text);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--ui-secondary);
}

.search-box kbd {
  border: 1px solid var(--ui-border);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 17px;
  color: var(--ui-secondary);
  font-size: 10px;
}

.view-switch {
  display: flex;
  background: var(--ui-subtle);
  padding: 2px;
  border-radius: 7px;
}

.view-switch .icon-button {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 5px;
}

.view-switch svg {
  width: 15px;
  height: 15px;
}

.view-switch [aria-pressed="true"] {
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: 0 1px 3px #00000008;
}

/* Asset cards share their fitting geometry with SVG exports. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}

.catalog-section-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 2px;
}

.catalog-section-heading:first-child {
  padding-top: 0;
}

.catalog-section-heading:not(:first-child) {
  padding-top: 22px;
}

.catalog-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ui-secondary);
}

.section-index {
  font-size: 8px;
  font-family: ui-monospace, Consolas, monospace;
}

.section-caption {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--ui-secondary);
}

.logo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow var(--motion), border-color var(--motion);
}

.logo-card:hover {
  border-color: var(--ui-control-border);
  box-shadow: 0 6px 20px #18181808;
}

.logo-card:focus-visible {
  outline-offset: 3px;
}

.card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.37;
  display: grid;
  place-items: center;
  background: var(--logo-light, #fff);
  border-bottom: 1px solid var(--ui-border);
  overflow: hidden;
}

.card-canvas {
  position: relative;
}

.artwork {
  position: absolute;
}

.artwork > img, .artwork > svg {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}

.card-number {
  position: absolute;
  top: 12px;
  left: 13px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 8px;
  color: var(--logo-label);
  opacity: .65;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--logo-label);
  border: 1px solid currentColor;
  opacity: .6;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 7px;
  letter-spacing: .7px;
}

.card-open {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #0000000c;
  border-radius: 50%;
  background: #ffffffec;
  color: #343434;
  opacity: 0;
  transition: opacity var(--motion);
}

.card-open svg {
  width: 13px;
  height: 13px;
}

.logo-card:hover .card-open, .logo-card:focus-visible .card-open {
  opacity: 1;
}

.card-content {
  width: 100%;
  min-width: 0;
  padding: 13px 14px 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-description {
  font-size: 11px;
  color: var(--ui-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--ui-secondary);
  margin-top: 12px;
}

.card-meta > span:first-child {
  margin-right: auto;
}

.card-meta > span:first-child::before {
  content: "";
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--ui-control-border);
  vertical-align: 1px;
}

.gallery[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 10px;
}

.gallery[data-view="list"] .logo-card {
  flex-direction: row;
  align-items: center;
}

.gallery[data-view="list"] .card-preview {
  width: 150px;
  height: 95px;
  flex-shrink: 0;
  border-bottom: 0;
  border-right: 1px solid var(--ui-border);
}

.gallery[data-view="list"] .card-content {
  padding: 16px 20px;
}

.gallery[data-view="list"] .card-title {
  font-size: 13px;
}

.gallery[data-view="list"] .card-description {
  font-size: 11px;
}

.gallery[data-view="list"] .card-meta {
  margin-top: 8px;
}

.gallery[data-view="list"] .card-meta > span:first-child {
  margin-right: 0;
}

.empty-state {
  padding: 64px 16px;
  text-align: center;
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  color: var(--ui-secondary);
  margin-bottom: 18px;
}

.empty-state h2 {
  font-size: 18px;
  font-weight: 500;
}

.empty-state p {
  color: var(--ui-secondary);
  font-size: 12px;
  margin: 8px 0 20px;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  margin-top: 28px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-secondary);
  font-size: 8px;
  letter-spacing: .5px;
}

.footer-divider {
  margin: 0 10px;
  color: var(--ui-control-border);
}

/* Global color inspector */
.brand-inspector {
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  border-left: 1px solid var(--ui-border);
  background: var(--ui-surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 24px 20px 19px;
  border-bottom: 1px solid var(--ui-border);
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-heading svg {
  width: 16px;
  height: 16px;
  color: var(--ui-secondary);
}

.panel-heading h2 {
  font-size: 13px;
  font-weight: 600;
}

.scope-badge {
  font-size: 8px;
  color: var(--ui-secondary);
  padding: 3px 6px;
  background: var(--ui-subtle);
  border-radius: 4px;
}

.panel-content {
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.panel-description {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ui-secondary);
}

.palette-preview {
  position: relative;
  margin: 17px 0 22px;
  height: 138px;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-preview img {
  width: 95%;
  height: 112px;
  object-fit: contain;
}

.palette-preview-label, .palette-preview-caption {
  position: absolute;
  color: var(--sample-label, #72716e);
  font-size: 6px;
  letter-spacing: 1.1px;
}

.palette-preview-label {
  top: 12px;
  left: 12px;
}

.palette-preview-caption {
  bottom: 11px;
  left: 12px;
}

.small-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.small-heading h3 {
  font-size: 12px;
  font-weight: 600;
}

.small-heading > span {
  font-size: 9px;
  color: var(--ui-secondary);
}

.palette-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0 -4px;
}

.palette-option {
  display: grid;
  place-items: center;
  width: 100%;
  height: 36px;
  padding: 7px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
}

.palette-option:hover {
  background: var(--ui-subtle);
}

.palette-option[aria-pressed="true"] {
  border-color: var(--ui-control-border);
  background: var(--ui-subtle);
}

.palette-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid #0000000c;
}

.palette-option[data-palette="original"] .palette-dot {
  background: conic-gradient(#800020 0 25%, #292126 25% 50%, #fff9fa 50% 75%, #580018 75%) !important;
}

.preset-section {
  margin-bottom: 24px;
}

.parts-grid, .detail-parts {
  display: grid;
  gap: 8px;
}

.part-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  padding: 8px 9px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  min-height: 45px;
  align-items: center;
}

.part-name {
  font-size: 11px;
  font-weight: 500;
}

.part-inputs {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 7px;
}

.part-inputs input[type="color"] {
  width: 23px;
  height: 23px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.part-inputs input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.part-inputs input[type="color"]::-webkit-color-swatch {
  border: 1px solid #8884;
  border-radius: 5px;
}

.part-inputs input[type="color"]::-moz-color-swatch {
  border: 1px solid #8884;
  border-radius: 5px;
}

.part-inputs input[type="text"] {
  width: 72px;
  padding: 4px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ui-secondary);
  text-align: right;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 10px;
}

.part-inputs input[type="text"]:focus {
  color: var(--ui-text);
}

.part-hint {
  display: none;
}

.part-note, .guide-note {
  font-size: 11px;
  color: var(--ui-secondary);
  line-height: 1.75;
}

.custom-color-panel > .part-note {
  margin-top: 13px;
}

.reset-colors {
  margin-top: 6px;
  margin-bottom: 14px;
}

.color-guide {
  border-top: 1px solid var(--ui-border);
}

.color-guide > summary {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}

.color-guide > summary > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.color-guide > summary svg {
  width: 14px;
  height: 14px;
  color: var(--ui-secondary);
}

.details-chevron {
  transition: transform var(--motion);
}

details[open] > summary .details-chevron {
  transform: rotate(90deg);
}

.guide-content {
  padding: 0 0 18px;
}

.guide-content > section {
  margin-top: 18px;
}

.guide-content h3 {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-summary-note {
  display: block;
  font-size: 9px;
  color: var(--ui-secondary);
  margin-top: 4px;
}

.chroma-actions {
  margin-top: 14px;
}

.chroma-actions .button, .detail-chroma .button {
  width: 100%;
}

.tonal-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-radius: 5px;
  overflow: hidden;
}

.tonal-swatch {
  min-height: 40px;
  padding: 0;
}

.tonal-swatch code {
  display: none;
}

.tonal-swatch:hover {
  box-shadow: inset 0 0 0 2px #0005;
}

.harmony {
  margin-top: 12px;
}

.harmony h4 {
  font-size: 9px;
  color: var(--ui-secondary);
  font-weight: 500;
  margin-bottom: 7px;
}

.harmony-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.harmony-swatches > button, .harmony-swatches > span {
  padding: 5px;
  background: var(--ui-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.harmony-swatches i {
  width: 12px;
  height: 12px;
  border: 1px solid #8884;
  border-radius: 3px;
}

.harmony-swatches code {
  font-size: 8px;
  color: var(--ui-secondary);
}

.contrast-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
}

.contrast-item dt {
  color: var(--ui-secondary);
}

.contrast-item dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.contrast-status {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  color: var(--ui-secondary);
}

.guide-content > .guide-note {
  margin-top: 12px;
}

.guide-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 10px;
}

.guide-role .role-color {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid #8884;
}

.guide-role strong {
  font-weight: 500;
}

.guide-role code {
  margin-left: auto;
  font-size: 9px;
  color: var(--ui-secondary);
}

.guide-roles {
  margin-bottom: 20px;
}

.panel-footnote {
  display: flex;
  gap: 7px;
  padding-top: 19px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-secondary);
}

.panel-footnote svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.panel-footnote p {
  font-size: 9px;
  line-height: 1.8;
}

.panel-scrim {
  position: fixed;
  inset: 0;
  background: #16161666;
  z-index: 35;
}

/* Focused asset editor */
#detail-dialog {
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface);
  color: var(--ui-text);
  width: min(1100px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  box-shadow: 0 24px 100px #00000035;
}

#detail-dialog::backdrop {
  background: #1b1b1d70;
  backdrop-filter: blur(6px);
}

#detail-dialog[open] {
  animation: dialog-in 180ms ease-out;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 85px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ui-border);
}

.dialog-heading {
  min-width: 0;
}

.dialog-heading .eyebrow {
  font-size: 8px;
}

.dialog-heading h2 {
  font-size: 18px;
  font-weight: 550;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-navigation {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

#detail-position {
  min-width: 46px;
  text-align: center;
  font-size: 10px;
  color: var(--ui-secondary);
  font-variant-numeric: tabular-nums;
}

.navigation-divider {
  height: 19px;
  width: 1px;
  background: var(--ui-border);
  margin: 0 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  height: min(680px, calc(100dvh - 151px));
}

.preview-panel {
  display: flex;
  flex-direction: column;
  padding: 23px 32px;
  min-width: 0;
  min-height: 0;
  background: var(--ui-page);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--ui-secondary);
  letter-spacing: 1px;
}

.preview-topline > span:last-child {
  letter-spacing: 0;
}

.stage-area {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 24px 0;
}

.stage {
  position: relative;
  overflow: hidden;
  background: var(--logo-light, #fff);
  box-shadow: 0 5px 25px #00000008;
  outline: 1px solid #8882;
  border-radius: 2px;
  flex-shrink: 0;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ui-border);
  padding-top: 12px;
  font-size: 9px;
  color: var(--ui-secondary);
}

.preview-version::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ui-success);
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}

.canvas-size {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
}

.playback {
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface);
}

.playback .icon-button {
  width: 30px;
  height: 28px;
  padding: 6px;
}

.playback svg {
  width: 15px;
  height: 15px;
}

.preview-hint {
  text-align: center;
  font-size: 8px;
  color: var(--ui-secondary);
  margin-top: 16px;
}

.preview-hint span {
  padding: 0 8px;
}

.inspector {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ui-border);
}

.inspector-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  scrollbar-width: thin;
}

.inspector-scroll > .section-label {
  margin-bottom: 8px;
}

.inspector-scroll > .part-note {
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ui-secondary);
  margin-bottom: 13px;
}

.field input:not([type="range"]), .field select, .field textarea {
  width: 100%;
  padding: 9px 10px;
  min-height: 37px;
  border: 1px solid var(--ui-control-border);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text);
  font-size: 12px;
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

.field select {
  cursor: pointer;
}

.inspector-divider {
  height: 1px;
  background: var(--ui-border);
  margin: 20px 0;
}

.paired-fields {
  display: flex;
  gap: 8px;
  align-items: center;
}

.paired-fields .field {
  flex: 1;
  min-width: 0;
}

.paired-fields > span {
  color: var(--ui-secondary);
  padding-bottom: 12px;
}

.range-field > span {
  display: flex;
  justify-content: space-between;
}

.range-field input {
  width: 100%;
  margin: 8px 0 6px;
  accent-color: var(--ui-text);
  cursor: pointer;
}

.proportions-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ui-secondary);
  font-size: 10px;
  margin-bottom: 6px;
}

.proportions-heading .icon-button {
  width: 28px;
  height: 28px;
  padding: 6px;
}

.proportions-heading svg {
  width: 14px;
  height: 14px;
}

#lock-proportions[aria-pressed="true"] {
  background: var(--ui-subtle);
  color: var(--ui-text);
}

.save-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--ui-secondary);
}

.detail-parts-section > .part-note {
  margin-bottom: 14px;
}

.detail-parts-section .part-field {
  padding: 9px 10px;
}

.background-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 8px;
  cursor: pointer;
}

.background-option strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}

.background-option span > span {
  display: block;
  font-size: 8px;
  color: var(--ui-secondary);
  margin-top: 3px;
}

.background-option input {
  appearance: none;
  width: 30px;
  height: 18px;
  background: var(--ui-control-border);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
  transition: background var(--motion);
}

.background-option input::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
  transition: transform var(--motion);
}

.background-option input:checked {
  background: var(--ui-success);
}

.background-option input:checked::before {
  transform: translateX(12px);
}

.detail-options, .detail-contrast {
  border-top: 1px solid var(--ui-border);
  margin-top: 16px;
}

.detail-options summary, .detail-contrast summary {
  padding: 14px 0;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-options summary::after, .detail-contrast summary::after {
  content: "+";
  color: var(--ui-secondary);
  font-size: 14px;
}

.detail-options[open] summary::after, .detail-contrast[open] summary::after {
  content: "−";
}

.detail-contrast > .guide-note {
  margin-top: 12px;
}

.inspector-export {
  border-top: 1px solid var(--ui-border);
  padding: 16px 22px 20px;
  background: var(--ui-surface);
}

.asset-info {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ui-secondary);
  margin-bottom: 10px;
}

.inspector-export .button {
  width: 100%;
}

.palette-colors {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}

.palette-colors > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--ui-secondary);
}

.palette-colors i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #8884;
}

.viewer-fields h3 {
  font-size: 16px;
  font-weight: 550;
}

.viewer-fields p {
  margin: 8px 0 18px;
  font-size: 11px;
  color: var(--ui-secondary);
}

.viewer-fields dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 11px;
}

.viewer-fields dt {
  color: var(--ui-secondary);
}

.motion-static *, .motion-static *::before, .motion-static *::after {
  animation: none !important;
}

.artwork > svg {
  stroke: none;
  fill: initial;
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation-play-state: paused !important;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ui-button);
  color: var(--ui-on-button);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 24px #0002;
  font-size: 12px;
  max-width: calc(100vw - 32px);
  width: max-content;
}

.noscript-message {
  margin: 32px;
  text-align: center;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1800px) {
  :root {
    --sidebar-width: 232px;
    --panel-width: 300px;
  }
  .main-content {
    padding: 42px 48px 0;
  }
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-copy h2 {
    font-size: 38px;
  }
  .hero-art {
    width: 38%;
  }
}

@media (max-width: 1250px) {
  :root {
    --sidebar-width: 196px;
    --panel-width: 270px;
  }
  .main-content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-hero {
    padding: 24px;
    min-height: 218px;
  }
  .hero-copy h2 {
    font-size: 27px;
  }
  .hero-art {
    width: 41%;
  }
  .hero-artboard {
    height: 144px;
    top: 24px;
    left: 0;
  }
  .hero-artboard > img {
    height: 98px;
  }
  .hero-symbol {
    width: 64px;
    height: 64px;
    right: -14px;
    bottom: -4px;
  }
  .gallery-toolbar {
    flex-wrap: wrap;
  }
  .gallery-tools {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }
  .search-box {
    width: 150px;
  }
}

@media (max-width: 1050px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .brand-inspector {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: 300px;
    height: 100dvh;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--motion);
    box-shadow: -10px 0 40px #00000012;
  }
  body[data-panel="colors"] .brand-inspector {
    transform: translateX(0);
    visibility: visible;
  }
  .inspector-toggle, .inspector-close {
    display: inline-flex;
  }
  .panel-heading {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .scope-badge {
    margin-left: auto;
  }
  .panel-content {
    padding: 22px;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-art {
    width: 43%;
  }
  .hero-artboard {
    height: 163px;
    top: 10px;
  }
  .hero-artboard > img {
    height: 110px;
  }
  .hero-symbol {
    width: 78px;
    height: 78px;
  }
  #detail-dialog {
    width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
  }
  .detail-layout {
    height: min(680px, calc(100dvh - 125px));
  }
}

@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-location > span:first-of-type, .breadcrumb-divider {
    display: none;
  }
  .hero-copy h2 {
    font-size: 25px;
  }
  .hero-art {
    width: 35%;
  }
  .hero-artboard {
    width: 155%;
    left: -8px;
  }
  .hero-symbol {
    right: -18px;
  }
  .hero-edition {
    font-size: 7px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .preview-panel {
    padding: 20px;
  }
  .inspector-scroll {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }
  body {
    font-size: 16px;
  }
  .studio-shell {
    margin-left: 0;
  }
  .sidebar {
    width: 248px;
    z-index: 40;
    padding: 0 18px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--motion);
  }
  body[data-panel="navigation"] .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar-close, .mobile-menu {
    display: inline-flex;
  }
  .sidebar .filters button, .sidebar .nav-button {
    min-height: 44px;
    font-size: 13px;
  }
  .sidebar-bottom {
    overflow-y: auto;
  }
  .studio-note {
    padding-bottom: 18px;
  }
  .app-header {
    padding: 0 12px 0 8px;
    gap: 8px;
  }
  .header-location {
    gap: 7px;
    font-size: 12px;
  }
  .header-actions {
    gap: 0;
  }
  .header-actions > #theme-toggle {
    display: none;
  }
  .header-actions > .button {
    margin-left: 5px;
    min-height: 38px;
    padding: 10px 12px;
    font-size: 11px;
  }
  .header-actions .icon-button, .mobile-menu {
    width: 38px;
    height: 42px;
  }
  .main-content {
    padding: 26px 20px 0;
  }
  .catalog-intro {
    margin-bottom: 23px;
  }
  .catalog-intro h1 {
    font-size: 28px;
  }
  .collection-count {
    font-size: 8px;
  }
  .collection-count strong {
    font-size: 25px;
  }
  .intro-description {
    font-size: 11px;
  }
  .catalog-intro .eyebrow {
    font-size: 8px;
  }
  .collection-hero {
    min-height: 218px;
    padding: 24px;
  }
  .hero-copy h2 {
    font-size: 26px;
  }
  .hero-art {
    position: absolute;
    width: 66px;
    height: 66px;
    right: 22px;
    bottom: 24px;
  }
  .hero-artboard {
    display: none;
  }
  .hero-symbol {
    width: 66px;
    height: 66px;
    bottom: 0;
    right: 0;
  }
  .hero-edition {
    font-size: 7px;
  }
  .hero-link {
    font-size: 11px;
    min-height: 30px;
    margin-top: 15px;
  }
  .hero-cross {
    display: none;
  }
  .gallery-toolbar {
    padding: 24px 0 16px;
    gap: 12px;
  }
  .collection-heading {
    width: 100%;
  }
  .collection-heading h2 {
    font-size: 14px;
  }
  .gallery-tools {
    width: 100%;
  }
  .search-box {
    width: auto;
    flex: 1;
    height: 44px;
    padding: 0 12px;
  }
  .search-box input {
    font-size: 16px;
  }
  .search-box svg {
    width: 17px;
    height: 17px;
  }
  .search-box kbd {
    display: none;
  }
  .view-switch .icon-button {
    width: 40px;
    height: 40px;
    padding: 11px;
  }
  .gallery {
    gap: 16px 12px;
  }
  .card-preview {
    aspect-ratio: 1.1;
  }
  .card-content {
    padding: 12px 10px;
  }
  .card-title {
    font-size: 12px;
  }
  .card-description {
    font-size: 10px;
  }
  .card-meta {
    font-size: 9px;
    gap: 5px;
  }
  .section-caption {
    font-size: 7px;
  }
  .card-number {
    top: 9px;
    left: 9px;
  }
  .card-badge {
    top: 8px;
    right: 8px;
    font-size: 6px;
  }
  .page-footer {
    font-size: 8px;
    justify-content: center;
    text-align: center;
  }
  .brand-inspector {
    width: min(340px, calc(100vw - 28px));
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-description {
    font-size: 12px;
  }
  .small-heading h3 {
    font-size: 12px;
  }
  .part-field {
    min-height: 48px;
  }
  .part-name {
    font-size: 12px;
  }
  .part-inputs input[type="text"] {
    font-size: 16px;
    width: 88px;
  }
  .part-inputs input[type="color"] {
    width: 30px;
    height: 30px;
  }
  .palette-option {
    height: 44px;
  }
  .color-guide > summary {
    min-height: 48px;
    font-size: 12px;
  }
  .part-note, .guide-note {
    font-size: 11px;
  }
  .text-button {
    min-height: 44px;
    font-size: 12px;
  }
  .tonal-swatch {
    min-height: 44px;
  }
  .harmony-swatches > button {
    min-height: 44px;
  }
  #detail-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
    overflow-y: auto;
  }
  .dialog-header {
    height: 76px;
    padding: 14px 12px 14px 18px;
    position: sticky;
    top: 0;
    background: var(--ui-surface);
    z-index: 3;
  }
  .dialog-heading h2 {
    font-size: 14px;
    max-width: 145px;
  }
  .dialog-heading .eyebrow {
    font-size: 7px;
    letter-spacing: .7px;
  }
  .dialog-navigation {
    gap: 0;
  }
  .dialog-navigation .icon-button {
    width: 36px;
    height: 44px;
  }
  #detail-position {
    min-width: 32px;
    font-size: 9px;
  }
  .navigation-divider {
    margin: 0 3px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .preview-panel {
    min-height: 335px;
    padding: 20px;
  }
  .stage-area {
    flex: none;
    min-height: 240px;
    padding: 18px 0;
  }
  .stage-toolbar {
    min-height: 50px;
  }
  .preview-hint {
    display: none;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--ui-border);
  }
  .inspector-scroll {
    overflow: visible;
    padding: 24px;
  }
  .inspector-export {
    position: sticky;
    bottom: 0;
    padding: 14px 24px 18px;
    z-index: 2;
  }
  .inspector-export .button {
    min-height: 44px;
  }
  .field {
    font-size: 12px;
  }
  .field input:not([type="range"]), .field select, .field textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .range-field input {
    min-height: 32px;
  }
  .background-option {
    min-height: 44px;
  }
  .background-option strong {
    font-size: 12px;
  }
  .background-option span > span {
    font-size: 10px;
  }
  .detail-options summary, .detail-contrast summary {
    min-height: 44px;
    font-size: 12px;
  }
  .proportions-heading {
    font-size: 12px;
  }
  .proportions-heading .icon-button {
    width: 44px;
    height: 44px;
  }
  .gallery[data-view="list"] .card-preview {
    width: 110px;
    height: 92px;
  }
  .gallery[data-view="list"] .card-content {
    padding: 12px;
  }
  .gallery[data-view="list"] .card-title {
    font-size: 12px;
  }
  .gallery[data-view="list"] .card-description {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-location strong {
    font-size: 11px;
  }
  .header-actions > .button {
    padding: 10px;
  }
  .header-actions > .button svg {
    display: none;
  }
  .hero-copy h2 {
    font-size: 24px;
  }
  .collection-hero {
    padding: 22px;
  }
  .card-meta > span:first-child {
    display: none;
  }
  .dialog-heading h2 {
    max-width: 124px;
  }
}

@media (max-height: 680px) and (min-width: 641px) {
  .studio-note {
    display: none;
  }
  .sidebar-bottom {
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #detail-dialog[open] {
    animation: none;
  }
}
