:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f5a55;
  --line: #dfd6cb;
  --paper: #fffdf9;
  --field: #ffffff;
  --cream: #fbf4e9;
  --brand: #dc6f25;
  --brand-dark: #b64e1f;
  --green: #25765f;
  --burgundy: #8f2031;
  --gold: #d89a25;
  --accent: #dc6f25;
  --error: #b42318;
  --success: #137333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 118, 95, 0.08), transparent 20%),
    var(--paper);
}

.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 58px);
  background:
    linear-gradient(90deg, var(--green) 0 5px, transparent 5px 8px, var(--brand) 8px 13px, transparent 13px 16px, var(--burgundy) 16px 21px, transparent 21px 24px, var(--gold) 24px 29px, transparent 29px 32px, #111 32px 37px, transparent 37px),
    radial-gradient(circle at 84% 10%, rgba(220, 111, 37, 0.12), transparent 34%),
    var(--paper);
}

.landing-hero {
  width: min(920px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

.landing-brand {
  width: min(190px, 48vw);
  margin-bottom: clamp(24px, 4vw, 42px);
}

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

.landing-copy h1 {
  margin: 0 0 14px;
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-copy p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0;
  color: #24211f;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
}

.landing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(30px, 5vw, 52px);
}

.landing-option {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-option:hover,
.landing-option:focus {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.1);
}

.landing-option span {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

.landing-option small {
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 800;
}

.landing-option.primary {
  background: var(--brand);
  color: #fff;
}

.landing-option.secondary {
  background: var(--cream);
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(340px, 1.22fr);
}

.intro {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, var(--green) 0 4px, transparent 4px 6px, var(--brand) 6px 10px, transparent 10px 12px, var(--burgundy) 12px 16px, transparent 16px 18px, var(--gold) 18px 22px, transparent 22px 24px, #111 24px 28px, transparent 28px 30px, #ead7a7 30px 34px, transparent 34px),
    var(--field);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  border-right: 1px solid var(--line);
}

.brand-lockup {
  width: min(168px, 46vw);
}

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

.intro h1 {
  margin: 0 0 22px;
  max-width: 10ch;
  font-size: 3.25rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1 span,
.eyebrow {
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro p {
  margin: 0;
  max-width: 35rem;
  color: #24211f;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.55;
}

.process-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
}

.process-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-list span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.process-list div:nth-child(2) span {
  background: var(--green);
}

.process-list div:nth-child(3) span {
  background: var(--burgundy);
}

.process-list div:nth-child(4) span {
  background: var(--gold);
}

.note {
  border-top: 4px solid var(--accent);
  padding-top: 16px;
  color: #2c2824;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.55;
}

.form-wrap {
  padding: clamp(24px, 5vw, 62px);
}

form {
  max-width: 900px;
  margin: 0 auto;
}

fieldset {
  position: relative;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.04);
}

legend {
  width: auto;
  margin: 0 0 18px;
  padding: 0 12px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

legend::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 9px;
  background: var(--brand);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

label {
  color: #211f1d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 11px 13px;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(220, 111, 37, 0.18);
  border-color: var(--brand);
}

.style-picker {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  min-height: 430px;
  padding: 18px 0 40px;
  overflow: hidden;
  perspective: 900px;
}

.style-flow {
  position: relative;
  min-height: 372px;
  transform-style: preserve-3d;
}

.style-card {
  position: absolute;
  inset: 0;
  --offset: 0;
  --offset-abs: 0;
  --z: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(290px, 74vw);
  min-height: 360px;
  margin: auto;
  padding: 18px;
  border: 2px solid #111;
  border-radius: 8px;
  background: var(--cream);
  color: #111;
  cursor: pointer;
  overflow: hidden;
  text-transform: none;
  transform: translateX(calc(var(--offset) * 68%)) rotateY(calc(var(--offset) * -18deg)) scale(calc(1 - var(--offset-abs) * 0.14));
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
  opacity: 0;
  filter: saturate(calc(1 - var(--offset-abs) * 0.1));
  z-index: var(--z);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.16);
}

.style-card.is-active {
  box-shadow: 0 22px 42px rgba(17, 17, 17, 0.22);
  z-index: 30;
}

.style-card.is-visible {
  opacity: calc(1 - var(--offset-abs) * 0.24);
}

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

.style-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(255, 253, 249, 0.99), rgba(255, 253, 249, 0.9), transparent);
  z-index: 1;
}

.style-neon::after,
.style-luxury::after {
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.99), rgba(7, 8, 12, 0.9), transparent);
}

.style-art {
  position: absolute;
  inset: 0;
  display: block;
}

.style-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.style-card strong,
.style-card small,
.style-card em {
  position: relative;
  z-index: 2;
  transition: opacity 160ms ease;
}

.style-card:not(.is-active)::after,
.style-card:not(.is-active) strong,
.style-card:not(.is-active) small,
.style-card:not(.is-active) em {
  opacity: 0;
}

.style-card strong {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.style-card small {
  margin-top: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.style-card em {
  max-width: 15rem;
  margin-top: 12px;
  color: #28231f;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.style-neon {
  color: #fff;
  border-color: #4de7ff;
}

.style-luxury {
  color: #f7ead2;
  border-color: #b89055;
}

.style-luxury small,
.style-neon small {
  color: #f08b3f;
}

.style-luxury em,
.style-neon em {
  color: inherit;
}

.style-nav {
  position: relative;
  z-index: 40;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.style-dots {
  position: absolute;
  left: 50%;
  bottom: 4px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 45;
}

.style-dots button {
  width: 9px;
  min-height: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: #d8cabb;
}

.style-dots button.is-active {
  width: 24px;
  background: var(--brand);
}

.hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

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

.swatch {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  background: var(--cream);
  border-radius: 8px;
}

.swatch input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 22px;
  text-transform: uppercase;
}

button:hover {
  background: var(--brand-dark);
}

.danger-button {
  background: #8f2031;
}

.danger-button:hover {
  background: #671522;
}

.secondary-button {
  background: #111;
}

.secondary-button:hover {
  background: #333;
}

.required {
  color: var(--brand);
}

.alert {
  margin: 0 0 24px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 900;
}

.alert.error {
  background: #fff1f0;
  color: var(--error);
}

.alert.success {
  background: #e8f3ec;
  color: var(--success);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, var(--green) 0 4px, transparent 4px 6px, var(--brand) 6px 10px, transparent 10px 12px, var(--burgundy) 12px 16px, transparent 16px 18px, var(--gold) 18px 22px, transparent 22px 24px, #111 24px 28px, transparent 28px),
    var(--paper);
}

.admin-shell {
  width: min(1180px, calc(100% - 52px));
  margin: 0 auto;
  padding: 34px 0 56px 28px;
}

.admin-header {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-header h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.admin-logout,
.entry a {
  color: var(--brand-dark);
  font-weight: 900;
}

.admin-login,
.admin-toolbar,
.entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.05);
}

.admin-login {
  padding: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  padding: 16px;
}

.admin-toolbar strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-toolbar span,
.admin-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.admin-users-panel {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
}

.admin-users-panel summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-users-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin-top: 16px;
}

.admin-user-create,
.admin-user-list {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

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

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-user-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-user-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-user-row form {
  display: flex;
  gap: 8px;
}

.admin-user-row button,
.entry-summary-actions button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.entry {
  padding: 20px;
}

.entry-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.entry-summary-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.entry h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.entry p,
.entry time {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.entry-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.entry-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 16px;
  margin-top: 18px;
}

.entry dt {
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.entry-media dd {
  overflow: hidden;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.entry-media img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: #fff;
}

.entry-media div:nth-child(2) img {
  object-fit: cover;
}

.generation-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 244, 233, 0.64);
}

.generation-panel-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.generation-panel-summary::after {
  content: "Open";
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
}

.generation-panel[open] .generation-panel-summary::after {
  content: "Close";
}

.generation-panel-summary h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  text-transform: uppercase;
}

.generation-panel-summary p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  text-transform: none;
}

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

.generation-notes-form {
  flex: 1 1 100%;
  min-width: min(420px, 100%);
}

.generation-notes-form textarea {
  min-height: 86px;
  margin: 6px 0 8px;
}

.generation-actions button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.78rem;
}

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

.prompt-pack,
.approved-visual-form,
.generation-notes-form.standalone,
.advanced-generation {
  margin-top: 16px;
}

.prompt-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.prompt-assets > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.prompt-assets code {
  display: block;
  overflow-wrap: anywhere;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 700;
}

.prompt-pack textarea {
  min-height: 340px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.approved-visual-form,
.generation-notes-form.standalone {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.approved-visual-preview {
  margin: 16px 0 0;
}

.approved-visual-preview img {
  display: block;
  width: min(460px, 100%);
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.approved-visual-preview figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.advanced-generation {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.advanced-generation summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.generated-preview {
  margin: 16px 0 0;
}

.mockup-preview {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mockup-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.mockup-preview-bar span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.mockup-preview iframe {
  display: block;
  width: 100%;
  min-height: 1100px;
  border: 0;
  background: #fff;
}

.mockup-code {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.mockup-code summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.mockup-code textarea {
  margin-top: 10px;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.generated-preview img {
  display: block;
  width: min(320px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.generated-preview figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.entry-edit-form {
  padding-top: 18px;
}

.admin-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-swatch span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px #fff;
}

.admin-empty {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.entry details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.entry summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.22);
}

@media (max-width: 860px) {
  .page {
    display: block;
  }

  .landing-options {
    grid-template-columns: 1fr;
  }

  .intro {
    position: relative;
    min-height: 44vh;
    padding-left: 56px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-lockup {
    width: 160px;
  }

  .intro h1 {
    font-size: 3.15rem;
  }

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

  .admin-logout {
    grid-column: 2;
  }

  .entry-grid,
  .entry-detail,
  .entry-media,
  .generation-grid,
  .prompt-assets,
  .admin-users-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid,
  .swatches {
    grid-template-columns: 1fr;
  }

  .landing-page {
    padding: 18px;
  }

  .landing-hero {
    padding: 24px;
  }

  .style-picker {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas:
      "flow flow flow"
      "prev dots next";
    gap: 14px 10px;
    min-height: 0;
    padding: 12px 0 0;
    overflow: visible;
    perspective: none;
  }

  .style-flow {
    grid-area: flow;
    min-height: 382px;
    overflow: hidden;
    border-radius: 10px;
  }

  .style-card {
    width: min(315px, calc(100vw - 88px));
    min-height: 372px;
    padding: 16px;
    transform: scale(calc(1 - var(--offset-abs) * 0.04));
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .style-card.is-visible:not(.is-active) {
    opacity: 0;
    pointer-events: none;
  }

  .style-nav {
    width: 44px;
    min-height: 44px;
    justify-self: center;
  }

  .style-picker .style-nav,
  .style-picker .style-dots button {
    width: 44px;
  }

  [data-style-prev] {
    grid-area: prev;
  }

  [data-style-next] {
    grid-area: next;
  }

  .style-dots {
    position: static;
    grid-area: dots;
    justify-content: center;
    align-self: center;
    transform: none;
  }

  .style-dots button {
    width: 8px;
    min-height: 8px;
    height: 8px;
  }

  .style-picker .style-dots button {
    width: 8px;
  }

  .style-dots button.is-active {
    width: 28px;
  }

  .style-picker .style-dots button.is-active {
    width: 28px;
  }

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

  button {
    width: 100%;
  }

  .intro h1 {
    font-size: 2.45rem;
  }

  .admin-shell {
    width: min(100% - 28px, 1180px);
    padding-left: 24px;
  }

  .admin-header,
  .entry-summary,
  .admin-toolbar {
    display: block;
  }

  .admin-logo img {
    width: 92px;
    margin-bottom: 16px;
  }

  .admin-toolbar button {
    margin: 14px 0;
  }

  .entry-grid,
  .entry-detail,
  .entry-media,
  .generation-grid,
  .prompt-assets,
  .admin-users-grid,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .generation-panel-summary,
  .generation-actions {
    display: block;
  }

  .generation-actions form {
    margin-top: 10px;
  }

  .admin-user-row form {
    display: grid;
  }
}
