* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--tomato-dark);
  text-underline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  background: transparent;
  border: 0;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid #e8eaef;
  background: #fcfcfd;
  padding: 25px 17px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #313141;
  font-size: 18px;
  font-weight: 650;
  padding-left: 6px;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: linear-gradient(140deg, #e8d9f4, #c6d9ef, #e6d6cb);
  color: #72738e;
}
.workspacepick {
  margin: 28px 0 20px;
  padding: 12px;
  border: 1px solid #e8e9ed;
  border-radius: 12px;
  background: var(--card);
}
.workspacepick small {
  display: block;
  color: #a0a5ae;
  font-size: 10px;
  margin-bottom: 6px;
}
.workspacepick select {
  border: 0;
  width: 100%;
  font-size: 14px;
  background: var(--card);
}
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 9px;
  text-align: left;
  padding: 10px 13px;
  color: #828a98;
  margin: 3px 0;
  font-size: 13px;
}
.navitem i {
  font-style: normal;
  color: #8c94a3;
  font-size: 17px;
  width: 18px;
}
.navitem:hover {
  background: #f0f2f6;
}
.navitem.active {
  background: var(--tomato-soft);
  color: var(--tomato-dark);
  font-weight: 600;
}
.navitem.active i {
  color: var(--tomato);
}
.sidebottom {
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.sidebottom a {
  font-size: 10px;
  color: #949dab;
  padding-left: 8px;
}
.mainwrap {
  margin-left: 228px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 65px;
  border-bottom: 1px solid #e9ebf0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px;
  color: #8a929e;
  font-size: 11px;
  background: #fbfcfd;
}
.localdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4b8a7;
}
.saveinfo {
  margin-left: auto;
}
.topbar select {
  border: 0;
  background: transparent;
  font-size: 11px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  max-width: 1740px;
  margin: auto;
}
.workspace > main {
  min-width: 0;
  padding: 35px 32px 70px;
  min-width: 0;
}
.agent {
  border-left: 1px solid #e7eaf0;
  padding: 30px 22px;
  min-width: 0;
  background: #fafbfc;
}
.agenttitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--tomato);
}
.agent h3 {
  font-size: 12px;
  margin: 30px 0 12px;
  color: #929baa;
}
.agent a {
  font-size: 11px;
}
.context {
  background: var(--card);
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 22px 0;
  font-size: 12px;
}
.context span {
  color: #8a94a4;
  font-size: 11px;
}
.suggestion {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #e7eaf0;
  text-align: left;
  color: #75869f;
  font-size: 11px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.pagehead .actions {
  flex-shrink: 0;
  max-width: 38%;
}
h1 {
  font-size: clamp(23px, 2.5vw, 33px);
  letter-spacing: -1px;
  line-height: 1.4;
  font-weight: 620;
  margin: 7px 0 10px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin: 9px 0;
}
p {
  margin: 9px 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9fa8b6;
}
.muted {
  color: #929caa;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--card);
  color: #6b7a91;
  font-size: 11px;
  text-decoration: none;
  line-height: 1.5;
}
.btn:hover {
  background: #f0f4fa;
}
.primary {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--card);
}
.primary:hover {
  background: var(--tomato-dark);
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #e3e6ee;
  background: var(--card);
  border-radius: 18px;
  padding: 26px 30px;
}
.welcome h2 {
  font-size: 26px;
  margin: 15px 0 9px;
  letter-spacing: -0.6px;
}
.welcome p {
  color: #9d96ab;
  font-size: 12px;
  margin-bottom: 18px;
}
.welcomeart {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  font-size: 85px;
  color: #d3cbe6;
  text-shadow: 15px 5px 30px #c4d6e5;
}
.badge {
  display: inline-block;
  font-size: 10px;
  background: #f1f4f8;
  color: #8c98aa;
  border: 1px solid #e7ecf2;
  border-radius: 99px;
  padding: 3px 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 23px 0;
  gap: 14px;
}
.stats > div {
  padding: 19px 20px;
  background: var(--card);
  border: 1px solid #e5e9ef;
  border-radius: 12px;
}
.stats b {
  font-weight: 550;
  font-size: 25px;
  display: block;
  line-height: 1.4;
  color: #677f9f;
}
.stats span {
  font-size: 10px;
  color: #a1a9b5;
}
.panel {
  background: var(--card);
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  padding: 23px;
  margin: 20px 0;
  min-width: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.card {
  background: var(--card);
  border: 1px solid #e3e8ee;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
}
.cardbody {
  padding: 21px;
}
.cardbody p {
  font-size: 12px;
  color: #939dab;
  overflow-wrap: anywhere;
}
.cardbody h3 {
  margin: 15px 0 10px;
}
.cardbody small {
  font-size: 10px;
  color: #a1a9b5;
}
.cardbody .actions {
  margin-top: 17px;
}
.flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.flow span {
  background: #f5f7fa;
  color: #8996a8;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 10px;
}
.flow small {
  margin-right: 7px;
  color: #bcc6d3;
}
.flow .current {
  background: #e9eff8;
  color: #567aa7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 15px 0;
  font-size: 12px;
}
.field > span {
  color: #8390a1;
}
.field input,
.field textarea,
.field select,
.filters input,
.filters select {
  border: 1px solid #dfe5ed;
  background: #fcfdff;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
  outline: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: #8ca7d0;
  box-shadow: 0 0 0 3px #8ca7d013;
}
.field textarea {
  resize: vertical;
  line-height: 1.9;
}
.field textarea.longtext {
  min-height: 290px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  color: #8b95a5;
  margin: 12px 0;
}
.check input {
  accent-color: #678bbd;
  margin-top: 4px;
}
.formfoot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid #edf0f4;
  margin-top: 20px;
}
.notice {
  background: #f3f5f8;
  color: #99a1ae;
  border-left: 2px solid #c3d0e1;
  padding: 12px 14px;
  margin: 20px 0;
  font-size: 11px;
  line-height: 1.8;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  font-size: 11px;
  color: #a0a9b4;
}
.filters input {
  flex: 1;
}
.filters select {
  max-width: 190px;
}
.filters span {
  white-space: nowrap;
}
.empty {
  text-align: center;
  border: 1px dashed #dde4ee;
  border-radius: 13px;
  padding: 44px 20px;
  background: #fbfcfe;
}
.emptyicon {
  font-size: 32px;
  color: #cad5e4;
}
.empty p {
  font-size: 12px;
  color: #a4acb7;
  margin: 14px 0 20px;
}
.empty h3 {
  color: #7e8da2;
}
.historyhead {
  display: flex;
  gap: 20px;
  align-items: center;
}
.historyhead > img {
  width: 84px;
  height: 105px;
  object-fit: cover;
  border-radius: 9px;
}
.historyhead h2 {
  margin: 6px 0 10px;
}
.pre,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 12px;
  line-height: 1.95;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.gallery img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f4f6f9;
  border-radius: 6px;
}
.goodsline {
  border-top: 1px solid #edf0f5;
  padding-top: 14px;
  margin-top: 15px;
  color: #8a96a8;
  font-size: 11px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.row h2,
.row h3 {
  margin: 0;
}
.variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #eaf0f5;
}
.variant:last-child {
  border: 0;
}
.variant h3 {
  font-size: 13px;
}
.variant strong {
  font-size: 12px;
  color: #7c8fa7;
}
.delivery {
  padding: 20px 0;
  border-bottom: 1px solid #eaf0f5;
}
.editorgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
}
.editorgrid > .panel {
  margin-top: 0;
}
.editorgrid aside .panel {
  margin-top: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.refassets {
  max-height: 180px;
  overflow: auto;
}
.asset {
  background: var(--card);
}
.asset > a {
  display: block;
  background: repeating-conic-gradient(#f0f2f5 0% 25%, #fafbfc 0% 50%) 0 0/16px
    16px;
}
.asset img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}
.mainasset {
  display: flex;
  gap: 22px;
  background: var(--card);
  border: 1px solid #e5e9ef;
  padding: 22px;
  border-radius: 14px;
}
.mainasset img {
  height: 190px;
  max-width: 40%;
  object-fit: contain;
}
.mainasset > div {
  align-self: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
details {
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
summary {
  font-size: 12px;
  color: #7f90a7;
}
.table {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
td,
th {
  border-bottom: 1px solid #e9edf3;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #929dac;
  font-weight: 500;
}
.error {
  color: #ac7979;
}
.providerstatus {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.jobimage {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.loading {
  max-width: 650px;
  margin: 100px auto;
  text-align: center;
  padding: 30px;
  color: #8e9aaa;
}
fieldset {
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  margin: 20px 0;
  padding: 8px 15px;
}
legend {
  font-size: 11px;
  color: #96a1b0;
}
dialog {
  border: 1px solid #e0e6ee;
  border-radius: 18px;
  padding: 25px;
  width: min(640px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  box-shadow: 0 20px 100px #2c3b5327;
}
dialog::backdrop {
  background: #27354540;
  backdrop-filter: blur(3px);
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modalhead h2 {
  margin: 0;
  font-size: 19px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #41546c;
  color: var(--card);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 12px;
  max-width: 90vw;
  display: none;
  z-index: 999;
}
#toast.show {
  display: block;
}
@media (min-width: 1550px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .agent {
    border: 1px solid #e3e9f0;
    margin: 0 25px 35px;
    border-radius: 15px;
    padding: 23px;
  }
  .agent .suggestion {
    display: inline-flex;
    width: auto;
    margin-right: 18px;
  }
  .agent .context {
    max-width: 350px;
  }
  .editorgrid {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .sidebar {
    width: 190px;
  }
  .mainwrap {
    margin-left: 190px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #e4e8ee;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .workspacepick {
    margin: 12px 0;
    padding: 8px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .navitem {
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 11px;
  }
  .navitem i {
    display: none;
  }
  .sidebottom {
    display: none;
  }
  .mainwrap {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
    height: 49px;
    font-size: 9px;
  }
  .topbar select {
    max-width: 85px;
    font-size: 9px;
  }
  .workspace > main {
    padding: 24px 16px 40px;
  }
  .pagehead {
    display: block;
  }
  .pagehead .actions {
    max-width: none;
    margin-top: 15px;
  }
  .welcome {
    padding: 21px;
  }
  .welcome h2 {
    font-size: 23px;
  }
  .welcomeart {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stats > div {
    padding: 14px;
  }
  .cards,
  .grid2,
  .editorgrid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 19px;
  }
  .agent {
    margin: 0 16px 25px;
  }
  .agent .suggestion {
    display: flex;
    width: 100%;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    width: 100%;
  }
  .variant {
    display: block;
  }
  .variant .actions {
    margin-top: 14px;
  }
  .mainasset {
    padding: 14px;
  }
  .mainasset img {
    height: 140px;
  }
  h1 {
    font-size: 25px;
  }
  .historyhead {
    align-items: flex-start;
  }
  .historyhead > img {
    width: 65px;
    height: 90px;
  }
}
.asset video {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f1f4f8;
}
.mainasset {
  margin-bottom: 12px;
}
.mainasset.original {
  background: #fcfbf8;
}
.muted {
  color: #738094;
  font-size: 12px;
}
.cardbody p {
  color: #738094;
  font-size: 13px;
}
.field > span {
  color: #68788f;
}
.badge {
  color: #6b7c93;
}
.notice {
  color: #748397;
  font-size: 12px;
}
.navitem {
  color: #6c7c90;
}
.context span {
  color: #728197;
}
.suggestion {
  font-size: 12px;
}
.sidebottom a {
  color: #728198;
}
.stats span {
  color: #738297;
  font-size: 11px;
}

/* Tomato workspace: neutral structure, compact controls, creator-owned material. */
.brandmark {
  background: var(--tomato-soft);
  color: var(--tomato);
  font-size: 23px;
  border: 1px solid var(--tomato-line);
}
.sidebar {
  background: #fdfdfd;
  border-color: var(--line);
  padding: 26px 16px;
}
.brand {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.workspacepick {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 12px #25262b03;
}
.workspacepick small {
  color: var(--muted);
  font-size: 11px;
}
.navitem {
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 12px;
}
.navitem.active {
  box-shadow: inset 3px 0 var(--tomato);
}
.topbar {
  height: 70px;
  background: var(--card);
  border-color: var(--line);
  font-size: 12px;
  padding: 0 32px;
}
.localdot {
  background: var(--leaf);
}
.workspace > main {
  padding: 38px 34px 70px;
}
.pagehead h1 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 650;
  letter-spacing: -1px;
}
.pagehead .muted {
  font-size: 12px;
  max-width: 590px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.panel {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 5px 20px #20253003;
}
.btn {
  border-color: var(--line);
  color: #424650;
  font-size: 12px;
  border-radius: 8px;
  padding: 9px 13px;
}
.btn:hover {
  background: #f8f9fb;
}
.btn.primary {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--card);
}
.btn.primary:hover {
  background: var(--tomato-dark);
}
.agent {
  background: #fafbfc;
  border-color: var(--line);
}
.agenttitle {
  color: var(--ink);
}
.agent h3 {
  color: var(--muted);
}
.agent .context {
  border-top: 3px solid var(--tomato);
  border-radius: 11px;
}
.welcome {
  border-left: 3px solid var(--tomato);
}
.flow span {
  background: var(--card);
  border-color: var(--line);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #dc968b;
  box-shadow: 0 0 0 3px #cf46350b;
}
.badge {
  background: #f4f5f7;
  color: #757a86;
}
.topbar .badge {
  background: var(--tomato-soft);
  color: var(--tomato-dark);
}
.cover-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.cover-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.creator-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--tomato-soft);
  color: var(--tomato-dark);
  border: 1px solid var(--tomato-line);
  border-radius: 12px;
  font-weight: 650;
}
.cover-owner p {
  margin: 2px 0 0;
}
.cover-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.cover-controls input,
.cover-controls select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  padding: 9px 10px;
  font-size: 12px;
  min-width: 0;
}
.cover-controls input {
  width: 170px;
}
.cover-controls .muted {
  white-space: nowrap;
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 20px;
  align-items: start;
}
.cover-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 6px 22px #292d3404;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.cover-card:hover {
  border-color: #e6bdb3;
  box-shadow: 0 8px 26px #a935290c;
}
.cover-image {
  display: block;
  aspect-ratio: 16/9;
  background: #f0f1f3;
}
.cover-image.portrait {
  aspect-ratio: 9/16;
}
.cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cover-caption {
  padding: 15px 16px 17px;
}
.cover-caption h3 {
  font-size: 14px;
  margin: 11px 0 5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cover-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.cover-caption .actions {
  margin-top: 13px;
}
.cover-caption .btn {
  font-size: 11px;
  padding: 7px 9px;
}
.cover-more {
  text-align: center;
  padding: 30px 0;
}
@media (max-width: 1250px) {
  .cover-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .cover-controls {
    width: 100%;
  }
  .cover-controls input {
    flex: 1;
  }
  .workspace > main {
    padding: 28px 24px 60px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    position: static;
  }
  .mainwrap {
    margin-left: 0;
  }
  .workspace > main {
    padding: 24px 18px 50px;
  }
  .topbar {
    padding: 0 18px;
  }
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cover-caption {
    padding: 12px;
  }
  .cover-caption .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pagehead .actions {
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .cover-controls input {
    width: 120px;
  }
  .cover-grid {
    gap: 9px;
  }
  .cover-caption {
    padding: 10px;
  }
  .cover-meta {
    flex-wrap: wrap;
  }
  .cover-caption h3 {
    font-size: 12px;
  }
  .cover-controls {
    gap: 7px;
  }
}

/* Personal creation module: full-width editing, owner-scoped library below. */
.cover-studio-route .workspace {
  display: block;
}
.cover-studio-route .workspace > .agent {
  display: none;
}
.integrated-cover-studio {
  padding: 18px;
  margin-bottom: 24px;
  min-width: 0;
}
.integrated-studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.integrated-studio-top h2 {
  margin: 0;
}
.integrated-studio-top label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.integrated-studio-top select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.integrated-cover-studio iframe {
  display: block;
  width: 100%;
  height: 1450px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.integrated-cover-studio iframe[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .integrated-cover-studio {
    padding: 10px;
  }
  .integrated-studio-top {
    align-items: flex-start;
    gap: 10px;
  }
  .integrated-cover-studio iframe {
    height: 1550px;
  }
}
/* Membership is a calm account surface, not a payment simulation. */
.navitem.active {
  box-shadow: none;
  background: var(--tomato-soft);
}
.welcome {
  border-left: 1px solid var(--line);
}
.agent .context {
  border-top: 1px solid var(--line);
}
.pagehead h1 {
  font-size: 30px;
}
.credit-pill {
  font-size: 11px;
  color: var(--tomato-dark);
  background: var(--tomato-soft);
  border: 1px solid var(--tomato-line);
  padding: 6px 11px;
  border-radius: 99px;
  margin-left: 14px;
  white-space: nowrap;
}
.membership-summary {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 30px 0 25px;
  border-bottom: 1px solid var(--line);
}
.membership-summary h2 {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 10px 0;
}
.membership-summary strong {
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 600;
}
.membership-summary h2 span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.membership-summary p {
  font-size: 12px;
  color: var(--muted);
}
.membership-summary dl {
  display: grid;
  gap: 12px;
  margin: 0;
  min-width: 240px;
  font-size: 12px;
}
.membership-summary dt {
  color: var(--muted);
}
.membership-summary dd {
  margin: 3px 0 0;
}
.billing-disclosure {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  margin: 17px 0 25px;
}
.membership-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 25px 0 35px;
}
.membership-plan {
  padding: 25px 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.membership-plan.featured {
  background: var(--tomato-soft);
  border-color: var(--tomato-line);
}
.plan-seed {
  display: block;
  font-size: 28px;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 23px;
}
.membership-plan h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.membership-plan > p {
  font-size: 12px;
  color: var(--muted);
  min-height: 42px;
}
.plan-price {
  font-size: 31px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -1px;
  margin: 22px 0 14px;
}
.plan-price small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
}
.membership-plan .actions {
  margin-top: 25px;
}
.membership-plan details {
  margin-top: 20px;
  font-size: 12px;
}
.billing-table {
  overflow: auto;
}
.billing-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.billing-table th,
.billing-table td {
  padding: 13px 9px;
  border-bottom: 1px solid var(--line);
}
.billing-table td:first-child {
  white-space: nowrap;
}
.billing-request {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.billing-request > span {
  float: right;
}
.membership-prompt > img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: 65% 68%;
  border-radius: 12px;
}
.membership-prompt > p {
  line-height: 1.85;
  font-size: 14px;
}
.membership-prompt .credit-line {
  padding: 17px 0;
  font-size: 12px;
  color: var(--muted);
}
.membership-prompt .credit-line strong {
  font-size: 32px;
  color: var(--tomato);
  font-weight: 500;
  margin-right: 7px;
}
.membership-prompt .actions {
  margin-top: 25px;
}
.membership-prompt .muted {
  font-size: 11px;
}
@media (max-width: 1100px) {
  .membership-plans {
    grid-template-columns: 1fr;
  }
  .membership-plan > p {
    min-height: 0;
  }
  .membership-summary {
    flex-direction: column;
  }
  .membership-summary dl {
    min-width: 0;
  }
  .membership-plan {
    padding: 23px;
  }
  .plan-seed {
    margin-bottom: 16px;
  }
}
@media (max-width: 760px) {
  .pagehead h1 {
    font-size: 26px;
  }
  .credit-pill {
    margin-left: 0;
    font-size: 10px;
    padding: 5px 8px;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .saveinfo {
    margin-left: 0;
  }
  .membership-summary {
    padding-top: 15px;
    gap: 22px;
  }
  .membership-prompt > img {
    height: 140px;
  }
}
