:root {
  color-scheme: light;
  --mint: #9edfc8;
  --mint-deep: #4d927d;
  --lilac: #b7a4d9;
  --rose: #f2a8b7;
  --butter: #f6d98c;
  --ink: #46383f;
  --muted: #7d7078;
  --paper: #fffdf8;
  --surface: #ffffff;
  --soft: #eef9f4;
  --line: #eadfd9;
  --kraft: #cfae7d;
  --shadow: 0 18px 48px rgba(70, 56, 63, 0.14);
  --soft-shadow: 0 16px 40px rgba(77, 146, 125, 0.1);
  --radius: 8px;
  --button-radius: 8px;
  --card-radius: 18px;
  --image-radius: 8px;
  --nav-font-size: 13px;
  --card-shadow: 0 12px 32px rgba(70, 56, 63, 0.08);
  --body-scale: 1;
  --heading-scale: 0.92;
  --site-font: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fffb 0%, #fffdf8 46%, #fffafc 100%);
  font-family: var(--site-font);
  font-size: calc(16px * var(--body-scale));
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 30px;
  padding: 3px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(234, 223, 217, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(68px, 8vw, 94px);
  margin-right: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-list {
  display: flex;
  order: 3;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding: 2px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: var(--nav-font-size);
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.nav-item span {
  display: none;
  width: auto;
  height: auto;
  color: var(--mint-deep);
  background: transparent;
  border-radius: 0;
}

.nav-item.is-active {
  color: var(--mint-deep);
  background: rgba(238, 249, 244, 0.94);
  box-shadow: none;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  order: 4;
  flex: 0 0 auto;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 24px;
  margin-left: 4px;
  padding: 0;
  overflow: hidden;
  color: var(--mint-deep);
  background: rgba(238, 249, 244, 0.64);
  border: 1px solid rgba(158, 223, 200, 0.48);
  border-radius: 999px;
  transform-origin: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    max-width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.nav-search::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  pointer-events: none;
  content: "";
  background: rgba(183, 164, 217, 0.55);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-search-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 22px;
  place-items: center;
  padding: 0;
  color: var(--mint-deep);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.nav-search-toggle span {
  display: block;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-0.5px);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease;
}

.nav-search-toggle:focus-visible {
  outline: 2px solid rgba(77, 146, 125, 0.38);
  outline-offset: -2px;
}

.nav-search input {
  flex: 0 0 auto;
  width: 0;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition:
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 170ms ease 60ms;
}

.nav-search input::placeholder {
  color: rgba(124, 111, 121, 0.72);
}

.nav-search:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(77, 146, 125, 0.28);
  box-shadow:
    0 5px 14px rgba(77, 146, 125, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.nav-search:hover .nav-search-toggle span {
  color: #3f6f62;
  transform: translateY(-0.5px) rotate(-7deg) scale(1.05);
}

.nav-search.is-open,
.nav-search:focus-within {
  width: 118px;
  max-width: 118px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(158, 223, 200, 0.76);
  box-shadow:
    0 8px 20px rgba(77, 146, 125, 0.12),
    0 0 0 3px rgba(158, 223, 200, 0.14);
}

.nav-search.is-open::after,
.nav-search:focus-within::after {
  opacity: 1;
  transform: scale(1);
}

.nav-search.is-open .nav-search-toggle span,
.nav-search:focus-within .nav-search-toggle span {
  color: #3f6f62;
  transform: translateY(-0.5px) rotate(-10deg);
}

.nav-search.is-open input,
.nav-search:focus-within input {
  width: 86px;
  opacity: 1;
  pointer-events: auto;
}

.sidebar-card {
  display: none;
  margin-top: 32px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(158, 223, 200, 0.22), rgba(183, 164, 217, 0.18));
  border: 1px solid rgba(158, 223, 200, 0.45);
  border-radius: var(--radius);
}

.sidebar-card p,
.sidebar-card span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-card strong {
  display: block;
  margin: 7px 0 8px;
  line-height: 1.35;
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 52px) 64px;
  overflow: hidden;
}

.date-line {
  margin: 0 0 4px;
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.connection-status {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: calc(clamp(28px, 4vw, 46px) * var(--heading-scale));
}

h2 {
  font-size: calc(clamp(26px, 3vw, 42px) * var(--heading-scale));
}

h3 {
  font-size: 20px;
}

.view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 36vw);
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.primary-action,
.secondary-action,
.text-button {
  border: 0;
  border-radius: var(--button-radius);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-action {
  padding: 12px 18px;
  color: #fff;
  background: var(--mint-deep);
  box-shadow: 0 10px 22px rgba(77, 146, 125, 0.22);
  white-space: nowrap;
}

.secondary-action {
  padding: 12px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.text-button {
  color: var(--mint-deep);
  background: transparent;
  font-weight: 700;
}

.primary-action:hover,
.secondary-action:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.view {
  display: none;
  animation: reveal 420ms ease both;
}

.view.is-active {
  display: block;
}

.home-view.is-active {
  display: flex;
  flex-direction: column;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
  min-height: auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 76px) clamp(28px, 4vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 255, 251, 0.86) 56%, rgba(255, 250, 252, 0.9) 100%),
    linear-gradient(180deg, rgba(158, 223, 200, 0.12), rgba(246, 217, 140, 0.1));
  border: 1px solid rgba(158, 223, 200, 0.24);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(70, 56, 63, 0.07);
}

.home-view {
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy h2 {
  max-width: 820px;
  margin-bottom: 18px;
  color: #3d3439;
  font-size: calc(clamp(38px, 5.4vw, 72px) * var(--heading-scale));
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p,
.shop-hero p,
.studio-preview p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-copy p {
  max-width: 680px;
  color: #756c72;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  max-width: none;
  margin-top: 28px;
}

.home-hero-stats span {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 14px 16px;
  color: #6d6067;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(158, 223, 200, 0.28);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(77, 146, 125, 0.06);
}

.home-hero-stats strong {
  color: var(--mint-deep);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.hero-media {
  position: relative;
  margin: 0;
  z-index: 1;
  justify-self: center;
  width: min(980px, 100%);
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(234, 223, 217, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 72px rgba(70, 56, 63, 0.12);
}

.hero-media::after {
  position: absolute;
  inset: 14px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  pointer-events: none;
}

.hero-media img,
.shop-hero img,
.studio-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}

.hero-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 3px;
  max-width: min(330px, calc(100% - 44px));
  padding: 13px 15px;
  color: #6d6067;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(70, 56, 63, 0.1);
  backdrop-filter: blur(14px);
  font-size: 13px;
  text-align: left;
}

.hero-media figcaption strong {
  color: var(--ink);
  font-size: 16px;
}

body[data-home-layout="compact"] .hero-panel {
  gap: 24px;
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(22px, 3vw, 34px);
}

body[data-home-layout="compact"] .hero-copy h2 {
  max-width: 720px;
  font-size: calc(clamp(32px, 4.2vw, 54px) * var(--heading-scale));
}

body[data-home-layout="compact"] .hero-media {
  width: min(760px, 100%);
}

body[data-home-layout="compact"] .hero-media img {
  aspect-ratio: 2 / 1;
}

body[data-home-layout="compact"] .home-shop-window,
body[data-home-layout="compact"] .home-featured,
body[data-home-layout="compact"] .stat-grid {
  margin-bottom: 22px;
}

body[data-home-layout="compact"] .collection-grid,
body[data-home-layout="compact"] .home-product-rail {
  gap: 12px;
}

body[data-home-layout="editorial"] .hero-panel {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  padding: clamp(32px, 4.8vw, 58px);
}

body[data-home-layout="editorial"] .hero-copy {
  justify-items: start;
  text-align: left;
}

body[data-home-layout="editorial"] .hero-actions {
  justify-content: flex-start;
}

body[data-home-layout="editorial"] .home-hero-stats {
  grid-template-columns: 1fr;
  width: min(360px, 100%);
}

body[data-home-layout="editorial"] .hero-media {
  width: 100%;
}

body[data-theme-preset="minimal"] .hero-panel,
body[data-theme-preset="minimal"] .home-shop-window,
body[data-theme-preset="minimal"] .collection-card,
body[data-theme-preset="minimal"] .home-values article {
  background: #fff;
  border-color: rgba(87, 102, 95, 0.16);
}

.home-featured {
  margin: 0 0 32px;
}

.home-shop-window {
  margin: 28px 0 38px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 223, 217, 0.78);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.home-section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section-intro h2 {
  max-width: 680px;
  font-size: calc(clamp(28px, 3vw, 42px) * var(--heading-scale));
  line-height: 1.12;
}

.home-section-intro p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 16px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #fff;
  border: 1px solid rgba(234, 223, 217, 0.88);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.collection-card:first-child {
  grid-row: span 2;
  min-height: 436px;
}

.collection-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.collection-card div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.collection-card span {
  color: #6f5a25;
  font-size: 13px;
  font-weight: 800;
}

.collection-card h3 {
  margin-top: 6px;
  font-size: calc(23px * var(--heading-scale));
  line-height: 1.15;
}

.collection-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.home-values article {
  padding: clamp(18px, 2.4vw, 24px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(234, 223, 217, 0.78);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.home-values strong {
  display: block;
  color: #3f6f62;
  font-size: 18px;
}

.home-values p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-product-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-product-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(234, 223, 217, 0.92);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.home-product-media {
  overflow: hidden;
  background: #f7fbf8;
}

.home-product-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--image-radius) var(--image-radius) 0 0;
  transition: transform 300ms ease;
}

.home-product-card:hover .home-product-media img {
  transform: scale(1.035);
}

.home-product-body {
  display: grid;
  padding: 18px;
}

.home-product-card small {
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
}

.home-product-card h3 {
  margin-top: 10px;
  font-size: calc(clamp(19px, 1.8vw, 24px) * var(--heading-scale));
  line-height: 1.2;
}

.home-product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.home-product-footer strong {
  color: #7d4e21;
  font-size: 28px;
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 34px;
  overflow: hidden;
  background: rgba(77, 146, 125, 0.14);
  border: 1px solid rgba(77, 146, 125, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(70, 56, 63, 0.05);
}

.stat-grid article,
.content-section,
.project-card,
.tutorial-card,
.product-card,
.product-editor,
.studio-form,
.studio-preview {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 217, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.stat-grid article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.stat-grid span,
.meta,
.project-card small,
.product-card small {
  color: var(--muted);
  font-size: 13px;
}

.stat-grid strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--mint-deep);
  font-size: 32px;
}

.stat-grid p {
  margin: 0;
  color: var(--muted);
}

.section-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(18px, 3vw, 28px);
}

.home-view .section-row {
  padding-bottom: 10px;
}

.content-section {
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 30px rgba(70, 56, 63, 0.05);
}

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

.section-heading.wide {
  align-items: end;
  margin-bottom: 24px;
}

.project-list,
.project-grid,
.tutorial-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

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

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

.project-card,
.tutorial-card,
.product-card {
  position: relative;
  padding: 16px;
}

.tutorial-card {
  display: grid;
  gap: 10px;
}

.tutorial-card-head,
.tutorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tutorial-card-head small {
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
}

.tutorial-badge {
  padding: 5px 9px;
  color: #8f3e48;
  background: rgba(242, 168, 183, 0.22);
  border: 1px solid rgba(242, 168, 183, 0.42);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tutorial-meta {
  align-items: stretch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tutorial-meta span {
  flex: 1;
  padding: 9px 10px;
  background: rgba(246, 250, 244, 0.72);
  border: 1px solid rgba(234, 223, 217, 0.74);
  border-radius: var(--radius);
}

.project-list.compact .project-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.thumb {
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3fbf7, rgba(246, 217, 140, 0.2));
  font-size: 30px;
}

.project-image {
  display: block;
  width: 78px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
}

.project-image.wide {
  width: 100%;
  margin-bottom: 14px;
  aspect-ratio: 4 / 3;
}

.content-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  object-fit: cover;
  border: 1px solid rgba(234, 223, 217, 0.9);
  border-radius: var(--radius);
  background: var(--soft);
}

.home-product-card .content-image {
  aspect-ratio: 16 / 10;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
  color: var(--mint-deep);
  background: rgba(243, 251, 247, 0.9);
  border: 1px solid rgba(77, 146, 125, 0.18);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.attachment-link:hover {
  border-color: rgba(77, 146, 125, 0.34);
  background: #fff;
}

.project-card h3,
.tutorial-card h3,
.product-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-action.is-active {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.card-action.danger {
  color: #8f3e48;
  border-color: rgba(242, 168, 183, 0.72);
}

.card-action:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.project-card p,
.tutorial-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.6;
}

.progress {
  height: 8px;
  margin: 14px 0 8px;
  overflow: hidden;
  background: #f1ebe8;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--lilac));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pill {
  padding: 6px 9px;
  color: var(--ink);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
}

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

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid rgba(234, 223, 217, 0.86);
  border-radius: var(--image-radius);
}

.tutorial-stack {
  display: grid;
  gap: 10px;
}

.tutorial-stack .tutorial-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(158, 223, 200, 0.32);
  box-shadow: none;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented button {
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.segmented button.is-selected {
  color: #fff;
  background: var(--mint-deep);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.toggle-button {
  padding: 0;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
}

.toggle-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px #fff;
}

.toggle-button.is-active .toggle-mark {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.native-file-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  cursor: pointer;
  outline: 0;
}

.file-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.native-file-input:hover,
.native-file-input:focus-visible {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.18);
}

.file-name {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.contact-layout,
.account-layout,
.admin-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.contact-copy,
.contact-card,
.account-card,
.admin-gate,
.backup-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(234, 223, 217, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(70, 56, 63, 0.08);
}

.contact-copy p,
.account-card p,
.admin-gate p,
.backup-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.account-card {
  display: grid;
  gap: 18px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form h3 {
  font-size: 18px;
}

.auth-form label,
.admin-gate label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.22);
}

.auth-feedback {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-feedback.is-error {
  color: #b85a53;
}

.auth-feedback.is-success {
  color: var(--mint-deep);
}

.signed-in-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signed-in-card p {
  margin: 0;
  font-size: 15px;
}

.inquiry-history {
  display: grid;
  gap: 12px;
}

.inquiry-history.is-hidden {
  display: none;
}

.inquiry-list {
  display: grid;
  gap: 12px;
}

.inquiry-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inquiry-card small {
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-card h3 {
  font-size: 18px;
}

.inquiry-card p {
  margin: 0;
  font-size: 15px;
}

.inquiry-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.user-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) minmax(190px, 1fr) minmax(150px, 0.76fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.inquiry-controls select,
.inquiry-controls input,
.user-controls input,
#inquiry-form select,
#inquiry-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.inquiry-controls select:focus,
.inquiry-controls input:focus,
.user-controls input:focus,
#inquiry-form select:focus,
#inquiry-form textarea:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.22);
}

.admin-gate {
  margin-bottom: 24px;
}

.admin-runtime-note {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--mint-deep) !important;
  background: rgba(158, 223, 200, 0.14);
  border: 1px solid rgba(158, 223, 200, 0.32);
  border-radius: 12px;
  font-size: 14px !important;
  font-weight: 800;
}

.admin-session-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  color: #315f53;
  background: rgba(158, 223, 200, 0.2);
  border: 1px solid rgba(77, 146, 125, 0.24);
  border-radius: 14px;
}

.admin-session-card strong {
  font-size: 15px;
}

.admin-session-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-login-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--mint-deep);
  font-size: 14px;
  font-weight: 800;
}

.admin-warning {
  margin-bottom: 24px;
  padding: 14px 16px;
  color: #7d4e21;
  background: #fff5df;
  border: 1px solid rgba(207, 174, 125, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(125, 78, 33, 0.08);
  line-height: 1.65;
}

.admin-warning.is-hidden {
  display: none;
}

.admin-overview {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 255, 251, 0.78)),
    radial-gradient(circle at 92% 0%, rgba(246, 217, 140, 0.2), transparent 18rem);
  border: 1px solid rgba(158, 223, 200, 0.36);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(70, 56, 63, 0.08);
}

.admin-overview > div:first-child {
  align-self: center;
}

.admin-overview p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary-grid article {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(158, 223, 200, 0.34);
  border-radius: 14px;
}

.admin-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 2px;
}

.admin-readiness {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(280px, 1fr);
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(158, 223, 200, 0.34);
  border-radius: 16px;
}

.admin-readiness > div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  background: rgba(238, 249, 244, 0.72);
  border-radius: 14px;
}

.admin-readiness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-readiness strong {
  color: var(--mint-deep);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.admin-readiness ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-security-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.activity-card strong,
.activity-card span,
.activity-card small {
  display: block;
}

.activity-card strong {
  color: var(--ink);
  font-size: 14px;
}

.activity-card span,
.activity-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-readiness li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-readiness li > span {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
}

.admin-readiness li strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.admin-readiness li em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.admin-readiness li.is-ok > span {
  color: #2f725f;
  background: rgba(158, 223, 200, 0.26);
}

.admin-readiness li.is-warning > span {
  color: #8f5f1f;
  background: rgba(246, 217, 140, 0.32);
}

.admin-tabs {
  position: sticky;
  top: 38px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(158, 223, 200, 0.32);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.admin-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

.admin-tabs button.is-active {
  color: #fff;
  background: var(--mint-deep);
  box-shadow: 0 10px 24px rgba(77, 146, 125, 0.18);
}

.admin-theme-preview {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 249, 244, 0.72)),
    radial-gradient(circle at 100% 0, rgba(242, 168, 183, 0.18), transparent 12rem);
  border: 1px solid rgba(158, 223, 200, 0.34);
  border-radius: 16px;
}

.admin-theme-preview span {
  color: var(--ink);
  font-weight: 900;
}

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

.media-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.media-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid rgba(234, 223, 217, 0.86);
  border-radius: var(--image-radius);
}

.media-card strong,
.media-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card strong {
  color: var(--ink);
  font-size: 13px;
}

.media-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backup-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.settings-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(158, 223, 200, 0.32);
  border-radius: var(--radius);
}

.settings-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.22);
}

.settings-form input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

.settings-form select[multiple] {
  min-height: 140px;
  padding: 8px;
}

.settings-form select[multiple] option {
  padding: 7px 8px;
  border-radius: 8px;
}

.design-editor-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 168, 183, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 244, 0.74));
  border: 1px solid rgba(158, 223, 200, 0.34);
  border-radius: var(--radius);
}

.design-editor-preview h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
}

.design-editor-preview p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.design-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.design-preview-actions span {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

#design-preview-primary {
  color: #fff;
  background: var(--mint-deep);
}

#design-preview-secondary {
  color: var(--mint-deep);
  background: #fff;
  border: 1px solid rgba(77, 146, 125, 0.32);
}

.design-editor-preview figure,
.design-image-preview {
  margin: 0;
}

.design-editor-preview img,
.design-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid rgba(234, 223, 217, 0.86);
  border-radius: var(--radius);
}

.design-editor-preview figcaption,
.design-image-preview figcaption,
.design-editor-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.design-editor-note {
  padding: 10px 12px;
  color: #3f6f62;
  background: rgba(158, 223, 200, 0.16);
  border: 1px solid rgba(158, 223, 200, 0.32);
  border-radius: var(--radius);
  font-weight: 800;
}

.collection-editor-group {
  grid-template-columns: 1fr !important;
}

.collection-editor-group article {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-editor-group h4 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 16px;
}

.import-control.file-field {
  display: grid;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: default;
}

.import-control.file-field > span:first-child {
  color: var(--muted);
  font-size: 13px;
}

.admin-gate form {
  display: grid;
  gap: 14px;
}

.product-editor {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

.product-editor.is-hidden {
  display: none;
}

.product-editor form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.editor-hint {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-editor input,
.product-editor select,
.product-editor textarea,
.admin-gate input {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.product-editor input:focus,
.product-editor select:focus,
.product-editor textarea:focus,
.admin-gate input:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.22);
}

.full-field {
  grid-column: 1 / -1;
}

.product-editor .form-actions {
  grid-column: 1 / -1;
}

.flow-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.product-card {
  display: grid;
  gap: 10px;
}

.product-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-meta span {
  padding-left: 10px;
  border-left: 3px solid rgba(158, 223, 200, 0.66);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row strong {
  font-size: 24px;
}

.inventory {
  color: var(--mint-deep);
  font-weight: 700;
}

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

.studio-form,
.studio-preview {
  padding: 22px;
}

.studio-form form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-hidden {
  display: none;
}

.admin-locked .admin-only {
  display: none !important;
}

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

.admin-unlocked #admin-login-form label {
  display: none;
}

.studio-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.studio-form input,
.studio-form select,
.studio-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.studio-form input:focus,
.studio-form select:focus,
.studio-form textarea:focus,
.search:focus-within {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(158, 223, 200, 0.22);
}

.studio-preview h3 {
  margin-top: 18px;
}

.upload-preview {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.upload-preview img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.save-message {
  min-height: 28px;
  margin-top: 14px;
  color: var(--mint-deep);
  font-weight: 800;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
}

.detail-modal.is-hidden {
  display: none;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(158, 223, 200, 0.2), transparent 28%),
    rgba(70, 56, 63, 0.42);
  backdrop-filter: blur(12px);
}

.detail-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(18px, 2.8vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 253, 250, 0.92)),
    var(--paper);
  border: 1px solid rgba(234, 223, 217, 0.92);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(70, 56, 63, 0.24);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.detail-media {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  align-self: start;
}

.detail-media .content-image {
  margin: 0;
  aspect-ratio: 4 / 4.7;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(70, 56, 63, 0.12);
}

.detail-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--mint-deep);
  background: linear-gradient(135deg, #f3fbf7, rgba(246, 217, 140, 0.24));
  border: 1px solid rgba(77, 146, 125, 0.16);
  border-radius: 20px;
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 800;
}

.detail-media .gallery-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.detail-media .gallery-strip img {
  border-radius: 14px;
}

.detail-body {
  display: grid;
  gap: 18px;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(234, 223, 217, 0.94);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(70, 56, 63, 0.1);
  font-size: 24px;
  line-height: 1;
}

.detail-header {
  padding-right: 48px;
}

.detail-header small {
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
}

.detail-header h2 {
  max-width: 12ch;
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.tutorial-detail-header .pill-row {
  margin-top: 14px;
}

.tutorial-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 22px;
}

.tutorial-detail-grid section,
.tutorial-steps,
.tutorial-tips {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 223, 217, 0.82);
  border-radius: var(--radius);
}

.tutorial-detail-grid h3,
.tutorial-steps h3,
.tutorial-tips h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.detail-bullet-list,
.tutorial-steps ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-bullet-list li {
  padding-left: 13px;
  color: var(--muted);
  border-left: 3px solid rgba(158, 223, 200, 0.76);
  line-height: 1.55;
}

.tutorial-steps {
  margin-top: 16px;
}

.tutorial-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.65;
}

.tutorial-steps li strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--mint-deep);
  border-radius: 50%;
  font-size: 13px;
}

.tutorial-tips {
  margin-top: 16px;
}

.detail-header p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 223, 217, 0.9);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(70, 56, 63, 0.06);
}

.detail-price-row strong {
  color: #7d4e21;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.detail-price-row span {
  color: var(--mint-deep);
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 223, 217, 0.84);
  border-radius: 16px;
}

.detail-list dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.detail-actions .primary-action,
.detail-actions .secondary-action,
.detail-actions .card-action {
  min-height: 42px;
  padding-inline: 16px;
}

.detail-progress {
  height: 10px;
  margin: -4px 0 0;
  background: rgba(241, 235, 232, 0.86);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 4px clamp(14px, 4vw, 28px);
  }

  .brand {
    width: 78px;
  }

  .nav-list {
    order: 2;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-search {
    order: 3;
    width: 100%;
    min-width: 100%;
    max-width: none;
    margin-left: 0;
    padding-right: 8px;
  }

  .nav-search input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-search.is-open,
  .nav-search:focus-within {
    width: 100%;
    max-width: none;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 13px;
  }

  .nav-item span {
    display: none;
  }

  .workspace {
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .section-row,
  .shop-hero,
  .contact-layout,
  .account-layout,
  .admin-gate,
  .admin-overview,
  .backup-panel,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  body[data-home-layout="editorial"] .hero-panel {
    grid-template-columns: 1fr;
  }

  body[data-home-layout="editorial"] .hero-copy {
    justify-items: center;
    text-align: center;
  }

  body[data-home-layout="editorial"] .hero-actions {
    justify-content: center;
  }

  body[data-home-layout="editorial"] .home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(620px, 100%);
  }

  .hero-media {
    max-width: 760px;
    margin-inline: auto;
  }

  .project-grid,
  .tutorial-grid,
  .product-grid,
  .collection-grid,
  .home-product-rail,
  .product-editor form,
  .settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-card:first-child {
    grid-row: auto;
  }

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

@media (max-width: 720px) {
  .section-heading.wide {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .hero-panel {
    min-height: auto;
    gap: 18px;
    padding: 18px 0 28px;
  }

  .hero-copy h2 {
    max-width: 340px;
    font-size: calc(28px * var(--heading-scale));
    line-height: 1.12;
  }

  .hero-copy p {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.72;
  }

  .home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
    border-radius: 14px;
  }

  .home-hero-stats span {
    padding: 10px 8px;
    font-size: 11px;
  }

  .home-hero-stats strong {
    font-size: 24px;
  }

  .hero-media {
    border-radius: 18px;
  }

  .hero-media figcaption {
    display: none;
  }

  .stat-grid,
  .collection-grid,
  .home-product-rail,
  .home-values,
  .tutorial-grid,
  .product-grid,
  .media-grid,
  .product-editor form,
  .settings-form,
  .admin-summary-grid,
  .admin-readiness,
  .admin-readiness ul {
    grid-template-columns: 1fr;
  }

  .settings-form fieldset,
  .design-editor-preview,
  .collection-editor-group article {
    grid-template-columns: 1fr;
  }

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

  .home-section-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-card {
    min-height: 300px;
    border-radius: 14px;
  }

  .collection-card img {
    min-height: 300px;
  }

  .home-values article {
    padding: 18px;
  }

  .stat-grid article {
    padding: 16px;
  }

  .stat-grid strong {
    font-size: 28px;
  }

  .project-list.compact .project-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .thumb {
    width: 64px;
  }

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

  .view-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inquiry-controls,
  .user-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .contact-copy,
  .contact-card,
  .account-card,
  .admin-gate,
  .admin-overview,
  .admin-warning,
  .backup-panel {
    padding: 18px;
  }

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

  .admin-readiness li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-modal {
    align-items: end;
    padding: 10px;
  }

  .detail-panel {
    width: 100%;
    max-height: 90vh;
    padding: 18px;
    border-radius: 22px 22px 0 0;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-media {
    position: static;
  }

  .detail-media .content-image {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
  }

  .detail-placeholder {
    min-height: 240px;
    border-radius: 16px;
  }

  .detail-header {
    padding-right: 42px;
  }

  .detail-header h2 {
    max-width: 100%;
    font-size: 34px;
  }

  .detail-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutorial-detail-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-meta {
    flex-direction: column;
  }

  .backup-actions {
    justify-content: flex-start;
  }

  .inquiry-controls,
  .user-controls {
    grid-template-columns: 1fr;
  }
}
