:root,
html[data-theme='graphite'] {
  --bg-primary: #141414;
  --bg-secondary: #141414;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --accent: #ffffff;
  --border: #222222;
  --gap: 4px;
}

html[data-theme='umber'] {
  --bg-primary: #302626;
  --bg-secondary: #302626;
  --border: #3d3333;
}

html[data-theme='dusk'] {
  --bg-primary: #282833;
  --bg-secondary: #282833;
  --border: #353545;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --nav-height: 98px;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.35s ease;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.sized-img {
  max-width: 100%;
  height: auto;
}

html.lightbox-open {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  min-height: var(--nav-height);
  max-height: var(--nav-height);
  overflow: hidden;
  padding: 0 20px;
  gap: 16px;
}

.site-wordmark {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  line-height: 1;
  transition: filter 0.25s ease;
}

.site-wordmark-link:hover .site-wordmark,
.site-wordmark-link:focus-visible .site-wordmark {
  filter: none;
}

.site-wordmark-line {
  display: block;
  line-height: 1;
}

.site-wordmark-crop {
  overflow: hidden;
  clip-path: inset(0.26em 0 0.18em 0);
}

.site-wordmark-line > span {
  display: block;
  line-height: 1;
  background-image: linear-gradient(180deg, #f3f3f3, #9a9a9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: background-image 0.25s ease;
}

.site-wordmark-link:hover .site-wordmark-line > span,
.site-wordmark-link:focus-visible .site-wordmark-line > span {
  background-image: linear-gradient(180deg, #ffffff 0%, #d0d0d0 42%, #f7f7f7 52%, #a8a8a8 100%);
}

.site-wordmark-shift {
  overflow: hidden;
  height: calc(0.74em - 1px);
  margin-top: calc(-0.18em + 1px);
}

.site-wordmark-shift > span {
  padding-left: 0.28em;
  transform: translateY(-0.17em);
}

@media (min-width: 768px) {
  html {
    --nav-height: 130px;
  }

  .site-nav {
    padding: 0 2.25rem;
    gap: 1.5rem;
  }

  .site-wordmark {
    font-size: 44px;
  }
}

.portfolio-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--grid-mobile, 1), minmax(0, 1fr));
  gap: var(--grid-gap, 0px);
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(var(--grid-tablet, 2), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(var(--grid-desktop, 4), minmax(0, 1fr));
  }
}

.portfolio-grid.is-social {
  align-items: start;
  justify-items: stretch;
}

.portfolio-grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  aspect-ratio: var(--grid-aspect, 9 / 14);
}

.portfolio-grid-item img,
.portfolio-grid-item .sized-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.portfolio-grid-item.is-auto img,
.portfolio-grid-item.is-auto .sized-img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

a.portfolio-grid-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-grid-item.is-auto {
  aspect-ratio: auto;
}

.portfolio-grid.has-hover-mobile .portfolio-grid-item img,
.portfolio-grid.has-hover-tablet .portfolio-grid-item img,
.portfolio-grid.has-hover-desktop .portfolio-grid-item img,
.portfolio-grid.has-hover .portfolio-grid-item img {
  transform-origin: center center;
  transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99);
}

@media (max-width: 639px) {
  .portfolio-grid.has-hover-mobile .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover .portfolio-grid-item:hover img {
    transform: scale(1.1);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .portfolio-grid.has-hover-tablet .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover .portfolio-grid-item:hover img {
    transform: scale(1.1);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid.has-hover-desktop .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover .portfolio-grid-item:hover img {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-grid.has-hover-mobile .portfolio-grid-item img,
  .portfolio-grid.has-hover-tablet .portfolio-grid-item img,
  .portfolio-grid.has-hover-desktop .portfolio-grid-item img,
  .portfolio-grid.has-hover .portfolio-grid-item img {
    transition: none;
  }

  .portfolio-grid.has-hover-mobile .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover-tablet .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover-desktop .portfolio-grid-item:hover img,
  .portfolio-grid.has-hover .portfolio-grid-item:hover img {
    transform: none;
  }
}

.portfolio-grid-caption {
  position: absolute;
  top: 44px;
  left: 44px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  color: #fff;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text Pro", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 32px;
  text-transform: none;
  text-shadow: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

.portfolio-grid-caption-title,
.portfolio-grid-caption-sub {
  display: block;
  max-width: 100%;
}

.portfolio-grid-caption-title {
  font-weight: 400;
  color: #fff;
}

.portfolio-grid-caption-sub {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-grid-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  z-index: 1;
  background: linear-gradient(rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

@media (hover: hover) and (max-width: 639px) {
  .portfolio-grid.has-caption-mobile .portfolio-grid-item:hover .portfolio-grid-caption {
    opacity: 1;
    transform: none;
  }

  .portfolio-grid.has-caption-mobile .portfolio-grid-item:hover::after {
    opacity: 1;
  }
}

@media (hover: hover) and (min-width: 640px) and (max-width: 1023px) {
  .portfolio-grid.has-caption-tablet .portfolio-grid-item:hover .portfolio-grid-caption {
    opacity: 1;
    transform: none;
  }

  .portfolio-grid.has-caption-tablet .portfolio-grid-item:hover::after {
    opacity: 1;
  }
}

@media (hover: hover) and (min-width: 1024px) {
  .portfolio-grid.has-caption-desktop .portfolio-grid-item:hover .portfolio-grid-caption {
    opacity: 1;
    transform: none;
  }

  .portfolio-grid.has-caption-desktop .portfolio-grid-item:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-grid-caption,
  .portfolio-grid-item::after {
    transition: none;
    transform: none;
  }
}

.masonry-grid {
  column-count: 4;
  column-gap: var(--gap);
  padding: var(--gap);
  width: 100%;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  cursor: default;
  animation: fadeIn 0.25s ease;
}

.lightbox-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2.25rem;
  pointer-events: none;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: auto;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.lightbox-overlay.is-zoomed .lightbox-image {
  cursor: grab;
  transition: none;
}

.lightbox-overlay.is-zoomed .lightbox-image.is-dragging {
  cursor: grabbing;
}

.lightbox-close,
.lightbox-zoom,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #111;
  transition: opacity 0.25s ease;
}

.lightbox-close,
.lightbox-zoom {
  top: max(10px, env(safe-area-inset-top, 0px));
  width: 56px;
  height: 56px;
  opacity: 0.88;
}

.lightbox-close {
  right: max(10px, env(safe-area-inset-right, 0px));
}

.lightbox-zoom-out {
  left: max(10px, env(safe-area-inset-left, 0px));
}

.lightbox-zoom-in {
  left: calc(max(10px, env(safe-area-inset-left, 0px)) + 48px);
}

.lightbox-zoom:disabled {
  opacity: 0.22;
  cursor: default;
}

.lightbox-close svg,
.project-page-close svg {
  display: block;
  transition: transform 0.4s ease;
}

.lightbox-close:hover,
.lightbox-zoom:hover:not(:disabled),
.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-close:hover svg,
.project-page-close:hover svg {
  transform: rotate(45deg);
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 104px;
  transform: translateY(-50%);
  opacity: 0.28;
  transition: opacity 0.25s ease;
}

.lightbox-nav-prev {
  left: max(2px, env(safe-area-inset-left, 0px));
}

.lightbox-nav-next {
  right: max(2px, env(safe-area-inset-right, 0px));
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 1;
  transform: translateX(-50%);
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(20, 20, 20, 0.38);
}

@media (min-width: 768px) {
  .lightbox-frame {
    padding: 2.5rem 3.5rem;
  }

  .lightbox-close,
  .lightbox-zoom {
    top: max(18px, env(safe-area-inset-top, 0px));
    width: 56px;
    height: 56px;
  }

  .lightbox-close {
    right: max(18px, env(safe-area-inset-right, 0px));
  }

  .lightbox-zoom-out {
    left: max(18px, env(safe-area-inset-left, 0px));
  }

  .lightbox-zoom-in {
    left: calc(max(18px, env(safe-area-inset-left, 0px)) + 48px);
  }

  .lightbox-nav {
    width: 60px;
    height: 120px;
  }

  .lightbox-nav-prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .lightbox-close svg,
  .project-page-close svg {
    width: 26px;
    height: 26px;
  }

  .lightbox-nav svg,
  .project-page-nav svg {
    width: 24px;
    height: 46px;
  }

  .project-page-nav {
    width: 60px;
    height: 120px;
  }

  .project-page-nav-prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .project-page-nav-next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }
}

.project-shell {
  background-color: var(--page-bg, #0d0d0d);
  min-height: calc(100vh - var(--nav-height));
}

.project-page {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

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

.project-page-back {
  display: inline-block;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.project-page-close {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.project-page-close:hover {
  opacity: 1;
}

.project-page-nav {
  position: fixed;
  top: calc(var(--nav-height) + (100dvh - var(--nav-height)) / 2);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 104px;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.project-page-nav:hover {
  opacity: 1;
}

.project-page-nav-prev {
  left: max(2px, env(safe-area-inset-left, 0px));
}

.project-page-nav-next {
  right: max(2px, env(safe-area-inset-right, 0px));
}

.project-page-back:hover {
  color: #fff;
}

.project-shell.is-light-bg .project-page-back,
.project-shell.is-light-bg .project-page-title,
.project-shell.is-light-bg .project-page-close,
.project-shell.is-light-bg .project-page-nav,
.admin-studio-stage.is-light-bg .project-page-back,
.admin-studio-stage.is-light-bg .project-page-title {
  color: #141414;
}

.project-shell.is-light-bg .project-page-note,
.project-shell.is-light-bg .project-page-text,
.admin-studio-stage.is-light-bg .project-page-note,
.admin-studio-stage.is-light-bg .project-page-text {
  color: #3f3a36;
}

.project-page-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-page-note {
  margin: 0 0 28px;
  max-width: 42rem;
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.55;
}

.project-page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap, 20px);
}

.project-page-stack > .project-page-shot + .project-page-shot {
  margin-top: calc(-1px + min(1px, var(--content-gap, 20px)));
}

.project-page-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  line-height: 0;
  font-size: 0;
}

.project-page-shot.is-tablet {
  width: min(720px, 100%);
  margin-inline: auto;
}

.project-page-shot.is-phone {
  width: min(390px, 100%);
  margin-inline: auto;
}

.project-page-image,
.project-page-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.project-page-shot.has-ratio {
  aspect-ratio: var(--shot-ratio, 14 / 9);
  overflow: hidden;
  background: transparent;
}

.project-page-shot.has-ratio img,
.project-page-shot.has-ratio .project-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-shell.is-viewport-fit {
  --fit-chrome: 8.75rem;
}

.project-shell.is-viewport-fit .project-page {
  padding-bottom: 32px;
}

.project-shell.is-viewport-fit .project-page-shot.has-ratio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--nav-height) - var(--fit-chrome));
  aspect-ratio: auto;
  margin-inline: auto;
}

.project-shell.is-viewport-fit .project-page-shot.has-ratio img,
.project-shell.is-viewport-fit .project-page-shot.has-ratio .project-page-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--nav-height) - var(--fit-chrome));
  object-fit: contain;
  object-position: center;
}

.project-page-text {
  max-width: 42rem;
  color: #d4d4d4;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.project-page-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: inherit;
}

.project-page-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.project-page-video iframe,
.project-page-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.project-page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-page-cta:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 640px) {
  .project-page {
    width: calc(100% - 32px);
    padding-top: 20px;
  }
}

.page-enter {
  animation: pageEnter 0.5s ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
}

.mobile-nav-tools {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-nav-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-socials a {
  display: flex;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.mobile-nav-socials a:hover {
  color: #fff;
}

.mobile-menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.mobile-menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 26px;
}

.mobile-menu-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.mobile-menu-line.is-mid {
  width: 54%;
  margin-left: auto;
}

@media (min-width: 768px) {
  .mobile-nav-tools {
    display: none;
  }
}

.nav-link {
  position: relative;
  letter-spacing: normal;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 20px;
  background: var(--bg-primary);
}

.contact-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-primary) 88%, white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 24px 22px 22px;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-page {
    padding: 20px 24px 24px;
  }

  .contact-card {
    padding: 28px 28px 24px;
  }
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 6px 0 8px;
  width: 100%;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-bottom-color: var(--text-primary);
}

.form-input.is-invalid {
  border-bottom-color: #f87171;
}

.contact-field-error {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #f87171;
}

.form-input::placeholder {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.form-input[type="email"]::placeholder {
  text-transform: none;
  letter-spacing: 0.02em;
}

.contact-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  margin: 0;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111;
  outline: none;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-left: 24px;
  padding-right: 24px;
}

.site-footer-line {
  margin: 0;
  max-width: 42rem;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #6a7282;
}

/* Tailwind utility subset used by public Blade views */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); border: 0; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.min-h-dvh { min-height: 100dvh; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-\[5px\] { gap: 5px; }
.overflow-hidden { overflow: hidden; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.w-5 { width: 1.25rem; }
.w-full { width: 100%; }
.h-\[130px\] { height: 130px; }
.h-\[1px\] { height: 1px; }
.h-auto { height: auto; }
.min-h-\[60vh\] { min-height: 60vh; }
.max-h-0 { max-height: 0; }
.max-h-\[500px\] { max-height: 500px; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.rotate-45 { rotate: 45deg; }
.-rotate-45 { rotate: -45deg; }
.translate-y-\[6px\] { transform: translateY(6px); }
.-translate-y-\[6px\] { transform: translateY(-6px); }
.scale-x-0 { transform: scaleX(0); }
.origin-center { transform-origin: center; }
.uppercase { text-transform: uppercase; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-white\/45 { color: rgba(255, 255, 255, 0.45); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-gray-500 { color: #6a7282; }
.text-emerald-400 { color: #00d294; }
.text-red-400 { color: #ff6568; }
.text-\[\#999\] { color: #999; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-\[16px\] { font-size: 16px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.leading-none { line-height: 1; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[0\.1em\] { letter-spacing: 0.1em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/25 { border-color: rgba(255, 255, 255, 0.25); }
.bg-white { background-color: #fff; }
.bg-\[var\(--bg-primary\)\] { background-color: var(--bg-primary); }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-3 { padding-top: 0.75rem; }
.p-2 { padding: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.-mr-2 { margin-right: -0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.resize-none { resize: none; }
.space-y-4 > :not(:last-child) { margin-bottom: 1rem; }
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-opacity { transition: opacity 0.2s; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.last\:mb-0:last-child { margin-bottom: 0; }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:text-black:hover { color: #000; }
.hover\:opacity-80:hover { opacity: 0.8; }
.object-cover { object-fit: cover; }

@media (min-width: 640px) {
  .sm\:w-auto { width: auto; }
  .sm\:text-\[18px\] { font-size: 18px; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

/* ── Admin panel (sharp, 0-radius) ── */
.admin-shell {
  --admin-bg: #eceae6;
  --admin-surface: #ffffff;
  --admin-ink: #141414;
  --admin-muted: #6b6b6b;
  --admin-line: #d4d1cb;
  --admin-hover: #f3f2ef;
  --admin-accent: #141414;
  --admin-sidebar-w: 280px;
  --admin-sidebar-collapsed: 72px;
  --admin-dock-w: 300px;
  --admin-dock-collapsed: 64px;
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-ink);
}

.admin-shell,
.admin-shell *:not(.admin-switch):not(.admin-switch-knob) {
  border-radius: 0 !important;
}

.admin-shell ::selection {
  background: rgba(28, 25, 23, 0.12);
  color: var(--admin-ink);
}

.admin-page-center {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.admin-page-center.is-wide {
  max-width: 48rem;
}

.admin-page-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--admin-ink);
}

.admin-page-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--admin-muted);
  line-height: 1.5;
}

.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
  box-shadow: none;
}

.admin-account-card {
  margin-top: 24px;
  margin-bottom: 0;
  overflow: hidden;
}

.admin-account-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-account-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-account-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-account-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 24px;
}

.admin-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--admin-muted);
}

.admin-password-field {
  position: relative;
}

.admin-password-field .admin-input {
  padding-right: 48px;
}

.admin-password-icon {
  appearance: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c8c4bc;
  background: #fff;
  color: #44403c;
  cursor: pointer;
}

.admin-password-icon:hover {
  border-color: #141414;
  color: #141414;
}

.admin-password-icon[aria-pressed="true"] {
  background: #141414;
  border-color: #141414;
  color: #fff;
}

.admin-password-icon .icon-hide { display: none; }
.admin-password-icon[aria-pressed="true"] .icon-show { display: none; }
.admin-password-icon[aria-pressed="true"] .icon-hide { display: block; }

.admin-account-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .admin-account-split { grid-template-columns: 1fr 1fr; }
}

.admin-flush-card {
  overflow: hidden;
  padding: 0;
}

.admin-card-foot,
.admin-account-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--admin-line);
  background: #f6f5f2;
}

.admin-card-foot p,
.admin-account-foot p {
  margin: 0;
  margin-right: auto;
  font-size: 12px;
  line-height: 1.4;
  color: var(--admin-muted);
}

.admin-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #44403c;
}

.admin-input {
  width: 100%;
  background: #fff;
  border: 1px solid #c8c4bc;
  color: var(--admin-ink);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.admin-input:focus {
  border-color: #141414;
  box-shadow: none;
}

.admin-input::placeholder {
  color: #a8a29e;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}

.admin-textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141414;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.admin-btn:hover { background: #2a2a2a; color: #fff; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #2a2a2a;
  border: 1px solid #c8c4bc;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.admin-btn-outline:hover { background: #f7f5f0; border-color: #c4bfb6; }

.admin-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #b42318;
  border: 1px solid #f0c4c0;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
}

.admin-btn-danger:hover { background: #fef3f2; }

.admin-btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-btn-danger:disabled:hover { background: transparent; }

.admin-work-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

.admin-work-select-count {
  font-size: 13px;
  font-weight: 500;
  color: #44403c;
}

.admin-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #44403c;
  cursor: pointer;
  user-select: none;
}

.admin-select-all input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #141414;
  cursor: pointer;
}

.admin-work-select {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 25;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d4d1cb;
  cursor: pointer;
}

.admin-work-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #141414;
  cursor: pointer;
}

.admin-work-card.is-selected {
  outline: 2px solid #141414;
}

/* Admin portfolio grid */
.admin-portfolio-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--grid-desktop, 4), minmax(0, 1fr));
  gap: var(--grid-gap, 8px);
}

.admin-portfolio-grid.is-social { align-items: start; }

.admin-works-board {
  display: flex;
  align-items: flex-start;
  gap: var(--grid-gap, 8px);
}

.admin-create-dock[hidden] {
  display: none !important;
}

.admin-create-dock {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid #e7e4dc;
  background: #fff;
}

.admin-create-dock.is-drop {
  outline: 2px solid #141414;
  outline-offset: -2px;
}

.admin-create-dock .admin-studio-tabs {
  flex-shrink: 0;
}

.admin-create-dock .admin-studio-body {
  flex: 1;
  min-height: 0;
}

.admin-create-dock .admin-studio-foot {
  flex-shrink: 0;
}

.admin-create-dock:not(.is-studio-open) .admin-studio-foot,
.admin-studio-foot[hidden] {
  display: none !important;
}

.admin-device-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "desk desk"
    "wide wide"
    "tab phone";
  align-items: end;
  gap: 14px 12px;
  padding: 16px 12px 12px;
  background: #f6f4ef;
  border: 1px solid #ebe7de;
}

.admin-device-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.admin-device-slot.is-desktop { grid-area: desk; }
.admin-device-slot.is-wide { grid-area: wide; }
.admin-device-slot.is-tablet { grid-area: tab; width: 72%; justify-self: center; }
.admin-device-slot.is-phone { grid-area: phone; width: 48%; justify-self: center; }

.admin-device-slot .admin-add-frame {
  width: 100%;
  min-height: 0;
  padding: 0;
  border-width: 1px;
  background: #fff;
}

.admin-create-dock .admin-device-slot.is-desktop .admin-add-frame { aspect-ratio: 16 / 9; }
.admin-create-dock .admin-device-slot.is-wide .admin-add-frame { aspect-ratio: 297 / 210; }
.admin-create-dock .admin-device-slot.is-tablet .admin-add-frame { aspect-ratio: 3 / 4; }
.admin-create-dock .admin-device-slot.is-phone .admin-add-frame { aspect-ratio: 9 / 16; }

.admin-device-slot .admin-add-plus {
  width: 22px;
  height: 22px;
}

.admin-device-slot .admin-add-label {
  display: none;
}

.admin-device-caption {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #57534e;
}

.admin-device-caption small {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: #78716c;
}

@media (min-width: 1100px) {
  .admin-create-dock {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: var(--admin-dock-w);
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #e7e4dc;
    overflow: hidden;
    transition: width 0.22s ease;
  }

  .admin-shell.has-create-dock .admin-main {
    margin-right: var(--admin-dock-w);
    transition: margin-right 0.22s ease;
  }

  .admin-shell.has-create-dock .admin-content-wrap {
    max-width: none;
  }

  .admin-shell.has-create-dock .admin-studio {
    right: var(--admin-dock-w);
    transition: right 0.22s ease;
  }

  .admin-shell.is-dock-collapsed {
    --admin-dock-w: var(--admin-dock-collapsed);
  }

  .admin-shell.is-dock-collapsed .admin-create-dock {
    overflow: visible;
  }

  .admin-shell.is-dock-collapsed .admin-dock-toggle {
    width: 100%;
    flex: 0 0 48px;
    border-right: 0;
    border-bottom: 1px solid #e7e4dc;
  }

  .admin-dock-toggle .icon-open { display: none; }

  .admin-shell.is-dock-collapsed .admin-dock-toggle .icon-close { display: none; }
  .admin-shell.is-dock-collapsed .admin-dock-toggle .icon-open { display: block; }

  .admin-shell.is-dock-collapsed .admin-studio-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tabs {
    flex-direction: column;
    border-bottom: 0;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tabs button {
    flex: none;
    height: 44px;
    box-shadow: none;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tabs button.is-on {
    box-shadow: inset 2px 0 0 #141414;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tab-label,
  .admin-shell.is-dock-collapsed .admin-studio-hint,
  .admin-shell.is-dock-collapsed .admin-studio-sort,
  .admin-shell.is-dock-collapsed .admin-studio-bulk-size,
  .admin-shell.is-dock-collapsed .admin-studio-tool-label,
  .admin-shell.is-dock-collapsed .admin-studio-compose,
  .admin-shell.is-dock-collapsed .admin-studio-block-tools,
  .admin-shell.is-dock-collapsed [data-studio-panel="meta"] {
    display: none !important;
  }

  .admin-shell.is-dock-collapsed .admin-studio-body {
    padding: 8px;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tools {
    gap: 6px;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tool {
    justify-content: center;
    gap: 0;
    min-height: 44px;
    padding: 0;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tool span:first-child {
    width: 28px;
    height: 28px;
    border: 0;
  }

  .admin-shell.is-dock-collapsed .admin-studio-foot {
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-shell.is-dock-collapsed .admin-studio-foot .admin-btn,
  .admin-shell.is-dock-collapsed .admin-studio-foot .admin-btn-outline {
    min-height: 36px;
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 4px 2px;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tabs button[data-label]:hover::after,
  .admin-shell.is-dock-collapsed .admin-studio-tool[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 140;
    padding: 6px 10px;
    background: #141414;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    pointer-events: none;
  }

  .admin-shell.is-dock-collapsed .admin-studio-tabs button,
  .admin-shell.is-dock-collapsed .admin-studio-tool {
    position: relative;
  }
}

.admin-add-column {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(152px, 42vw);
  width: min(152px, 42vw);
  gap: 16px;
}

.admin-add-slot {
  width: 100%;
}

.admin-add-meta {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #1c1917;
}

.admin-add-meta small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #78716c;
}

.admin-add-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 9 / 14;
  cursor: pointer;
  overflow: hidden;
  border: 2px dashed #c4bfb6;
  background: #faf9f6;
  color: #78716c;
  padding: 0;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-add-frame:hover,
.admin-add-frame.is-active {
  border-color: #1c1917;
  background: #fff;
  color: #1c1917;
}

.admin-add-frame:disabled {
  cursor: wait;
  opacity: 0.7;
}

.admin-add-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid currentColor;
}

.admin-add-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.admin-works-board .admin-portfolio-grid {
  flex: 1 1 0;
  min-width: 0;
}

.admin-hover-toggle,
.admin-column-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d1cb;
  background: #fff;
}

.admin-hover-toggle > span,
.admin-column-stepper > span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
}

.admin-hover-toggle button,
.admin-column-stepper button,
.admin-column-stepper strong {
  height: 36px;
  border: none;
  border-left: 1px solid #d4d1cb;
  background: #fff;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.admin-hover-toggle button {
  padding: 0 12px;
}

.admin-hover-toggle button:first-child,
.admin-column-stepper button:first-child,
.admin-column-stepper strong:first-child {
  border-left: 0;
}

.admin-column-stepper button {
  width: 36px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.admin-column-stepper strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
}

.admin-hover-toggle button.is-on,
.admin-hover-toggle button.is-off-active {
  background: #141414;
  color: #fff;
}

.admin-hover-toggle button:disabled,
.admin-column-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.admin-work-card {
  position: relative;
  overflow: hidden;
  cursor: grab;
  background: #f3f1ec;
}

.admin-work-card:active {
  cursor: grabbing;
}

.admin-work-card.is-dragging {
  opacity: 0.5;
}

.admin-work-card.is-drop-target {
  outline: 2px solid #141414;
}

.admin-cat-row {
  cursor: grab;
}

.admin-cat-row:active {
  cursor: grabbing;
}

.admin-cat-row.is-editing,
.admin-cat-row.is-editing:active {
  cursor: default;
}

.admin-cat-row.is-dragging {
  opacity: 0.5;
}

.admin-cat-row.is-drop-target {
  outline: 2px solid #141414;
}

.admin-cat-grip {
  display: inline-flex;
  width: 16px;
  height: 32px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.admin-cat-grip span {
  display: flex;
  gap: 3px;
}

.admin-cat-grip i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #c4bfb6;
}

.admin-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.admin-work-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  background: rgb(0 0 0 / 0);
  opacity: 1;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 640px) {
  .admin-work-overlay {
    opacity: 0;
  }

  .admin-work-card:hover .admin-work-overlay {
    opacity: 1;
    background: rgb(0 0 0 / 0.45);
  }
}

.admin-work-card:hover .admin-work-overlay {
  background: rgb(0 0 0 / 0.45);
}

.admin-work-overlay p {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.admin-work-overlay .work-title {
  font-size: 12px;
  font-weight: 500;
}

.admin-work-overlay .work-path {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-work-actions a,
.admin-work-actions button {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.admin-work-actions a {
  background: #fff;
  color: #1c1917;
}

.admin-work-actions button[data-add-frames],
.admin-work-actions button[data-work-style],
.admin-work-actions button[data-work-studio] {
  background: #fff;
  color: #1c1917;
}

.admin-style-overlay {
  z-index: 90;
  align-items: center;
}

.admin-style-panel {
  width: min(560px, calc(100vw - 32px));
  margin: auto;
  padding: 36px 40px 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(20, 20, 20, 0.18);
}

.admin-style-panel h2 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.admin-style-panel > p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #78716c;
}

.admin-style-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-style-fields {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-style-field {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px 28px;
}

.admin-style-field-label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #1c1917;
}

.admin-style-color,
.admin-style-range {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-style-color input[type="color"] {
  width: 72px;
  height: 36px;
  padding: 3px;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.admin-style-or {
  font-size: 13px;
  color: #8a847c;
}

.admin-style-hex {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  background: #fff;
  color: #8a847c;
  font-size: 14px;
}

.admin-style-hex input {
  width: 5.2em;
  border: 0;
  background: transparent;
  color: #1c1917;
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}

.admin-style-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#2f6df6, #2f6df6) 0 / var(--fill, 31%) 100% no-repeat #e6e4de;
  outline: none;
  cursor: pointer;
}

.admin-style-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.admin-style-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 1px solid #d9d6cf;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.16);
}

.admin-style-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid #d9d6cf;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.16);
}

.admin-style-slider::-moz-range-track {
  height: 4px;
  background: transparent;
}

.admin-style-pks {
  min-width: 3.6rem;
  color: #6b6660;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.admin-style-inline {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e7e4dc;
}

@media (max-width: 639px) {
  .admin-style-field {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.admin-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.admin-work-actions button {
  background: #b42318;
  color: #fff;
}

.admin-order-bar {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 20;
  display: flex;
  border: 1px solid #d4d1cb;
  background: #fff;
}

.admin-order-bar button,
.admin-order-bar input {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 28px;
  border: none;
  background: transparent;
  color: #141414;
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.admin-order-bar input {
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-left: 1px solid #d4d1cb;
  border-right: 1px solid #d4d1cb;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: text;
}

.admin-order-bar input:focus {
  outline: none;
  background: #f7f5f0;
}

.admin-order-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.admin-featured-badge,
.admin-draft-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 10;
  border: 1px solid #141414;
  background: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #141414;
}

.admin-draft-badge {
  top: auto;
  bottom: 8px;
  border-color: #a8a29e;
  color: #78716c;
}

.admin-draft-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgb(20 20 20 / 0.55);
  padding: 16px;
}

.admin-draft-overlay[hidden] {
  display: none !important;
}

.admin-draft-panel {
  width: 100%;
  max-width: 48rem;
  margin: auto;
  background: #fff;
  border: 1px solid #e7e4dc;
}

.admin-draft-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border: 1px solid #e7e4dc;
  padding: 16px;
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  pointer-events: none;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #027a48;
}

.cat-filter-btn {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #44403c;
}

.cat-filter-btn.is-active {
  background: #1c1917;
  color: #fff;
}

.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-card {
  display: flex;
  flex: 1 1 132px;
  min-width: 132px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7e4dc;
  background: #faf9f6;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.theme-card:hover,
.theme-card.is-selected {
  border-color: #141414;
  background: #fff;
}

.theme-swatch {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-card-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #141414;
}

.theme-card-hex {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716c;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.keyword-chip {
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #44403c;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.keyword-chip.is-on {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.seo-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #a8a29e;
}

.seo-count.is-over {
  color: #b42318;
}

.admin-seo-split {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .admin-seo-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .admin-draft-overlay {
    padding: 32px;
  }

  .admin-draft-article {
    grid-template-columns: 140px 1fr;
  }
}

/* Admin layout shell */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--admin-sidebar-w);
  background: #fff;
  border-right: 1px solid #e7e4dc;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease, width 0.22s ease;
}

.admin-sidebar.is-open { transform: translateX(0); }

.admin-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid #e7e4dc;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.admin-nav-brand-copy {
  min-width: 0;
}

.admin-nav-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1917;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.admin-nav-brand-copy p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #141414;
}

.admin-nav-brand-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #78716c;
}

.admin-nav-toggle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #44403c;
  cursor: pointer;
}

.admin-nav-toggle:hover {
  background: #f3f2ef;
  color: #141414;
}

.admin-nav-toggle .icon-open { display: none; }

.admin-nav-body {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.admin-nav-section {
  margin: 0 0 10px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a29e;
}

.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav-list li {
  margin-bottom: 4px;
}

.admin-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #44403c;
  background: transparent;
  transition: background 0.15s;
}

.admin-nav-link:hover {
  background: #f3f2ef;
}

.admin-nav-link.is-on {
  background: #1c1917;
  color: #fff;
}

.admin-nav-icon {
  flex: 0 0 18px;
  display: flex;
  color: #78716c;
}

.admin-nav-link.is-on .admin-nav-icon {
  color: #fff;
}

.admin-nav-copy {
  flex: 1;
  min-width: 0;
}

.admin-nav-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.admin-nav-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #a8a29e;
}

.admin-nav-link.is-on .admin-nav-hint {
  color: rgba(255, 255, 255, 0.6);
}

.admin-nav-badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #b42318;
  color: #fff;
}

.admin-nav-link.is-on .admin-nav-badge {
  background: #fff;
  color: #1c1917;
}

.admin-nav-quick {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e7e4dc;
}

.admin-nav-foot {
  padding: 12px;
  border-top: 1px solid #e7e4dc;
}

.admin-nav-logout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.admin-nav-logout:hover {
  background: #f3f2ef;
  color: #141414;
}

.admin-main {
  min-height: 100vh;
  transition: margin-left 0.22s ease;
}

.admin-content-wrap {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 20px 40px;
  box-sizing: border-box;
}

.admin-mobile-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  background: #fff;
  border: 1px solid #e7e4dc;
  padding: 12px;
  cursor: pointer;
  display: flex;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0,0,0,0.3);
  display: none;
}

.admin-overlay.is-open { display: block; }

@media (min-width: 768px) {
  .admin-sidebar { transform: translateX(0); }
  .admin-mobile-btn { display: none; }
  .admin-main { margin-left: var(--admin-sidebar-w); }
  .admin-content-wrap { padding: 48px 40px 40px; }

  .admin-shell.is-nav-collapsed {
    --admin-sidebar-w: var(--admin-sidebar-collapsed);
  }

  .admin-shell.is-nav-collapsed .admin-nav-toggle .icon-close { display: none; }
  .admin-shell.is-nav-collapsed .admin-nav-toggle .icon-open { display: block; }

  .admin-shell.is-nav-collapsed .admin-nav-head {
    justify-content: center;
    gap: 0;
    padding: 16px 8px 12px;
  }

  .admin-shell.is-nav-collapsed .admin-nav-brand,
  .admin-shell.is-nav-collapsed .admin-nav-mark,
  .admin-shell.is-nav-collapsed .admin-nav-brand-copy,
  .admin-shell.is-nav-collapsed .admin-nav-section,
  .admin-shell.is-nav-collapsed .admin-nav-copy,
  .admin-shell.is-nav-collapsed .admin-nav-logout-label {
    display: none;
  }

  .admin-shell.is-nav-collapsed .admin-nav-toggle {
    margin-left: 0;
  }

  .admin-shell.is-nav-collapsed .admin-sidebar,
  .admin-shell.is-nav-collapsed .admin-nav-body {
    overflow: visible;
  }

  .admin-shell.is-nav-collapsed .admin-nav-body {
    padding: 12px 8px;
  }

  .admin-shell.is-nav-collapsed .admin-nav-link,
  .admin-shell.is-nav-collapsed .admin-nav-logout {
    justify-content: center;
    gap: 0;
    padding: 12px 0;
  }

  .admin-shell.is-nav-collapsed .admin-nav-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .admin-shell.is-nav-collapsed .admin-nav-link[data-label]:hover::after,
  .admin-shell.is-nav-collapsed .admin-nav-logout[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
    padding: 6px 10px;
    background: #141414;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
  }
}

/* Admin utility helpers */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

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

.admin-dash-work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f1ec;
}

.admin-dash-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.admin-dash-work-thumb:hover img {
  transform: scale(1.05);
}

.admin-dash-messages {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  height: 100%;
  padding: 24px;
  overflow: hidden;
}

.admin-dash-messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.admin-dash-messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.admin-dash-message {
  display: block;
  flex-shrink: 0;
  border: 1px solid #e7e4dc;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.admin-dash-messages-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #d6d3cd;
  background: #faf9f6;
  padding: 16px;
  text-align: center;
}

.admin-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.admin-cat-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: start;
  border-bottom: 1px solid #e7e4dc;
  padding: 16px 20px;
}

.admin-cat-toolbar-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-cat-toolbar-meta {
  font-size: 13px;
  color: #78716c;
  margin: 2px 0 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-cat-toolbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.admin-studio-sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.admin-studio-sort-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
}

.admin-studio-sort-select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #141414;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.admin-studio-bulk-size {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e7e4dc;
}

.admin-studio-bulk-size[hidden] {
  display: none !important;
}

.admin-studio-size-list {
  display: grid;
  gap: 8px;
}

.admin-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 132px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d4d1cb;
  background: #fff;
  color: #44403c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
}

.admin-home-btn:hover {
  border-color: #141414;
  color: #141414;
}

.admin-home-btn.is-on {
  background: #141414;
  border-color: #141414;
  color: #fff;
  cursor: default;
}

.admin-platform-matrix {
  display: grid;
  grid-template-columns: 64px repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  width: 380px;
  max-width: 100%;
  height: auto;
  align-self: start;
  border: 1px solid #d4d1cb;
  background: #fff;
}

@media (max-width: 860px) {
  .admin-cat-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-cat-toolbar-actions {
    width: 100%;
    align-items: flex-end;
  }

  .admin-platform-matrix {
    width: min(380px, 100%);
  }
}

.admin-platform-matrix-head,
.admin-platform-matrix-row {
  display: contents;
}

.admin-platform-matrix-head > span,
.admin-platform-matrix-label,
.admin-platform-matrix .admin-switch-cell,
.admin-platform-matrix .admin-hover-toggle,
.admin-platform-matrix .admin-column-stepper {
  border: 0;
  border-right: 1px solid #eceae4;
  border-bottom: 1px solid #eceae4;
}

.admin-platform-matrix-head > span {
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a857c;
  text-align: center;
}

.admin-platform-matrix-label {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
}

.admin-platform-matrix .admin-switch-cell,
.admin-platform-matrix .admin-hover-toggle,
.admin-platform-matrix .admin-column-stepper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 4px 10px;
  background: transparent;
}

.admin-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 51px;
  height: 31px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px !important;
  background: #e9e9eb;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.admin-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 50% !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.admin-switch.is-on {
  background: #34c759;
  border-color: transparent;
}

.admin-switch.is-on .admin-switch-knob {
  background: #fff;
  transform: translateX(20px);
}

.admin-switch:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.admin-platform-matrix .admin-column-stepper button,
.admin-platform-matrix .admin-column-stepper strong {
  height: 28px;
  flex: 1;
  border-left: 1px solid #eceae4;
}

.admin-platform-matrix .admin-column-stepper button:first-child {
  border-left: 0;
}

.admin-platform-matrix .admin-column-stepper strong {
  min-width: 28px;
}

.admin-platform-matrix-head > span:last-child,
.admin-platform-matrix-row > :last-child {
  border-right: 0;
}

.admin-platform-matrix-row:last-child > * {
  border-bottom: 0;
}

.admin-space-y > * + * { margin-top: 1.25rem; }
.admin-space-y-sm > * + * { margin-top: 0.75rem; }
.admin-space-y-lg > * + * { margin-top: 1.5rem; }

.admin-notice-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #027a48;
  margin-bottom: 16px;
}

.admin-notice-error {
  background: #fef3f2;
  border: 1px solid #f0c4c0;
  padding: 12px 16px;
  font-size: 14px;
  color: #b42318;
  margin-bottom: 16px;
}

.admin-msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-msg-compose {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e7e4dc;
}

.admin-msg-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-msg-thread {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e7e4dc;
}

.admin-msg-thread-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0eee8;
}

.admin-msg-thread-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 640px) {
  .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-row { flex-direction: row; }
}

@media (min-width: 1280px) {
  .admin-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .admin-two-col { grid-template-columns: 3fr 2fr; }
  .admin-dash-works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Truncate + misc text helpers */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.font-mono { font-family: ui-monospace, monospace; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.cursor-grab { cursor: grab; }
.cursor-grab:active { cursor: grabbing; }
.select-none { user-select: none; }
.list-none { list-style: none; padding: 0; margin: 0; }

.admin-social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-social-row {
  display: grid;
  grid-template-columns: 36px 28px minmax(88px, 120px) minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e7e4dc;
  background: #fff;
}

.admin-social-row.is-hidden {
  opacity: 0.55;
}

.admin-social-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-cat-move {
  display: block;
  width: 28px;
  padding: 2px 0;
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #44403c;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.admin-cat-move:hover:not(:disabled) {
  border-color: #141414;
  color: #141414;
}

.admin-cat-move:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-social-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #141414;
}

.admin-social-name {
  font-size: 13px;
  font-weight: 600;
  color: #141414;
  min-width: 0;
}

.admin-social-row .admin-input {
  padding: 10px 12px;
  font-size: 14px;
}

.admin-social-vis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b6b6b;
  white-space: nowrap;
}

.admin-social-remove {
  font-size: 12px;
  padding: 8px 12px;
}

.admin-social-add {
  margin-top: 12px;
}

.admin-social-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e7e4dc;
  background: #f6f5f2;
}

.admin-social-picker[hidden] {
  display: none;
}

.admin-social-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d4d1cb;
  background: #fff;
  color: #141414;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-social-pick:hover {
  border-color: #141414;
}

.admin-social-pick[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .admin-social-row {
    grid-template-columns: 36px 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "move icon name remove"
      "move url url url"
      "move vis vis vis";
  }

  .admin-social-move { grid-area: move; }
  .admin-social-icon { grid-area: icon; }
  .admin-social-name { grid-area: name; }
  .admin-social-row .admin-input { grid-area: url; }
  .admin-social-vis { grid-area: vis; justify-self: start; }
  .admin-social-remove { grid-area: remove; justify-self: end; }
}

.admin-studio {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #0d0d0d;
}

.admin-studio[hidden] {
  display: none !important;
}

.admin-studio-canvas {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.admin-studio-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
}

.admin-studio-devices button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #333;
  background: transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-studio-devices button.is-on {
  border-color: #fff;
  color: #fff;
}

.admin-studio-status {
  margin-left: 8px;
  color: #a8a29e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-studio-stage-ratio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid #333;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-studio-stage-ratio select {
  height: 32px;
  min-width: 220px;
  padding: 0 8px;
  border: 1px solid #333;
  background: #141414;
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.admin-studio-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-studio-meta-fields .draft-slug-hint {
  margin: 6px 0 0;
  color: #78716c;
  font-size: 12px;
}

.admin-studio-seo-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7e4dc;
}

.admin-studio-seo-box h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.admin-studio-meta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.admin-studio-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #44403c;
  font-size: 13px;
  cursor: pointer;
}

.admin-studio-check input {
  width: 16px;
  height: 16px;
  accent-color: #1c1917;
}

.admin-studio-stage {
  flex: 1;
  overflow: auto;
  padding: 24px 0 80px;
  background-color: var(--page-bg, #0d0d0d);
}

.admin-studio-stage[data-device="desktop"] .project-page {
  width: min(960px, calc(100% - 48px));
}

.admin-studio-stage[data-device="tablet"] .project-page {
  width: min(720px, calc(100% - 32px));
}

.admin-studio-stage[data-device="phone"] .project-page {
  width: min(390px, calc(100% - 24px));
}

.admin-studio-canvas .project-page {
  padding-top: 8px;
  transition: width 0.2s ease;
}

.admin-studio-empty {
  margin: 48px auto 0;
  max-width: 28rem;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.admin-studio-block {
  position: relative;
  cursor: grab;
}

.admin-studio-block.is-on {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.admin-studio-block.is-dragging {
  opacity: 0.45;
}

.admin-studio-block.is-drop-before {
  box-shadow: 0 -3px 0 #fff;
}

.admin-studio-block.is-drop-after {
  box-shadow: 0 3px 0 #fff;
}

.admin-studio-grip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  background: rgb(20 20 20 / 0.7);
  color: #fff;
  font-size: 11px;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.admin-studio-edit {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #0057ff;
  color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.22);
  cursor: pointer;
}

.admin-studio-edit:hover,
.admin-studio-edit[aria-expanded="true"] {
  background: #0046cc;
}

.admin-studio-edit-menu {
  position: absolute;
  top: 50px;
  left: 12px;
  z-index: 6;
  min-width: 228px;
  padding: 8px 0;
  background: #fff;
  color: #141414;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.18);
}

.admin-studio-edit-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.admin-studio-edit-menu button:hover {
  background: #0057ff;
  color: #fff;
}

.admin-studio-reorder-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.admin-studio-reorder-overlay[hidden] {
  display: none !important;
}

.admin-studio-reorder-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #141414;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.28);
}

.admin-studio-reorder-sheet h2 {
  margin: 0;
  padding: 22px 24px 16px;
  font-size: 18px;
  font-weight: 600;
}

.admin-studio-reorder-list {
  overflow: auto;
  border-top: 1px solid #eceae4;
  border-bottom: 1px solid #eceae4;
}

.admin-studio-reorder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1efe9;
  cursor: grab;
  background: #fff;
}

.admin-studio-reorder-row:last-child {
  border-bottom: 0;
}

.admin-studio-reorder-row.is-dragging {
  opacity: 0.45;
}

.admin-studio-reorder-grip {
  color: #b0aaa2;
  font-size: 14px;
}

.admin-studio-reorder-thumb {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f1ec;
}

.admin-studio-reorder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-studio-reorder-fallback {
  color: #78716c;
  font-size: 12px;
  font-weight: 600;
}

.admin-studio-reorder-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}

.admin-studio-block .project-page-shot {
  cursor: pointer;
}

.admin-studio-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  color: #141414;
  border-left: 1px solid #e7e4dc;
}

.admin-studio-head {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-bottom: 1px solid #e7e4dc;
}

.admin-dock-toggle {
  display: none;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: 0;
  border-right: 1px solid #e7e4dc;
  background: transparent;
  color: #1c1917;
  cursor: pointer;
}

.admin-dock-toggle:hover {
  background: #f6f4ef;
}

.admin-dock-toggle .icon-open { display: none; }

@media (min-width: 1100px) {
  .admin-dock-toggle { display: flex; }
}

.admin-studio-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
}

.admin-studio-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-studio-tab-icon {
  display: none;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1100px) {
  .admin-shell.is-dock-collapsed .admin-studio-tab-icon {
    display: inline-flex;
  }
}

.admin-studio-tabs button.is-on {
  color: #141414;
  box-shadow: inset 0 -2px 0 #141414;
}

.admin-studio-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.admin-studio-tools {
  display: grid;
  gap: 8px;
}

.admin-studio-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #e7e4dc;
  background: #fff;
  color: #141414;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.admin-studio-tool:hover,
.admin-studio-tool.is-on {
  border-color: #141414;
}

.admin-studio-tool > span:first-child {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e4dc;
  font-size: 15px;
}

.admin-studio-tool-label {
  min-width: 0;
}

.admin-studio-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7e4dc;
}

.admin-studio-compose[hidden] {
  display: none !important;
}

.admin-studio-hint {
  margin: 0 0 16px;
  color: #78716c;
  font-size: 13px;
  line-height: 1.45;
}

.admin-studio-block-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-studio-style-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.admin-studio-style-overlay[hidden] {
  display: none !important;
}

.admin-studio-style-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(13, 13, 13, 0.62);
  cursor: pointer;
}

.admin-studio-style-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 36px 40px 32px;
  background: #fff;
  color: #141414;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.admin-studio-style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.admin-studio-style-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.admin-studio-style-close {
  width: 36px;
  height: 36px;
  margin: -8px -8px -8px 0;
  border: 0;
  background: transparent;
  color: #141414;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.admin-studio-style-close:hover {
  color: #78716c;
}

.admin-studio-style-sheet .admin-studio-hint {
  margin-bottom: 20px;
}

.admin-studio-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: stretch;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #e7e4dc;
}

.admin-studio-foot .admin-btn,
.admin-studio-foot .admin-btn-outline {
  width: 100%;
  min-height: 42px;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

.admin-studio-foot [hidden] {
  display: none !important;
}

.admin-studio-foot #studio-unpublish[hidden] + #studio-cancel {
  grid-column: 1 / -1;
}

@media (max-width: 1099px) {
  body.studio-open .admin-create-dock.is-studio-open {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    max-height: 46vh;
    margin: 0;
    border: 0;
    border-top: 1px solid #e7e4dc;
    overflow: hidden;
  }

  body.studio-open .admin-studio {
    bottom: 46vh;
  }
}

