:root {
  --ink: #171724;
  --muted: #5d5b69;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e8ded1;
  --coral: #ff6b57;
  --teal: #0f9f9c;
  --yellow: #ffd166;
  --blue: #246bfe;
  --green: #54b96d;
  --shadow: 0 18px 48px rgba(23, 23, 36, 0.14);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid rgba(232, 222, 209, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--coral);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.nav-button {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.secondary-button {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.ghost-button,
.icon-button {
  background: var(--surface);
}

.primary-button:hover,
.secondary-button:hover,
.nav-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.primary-button:disabled,
.secondary-button:disabled,
.nav-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  padding: 108px clamp(18px, 5vw, 68px) 76px;
  background:
    linear-gradient(90deg, rgba(23, 23, 36, 0.82) 0%, rgba(23, 23, 36, 0.62) 38%, rgba(23, 23, 36, 0.12) 82%),
    url("/assets/hero-studio.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 5vw, 68px) 24px auto;
  width: min(380px, 44vw);
  height: 8px;
  background: linear-gradient(90deg, var(--yellow), var(--teal), var(--coral), var(--blue));
  border-radius: 999px;
  animation: slidePulse 4s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #fff0c7;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.section {
  padding: 72px clamp(18px, 5vw, 68px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.45fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.section-heading p,
.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 107, 87, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(15, 159, 156, 0.1), transparent 36%),
    #fff7ec;
}

.service-showcase::before {
  content: "";
  position: absolute;
  inset: 38px clamp(18px, 5vw, 68px) auto;
  height: 78px;
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(23, 23, 36, 0.08) 0 2px,
      transparent 2px 20px
    );
  transform: skewY(-2deg);
  pointer-events: none;
}

.service-showcase > * {
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  perspective: 1400px;
}

.service-card,
.media-card,
.post-card,
.form-panel,
.policy-panel,
.admin-panel,
.portal-panel,
.login-panel,
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stack-form .admin-panel .status-row {
  margin-top: 16px;
}

.service-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 162px 1fr auto;
  border: 2px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.98)),
    var(--surface);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset: -70px auto auto -55px;
  border-radius: 50%;
  background: var(--accent, var(--coral));
  opacity: 0.18;
  z-index: -1;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20px 28px auto;
  width: 120px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent, var(--coral));
  transform: rotate(-18deg);
  opacity: 0.9;
}

.service-card:hover {
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(0deg) translateY(-8px) rotateX(2deg);
}

.service-perspective {
  position: relative;
  overflow: hidden;
  min-height: 162px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    var(--ink);
  border-bottom: 2px solid var(--ink);
}

.service-shot {
  position: absolute;
  inset: 20px 24px 18px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--accent, var(--coral));
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.32);
  transform: rotate(-4deg) skewX(-4deg) translateZ(24px);
}

.service-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.03);
  transform: scale(1.12) skewX(4deg);
}

.service-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 36, 0.38), transparent 64%),
    linear-gradient(0deg, rgba(23, 23, 36, 0.2), transparent 56%);
}

.service-angle {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-strut {
  position: absolute;
  z-index: 1;
  width: 78px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent, var(--coral));
  box-shadow: 3px 3px 0 var(--ink);
}

.service-strut-one {
  right: 24px;
  top: 24px;
  transform: rotate(18deg);
}

.service-strut-two {
  right: 64px;
  bottom: 20px;
  width: 54px;
  background: var(--yellow);
  transform: rotate(-14deg);
}

.service-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 24px 0;
}

.service-kicker {
  margin: 0;
  color: var(--accent, var(--coral));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-payoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ink);
  line-height: 1.35;
}

.service-payoff::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent, var(--coral));
  box-shadow: 2px 2px 0 var(--ink);
}

.service-card .chip-row {
  padding: 20px 24px 24px;
}

.service-card h3,
.media-card h3,
.post-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.12;
}

.service-card p,
.media-card p,
.post-card p {
  color: var(--muted);
  line-height: 1.55;
}

.service-card p {
  margin: 0;
}

.chip-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.save-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #8dcf92;
  border-radius: 999px;
  background: rgba(141, 207, 146, 0.14);
  color: #237a44;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 150ms ease;
}

.save-status.visible {
  opacity: 1;
}

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

.media-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card img,
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.media-card-content,
.post-card-content {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 24px 28px;
}

.media-card-content .chip,
.post-card-content .chip {
  justify-self: start;
}

.media-card-content p,
.post-card-content p {
  margin: 0;
}

.post-card-link {
  display: block;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-view-all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  margin-top: 24px;
}

.post-view-all a {
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.play-surface {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  text-align: left;
  overflow: hidden;
}

.play-surface::after {
  content: "Play";
  position: absolute;
  left: 16px;
  bottom: 16px;
  min-width: 62px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.conversion-band {
  background: var(--ink);
  color: #fff;
}

.conversion-band .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form,
.stack-form,
.compact-form {
  display: grid;
  gap: 12px;
}

.form-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.conversion-band .policy-panel {
  max-width: none;
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 18px;
  border-top: 6px solid var(--teal);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.conversion-band .policy-panel h3 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  line-height: 1.02;
}

.conversion-band .policy-panel p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
}

.conversion-band .policy-panel .chip-row {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7cbbb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 159, 156, 0.18);
}

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

.message {
  margin: 8px 0 0;
  min-height: 24px;
  color: var(--teal);
  font-weight: 800;
}

.storage-notice,
.access-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff4d8;
  box-shadow: 5px 5px 0 var(--ink);
}

.access-card {
  margin: 14px 0;
  background: #f6fffe;
  border-color: var(--teal);
  box-shadow: 4px 4px 0 var(--teal);
}

.storage-notice p,
.access-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.storage-notice pre,
.access-card pre {
  margin: 10px 0 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font-weight: 800;
}

.storage-notice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.payment-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.payment-item .status-row {
  gap: 12px;
  margin-bottom: 8px;
}

.payment-item .message {
  margin: 0;
  font-size: 0.875rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 68px);
  background: #10101a;
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  margin-left: 16px;
  text-decoration: none;
}

.page-shell {
  padding: 116px clamp(18px, 5vw, 68px) 72px;
}

.page-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.policy-panel {
  max-width: 920px;
  padding: 28px;
  line-height: 1.7;
}

.news-article {
  max-width: 980px;
}

.news-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.news-body {
  max-width: 760px;
  margin-top: 28px;
  font-size: 1.08rem;
  line-height: 1.78;
}

.news-body p {
  margin: 0 0 20px;
}

.news-body h2,
.news-body h3,
.news-body h4 {
  margin: 36px 0 14px;
  line-height: 1.05;
}

.news-body h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.news-body h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.news-body h4 {
  font-size: 1.18rem;
}

.news-body a {
  color: var(--blue);
  font-weight: 900;
}

.news-body blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 6px solid var(--coral);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.news-body blockquote p:last-child {
  margin-bottom: 0;
}

.news-body ul,
.news-body ol {
  margin: 0 0 22px;
  padding-left: 1.4rem;
}

.news-body li {
  margin-bottom: 8px;
}

.news-body figure {
  margin: 30px 0;
}

.news-body img,
.news-body video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10101a;
}

.news-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-body hr {
  margin: 34px 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.news-cta {
  max-width: 760px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-cta p {
  color: var(--muted);
  line-height: 1.6;
}

.related-news {
  margin-top: 46px;
}

.policy-panel h2 {
  margin-top: 30px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(255, 107, 87, 0.2), rgba(15, 159, 156, 0.18)),
    var(--paper);
}

.login-panel {
  width: min(440px, 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-shell,
.portal-shell {
  min-height: 100vh;
  background: #f7f4ef;
}

.admin-topbar,
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(14px);
}

.admin-layout,
.portal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.admin-sidebar,
.portal-sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #fff6e8;
}

.tab-button {
  width: 100%;
  justify-content: flex-start;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-align: left;
}

.tab-button.active,
.tab-button:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-main,
.portal-main {
  padding: 24px;
}

.workspace {
  display: grid;
  gap: 18px;
}

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

.stat-tile {
  padding: 16px;
}

.stat-tile strong {
  display: block;
  font-size: 2rem;
}

.stat-tile span {
  color: var(--muted);
  font-weight: 800;
}

.admin-panel,
.portal-panel {
  padding: 18px;
}

.admin-media-preview {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.design-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.design-library-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 112px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.design-library-panel .panel-heading,
.design-editor-panel .panel-heading {
  margin-bottom: 0;
}

.design-library-panel .panel-heading p,
.design-editor-panel .panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.design-controls {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.design-template-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.design-template-card {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.design-template-card:hover,
.design-template-card.active {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.design-template-card-new {
  background:
    linear-gradient(135deg, rgba(255, 107, 87, 0.13), rgba(255, 209, 102, 0.25)),
    #fff;
}

.design-template-card strong {
  min-width: 0;
}

.design-template-card > span:not(.status-row) {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.design-template-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.design-editor-panel {
  overflow: hidden;
}

.design-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.design-editor-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.design-code-editor {
  min-height: 340px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  tab-size: 2;
}

.design-css-editor {
  min-height: 220px;
}

.design-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.design-token-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.design-preview-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.design-preview-frame {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 6px #fffaf2;
}

.design-details-panel {
  padding: 0;
  overflow: hidden;
}

.design-details-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.design-details-panel summary::-webkit-details-marker {
  display: none;
}

.design-details-panel summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.design-details-panel[open] summary::after {
  content: "-";
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.design-details-panel summary strong {
  display: block;
  font-size: 1.15rem;
}

.design-details-panel summary em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.design-details-panel > form {
  padding: 0 18px 18px;
}

.compact-form {
  max-width: 880px;
}

/* == Bookings - simplified, responsive table/card view == */

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

.booking-list-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.booking-list-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}

.booking-search-bar input {
  width: 100%;
}

.booking-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.booking-filters label {
  min-width: 160px;
  flex: 1;
}

.booking-table-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.booking-row:first-child {
  border-top: 0;
}

.booking-row:hover {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--coral);
}

.booking-row-customer {
  font-weight: 900;
  line-height: 1.2;
}

.booking-row-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking-row-desc {
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-row-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  justify-self: start;
  white-space: nowrap;
}

.booking-row-status.status-planned {
  border-color: var(--yellow);
  background: rgba(255, 209, 102, 0.12);
  color: #8a6d00;
}

.booking-row-status.status-in_progress {
  border-color: var(--blue);
  background: rgba(36, 107, 254, 0.08);
  color: #1a4bc4;
}

.booking-row-status.status-ready_for_review {
  border-color: var(--teal);
  background: rgba(15, 159, 156, 0.1);
  color: #0a7270;
}

.booking-row-status.status-complete {
  border-color: var(--green);
  background: rgba(84, 185, 109, 0.1);
  color: #2d7a42;
}

.booking-row-status.status-cancelled {
  border-color: var(--coral);
  background: rgba(255, 107, 87, 0.1);
  color: #b83a2a;
}

.booking-row-view {
  justify-self: end;
  white-space: nowrap;
}

/* Booking detail (single column, clean) */
.booking-detail-shell {
  max-width: 920px;
}

.booking-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.booking-detail-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.booking-detail-ref {
  margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--muted);
  font-weight: 800;
}

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

.booking-detail-body .booking-row-status {
  margin-bottom: 4px;
}

.booking-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.booking-detail-meta-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.booking-detail-meta-item span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-detail-meta-item span:last-child {
  font-weight: 900;
  font-size: 1.05rem;
}

.booking-create-page {
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 150px);
  padding: clamp(20px, 4vw, 34px);
  max-width: 720px;
}

.booking-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.booking-create-header .eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
}

.booking-create-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.booking-create-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.booking-create-form {
  max-width: 100%;
}

/* Old booking styles kept for compatibility but unused */
.booking-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.booking-detail-panel {
  display: grid;
  gap: 20px;
}

.booking-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(23, 23, 36, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 23, 36, 0.08);
}

.booking-detail-hero .eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
}

.booking-detail-hero h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1;
}

.booking-detail-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

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

.booking-detail-metrics span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.booking-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.booking-action-grid form,
.booking-message-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.storyboard-package-form {
  grid-column: 1 / -1;
  background: #fff;
}

.storyboard-scene-list {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.storyboard-scene {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fffaf2;
}

.storyboard-scene legend {
  font-weight: 900;
  margin-bottom: 12px;
}

.storyboard-scene-editor {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
}

.storyboard-scene-editor:focus {
  color: var(--ink);
  text-align: left;
}

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

.post-manager-list {
  display: grid;
  gap: 18px;
}

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

.post-editor-card-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.post-editor-card .eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.76rem;
}

.post-editor-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.post-editor-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.post-thumb {
  width: 112px;
  aspect-ratio: 1.3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.post-editor-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.post-body-editor {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.editor-tool {
  min-width: 38px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.editor-tool:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.post-preview-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.post-preview-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

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

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}

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

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.booking-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.booking-log h4 {
  margin: 0 0 10px;
}

.timeline-item {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-of-type {
  border-top: 0;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

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

.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

.preview-frame,
.email-preview-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.email-preview-frame {
  min-height: 260px;
}

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

.activity-feed article {
  padding: 12px;
  border-left: 5px solid var(--teal);
  background: #fff;
}

.activity-feed p {
  margin: 4px 0 0;
  color: var(--muted);
}

.readiness-grid {
  display: grid;
  gap: 10px;
}

.readiness-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.readiness-item.action_needed {
  border-left-color: var(--coral);
  background: #fff5f1;
}

.readiness-item.advisory {
  border-left-color: var(--yellow);
  background: #fffaf0;
}

.readiness-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.work-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-item img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.work-item video {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  background: #000;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 16, 0.72);
}

.modal.open {
  display: grid;
}

.modal-inner {
  width: min(780px, 100%);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-body {
  padding: 18px;
}

.video-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.video-placeholder video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}

@keyframes slidePulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-24px);
  }
}

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

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .section-heading,
  .split,
  .admin-layout,
  .portal-layout,
  .booking-activity,
  .booking-action-grid,
  .design-workspace,
  .design-editor-shell,
  .post-editor-shell,
  .columns-2,
  .columns-3 {
    grid-template-columns: 1fr;
  }

  .booking-create-header {
    display: grid;
  }

  .booking-table-header {
    display: none;
  }

  .booking-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    background: var(--surface);
  }

  .booking-row:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }

  .booking-row-customer {
    font-size: 1.1rem;
  }

  .booking-row-ref {
    font-size: 0.85rem;
  }

  .booking-row-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .booking-row-view {
    justify-self: start;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .booking-row-view button,
  .booking-row-view a {
    width: 100%;
    justify-content: center;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

  .mini-table thead {
    display: none;
  }

  .mini-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .mini-table td {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border: 0;
  }

  .mini-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mini-table td:last-child {
    grid-template-columns: 1fr;
  }

  .readiness-item {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topbar {
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-topbar > .brand {
    margin-left: auto;
  }

  .admin-main {
    padding: 16px;
  }

  .booking-filters {
    flex-direction: column;
  }

  .booking-filters label {
    min-width: 100%;
  }

  .booking-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-detail-header {
    flex-direction: column;
  }

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

  .design-library-panel {
    position: static;
    max-height: none;
  }

  .design-template-list {
    max-height: 420px;
  }

  .design-preview-panel,
  .post-preview-panel {
    position: static;
  }

  .admin-sidebar,
  .portal-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    overflow-x: visible;
  }

  .tab-button {
    width: 100%;
    margin-bottom: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .service-grid,
  .media-grid,
  .stats-grid,
  .design-command-grid,

  .booking-command-grid,
  .blog-stats,
  .portal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -- Mobile: stacked data-rows, readiness-items, and admin topbar -- */

@media (max-width: 640px) {
  .hero {
    min-height: 720px;
    align-items: flex-end;
  }

  .hero-actions,
  .form-grid,
  .service-grid,
  .media-grid,
  .stats-grid,
  .design-command-grid,
  .booking-command-grid,
  .booking-detail-metrics,
  .booking-detail-meta-grid,
  .blog-stats,
  .portal-card-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .form-grid,
  .service-grid,
  .media-grid,
  .stats-grid,
  .design-command-grid,
  .booking-command-grid,
  .booking-detail-metrics,
  .blog-stats,
  .portal-card-grid {
    display: grid;
  }

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

  .post-editor-card-head {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    width: 100%;
  }

  .admin-panel {
    padding: 14px;
  }

  .workspace {
    gap: 14px;
  }

  .data-list {
    gap: 8px;
  }

  .page-shell {
    padding: 100px 14px 52px;
  }

  .site-footer a {
    display: inline-flex;
    margin: 8px 12px 0 0;
  }
}
