:root {
  --blue: #0f766e;
  --blue-hover: #0b5f59;
  --coral: #e9694b;
  --sun: #f2b84b;
  --ink: #18312f;
  --muted: #637370;
  --line: #d9e2df;
  --line-light: #edf2f0;
  --surface: #ffffff;
  --canvas: #edf3f1;
  --sidebar-width: 380px;
  --radius: 6px;
  --paper-scale: .76;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 14px;
}

button,
textarea,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .28);
  outline-offset: 2px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: #0f766e;
  background: #e8f4f1;
}

.brand-mark svg {
  display: block;
  width: 25px;
  height: 25px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  color: #73817e;
  font-family: "DM Mono", monospace;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .08em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
}

.topbar-actions,
.sidebar-footer,
.canvas-toolbar,
.field-row,
.paper-fields {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
}

.save-state {
  margin-right: 8px;
  color: #8f959e;
  font-size: 12px;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 5px;
  background: transparent;
}

.icon-button:hover {
  background: #f2f3f5;
}

.icon-button svg,
.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.primary-button,
.secondary-button {
  height: 34px;
  gap: 7px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 500;
}

.primary-button {
  color: #fff;
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-hover);
}

.primary-button:active,
.secondary-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: #c7c9cc;
  background: #f7f8fa;
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: calc(100vh - 56px - env(safe-area-inset-top));
  height: calc(100dvh - 56px - env(safe-area-inset-top));
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.control-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-light);
}

.intro-section {
  padding-top: 24px;
}

.game-section {
  padding-top: 24px;
}

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

.game-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 76px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.game-option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.game-option:hover:not(:disabled) {
  border-color: #adc6ff;
  background: #f8faff;
}

.game-option.active {
  border-color: var(--blue);
  background: #f5f8ff;
}

.game-option:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.game-option-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  color: var(--muted);
  background: #f2f3f5;
}

.game-option.active .game-option-icon {
  color: var(--blue);
  background: #e8f0ff;
}

.game-option-icon svg {
  width: 16px;
  height: 16px;
}

.game-option strong,
.game-option small {
  display: block;
}

.game-option-copy {
  min-width: 0;
}

.game-option-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.game-option strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.game-option em {
  flex: none;
  padding: 1px 3px;
  border-radius: 3px;
  color: #245BDB;
  background: #EAF0FF;
  font-size: 9px;
  font-style: normal;
  line-height: 16px;
}

.game-option small {
  overflow: hidden;
  margin-top: 4px;
  color: #8f959e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 12px;
  height: 12px;
  color: var(--blue);
  stroke-width: 2.5;
}

.game-option.active .game-check {
  display: block;
}

.game-profile {
  margin-top: 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line-light);
}

.game-profile span {
  display: inline-block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.game-profile p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.control-section h2 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.prompt-wrap {
  position: relative;
}

textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 11px 42px 11px 12px;
  border: 1px solid #c9cdd4;
  border-radius: 7px;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.6;
  transition: border-color .16s, box-shadow .16s;
}

textarea::placeholder {
  color: #a0a5ad;
}

textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.prompt-action {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.prompt-action svg {
  width: 15px;
}

.prompt-examples {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.prompt-examples button {
  min-width: 0;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.prompt-examples button:hover {
  color: var(--blue);
  border-color: #adc6ff;
  background: #f5f8ff;
}

.instruction-result {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d6e3ff;
  border-radius: 6px;
  background: #f7f9ff;
}

.instruction-result.unmatched {
  border-color: #f3d6a3;
  background: #fffaf0;
}

.instruction-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #41464f;
  font-size: 11px;
}

.instruction-result.unmatched .status-dot {
  background: #d46b08;
  box-shadow: 0 0 0 3px rgba(212, 107, 8, .12);
}

.instruction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.instruction-tags span {
  padding: 3px 7px;
  border-radius: 3px;
  color: #2456a6;
  background: #e8f0ff;
  font-size: 10px;
  line-height: 1.4;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.optional {
  color: #a0a5ad;
  font-size: 11px;
}

.upload-zone {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #c9cdd4;
  border-radius: 6px;
  color: var(--ink);
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
}

.upload-zone.compact {
  padding: 10px 12px;
}

.upload-zone:hover {
  border-color: var(--blue);
  background: #f5f8ff;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 5px;
  color: var(--blue);
  background: #e8f0ff;
}

.upload-icon svg {
  width: 18px;
}

.upload-zone strong,
.upload-zone small,
.image-preview strong,
.image-preview small,
.toggle-row strong,
.toggle-row small {
  display: block;
}

.upload-zone strong,
.image-preview strong,
.toggle-row strong {
  font-size: 13px;
  font-weight: 500;
}

.upload-zone small,
.image-preview small,
.toggle-row small {
  margin-top: 3px;
  color: #8f959e;
  font-size: 11px;
}

.image-preview {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #adc6ff;
  border-radius: 6px;
  background: #f5f8ff;
}

.image-preview img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #fff;
}

.image-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-section {
  border-top: 1px solid var(--line);
}

.background-field {
  margin-top: 16px;
}

.pattern-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pattern-picker button {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.5;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #f7f8fa;
  cursor: pointer;
}

.pattern-picker button.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.pattern-picker i {
  width: 28px;
  height: 22px;
  border-radius: 4px;
}

.pattern-picker [data-pattern="grid"] i {
  background-image: linear-gradient(#aab0b8 1px, transparent 1px), linear-gradient(90deg, #aab0b8 1px, transparent 1px);
  background-size: 8px 8px;
}

.pattern-picker [data-pattern="dots"] i {
  background-image: radial-gradient(#7c8da8 1.6px, transparent 1.8px);
  background-size: 8px 8px;
}

.pattern-picker [data-pattern="waves"] i {
  background:
    radial-gradient(12px 8px at 8px 0, transparent 7px, #8f959e 7.5px, #8f959e 8.5px, transparent 9px) 0 10px / 18px 18px;
}

.pattern-picker [data-pattern="plain"] i {
  background: #dfe3eb;
}

.wide-button {
  width: 100%;
  margin-top: 8px;
}

.is-hidden {
  display: none !important;
}

.settings {
  flex: 1;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border-radius: 6px;
  background: #f2f3f5;
}

.segmented button {
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.segmented button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 35, 41, .12);
  font-weight: 500;
}

.field-row {
  align-items: flex-start;
  gap: 10px;
}

.field-row .field {
  min-width: 0;
  flex: 1;
}

select,
.color-input-wrap {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

select {
  padding: 0 30px 0 10px;
  color: var(--ink);
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
}

input[type="color"] {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}

#colorText {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.toggle-row > i {
  position: relative;
  width: 34px;
  height: 20px;
  flex: none;
  border-radius: 10px;
  background: #bbbfc4;
  transition: background .18s;
}

.toggle-row > i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  content: "";
  transition: transform .18s;
}

.toggle-row input:checked + i {
  background: var(--blue);
}

.toggle-row input:checked + i::after {
  transform: translateX(14px);
}

.toggle-row input:focus-visible + i {
  outline: 2px solid rgba(15, 118, 110, .28);
  outline-offset: 2px;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.sidebar-footer button {
  min-width: 0;
  flex: 1;
}

.canvas-area {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: var(--canvas);
  background-image: linear-gradient(rgba(81, 122, 115, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 122, 115, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.canvas-toolbar {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 16px;
  right: 16px;
  justify-content: space-between;
  height: 38px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(208, 211, 217, .9);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(31, 35, 41, .06);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.canvas-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c724;
  box-shadow: 0 0 0 3px rgba(52, 199, 36, .12);
}

.zoom-control {
  gap: 2px !important;
}

.zoom-control .icon-button {
  width: 28px;
  height: 28px;
}

#zoomValue {
  width: 42px;
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.paper-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  overflow-anchor: none;
  padding: 72px 40px 60px;
}

.paper {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 794px;
  height: 1123px;
  margin: 0 auto;
  padding: 54px 58px 42px;
  transform: scale(var(--paper-scale));
  transform-origin: top center;
  overflow-anchor: none;
  color: #111820;
  background: #fff;
  box-shadow: 0 16px 50px rgba(31, 35, 41, .16), 0 2px 7px rgba(31, 35, 41, .08);
  transition: width .2s, height .2s;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  pointer-events: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.paper > * {
  position: relative;
  z-index: 1;
}

.paper.pattern-grid::before {
  background-color: #fff;
  background-image: linear-gradient(rgba(15, 118, 110, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, .055) 1px, transparent 1px);
  background-size: 22px 22px;
}

.paper.pattern-dots::before {
  background-color: #fff;
  background-image: radial-gradient(rgba(15, 118, 110, .11) 1.5px, transparent 1.9px);
  background-size: 20px 20px;
}

.paper.pattern-waves::before {
  background-color: #fff;
  background-image:
    radial-gradient(30px 16px at 16px 0, transparent 15px, rgba(15, 118, 110, .08) 15.8px, rgba(15, 118, 110, .08) 17px, transparent 17.8px),
    radial-gradient(30px 16px at 16px 20px, transparent 15px, rgba(255, 180, 0, .1) 15.8px, rgba(255, 180, 0, .1) 17px, transparent 17.8px);
  background-size: 40px 42px;
}

.paper.pattern-plain::before {
  background: #fff;
}

.paper.has-custom-background::before {
  background-color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .58), rgba(255, 255, 255, .58)), var(--paper-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .9;
}

.paper.landscape {
  width: 1123px;
  height: 794px;
  padding: 42px 58px 34px;
}

.paper-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 2px solid currentColor;
}

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

.paper-title-block > div {
  min-width: 0;
}

.paper-logo {
  width: 46px;
  height: 46px;
  flex: none;
  object-fit: contain;
}

.paper-header p {
  margin-bottom: 7px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.paper-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.paper-fields {
  gap: 20px;
  font-size: 11px;
}

.maze-sheet {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  padding: 34px 4px 26px;
}

.maze-sheet svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.difference-placeholder {
  display: grid;
  width: 100%;
  min-height: 420px;
  place-items: center;
  border: 2px dashed #d9dce1;
  color: #8f959e;
  text-align: center;
}

.difference-placeholder svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
}

.difference-placeholder strong,
.difference-placeholder span {
  display: block;
}

.difference-placeholder strong {
  margin-bottom: 5px;
  color: #41464f;
  font-size: 16px;
}

.difference-placeholder span {
  font-size: 12px;
}

.paper-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #d9dce1;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  padding: 9px 14px;
  border-radius: 5px;
  color: #fff;
  background: #1f2329;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .workspace {
    display: block;
    height: auto;
  }

  .sidebar {
    overflow: visible;
    border-right: 0;
  }

  .sidebar-footer {
    position: static;
  }

  .canvas-area {
    height: 760px;
  }

  .save-state {
    display: none;
  }

  .paper-stage {
    padding-inline: 16px;
  }

  .paper {
    margin-right: 0;
    margin-left: max(0px, calc((100% - var(--paper-scaled-width)) / 2));
    transform-origin: top left;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .topbar-actions > .icon-button {
    display: none;
  }

  .topbar .primary-button {
    min-height: 44px;
  }

  .control-section {
    padding-inline: 16px;
  }

  .game-option {
    min-height: 76px;
    padding: 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  .game-option-icon {
    width: 28px;
    height: 28px;
  }

  .game-option-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .segmented button,
  select,
  .sidebar-footer button {
    min-height: 44px;
  }

  .sidebar-footer {
    position: sticky;
    z-index: 8;
    bottom: 0;
    padding: 12px 16px max(18px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -1px 0 var(--line-light), 0 -10px 24px rgba(31, 35, 41, .06);
  }

  .prompt-examples button {
    flex: 1;
  }

  .canvas-toolbar {
    left: 8px;
    right: 8px;
  }

  #mazeMeta {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (pointer: coarse) {
  .icon-button {
    width: 44px;
    height: 44px;
  }

  .game-option,
  .toggle-row {
    min-height: 76px;
  }

  .primary-button,
  .secondary-button,
  .segmented button,
  select {
    min-height: 44px;
  }

  .game-option:hover:not(:disabled),
  .primary-button:hover,
  .secondary-button:hover,
  .icon-button:hover {
    transform: none;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body {
    overflow: visible;
    background: #fff;
  }

  .topbar,
  .sidebar,
  .canvas-toolbar {
    display: none !important;
  }

  .workspace,
  .canvas-area,
  .paper-stage {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 0;
    background: #fff;
  }

  .paper {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0;
    padding: 14mm 15mm 11mm;
    transform: none !important;
    box-shadow: none;
  }

  .paper.landscape {
    width: 297mm !important;
    height: 210mm !important;
    padding: 11mm 15mm 9mm;
  }

  body:has(.paper.landscape) {
    page: landscape;
  }

  @page {
    size: auto;
  }
}

/* Shared navigation */
.space-nav {
  position: absolute;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(360px, 40vw);
  padding: 3px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f4f5f7;
  transform: translateX(-50%);
}

.space-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.space-nav button:hover {
  color: #272b31;
}

.space-nav button.active {
  color: #0b5f59;
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 35, 41, .12);
  font-weight: 600;
}

.space-nav svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke-width: 1.8;
}

/* Reading room and screening room */
.culture-space {
  height: calc(100vh - 56px - env(safe-area-inset-top));
  height: calc(100dvh - 56px - env(safe-area-inset-top));
  overflow: hidden;
  background: #f3f4f6;
}

.culture-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.collection-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 44px clamp(28px, 6vw, 92px);
  overflow: hidden;
  color: #fff;
  background-color: #22352f;
  background-position: center;
  background-size: cover;
}

.collection-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(18, 24, 23, .55);
  content: "";
}

.collection-hero.reading {
  background-image: url("./assets/images/reading-growth.webp");
}

.collection-hero.cinema {
  background-image: url("./assets/images/cinema-growth.webp");
}

.collection-hero.cinema::after {
  background: rgba(20, 17, 18, .62);
}

.collection-hero-content {
  min-width: 0;
  width: min(720px, 72%);
  max-width: 100%;
}

.collection-kicker,
.catalog-overline {
  margin: 0 0 10px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
}

.collection-kicker {
  color: rgba(255, 255, 255, .76);
}

.collection-hero h1 {
  width: 100%;
  max-width: 680px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}

.collection-hero-content > p:not(.collection-kicker) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.75;
}

.collection-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.discovery-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  color: #17201e;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  cursor: pointer;
  font-weight: 600;
}

.discovery-button:hover {
  background: #f4f5f5;
}

.discovery-button svg {
  width: 16px;
  height: 16px;
}

.collection-edition {
  color: rgba(255, 255, 255, .64);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.hero-index {
  position: absolute;
  right: clamp(28px, 6vw, 92px);
  bottom: 40px;
  display: grid;
  justify-items: end;
  font-family: "DM Mono", monospace;
}

.hero-index span {
  font-size: 64px;
  font-weight: 500;
  line-height: .85;
}

.hero-index small {
  margin-top: 10px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  letter-spacing: .14em;
}

.curation-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 560px;
  background: #fff;
}

.curation-sidebar {
  padding: 30px 26px 48px;
  border-right: 1px solid #e7e9ed;
  background: #f8f9fa;
}

.curator-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e6ea;
}

.curator-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #1f6b52;
  background: #e6f2ed;
}

.cinema-mode .curator-mark {
  color: #9d3138;
  background: #f6e8e9;
}

.curator-mark svg {
  width: 17px;
  height: 17px;
}

.curator-note strong {
  display: block;
  font-size: 12px;
}

.curator-note p {
  margin: 5px 0 0;
  color: #737982;
  font-size: 11px;
  line-height: 1.65;
}

.source-note {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3e6ea;
}

.source-note strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.source-note a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: #61706c;
  font-size: 10px;
  line-height: 1.5;
  text-decoration: none;
}

.source-note a:hover {
  color: var(--blue);
}

.source-note svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}

.source-attribution {
  margin-top: 4px;
  color: #8b9199;
  font-size: 8px;
  line-height: 1.55;
}

.filter-block {
  margin-top: 24px;
}

.filter-label {
  display: block;
  margin-bottom: 10px;
  color: #7a8088;
  font-size: 11px;
  font-weight: 600;
}

.filter-options {
  display: grid;
  gap: 6px;
}

.filter-options.wrap {
  display: flex;
  flex-wrap: wrap;
}

.filter-options button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #555b64;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

.filter-options:not(.wrap) button {
  justify-content: space-between;
}

.filter-options button:hover {
  color: #1f6b52;
  background: #edf4f1;
}

.filter-options button.active {
  color: #175b46;
  border-color: #cfe5dc;
  background: #e8f3ef;
  font-weight: 600;
}

.cinema-mode .filter-options button:hover {
  color: #8f2c33;
  background: #f7eded;
}

.cinema-mode .filter-options button.active {
  color: #8f2c33;
  border-color: #ebcdd0;
  background: #f6e8e9;
}

.filter-options button b {
  color: #9aa0a8;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 400;
}

.clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  color: #8a9098;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.clear-filter:hover {
  color: #30343b;
}

.clear-filter svg {
  width: 13px;
  height: 13px;
}

.catalog-panel {
  min-width: 0;
  padding: 30px clamp(24px, 4vw, 56px) 64px;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-overline {
  margin-bottom: 5px;
  color: #1f6b52;
}

.cinema-mode .catalog-overline {
  color: #9d3138;
}

.catalog-toolbar h2 {
  display: inline;
  margin: 0;
  font-size: 21px;
}

#resultCount {
  margin-left: 10px;
  color: #979ca4;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.catalog-tools {
  display: flex;
  gap: 8px;
}

.catalog-search {
  display: flex;
  align-items: center;
  width: min(280px, 30vw);
  height: 36px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #dfe2e6;
  border-radius: 6px;
  background: #fff;
}

.catalog-search:focus-within {
  border-color: #8ab5a5;
  box-shadow: 0 0 0 3px rgba(31, 107, 82, .09);
}

.cinema-mode .catalog-search:focus-within {
  border-color: #c7878c;
  box-shadow: 0 0 0 3px rgba(157, 49, 56, .08);
}

.catalog-search svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #8b9199;
}

.catalog-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #2f343b;
  background: transparent;
  font-size: 12px;
}

.saved-filter {
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dfe2e6;
  border-radius: 6px;
  color: #555b64;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}

.saved-filter:hover,
.saved-filter.active {
  color: #175b46;
  border-color: #b8d7cb;
  background: #eef6f3;
}

.cinema-mode .saved-filter:hover,
.cinema-mode .saved-filter.active {
  color: #8f2c33;
  border-color: #dfb5b9;
  background: #f9eeee;
}

.saved-filter svg {
  width: 14px;
  height: 14px;
}

.saved-filter b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  color: #fff;
  background: #22262d;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.active-filter-line {
  min-height: 22px;
  margin-top: 16px;
  color: #858b93;
  font-size: 11px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.culture-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.culture-card:hover {
  border-color: #b9c0c8;
  box-shadow: 0 12px 30px rgba(33, 39, 47, .11);
  transform: translateY(-3px);
}

.culture-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  padding: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--cover-color, #345e52);
}

.culture-cover-image,
.culture-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.culture-cover-image {
  z-index: 0;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform .35s ease;
}

.culture-cover.has-matched-cover {
  background: color-mix(in srgb, var(--cover-color, #345e52) 18%, #f0f1ef);
}

.cinema-card .culture-cover.has-matched-cover {
  background: color-mix(in srgb, var(--cover-color, #27272a) 24%, #171719);
}

.culture-cover-image.is-matched {
  padding: 8px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(17, 22, 25, .24));
  transform: none;
}

.culture-card:hover .culture-cover-image {
  transform: scale(1.12);
}

.culture-card:hover .culture-cover-image.is-matched {
  transform: translateY(-2px);
}

.culture-cover-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 23, 21, .04) 25%, rgba(10, 23, 21, .72) 100%);
}

.culture-cover::before,
.culture-cover::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.culture-cover::before {
  top: 14px;
  right: 14px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
}

.culture-cover::after {
  top: 0;
  bottom: 0;
  left: 28px;
  width: 1px;
  background: rgba(255, 255, 255, .22);
}

.cinema-card .culture-cover {
  aspect-ratio: 16 / 10;
  align-items: center;
  background: #27272a;
}

.cinema-card .culture-cover::before {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  opacity: .25;
  background-image: repeating-linear-gradient(90deg, transparent 0 30px, #fff 30px 31px);
}

.cinema-card .culture-cover::after {
  top: auto;
  right: 16px;
  bottom: 14px;
  left: auto;
  width: 48px;
  height: 6px;
  background: var(--cover-color, #b24850);
}

.cover-code {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .74);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
}

.cover-provider {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: none;
  padding: 4px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(15, 18, 21, .62);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.cover-provider.is-visible {
  display: block;
}

.cinema-card .cover-code {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.save-card {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 5px;
  color: #fff;
  background: rgba(15, 18, 21, .35);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.save-card:hover,
.save-card.saved {
  color: #1f2b27;
  background: #fff;
}

.cinema-card .save-card:hover,
.cinema-card .save-card.saved {
  color: #8f2c33;
}

.save-card svg {
  width: 15px;
  height: 15px;
}

.save-card.saved svg {
  fill: currentColor;
}

.culture-card-body {
  padding: 15px 16px 17px;
}

.culture-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8a9098;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.culture-card h3 {
  margin: 10px 0 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.4;
}

.culture-credit {
  min-height: 18px;
  margin: 0;
  overflow: hidden;
  color: #737982;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.culture-reason {
  display: -webkit-box;
  min-height: 58px;
  margin: 12px 0 0;
  overflow: hidden;
  color: #535962;
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.culture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.culture-tags span {
  padding: 3px 6px;
  border-radius: 3px;
  color: #42715f;
  background: #edf4f1;
  font-size: 9px;
}

.cinema-card .culture-tags span {
  color: #8e4a4f;
  background: #f7eeee;
}

.catalog-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  color: #9298a0;
  text-align: center;
}

.catalog-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}

.catalog-empty strong,
.catalog-empty span {
  display: block;
}

.catalog-empty strong {
  color: #4e545c;
  font-size: 14px;
}

.catalog-empty span {
  margin-top: 5px;
  font-size: 11px;
}

.detail-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 8px;
  color: #262b31;
  background: #fff;
  box-shadow: 0 28px 90px rgba(12, 16, 22, .28);
}

.detail-dialog::backdrop {
  background: rgba(17, 20, 24, .58);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 14px;
  float: right;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 14px 14px -48px 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 5px;
  color: #fff;
  background: rgba(17, 20, 24, .4);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.dialog-close svg {
  width: 17px;
  height: 17px;
}

.detail-head {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  padding: 54px 56px 32px;
  overflow: hidden;
  color: #fff;
  background: var(--detail-color, #345e52);
}

.detail-head.cinema {
  background: #262326;
}

.detail-visual,
.detail-visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-visual {
  z-index: -2;
  object-fit: cover;
}

.detail-visual-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 31, 28, .94) 0%, rgba(13, 31, 28, .74) 58%, rgba(13, 31, 28, .3) 100%);
}

.detail-head.cinema .detail-visual-shade {
  background: linear-gradient(90deg, rgba(30, 20, 22, .94) 0%, rgba(30, 20, 22, .72) 58%, rgba(30, 20, 22, .28) 100%);
}

.detail-head .detail-number {
  display: block;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .6);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
}

.detail-head h2 {
  max-width: 570px;
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.detail-head p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.detail-body {
  padding: 34px 56px 44px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e7e9ec;
}

.detail-facts span,
.detail-section span {
  display: block;
  color: #969ca4;
  font-size: 10px;
}

.detail-facts strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h3 {
  margin: 7px 0 0;
  font-size: 15px;
}

.detail-section p {
  margin: 10px 0 0;
  color: #555b64;
  font-size: 12px;
  line-height: 1.8;
}

.detail-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.detail-questions p {
  margin: 0;
  padding: 13px;
  border-left: 2px solid #8ab5a5;
  background: #f6f8f7;
}

.detail-source {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid #dce8e4;
  border-radius: 6px;
  background: #f6faf8;
}

.detail-source > svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.detail-source span {
  display: block;
  margin-bottom: 4px;
  color: #8a9692;
  font-size: 9px;
}

.detail-source a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #315e57;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.detail-source a:hover {
  text-decoration: underline;
}

.detail-source a svg {
  width: 12px;
  height: 12px;
}

.detail-cover-source {
  margin-top: 10px;
}

.detail-cover-source a span {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.detail-head.cinema + .detail-body .detail-questions p {
  border-left-color: #c7878c;
  background: #faf6f6;
}

.detail-disclaimer {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eceef0;
  color: #9a9fa6;
  font-size: 10px;
}

.discovery-flash {
  animation: discoveryFlash .58s ease;
}

@keyframes discoveryFlash {
  0% { transform: translateY(0); }
  45% { transform: translateY(-8px); box-shadow: 0 18px 45px rgba(33, 39, 47, .2); }
  100% { transform: translateY(0); }
}

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

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-tools,
  .catalog-search {
    width: 100%;
  }

  .catalog-search {
    flex: 1;
  }
}

@media (max-width: 820px) {
  .brand-copy {
    display: none;
  }

  .space-nav {
    width: min(350px, calc(100vw - 150px));
  }

  .curation-layout {
    display: block;
  }

  .curation-sidebar {
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid #e7e9ed;
  }

  .curator-note {
    display: none;
  }

  .source-note {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .filter-block {
    margin-top: 0;
  }

  .filter-block + .filter-block {
    margin-top: 14px;
  }

  .filter-options:not(.wrap) {
    display: flex;
    flex-wrap: wrap;
  }

  .clear-filter {
    margin-top: 14px;
  }
}

@media (max-width: 620px) {
  .culture-space,
  .culture-scroll,
  .collection-hero,
  .curation-layout,
  .catalog-panel {
    max-width: 100vw;
  }

  .topbar {
    align-items: flex-start;
    height: calc(102px + env(safe-area-inset-top));
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .workspace,
  .culture-space {
    height: calc(100dvh - 102px - env(safe-area-inset-top));
  }

  .space-nav {
    top: calc(57px + env(safe-area-inset-top));
    width: calc(100% - 24px);
  }

  .space-nav button {
    height: 34px;
  }

  #wisdomActions .save-state,
  #wisdomActions .icon-button {
    display: none;
  }

  .collection-hero {
    min-height: 330px;
    padding: 34px 22px;
  }

  .collection-hero-content {
    width: 100%;
  }

  .collection-hero h1 {
    padding-right: 0;
    font-size: 34px;
  }

  .hero-index {
    display: none;
  }

  .catalog-panel {
    padding: 24px 16px 48px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

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

  .culture-card-body {
    padding: 12px;
  }

  .culture-reason {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .detail-head,
  .detail-body {
    padding-right: 24px;
    padding-left: 24px;
  }

  .detail-facts,
  .detail-questions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .space-nav button {
    gap: 4px;
    padding: 0 6px;
    font-size: 11px;
  }

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

  .culture-cover,
  .cinema-card .culture-cover {
    aspect-ratio: 16 / 8;
  }
}

@media print {
  .space-nav,
  .culture-space,
  .detail-dialog {
    display: none !important;
  }
}
