.create-shell {
  display: grid;
  gap: 58px;
}

.create-hero {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(420px, 1fr) minmax(170px, 230px);
  gap: 22px;
  align-items: center;
  min-height: calc(100vh - var(--topbar-height) - 56px);
}

.create-category-column {
  display: grid;
  gap: 18px;
}

.create-category-card {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #c9d0da;
  --cut: 18px;
}

.create-category-card img,
.creation-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  background: rgba(8, 10, 15, 0.82);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.category-label span:last-child {
  color: var(--red);
}

.create-panel {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d0da;
  background: #f5f6f7;
  padding: 74px 56px;
  text-align: center;
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
}

.create-panel::before,
.create-panel::after {
  position: absolute;
  left: 50%;
  width: 74px;
  height: 10px;
  background:
    linear-gradient(90deg, var(--red) 0 14px, transparent 14px 22px, var(--red) 22px 36px, transparent 36px 44px, var(--red) 44px 58px);
  content: "";
  transform: translateX(-50%);
}

.create-panel::before {
  top: 26px;
}

.create-panel::after {
  bottom: 26px;
}

.create-panel-inner {
  width: min(100%, 760px);
}

.create-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 22px;
  background: #e7e9ec;
  color: var(--ink);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.create-badge .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.create-title {
  max-width: 11ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: 76px;
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
}

.create-title span {
  color: var(--red);
}

.create-copy {
  width: min(100%, 590px);
  margin: 24px auto 0;
  color: #596170;
  font-size: 15px;
  font-weight: 650;
}

.prompt-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  width: min(100%, 650px);
  min-height: 58px;
  margin: 34px auto 0;
  border: 1px solid #c2cad5;
  background: #fff;
  color: #596170;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.prompt-bar .ui-icon {
  justify-self: center;
  color: var(--red);
}

.prompt-bar input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.prompt-bar input::placeholder {
  color: #798290;
}

.create-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.create-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  padding: 0 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.create-action.primary {
  background: linear-gradient(90deg, #080a0f 0 62%, var(--red) 100%);
  color: #fff;
}

.create-action.secondary {
  background: #fff;
}

.create-note {
  margin: 16px 0 0;
  color: #858d99;
  font-size: 12px;
  font-weight: 800;
}

.create-section {
  display: grid;
  gap: 24px;
}

.create-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #bac3cf;
  padding-top: 34px;
}

.create-section-head h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.create-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.create-counters span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #a8b1be;
  background: #e9ecef;
  padding: 0 13px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.empty-work {
  min-height: 270px;
  display: grid;
  place-items: center;
  border: 1px solid #c2cad5;
  background: rgba(236, 239, 242, 0.48);
  text-align: center;
  --cut: 22px;
}

.empty-work .ui-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--red);
}

.empty-work h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.empty-work p {
  max-width: 390px;
  margin: 8px auto 0;
  color: #687180;
  font-size: 13px;
  font-weight: 750;
}

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

.creation-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #eef1f4;
  --cut: 18px;
}

.creation-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line-dark);
}

.delete-creation {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--red);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.delete-creation .ui-icon {
  width: 17px;
  height: 17px;
}

.creation-body {
  display: grid;
  gap: 10px;
  min-height: 162px;
  padding: 16px;
}

.creation-category {
  color: #535c69;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.creation-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.creation-stats {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

@media (max-width: 1320px) {
  .create-hero {
    grid-template-columns: minmax(140px, 190px) minmax(360px, 1fr) minmax(140px, 190px);
    gap: 16px;
  }

  .create-title {
    font-size: 62px;
  }

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

@media (max-width: 1120px) {
  .create-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .create-panel {
    order: -1;
  }

  .create-category-column {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .create-category-card {
    min-height: 118px;
  }
}

@media (max-width: 820px) {
  .create-shell {
    gap: 44px;
  }

  .create-panel {
    min-height: 560px;
    padding: 62px 28px;
  }

  .create-title {
    font-size: 50px;
  }

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

  .create-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-counters {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .create-panel {
    min-height: 520px;
    padding: 58px 20px;
  }

  .create-title {
    font-size: 39px;
  }

  .create-copy {
    font-size: 14px;
  }

  .prompt-bar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .create-action {
    width: 100%;
  }

  .create-category-column,
  .creation-grid {
    grid-template-columns: 1fr;
  }

  .create-section-head h2 {
    font-size: 31px;
  }
}

body.ai-editor-open {
  background: #dfe3e7;
}

body.ai-editor-open [data-create-home] {
  display: none !important;
}

.ai-draft-editor[hidden] {
  display: none;
}

.ai-draft-editor {
  min-height: calc(100vh - var(--topbar-height));
  padding: 28px clamp(16px, 2.8vw, 40px) 44px;
  background: #dfe3e7;
  color: var(--ink);
}

.ai-editor-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.return-home-link {
  display: inline-flex;
  margin: 0 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-editor-copy h1 {
  max-width: none;
  margin: 0;
  outline: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-editor-copy h1:focus {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.draft-summary,
.draft-note,
.draft-warning {
  max-width: 760px;
  margin: 13px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.draft-summary {
  color: #607184;
}

.draft-note,
.draft-warning {
  color: #15191f;
}

.draft-preview-panel {
  display: grid;
  gap: 12px;
}

.draft-cover {
  overflow: hidden;
  border: 1px solid #2d343c;
  background: #111820;
  aspect-ratio: 16 / 9;
}

.draft-cover img,
.draft-item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-slider {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #536274;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.draft-slider input {
  width: 100%;
  accent-color: #7a47dc;
}

.draft-label {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 950;
}

.draft-settings,
.draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.draft-settings button,
.view-toggle button,
.draft-actions button,
.field-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid #9ba5b2;
  background: #edf0f3;
  color: var(--ink);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.draft-settings .ui-icon,
.view-toggle .ui-icon {
  width: 16px;
  height: 16px;
}

.draft-trash {
  width: 42px;
  padding: 0 !important;
  color: var(--red) !important;
}

.publish-button {
  margin-left: auto;
  border-color: #07090d !important;
  background: #07090d !important;
  color: #fff !important;
}

.view-toggle,
.draft-actions,
.field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view-toggle button,
.draft-actions button {
  border-color: transparent;
  background: transparent;
  padding-inline: 4px;
  clip-path: none;
}

.view-toggle .is-active {
  color: #05070a;
}

.ai-instruction {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ai-instruction span,
.draft-item-card label {
  color: #617084;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-instruction textarea {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  border: 1px solid #aeb7c2;
  background: #edf0f3;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.field-chips {
  justify-content: center;
  margin-top: 14px;
}

.field-chips span {
  color: var(--red);
}

.draft-items-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  align-items: start;
}

.draft-item-card {
  display: grid;
  gap: 10px;
  border: 1px solid #9aa4b0;
  background: #e9edf1;
  padding: 10px;
}

.draft-item-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #20262d;
  background: #1b222b;
}

.draft-item-media span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border: 1px solid var(--red);
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.draft-item-card label {
  display: grid;
  gap: 5px;
}

.draft-item-card input,
.draft-item-card textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #b2bcc8;
  background: #f6f7f8;
  color: #10141a;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.draft-item-card textarea {
  min-height: 72px;
  resize: vertical;
  scrollbar-color: #7a47dc #d7dce2;
}

.remove-item {
  min-height: 40px;
  border: 1px solid #b31322;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

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

  .draft-preview-panel {
    max-width: 520px;
  }

  .publish-button {
    margin-left: 0;
  }

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

@media (max-width: 580px) {
  .ai-draft-editor {
    padding-inline: 12px;
  }

  .draft-settings,
  .draft-toolbar,
  .view-toggle,
  .draft-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-settings button,
  .view-toggle button,
  .draft-actions button,
  .field-chips button,
  .publish-button {
    width: 100%;
  }

  .draft-items-grid {
    grid-template-columns: 1fr;
  }
}



.unpublished-grid {
  max-width: none;
}

.unpublished-grid .versus-card,
.creation-grid .versus-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.unpublished-grid .card-media,
.creation-grid .card-media {
  aspect-ratio: 16 / 10;
}

.unpublished-grid .card-body,
.creation-grid .card-body {
  min-height: 162px;
}

/* Current create hero premium pass. */
body:has(.create-shell) {
  background: #f7f8fb;
}

body:has(.create-shell) .site-main {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #fbfcfe 0%, #f1f4f8 100%);
}

.create-shell {
  max-width: 1540px;
  gap: 48px;
}

.create-hero {
  grid-template-columns: minmax(230px, 300px) minmax(520px, 1fr) minmax(230px, 300px);
  gap: clamp(10px, 1.6vw, 22px);
  align-items: center;
  min-height: min(820px, calc(100vh - var(--topbar-height) - 24px));
  padding: 10px 0 18px;
}

.create-category-column {
  gap: 12px;
  align-content: center;
}

.create-category-card {
  min-height: clamp(138px, 16vh, 178px);
  border: 1px solid rgba(214, 221, 231, 0.95);
  background: #fff;
  box-shadow: 0 16px 32px rgba(24, 31, 44, 0.12);
  --cut: 14px;
  clip-path: polygon(14px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 8px 100%, 0 calc(100% - 8px), 0 14px);
}

.create-category-column:first-child .create-category-card {
  transform: translateX(8px);
}

.create-category-column:last-child .create-category-card {
  transform: translateX(-8px);
}

.create-category-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 11, 18, 0.38));
  content: "";
}

.create-category-card img {
  filter: saturate(0.98) contrast(1.03);
  transform: scale(1.01);
}

.category-label {
  z-index: 1;
  right: auto;
  bottom: 12px;
  left: 12px;
  width: fit-content;
  min-width: 0;
  min-height: 28px;
  background: rgba(10, 13, 20, 0.9);
  padding: 0 9px 0 11px;
  font-size: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.category-label span:last-child {
  display: inline-grid;
  place-items: center;
  width: 14px;
  color: #fff;
  opacity: 0.76;
}

.create-panel {
  min-height: clamp(610px, 78vh, 760px);
  border: 1px solid rgba(199, 208, 220, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
  padding: clamp(64px, 8vh, 92px) clamp(32px, 5vw, 70px);
  clip-path: polygon(10% 0, 90% 0, 100% 12%, 100% 88%, 90% 100%, 10% 100%, 0 88%, 0 12%);
  box-shadow:
    0 28px 70px rgba(24, 31, 44, 0.14),
    inset 0 0 0 10px rgba(255, 255, 255, 0.72),
    inset 0 0 0 11px rgba(214, 221, 231, 0.9);
  isolation: isolate;
}

.create-panel::before,
.create-panel::after {
  left: 50%;
  width: 112px;
  height: 28px;
  border: 1px solid rgba(214, 221, 231, 0.94);
  background:
    linear-gradient(110deg, transparent 0 18px, var(--red) 18px 23px, transparent 23px 33px, var(--red) 33px 38px, transparent 38px 48px, var(--red) 48px 53px, transparent 53px),
    #f8fafc;
  box-shadow: 0 8px 18px rgba(24, 31, 44, 0.08);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.create-panel::before {
  top: 20px;
}

.create-panel::after {
  bottom: 20px;
  transform: translateX(-50%) rotate(180deg);
}

.create-panel-inner {
  width: min(100%, 680px);
  position: relative;
  z-index: 1;
}

.create-badge {
  min-height: 36px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 221, 231, 0.98);
  background: rgba(255, 255, 255, 0.88);
  color: #29313d;
  padding: 0 16px 0 13px;
  box-shadow: 0 10px 22px rgba(24, 31, 44, 0.06);
  border-radius: 999px;
  clip-path: none;
}

.create-badge .ui-icon {
  width: 14px;
  height: 14px;
}

.create-title {
  max-width: 10ch;
  font-size: clamp(60px, 6.8vw, 92px);
  line-height: 0.86;
  color: #06080d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.82);
}

.create-copy {
  width: min(100%, 520px);
  margin-top: 22px;
  color: #6c7687;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.prompt-bar {
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  width: min(100%, 540px);
  min-height: 56px;
  margin-top: 30px;
  border: 1px solid rgba(214, 221, 231, 0.98);
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 31, 44, 0.08);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
}

.prompt-bar .ui-icon:last-child {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-soft);
  background: #f4f6f9;
  padding: 6px;
  color: #111722;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.prompt-bar input {
  font-size: 14px;
  font-weight: 700;
}

.prompt-bar input::placeholder {
  color: #9aa5b4;
}

.create-actions {
  gap: 10px;
  margin-top: 18px;
}

.create-action {
  min-height: 44px;
  min-width: 166px;
  border: 1px solid rgba(214, 221, 231, 0.98);
  padding: 0 18px;
  box-shadow: 0 10px 22px rgba(24, 31, 44, 0.07);
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px);
}

.create-action.primary {
  border-color: transparent;
  background: linear-gradient(100deg, #05070c 0 68%, #2a0d13 82%, var(--red) 100%);
}

.create-action.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #1a202b;
}

.create-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #818b99;
  font-size: 13px;
  font-weight: 700;
}

.create-note::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
}

.empty-work-compact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  place-items: initial;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  width: min(100%, 760px);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.78);
  padding: 16px 18px;
  text-align: left;
  --cut: 16px;
}

.empty-work-compact .ui-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--red);
}

.empty-work-compact h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  text-transform: uppercase;
}

.empty-work-compact p {
  max-width: none;
  margin: 5px 0 0;
  color: #687180;
  font-size: 12px;
}

@media (max-width: 1320px) {
  .create-hero {
    grid-template-columns: minmax(190px, 240px) minmax(430px, 1fr) minmax(190px, 240px);
  }
}

@media (max-width: 1120px) {
  .create-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .create-category-column:first-child .create-category-card,
  .create-category-column:last-child .create-category-card {
    transform: none;
  }

  .create-category-column {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .create-panel {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .create-category-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-title {
    font-size: 46px;
  }

  .create-panel {
    padding-inline: 22px;
  }
}

/* Current goal create AI controls and list view pass. */
.draft-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.draft-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.draft-select {
  position: relative;
  min-width: 150px;
  z-index: 6;
}

.draft-select.is-open {
  z-index: 60;
}

.draft-select-trigger {
  width: 100%;
}

.draft-select-trigger [data-draft-select-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  gap: 5px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  padding: 7px;
  box-shadow: 0 16px 28px rgba(16, 18, 23, 0.12);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.draft-select.is-open .draft-select-menu {
  display: grid;
}

.draft-select-menu button {
  width: 100%;
  justify-content: flex-start;
  background: #fff;
  clip-path: none;
}

.draft-select-menu button.is-selected {
  background: var(--red);
  color: #fff;
}

.draft-items-grid.is-list-view {
  grid-template-columns: minmax(0, 1fr);
}

.draft-items-grid.is-list-view .draft-item-card {
  grid-template-columns: minmax(180px, 240px) repeat(2, minmax(0, 1fr));
  align-items: start;
}

.draft-items-grid.is-list-view .draft-item-media {
  grid-row: span 4;
  min-height: 148px;
}

.draft-items-grid.is-list-view .remove-item {
  align-self: end;
}

@media (max-width: 820px) {
  .draft-items-grid.is-list-view .draft-item-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .draft-items-grid.is-list-view .draft-item-media {
    grid-row: auto;
  }
}
/* Current pass: AI plan, progress and local unpublished drafts. */
.ai-flow-modal[aria-hidden="true"] {
  display: none;
}

.ai-flow-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.ai-flow-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 18, 23, 0.42);
}

.ai-flow-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  border: 1px solid var(--line-soft);
  background: #f3f5f7;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 18, 23, 0.22);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.ai-flow-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
}

.ai-flow-panel p {
  margin: 0;
  color: #596474;
  font-weight: 750;
}

.ai-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
}

.ai-plan-grid label {
  display: grid;
  gap: 7px;
  color: #617084;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-plan-grid textarea,
.ai-plan-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  padding: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.ai-plan-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.ai-progress-shell {
  display: grid;
  gap: 10px;
}

.ai-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-progress-track {
  display: block;
  height: 12px;
  border: 1px solid var(--line-soft);
  background: #dfe4ea;
}

.ai-progress-fill {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 220ms ease;
}

.ai-flow-actions,
.draft-library-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.creation-draft-card {
  cursor: pointer;
}

.draft-library-actions button {
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--red);
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.draft-item-media {
  border-color: var(--line-soft);
  background: #dfe4ea;
}

.draft-item-card {
  border-color: var(--line-soft);
}

@media (max-width: 640px) {
  .ai-plan-grid {
    grid-template-columns: 1fr;
  }
}
/* Current pass: AI draft editor should not force its own background color. */
.ai-draft-editor {
  background: transparent !important;
}

body.ai-editor-open {
  background: inherit;
}