:root {
  --bg: #f5f5f5;
  --panel: rgba(255, 252, 245, 0.85);
  --panel-strong: #fffaf0;
  --stroke: rgba(33, 28, 20, 0.12);
  --text: #0a0a0a;
  --muted: #a0a0a0;
  --accent: #d95d39;
  --accent-soft: rgba(217, 93, 57, 0.14);
  --chip: #efe3d3;
  --shadow: 0 24px 80px rgba(52, 39, 24, 0.12);
  --card-size: 320px;
  --card-gap: 24px;
  --sidebar-width: 380px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  border-right: 1px solid var(--stroke);
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(22px);
}

.brand-block h1,
.panel-heading h2,
.panel-heading h3,
.post-title {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent);
}

.brand-copy,
.panel-heading p,
.canvas-help p,
.admin-post-meta {
  color: var(--muted);
}

.panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.controls-panel {
  display: grid;
  gap: 18px;
}

.search-field,
.post-form label {
  display: grid;
  gap: 8px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  border: 0;
  padding-right: 44px;
  height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 16px;
  padding-right: 44px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  border-radius: 24px;
  background: #f5f5f5;
  color: #787878;
}

.search-input-wrap input::placeholder {
  color: #787878;
}

.search-input-wrap input:hover {
  background: #e6e6e6;
  color: #0a0a0a;
}

.search-input-wrap input:hover::placeholder {
  color: #0a0a0a;
}

.search-input-wrap input:focus {
  border-color: transparent;
  background: #e6e6e6;
  color: #0a0a0a;
}

.search-hint {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #c8c8c8;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  pointer-events: none;
  white-space: nowrap;
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8c8c8;
  cursor: pointer;
}

.search-clear-btn:hover {
  color: #0a0a0a;
}

.search-clear-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.post-form span,
.filters-header span,
.canvas-help span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(33, 28, 20, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #dcdcdc;
  background: #fff;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.filters-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters-row {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: 320px;
  padding: 8px 24px 8px 8px;
  background: #ffffff;
  border-radius: 999px;
  z-index: 5;
  pointer-events: auto;
}

.results-badge {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  color: #787878;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.filters-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 0;
  min-width: max-content;
}

.filters-frame {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
}

.filters-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filters-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.filters-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.filters-frame.has-left-shadow::before {
  opacity: 1;
}

.filters-frame.has-right-shadow::after {
  opacity: 1;
}

.filter-chip,
.ghost-button,
.primary-button,
.delete-button,
.status-chip {
  border-radius: 999px;
}

.filter-chip,
.ghost-button,
.delete-button {
  border: 0;
  background: transparent;
  color: var(--text);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #787878;
  background: #f5f5f5;
}

.filter-chip:hover {
  color: #0a0a0a;
  background: #e6e6e6;
}

.filter-chip.is-active {
  background: #0a0a0a;
  color: #fff;
  box-shadow: none;
}

.ghost-button,
.delete-button {
  height: 40px;
  padding: 10px 24px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

#clearFiltersBtn {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #787878;
  padding-left: 0;
  padding-right: 0;
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

#clearFiltersBtn:hover {
  color: #0a0a0a;
}

#clearFiltersBtn:active {
  color: #0a0a0a;
}

#clearFiltersBtn .clear-count {
  color: inherit;
}

#clearFiltersBtn:active .clear-count {
  color: #787878;
}

.primary-button {
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #d95d39, #c83f1a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(217, 93, 57, 0.26);
}

.post-form {
  display: grid;
  gap: 16px;
}

.is-hidden {
  display: none;
}

.posts-admin-list {
  margin-top: 24px;
}

.admin-posts-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.admin-post-actions,
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-post-title {
  font-weight: 700;
}

.admin-post-meta {
  margin-top: 4px;
  font-size: 14px;
}

.main-stage {
  position: relative;
  min-width: 0;
  height: 100vh;
}

.stage-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  pointer-events: none;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.account-anchor {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: auto;
}

.account-button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #787878;
}

.account-button:hover {
  color: #0a0a0a;
}

.search-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  margin-top: 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-panel .search-field {
  flex: 1 1 auto;
  gap: 0;
}

.search-center-button {
  flex: 0 0 auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight: 700;
  pointer-events: auto;
}

.canvas-viewport {
  position: relative;
  overflow: auto;
  height: 100vh;
  cursor: grab;
  background: var(--bg);
}

.canvas-viewport.is-dragging {
  cursor: grabbing;
}

.canvas-inner {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.canvas-surface {
  position: relative;
}

.overlay-actions {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bottom-center-action {
  display: none;
}

.bottom-left-action,
.bottom-right-action {
  position: absolute;
  bottom: 24px;
  z-index: 5;
  pointer-events: auto;
}

.bottom-left-action {
  left: 24px;
}

.bottom-right-action {
  right: 24px;
}

.minimap-panel {
  position: absolute;
  left: 24px;
  bottom: 72px;
  z-index: 5;
  width: 240px;
  height: 240px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.minimap-panel.is-hidden {
  display: none;
}

.minimap-inner {
  position: absolute;
  inset: -1px;
}

.minimap-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.minimap-viewport {
  position: absolute;
  border: 1.5px solid #0064cd;
  border-radius: 999px;
  background: rgba(0, 100, 205, 0.1);
  pointer-events: none;
}

.overlay-button {
  box-shadow: none;
  background: #fff;
  color: #787878;
  border: 1px solid var(--stroke);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  height: 40px;
  padding: 10px 24px;
}

.overlay-button:hover {
  color: #0a0a0a;
  background: #f5f5f5;
  border-color: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #f5f5f5;
  color: #a0a0a0;
  box-shadow: none;
  backdrop-filter: none;
}

.icon-button:hover {
  color: #0a0a0a;
  border-color: transparent;
  background: #e6e6e6;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(10px);
}

.zoom-controls-inline {
  width: 100%;
}

.zoom-slider {
  width: 180px;
  accent-color: #0a0a0a;
}

.dot-divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(33, 28, 20, 0.28);
}

.post-card {
  position: absolute;
  width: 320px;
  height: 320px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid #ebebeb;
  box-shadow: none;
  transition: background-color 160ms ease, opacity 700ms ease;
}

.post-card:hover {
  background: #ebebeb;
}

.canvas-inner.focus-fade-active .post-card {
  opacity: 0.3;
}

.canvas-inner.focus-fade-active .post-card.is-focus-target {
  opacity: 1;
}

.post-link-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.post-save-button {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.post-card:hover .post-save-button,
.post-card:focus-within .post-save-button {
  opacity: 1;
  pointer-events: auto;
}

.post-save-button:hover {
  color: #ffffff;
  background: #0a0a0a;
}

.post-save-button.is-saved {
  color: #ffffff;
  background: #0a0a0a;
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.18);
}

.auth-dialog {
  position: absolute;
  top: 24px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(10, 10, 10, 0.12);
}

.auth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-header h2,
.auth-header p,
.auth-profile-card p {
  margin: 0;
}

.auth-close-button,
.auth-logout-button,
.auth-saved-link {
  border: 0;
  background: transparent;
  color: #787878;
  padding: 0;
}

.auth-close-button:hover,
.auth-logout-button:hover,
.auth-saved-link:hover {
  color: #0a0a0a;
}

.auth-saved-link {
  display: inline-flex;
  margin-bottom: 12px;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #787878;
}

.auth-tab:hover {
  background: #e6e6e6;
  color: #0a0a0a;
}

.auth-tab.is-active {
  background: #0a0a0a;
  color: #ffffff;
}

.auth-form {
  gap: 12px;
}

.auth-hint,
.auth-message,
.auth-profile-label,
.auth-profile-saved {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #787878;
}

.auth-message {
  min-height: 20px;
}

.auth-profile-card {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.saved-shell {
  min-height: 100vh;
}

.saved-topbar {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.saved-topbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.saved-chip {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #787878;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saved-chip:hover {
  color: #0a0a0a;
}

.saved-empty {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.saved-empty-card {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.saved-empty-card h1,
.saved-empty-card p {
  margin: 0;
}

.auth-profile-email {
  font-size: 16px;
  line-height: 24px;
  color: #0a0a0a;
}

.post-card:hover .post-link-button,
.post-card:focus-within .post-link-button {
  opacity: 1;
  pointer-events: auto;
}

.post-link-button:hover {
  color: #ffffff;
  background: #0a0a0a;
}

.post-card.is-clickable {
  cursor: pointer;
}

.post-card.is-clickable:focus-visible {
  outline: 1px solid #0a0a0a;
  outline-offset: 4px;
}

.post-media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: fit-content;
  max-width: 288px;
  max-height: 236px;
  flex: 0 1 auto;
  background: transparent;
}

.post-media.is-empty {
  display: none;
}

.post-media img {
  width: auto;
  height: auto;
  max-width: 288px;
  max-height: 236px;
  display: block;
  border: 0;
}

.post-media-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-media-stack.is-single {
  max-width: 288px;
  max-height: 236px;
}

.post-media-stack.is-gallery {
  width: 232px;
  height: 208px;
}

.post-media-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 260ms ease;
}

.post-media-stack.is-single .post-media-layer {
  position: relative;
  inset: auto;
}

.post-media-stack.is-gallery .post-media-layer:nth-child(1) {
  transform: translate(-10px, 8px) rotate(-6deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(2) {
  transform: translate(8px, 4px) rotate(5deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(3) {
  transform: translate(-4px, -8px) rotate(3deg);
}

.post-media-stack.is-gallery .post-media-layer:nth-child(4) {
  transform: translate(12px, -10px) rotate(-4deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(1),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(1) {
  transform: translate(-12px, 9px) rotate(3deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(2),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(2) {
  transform: translate(10px, 6px) rotate(-2.5deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(3),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(3) {
  transform: translate(-6px, -10px) rotate(-1.5deg);
}

.post-card:hover .post-media-stack.is-gallery .post-media-layer:nth-child(4),
.post-card:focus-within .post-media-stack.is-gallery .post-media-layer:nth-child(4) {
  transform: translate(14px, -12px) rotate(2deg);
}

.post-media-stack.is-gallery img {
  max-width: 180px;
  max-height: 180px;
}

.post-media .post-embed {
  overflow: hidden;
  scrollbar-width: none;
}

.post-media .post-embed::-webkit-scrollbar {
  display: none;
}

.post-copy {
  width: 100%;
  display: grid;
  gap: 0;
  background: transparent;
  justify-items: center;
  align-content: start;
  flex: 0 0 auto;
  padding: 0 16px;
}

.post-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #0a0a0a;
  text-align: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-title-link {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.post-title-link.is-linked {
  cursor: pointer;
}

.post-title-link.is-linked:hover .post-title,
.post-title-link.is-linked:focus-visible .post-title {
  text-decoration: underline;
  text-decoration-color: #0a0a0a;
  text-underline-offset: 2px;
}

.post-title-link:focus-visible {
  outline: none;
}

.post-title.post-title-big {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card-no-media .post-title.post-title-big {
  -webkit-line-clamp: 3;
}

.post-category {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #a0a0a0;
  text-align: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
}

body.is-overlay-open {
  overflow: hidden;
}

.image-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
}

.image-overlay-dialog {
  position: absolute;
  inset: 0;
  padding: 24px;
}

.image-overlay-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 64px 72px;
  min-width: 0;
  min-height: 0;
}

.image-overlay-image {
  width: auto;
  height: auto;
  max-width: calc(100vw - 144px);
  max-height: calc(100vh - 144px);
  object-fit: contain;
  display: block;
}

.image-overlay-counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, calc(100% + 16px));
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.image-overlay-close,
.image-overlay-nav {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 8px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.image-overlay-close:hover,
.image-overlay-nav:hover {
  background: #0a0a0a;
  color: #ffffff;
}

.image-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}

.image-overlay-prev,
.image-overlay-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.image-overlay-prev {
  left: 24px;
}

.image-overlay-next {
  right: 24px;
}

.image-overlay-nav.is-hidden,
.image-overlay-counter.is-hidden {
  display: none;
}

.admin-page {
  min-height: 100vh;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.gate-panel {
  max-width: 520px;
  margin: 10vh auto 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.access-error {
  margin: 0;
  color: #b42318;
}

@media (max-width: 1100px) {
  .canvas-viewport {
    height: 100vh;
  }

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

@media (max-width: 720px) {
  .stage-overlay {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel {
    padding: 16px;
    border-radius: 22px;
  }

  .filters-row {
    max-width: calc(100vw - 32px);
  }

  .minimap-panel {
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 760px) {
  .post-link-button {
    opacity: 1;
    pointer-events: auto;
  }

  .post-save-button {
    opacity: 1;
    pointer-events: auto;
  }

  .saved-topbar {
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .image-overlay-dialog {
    padding: 64px 16px 24px;
  }

  .image-overlay-stage {
    padding: 56px 0 72px;
  }

  .image-overlay-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 168px);
  }

  .image-overlay-prev {
    left: 16px;
  }

  .image-overlay-next {
    right: 16px;
  }
}
