@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  --bg: #0f1112;
  --bg-soft: #16181a;
  --bg-grad-1: #0c0f10;
  --bg-grad-2: #121517;
  --bg-grad-3: #0b0d0e;
  --surface: #1f2327;
  --surface-strong: #272c31;
  --text: #f4f1ea;
  --muted: #b4aea3;
  --accent: #c5a77a;
  --accent-rgb: 197 167 122;
  --accent-2: #8bb8a2;
  --accent-2-rgb: 139 184 162;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", serif;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
.present-blocked {
  overflow: hidden;
}

.present-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 18, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.present-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.present-card {
  width: min(360px, 90vw);
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(247, 214, 180, 0.12), rgba(247, 214, 180, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: var(--text);
}
.present-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-family: var(--serif);
}
.present-card p {
  color: var(--muted);
  margin-bottom: 24px;
}
.present-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--accent);
  color: #1d1c18;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.present-button:focus-visible,
.present-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.14), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(var(--accent-2-rgb), 0.12), transparent 38%),
    linear-gradient(120deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 50%, var(--bg-grad-3) 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

button {
  font-family: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 17, 18, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 11, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 8;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.cart-count {
  margin-left: 6px;
  background: var(--accent);
  color: #1d1c18;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 80px 0 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--accent);
  color: #1d1c18;
  border-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 200;
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 280px;
  font-size: 0.9rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
  border-color: rgba(139, 184, 162, 0.6);
}

.toast-error {
  border-color: rgba(201, 127, 127, 0.6);
}

.toast-hide {
  opacity: 0;
  transform: translateY(8px);
}

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

.hero-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 600px;
}

.statement-box {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(130deg, rgba(39, 44, 49, 0.8), rgba(18, 21, 24, 0.9));
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.section-header {
  margin-bottom: 16px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(34, 40, 45, 0.8);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-card:hover {
  border-color: rgba(197, 167, 122, 0.6);
  transform: translateY(-2px);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-label {
  font-weight: 600;
  font-family: var(--serif);
}

.social-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-grid .card {
  padding: 14px;
  border-radius: 18px;
  gap: 10px;
}

.store-grid .card img {
  height: 180px;
  object-fit: cover;
}

.store-grid .card h3 {
  font-size: 1.2rem;
}

.store-grid .card .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.cart-items {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.cart-item-info {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1 1 220px;
}

.cart-item-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-qty {
  width: 70px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-info {
    flex-direction: row;
  }

  .cart-item-actions {
    justify-content: space-between;
  }

  .cart-qty {
    min-width: 60px;
  }
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(197, 167, 122, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.gallery-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.filter-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.gallery-filter button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 16px;
  cursor: pointer;
}

.gallery-filter button.active {
  background: var(--accent-2);
  color: #101213;
  border-color: transparent;
}

.entity-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 13, 14, 0.7);
  color: var(--text);
  font-size: 0.7rem;
  display: none;
  cursor: pointer;
}

body.edit-mode .entity-edit-btn {
  display: inline-flex;
}

.edit-entity-block {
  position: relative;
}

.filter-edit-btn {
  position: static;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-style: dashed;
}

#featured-grid .card {
  padding: 12px;
  gap: 10px;
}

#featured-grid img {
  height: 180px;
  object-fit: cover;
}

#featured-grid h3 {
  font-size: 1.1rem;
}

.work-gallery {
  display: block;
  columns: 4 220px;
  column-gap: 24px;
}

.work-gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

.work-gallery-item a {
  display: block;
  position: relative;
}

.work-gallery-item img {
  width: 100%;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.work-gallery-item a:hover img {
  transform: scale(1.02);
}

.artwork-modal-panel img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 16px;
  max-height: 65vh;
  object-fit: contain;
}

.product-price {
  font-size: 1.1rem;
  color: var(--accent);
}

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

.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 13, 14, 0.6);
  color: var(--text);
  font-family: var(--sans);
}

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

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  border: 1px solid var(--border);
  transition: background 0.2s ease, border 0.2s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle input:checked + .toggle-slider {
  background: rgba(139, 184, 162, 0.5);
  border-color: rgba(139, 184, 162, 0.6);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
  background: #0e1311;
}

footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-nav {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 24px;
}

.admin-nav h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-top: 0;
}

.admin-nav button {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.admin-nav button.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.admin-content {
  padding: 32px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-grid > .btn {
  justify-self: start;
  align-self: start;
  width: fit-content;
}

.list-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.list-item h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
}

.list-actions {
  display: flex;
  gap: 8px;
}

.small-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(197, 167, 122, 0.4);
  background: rgba(197, 167, 122, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 13, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0 auto;
  align-self: center;
}

@media (max-width: 768px) {
  .modal {
    padding: 16px;
  }

  .modal-panel {
    width: min(92vw, 420px);
    max-height: 85vh;
    border-radius: 24px;
    padding: 18px;
  }
}

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

.modal-close {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
  overflow-x: hidden;
}

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

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

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

  .work-gallery {
    columns: 2 200px;
  }

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

  .admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background-color: var(--bg-soft);
    background-image: none;
    backdrop-filter: none;
    opacity: 1;
    isolation: isolate;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 9;
  }

  .nav-links::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-soft);
    z-index: -1;
  }

  .nav-close {
    display: inline-flex;
  }

  .nav-links a {
    color: var(--text);
    font-size: 1.05rem;
    width: 100%;
    padding: 6px 0;
  }

  .nav-links a.active {
    color: var(--accent);
  }

  .nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-open .nav-overlay {
    display: block;
  }

  .toast-container {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }
}

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

  .store-grid .card img {
    height: 140px;
  }

  .store-grid .card h3 {
    font-size: 1.05rem;
  }

  .work-gallery {
    columns: 1;
  }

  .modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  body.modal-open {
    position: fixed;
    width: 100%;
  }

  .modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
  }

  .cart-request-panel {
    width: min(92vw, 360px);
    padding: 20px;
    border-radius: 20px;
  }

  .cart-request-panel .section-title {
    font-size: 1.7rem;
  }

  .cart-request-panel .section-subtitle {
    font-size: 0.95rem;
  }

  .cart-request-panel .form {
    gap: 12px;
  }
}

.edit-toolbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 300;
  min-width: 220px;
  overflow: visible;
}

.edit-toolbar-title {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.edit-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-toolbar-links a {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.edit-toolbar-links a:hover {
  color: var(--text);
}

.edit-theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-theme-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.edit-theme-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.edit-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.edit-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

.edit-btn.primary {
  background: var(--accent);
  color: #1d1c18;
  border-color: transparent;
}

.edit-btn.danger {
  background: rgba(201, 127, 127, 0.18);
  border-color: rgba(201, 127, 127, 0.5);
  color: var(--text);
}

.edit-btn.ghost {
  background: transparent;
}

.edit-add-btn {
  border-style: dashed;
  font-size: 0.78rem;
}

.edit-theme-toggle {
  font-size: 0.78rem;
  padding: 6px 10px;
}
.edit-toolbar-bg-btn {
  font-size: 0.8rem;
  padding: 6px 10px;
}

.edit-outline {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.edit-panel-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 12, 13, 0.7);
  backdrop-filter: blur(6px);
  z-index: 350;
}

.edit-panel {
  position: relative;
  z-index: 400;
  width: min(560px, 92vw);
  max-height: min(560px, 85vh);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: auto;
  margin: 0;
  max-width: 96vw;
}

.edit-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.edit-panel-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.edit-panel-close {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.75rem;
}

.edit-panel-body {
  margin-bottom: 10px;
}

.edit-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 13, 14, 0.6);
  color: var(--text);
  font-family: var(--sans);
}

.edit-panel textarea.edit-input {
  min-height: 120px;
  resize: vertical;
}

.edit-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 768px) {
  .edit-toolbar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: unset;
    border-radius: 0;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }

  .edit-toolbar-title {
    font-size: 0.8rem;
  }

  .edit-toolbar-links {
    flex: 1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 4px;
  }

  .edit-toolbar-links a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
  }

  .edit-toolbar-links::-webkit-scrollbar {
    height: 4px;
  }

  .edit-toolbar-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
  }

  .edit-theme-swatches {
    gap: 4px;
    margin-left: 6px;
  }

  .edit-toolbar-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .edit-toolbar-actions .edit-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .edit-panel {
    width: min(92vw, 420px);
    max-height: 90vh;
    border-radius: 24px;
    padding: 18px;
  }

  .edit-panel-header {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .edit-panel-body {
    max-height: calc(90vh - 180px);
    overflow: auto;
    margin-bottom: 12px;
  }

  .edit-panel-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .edit-panel-actions .edit-btn {
    flex: 1 1 120px;
    min-width: 120px;
  }

  .edit-theme-panel {
    bottom: calc(100% + 6px);
    left: auto;
    right: 0;
  }
}
