body.shell-page-create {
  --create-bg: #230009;
  --create-panel: rgb(58 4 20 / 0.48);
  --create-panel-strong: rgb(78 8 31 / 0.58);
  --create-line: rgb(255 111 145 / 0.22);
  --create-line-strong: rgb(255 111 145 / 0.34);
  --create-muted: rgb(255 223 231 / 0.58);
  --create-faint: rgb(255 223 231 / 0.36);
  --create-hot: #ff5c8d;
  background: var(--wine);
}

.shell-page-create .shell-blobs {
  display: none;
}

.shell-page-create .shell-layout {
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  gap: 0;
  background:
    radial-gradient(circle at 58% 8%, rgb(127 14 50 / 0.28), transparent 32rem),
    radial-gradient(circle at 74% 72%, rgb(105 11 43 / 0.18), transparent 30rem),
    linear-gradient(135deg, #210008 0%, #33000f 48%, #180006 100%);
}

.shell-page-create .shell-main {
  width: 100%;
  max-width: none;
  padding: 2.2rem clamp(1.1rem, 2.6vw, 2.6rem) 2rem;
  overflow: visible;
}

/* Sidebar: intentionally no page-specific override here — Create uses the
   same compact, red-accent sidebar every other page uses (appshell.css). */

.shell-page-create .shell-topright-bar {
  top: 1.65rem;
  right: clamp(1rem, 3vw, 3rem);
}

.shell-page-create [hidden] {
  display: none !important;
}

.create-hero {
  margin: 0 0 1.4rem;
  padding-right: min(16rem, 28vw);
}

.create-hero .eyebrow {
  margin-bottom: 0.6rem;
  color: var(--create-hot);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.create-hero h2 {
  max-width: 42rem;
  color: rgb(255 244 247);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.type-grid {
  display: grid;
  width: min(46rem, calc(100vw - 12rem));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}

.type-btn {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--create-line);
  border-radius: 0.7rem;
  background: rgb(45 0 16 / 0.42);
  color: rgb(255 225 232 / 0.68);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.type-btn:hover {
  border-color: var(--create-line-strong);
  background: rgb(72 7 29 / 0.42);
  color: rgb(255 244 247);
}

.type-btn.active {
  border-color: transparent;
  background: linear-gradient(145deg, #ffe4ea, #ffafc2);
  color: #31000d;
  box-shadow: 0 14px 30px rgb(255 111 145 / 0.18);
}

.type-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 17rem);
  gap: clamp(1.1rem, 2.2vw, 2rem);
  align-items: start;
}

.create-fields {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(19rem, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.create-upload-column,
.create-details-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field,
.upload-wrap {
  min-width: 0;
}

.field span.label,
.upload-wrap > .label {
  display: block;
  margin-bottom: 0.4rem;
  color: rgb(255 224 231 / 0.82);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.label-hint {
  margin-left: 0.5rem;
  color: rgb(255 224 231 / 0.52);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.field-body {
  position: relative;
}

.field-input,
.field-textarea,
.field-select,
.tag-pill-input,
.select-trigger {
  width: 100%;
  border: 1px solid var(--create-line);
  border-radius: 0.7rem;
  background: rgb(42 0 15 / 0.46);
  color: rgb(255 244 247);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field-input,
.field-select,
.select-trigger {
  min-height: 2.6rem;
  padding: 0 0.9rem;
}

.field-input::placeholder,
.field-textarea::placeholder,
.tag-text-input::placeholder {
  color: rgb(255 225 232 / 0.38);
}

.field-input:focus,
.field-textarea:focus,
.tag-pill-input:focus-within,
.select-trigger[aria-expanded="true"] {
  border-color: rgb(255 111 145 / 0.58);
  background: rgb(61 5 23 / 0.5);
  box-shadow: 0 0 0 3px rgb(255 93 141 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.field-textarea {
  min-height: 6rem;
  padding: 0.75rem 0.9rem 1.6rem;
  resize: vertical;
}

.field-counter {
  position: absolute;
  right: 0.85rem;
  bottom: 0.65rem;
  color: rgb(255 225 232 / 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.field-input + .field-counter {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.select-wrap {
  position: relative;
  /* .select-dropdown below is hidden via opacity, not display, so it can
     fade in — but position:absolute means it still contributes its full
     height to the page's scrollable area even while invisible/closed,
     padding out the bottom of the page with empty scroll. Clip it while
     closed; let it escape normally once .open so the option list isn't
     cut off. */
  overflow: hidden;
}
.select-wrap:has(.select-dropdown.open) {
  overflow: visible;
}

.select-wrap .field-select {
  display: none;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: rgb(255 244 247);
  font-weight: 700;
}

.select-chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--create-hot);
  transition: transform 0.2s ease;
}

.select-trigger[aria-expanded="true"] .select-chevron {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--create-line);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, rgb(54 3 21), rgb(29 0 11));
  box-shadow: 0 16px 34px rgb(0 0 0 / 0.42);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.select-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.select-option {
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0 0.62rem;
  border-radius: 0.5rem;
  color: rgb(255 225 232 / 0.68);
  font-size: 0.82rem;
  cursor: pointer;
}

.select-option::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
}

.select-option:hover {
  background: rgb(255 111 145 / 0.11);
  color: rgb(255 244 247);
}

.select-option.selected {
  color: rgb(255 244 247);
  font-weight: 800;
}

.select-option.selected::before {
  background: var(--create-hot);
}

.upload-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 13.5rem;
  overflow: hidden;
  border: 1.5px dashed rgb(255 225 232 / 0.28);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 111 145 / 0.08), transparent 45%),
    rgb(39 0 14 / 0.36);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

#thumb-upload-slot {
  height: 11.5rem;
}

.upload-slot:hover {
  border-color: rgb(255 111 145 / 0.54);
  background:
    radial-gradient(circle at 50% 0%, rgb(255 111 145 / 0.12), transparent 45%),
    rgb(53 4 22 / 0.42);
}

.upload-slot.dragging {
  border-color: rgb(255 151 175 / 0.76);
  background:
    radial-gradient(circle at 50% 0%, rgb(255 151 175 / 0.16), transparent 45%),
    rgb(63 6 27 / 0.56);
}

.upload-slot input[type="file"] {
  display: none;
}

.upload-slot .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--create-muted);
  cursor: pointer;
}

.upload-icon-wrap {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  border: 1px solid rgb(255 93 141 / 0.54);
  border-radius: 999px;
  color: rgb(255 230 236);
  background: rgb(255 93 141 / 0.08);
}

.upload-icon-wrap svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.upload-main-text {
  color: rgb(255 244 247);
  font-size: 0.88rem;
  font-weight: 800;
}

.upload-hint {
  color: rgb(255 225 232 / 0.55);
  font-size: 0.78rem;
}

.upload-type-label {
  color: rgb(255 225 232 / 0.42);
  font-size: 0.68rem;
}

.upload-formats {
  margin-top: 0.7rem;
  color: rgb(255 225 232 / 0.34);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.upload-slot img,
.upload-slot video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.upload-slot .remove-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(18 0 7 / 0.72);
  color: rgb(255 244 247);
  cursor: pointer;
}

.upload-slot .remove-btn svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tag-pill-input {
  min-height: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
  padding: 0.35rem 0.8rem;
  cursor: text;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.tag-pill {
  min-height: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0 0.38rem 0 0.55rem;
  border: 1px solid rgb(255 111 145 / 0.32);
  border-radius: 999px;
  background: rgb(255 93 141 / 0.14);
  color: rgb(255 203 216);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag-pill-remove {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 225 232 / 0.72);
  cursor: pointer;
  line-height: 1;
}

.tag-pill-remove:hover {
  background: rgb(255 111 145 / 0.22);
  color: #fff;
}

.tag-text-input {
  flex: 1;
  min-width: 7rem;
  padding: 0.2rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgb(255 244 247);
  caret-color: var(--create-hot);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.thread-preview-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.thread-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.thread-preview-kicker {
  color: rgb(255 224 231 / 0.82);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.thread-preview-chip {
  max-width: 10rem;
  min-height: 1.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.52rem;
  border: 1px solid rgb(255 111 145 / 0.25);
  border-radius: 999px;
  background: rgb(255 93 141 / 0.1);
  color: rgb(255 193 209);
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-preview-shell {
  min-height: 11rem;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--create-line);
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 14% 8%, rgb(255 111 145 / 0.14), transparent 38%),
    linear-gradient(135deg, rgb(48 0 17 / 0.68), rgb(31 0 11 / 0.58));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 14px 34px rgb(0 0 0 / 0.18);
}

.thread-preview-votes {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  border-radius: 0.5rem;
  background: rgb(255 225 232 / 0.045);
  color: rgb(255 225 232 / 0.55);
}

.thread-preview-votes svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.thread-preview-votes strong {
  color: rgb(255 244 247);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.thread-preview-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.thread-preview-main h3 {
  margin: 0;
  color: rgb(255 244 247);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.thread-preview-main p {
  margin: 0.45rem 0 0;
  color: var(--create-muted);
  font-size: 0.84rem;
  line-height: 1.46;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thread-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.thread-preview-tags span {
  min-height: 1.3rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.44rem;
  border: 1px solid rgb(255 111 145 / 0.26);
  border-radius: 999px;
  background: rgb(255 93 141 / 0.11);
  color: rgb(255 201 214);
  font-size: 0.68rem;
  font-weight: 800;
}

.thread-preview-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: auto;
  padding-top: 0.95rem;
  color: rgb(255 225 232 / 0.48);
  font-size: 0.72rem;
}

.thread-preview-foot span:not(:first-child)::before {
  content: "";
  width: 0.22rem;
  height: 0.22rem;
  display: inline-block;
  margin-right: 0.36rem;
  border-radius: 999px;
  background: rgb(255 225 232 / 0.28);
  vertical-align: middle;
}

.thread-preview-avatar {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(255 244 247 / 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(255 93 141 / 0.78), rgb(81 13 48 / 0.9));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 900;
}

.thread-preview-avatar::before {
  display: none;
}

.thread-preview-project {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  gap: 0.18rem 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgb(255 225 232 / 0.13);
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 82% 18%, rgb(255 182 73 / 0.16), transparent 42%),
    radial-gradient(circle at 12% 100%, rgb(87 176 255 / 0.14), transparent 44%),
    rgb(38 0 14 / 0.58);
  color: rgb(255 244 247);
  text-decoration: none;
}

.thread-preview-project span {
  grid-column: 1 / -1;
  color: rgb(255 225 232 / 0.58);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.thread-preview-project strong {
  min-width: 0;
  color: rgb(255 244 247);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-preview-project svg {
  width: 0.95rem;
  height: 0.95rem;
  align-self: center;
  fill: none;
  stroke: rgb(255 181 201);
  stroke-width: 1.9;
}

.shell-page-create.is-thread-mode .create-fields {
  grid-template-columns: minmax(15rem, 22rem) minmax(20rem, 1fr);
}

.shell-page-create.is-thread-mode .create-details-column {
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--create-line);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 100% 0%, rgb(255 111 145 / 0.1), transparent 40%),
    rgb(41 0 15 / 0.34);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
}

.shell-page-create.is-thread-mode .thread-body-field .field-textarea {
  min-height: 12rem;
}

.shell-page-create.is-thread-mode .thread-project-field .field-input {
  padding-left: 0.9rem;
}

.shell-page-create.is-thread-mode .btn-draft {
  display: none;
}

.create-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1100px) {
  .create-aside {
    position: sticky;
    top: 4.5rem;
  }
}

.create-publish-card,
.create-tips-card {
  border: 1px solid var(--create-line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 111 145 / 0.12), transparent 50%),
    rgb(49 0 17 / 0.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.create-publish-card {
  padding: 1.1rem 1rem 1rem;
}

.create-publish-card h3,
.create-tips-card h3 {
  color: rgb(255 244 247);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0;
}

.create-publish-card p {
  margin-top: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgb(255 225 232 / 0.18);
  color: var(--create-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.create-aside-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.create-error {
  color: rgb(255 141 164);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.btn-publish,
.btn-draft {
  width: 100%;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.75rem;
  border: 0;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-publish svg,
.btn-draft svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-publish {
  background: linear-gradient(145deg, #ffdbe4, #ff8fb0);
  color: #31000d;
  box-shadow: 0 14px 28px rgb(255 111 145 / 0.18);
}

.btn-draft {
  border: 1px solid rgb(255 225 232 / 0.14);
  background: rgb(48 0 17 / 0.5);
  color: rgb(255 232 237);
}

.btn-publish:hover,
.btn-draft:hover {
  transform: translateY(-1px);
}

.btn-publish:disabled,
.btn-draft:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.create-tips-card {
  padding: 1.1rem 1rem;
}

.create-tips-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
}

.create-tips-card h3 span {
  color: var(--create-hot);
  font-size: 1.05rem;
}

.tip-row {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.65rem 0;
}

.tip-row + .tip-row {
  border-top: 1px solid rgb(255 225 232 / 0.08);
}

.tip-row svg {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: rgb(255 217 225);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tip-row strong {
  display: block;
  color: rgb(255 244 247);
  font-size: 0.8rem;
  font-weight: 900;
}

.tip-row p {
  margin-top: 0.2rem;
  color: var(--create-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .create-grid {
    grid-template-columns: 1fr;
  }

  .create-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .shell-page-create .shell-main {
    padding-top: 4.6rem;
  }

  .create-hero {
    padding-right: 0;
  }

  .type-grid {
    width: 100%;
  }

  .create-fields {
    grid-template-columns: 1fr;
  }

  .shell-page-create.is-thread-mode .create-details-column {
    order: 1;
  }

  .shell-page-create.is-thread-mode .create-upload-column {
    order: 2;
  }
}

@media (max-width: 720px) {
  .shell-page-create .shell-main {
    padding: 4.3rem 0.85rem 1.2rem;
  }

  .create-hero h2 {
    font-size: 1.9rem;
  }

  .type-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .create-aside {
    grid-template-columns: 1fr;
  }

  .upload-slot,
  #thumb-upload-slot {
    height: 11rem;
  }
}

/* Final phone form geometry, after desktop/thread-mode ordering rules. */
@media (max-width: 720px) {
  .shell-page-create .shell-layout {
    width: 100%;
    padding-inline: 0.7rem;
  }
  .shell-page-create .shell-main {
    width: 100%;
    padding: 0.8rem 0 calc(12rem + env(safe-area-inset-bottom)) !important;
  }
  .create-hero,
  .type-grid,
  .create-grid,
  .create-fields,
  .create-upload-column,
  .create-details-column,
  .create-aside { width: 100%; min-width: 0; }
  .create-grid,
  .create-fields { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 1rem; }
  .create-upload-column,
  .create-details-column { gap: 0.85rem; }
  .field,
  .upload-wrap { width: 100%; min-width: 0; }
  .field span.label,
  .upload-wrap > .label {
    margin: 0 0 0.4rem;
    padding: 0;
    line-height: 1.35;
  }
  .label-hint { display: block; margin: 0.2rem 0 0; line-height: 1.35; }
  .field-body,
  .field-input,
  .field-textarea,
  .tag-pill-input,
  .select-wrap,
  .select-trigger { width: 100%; min-width: 0; }
  .upload-slot,
  #thumb-upload-slot { width: 100%; }
  .thread-preview-card { width: 100%; min-width: 0; padding: 0.8rem; }
  .thread-preview-shell { width: 100%; min-width: 0; }
  .create-publish-card {
    left: 0.7rem;
    right: 0.7rem;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Create: responsive studio
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .shell-page-create .shell-layout { min-height: calc(100dvh - 3.75rem); }
  .shell-page-create .shell-main {
    padding: 1.25rem clamp(1rem, 3vw, 1.75rem) max(2rem, env(safe-area-inset-bottom));
  }
  .shell-page-create .shell-topright-bar { top: calc(0.6rem + env(safe-area-inset-top)); right: 4.45rem; }
  .create-hero { margin-bottom: 1rem; }
  .create-hero h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .type-grid { width: 100%; margin-bottom: 1.2rem; }
  .type-btn { min-height: 3rem; }

  .create-grid { gap: 1.25rem; }
  .create-fields { gap: 1.25rem; }
  .create-aside { gap: 1rem; }
  .create-publish-card,
  .create-tips-card { border-radius: 1rem; }
}

@media (max-width: 720px) {
  .shell-page-create .shell-main { padding: 0.8rem 0 max(6.5rem, calc(5.5rem + env(safe-area-inset-bottom))); }
  .create-hero { padding-inline: 0.15rem; }
  .create-hero .eyebrow { font-size: 0.62rem; }
  .create-hero h2 { max-width: 12ch; font-size: clamp(2rem, 10vw, 2.65rem); line-height: 1; }

  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    position: sticky;
    top: calc(3.75rem + env(safe-area-inset-top));
    z-index: 20;
    padding: 0.45rem;
    border: 1px solid rgb(255 111 145 / 0.14);
    border-radius: 1rem;
    background: rgb(37 0 13 / 0.86);
    backdrop-filter: blur(18px);
  }
  .type-btn { min-width: 0; min-height: 3.15rem; padding: 0 0.35rem; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; }
  .type-btn svg { width: 1rem; height: 1rem; }

  .create-fields { grid-template-columns: 1fr; }
  .upload-slot,
  #thumb-upload-slot { height: clamp(13rem, 48vw, 18rem); border-radius: 1rem; }
  .upload-slot .placeholder { min-height: 100%; padding: 1rem; }
  .field-input,
  .field-select,
  .select-trigger { min-height: 3.2rem; font-size: 1rem; }
  .field-textarea { min-height: 9rem; font-size: 1rem; }
  .tag-pill-input { min-height: 3.2rem; }
  .field-row { grid-template-columns: 1fr; }

  .thread-preview-card { border-radius: 1rem; }
  .thread-preview-shell { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .thread-preview-foot { row-gap: 0.4rem; }

  .create-aside { display: block; }
  .create-tips-card { margin-top: 1rem; }
  .create-publish-card {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    z-index: 45;
    padding: 0.65rem;
    border-color: rgb(255 123 154 / 0.26);
    background: rgb(43 1 16 / 0.94);
    box-shadow: 0 -1rem 3rem rgb(9 0 3 / 0.35);
    backdrop-filter: blur(20px);
  }
  .create-publish-card > h3,
  .create-publish-card > p { display: none; }
  .create-aside-actions { display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; }
  .create-error { grid-column: 1 / -1; }
  .btn-publish,
  .btn-draft { min-height: 3.25rem; margin: 0; }
  .btn-draft { width: 3.25rem; padding: 0; }
  .btn-draft span { display: none; }
}

@media (max-width: 390px) {
  .type-btn { font-size: 0.66rem; }
  .upload-slot,
  #thumb-upload-slot { height: 12rem; }
  .create-publish-card { left: 0.45rem; right: 0.45rem; }
}

@media (max-width: 720px) {
  .shell-page-create .shell-main {
    padding-bottom: calc(12rem + env(safe-area-inset-bottom)) !important;
  }
  .create-publish-card {
    bottom: calc(5.55rem + env(safe-area-inset-bottom));
  }
}

/* Keep the last word on mobile Create geometry so no earlier mode-specific
   rule can restore desktop column widths. */
@media (max-width: 720px) {
  .shell-page-create .shell-layout { width: 100%; padding-inline: 0.7rem; }
  .shell-page-create .shell-main { width: 100%; padding-inline: 0 !important; }
  .create-grid,
  .create-fields { width: 100%; grid-template-columns: minmax(0, 1fr) !important; }
  .create-upload-column,
  .create-details-column,
  .field,
  .field-body,
  .upload-wrap,
  .upload-slot,
  #thumb-upload-slot { width: 100%; min-width: 0; max-width: none; }
  .create-publish-card { left: 0.7rem; right: 0.7rem; width: auto; }
  .shell-page-create .shell-topright-bar {
    right: 0.7rem !important;
    width: auto;
    max-width: 5.95rem;
  }
}
