:root {
  color-scheme:light;
  --bg:#f6f6f9;
  --paper:#fff;
  --line:#e4e4eb;
  --text:#242333;
  --muted:#6c6b7b;
  --sub:#838294;
  --purple:#7254db;
  --light:#eee9fd;
  --shadow:0 2px 6px #29244306;
  --side:210px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Inter,sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}
button,a {
  touch-action:manipulation;
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none;
}
a {
  color:inherit;
  text-decoration:none;
}
button:disabled {
  cursor:wait;
  opacity:.62;
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid #ae9af5;
  outline-offset:2px;
}
button:hover:not(:disabled) {
  filter:brightness(.96);
}
button svg,i svg,.svgicon {
  width:18px;
  height:18px;
  display:block;
  flex:none;
}
i[data-icon] {
  display:inline-flex;
  font-style:normal;
}
h1,h2,h3,p {
  margin:0;
}
[hidden] {
  display:none!important;
}
.shell {
  min-height:100vh;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--side);
  background:linear-gradient(155deg,#f1f0f6,#efeff4 60%,#f0eff5);
  border-right:1px solid #dddde5;
  display:flex;
  flex-direction:column;
  padding:29px 15px 12px;
  overflow-y:auto;
  z-index:5;
}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  padding:0 8px;
  white-space:nowrap;
}
.brand img {
  box-shadow:0 3px 7px #7155c033;
  border-radius:12px;
}
.brand span {
  font-weight:750;
  letter-spacing:-1px;
  font-size:21px;
}
.brand b {
  font-weight:500;
  font-size:18px;
  letter-spacing:-.7px;
}
.nav-title {
  color:#858392;
  font-size:11px;
  font-weight:650;
  padding:0 13px;
  margin:33px 0 12px;
  letter-spacing:1px;
}
.sidebar nav button {
  width:100%;
  border-radius:8px;
  padding:12px 13px;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  color:#646372;
  font-weight:530;
  margin:2px 0;
}
.sidebar nav button.active {
  background:#e6dff8;
  color:#6848c8;
  font-weight:650;
}
.side-bottom {
  margin-top:auto;
  padding-top:32px;
}
.credit-box {
  background:linear-gradient(118deg,#fff,#f7f4ff);
  border:1px solid #ddd7ec;
  border-radius:12px;
  padding:15px 14px 12px;
  box-shadow:var(--shadow);
  position:relative;
}
.credit-box div,.credit-box button,.account,.top-credit,.crumb,.section-head,.section-head>div,.panel-title,.fieldhead,.model,.primary,.safe,.preview-tag,.preview-foot,.preview-foot>span,.pager,.textbtn,.mutebtn,.actions,.inline,.tabbar,.rowhead {
  display:flex;
  align-items:center;
}
.credit-box div {
  font-size:12px;
  color:var(--muted);
  gap:7px;
}
.credit-box div i {
  color:var(--purple);
}
.credit-box strong {
  display:block;
  font-size:28px;
  line-height:1.3;
  margin:5px 0 10px;
  font-variant-numeric:tabular-nums;
}
.credit-box button {
  width:100%;
  border-top:1px solid var(--line);
  padding:10px 0 0;
  color:var(--purple);
  font-size:12px;
  font-weight:630;
  justify-content:space-between;
}
.credit-box button svg {
  width:14px;
}
.account {
  width:100%;
  margin-top:15px;
  padding:8px;
  gap:9px;
  font-size:13px;
}
.account>i:last-child {
  margin-left:auto;
  color:var(--sub);
}
.avatar {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  background:#e2dfee;
  border-radius:50%;
  color:#615675;
}
main {
  margin-left:var(--side);
}
.topbar {
  height:60px;
  padding:0 clamp(22px,3.2vw,64px);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fafafd;
}
.crumb {
  gap:12px;
  font-size:12px;
  color:var(--muted);
}
.crumb>i {
  color:#858194;
}
.crumb em {
  font-style:normal;
  color:#b8b7c1;
}
.crumb b {
  font-weight:550;
  color:#555362;
}
.top-credit {
  gap:6px;
  font-size:12px;
  padding:6px 11px;
  border-radius:20px;
  border:1px solid #e5dfed;
  background:white;
  color:#5a5369;
}
.top-credit i {
  color:var(--purple);
}
.top-credit svg {
  width:15px;
}
.content {
  max-width:1640px;
  margin:auto;
  padding:29px clamp(22px,3.2vw,64px) 44px;
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:22px;
}
.site-footer {
  margin-top:32px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  text-align:center;
  font-size:12px;
  line-height:1.8;
}
.site-footer a {
  display:inline-block;
  padding:8px;
}
.site-footer a:hover {
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:3px;
}
h1 {
  font-size:clamp(28px,2.45vw,38px);
  font-weight:700;
  letter-spacing:-1.6px;
  line-height:1.24;
}
.intro p {
  font-size:13px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.6;
}
.workspace {
  display:grid;
  grid-template-columns:minmax(292px,.76fr) minmax(360px,1.24fr);
  gap:18px;
  align-items:stretch;
}
.card {
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  box-shadow:var(--shadow);
  min-width:0;
}
.panel-title {
  padding:15px 18px;
  gap:10px;
  height:54px;
  border-bottom:1px solid #eeedf2;
}
h2 {
  font-size:16px;
  font-weight:660;
  letter-spacing:-.4px;
}
.iconback {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  background:#f0eff5;
  color:#726c84;
  border-radius:7px;
}
.purple {
  background:var(--light);
  color:var(--purple);
}
.iconback svg {
  width:15px;
  height:15px;
}
.icon {
  width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  color:#6e6b7a;
  border-radius:7px;
  padding:0;
}
.icon:hover {
  background:#f3f2f7;
}
.end {
  margin-left:auto;
}
.editor-body {
  padding:16px 18px 15px;
}
.fieldhead {
  justify-content:space-between;
  font-size:12px;
  font-weight:630;
  margin:0 0 7px;
}
.fieldhead small {
  font:10px ui-monospace,monospace;
  color:#858291;
}
.textbtn,.mutebtn {
  color:var(--purple);
  gap:4px;
  font-size:11px;
  font-weight:550;
  padding:2px 0;
}
.textbtn svg,.mutebtn svg {
  width:13px;
  height:13px;
}
.promptbox {
  border:1px solid #dcdce5;
  border-radius:9px;
  min-height:103px;
  background:#fcfcfe;
  margin-bottom:16px;
  padding:9px 10px 5px;
  display:flex;
  flex-direction:column;
}
.promptbox:focus-within {
  border-color:#9d83e1;
  box-shadow:0 0 0 2px #7657ce12;
}
.promptbox textarea {
  width:100%;
  min-height:62px;
  line-height:1.65;
  background:none;
  border:0;
  resize:vertical;
  font-size:12px;
  color:var(--text);
  outline:0;
}
.promptbox textarea:focus-visible {
  outline:0;
}
.promptbox textarea::placeholder {
  color:#94929e;
}
.promptbox span {
  margin-left:auto;
  color:#92909e;
  font:9px ui-monospace,monospace;
}
.ratios {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-bottom:15px;
}
.ratios button {
  height:34px;
  border:1px solid #e2e1e8;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#686575;
  font:10px ui-monospace,monospace;
}
.ratios button span {
  display:block;
  border:1.3px solid currentColor;
  border-radius:2px;
  width:13px;
  height:13px;
}
.ratios button[data-ratio="4:3"] span {width:16px;height:12px}
.ratios button[data-ratio="3:4"] span {width:12px;height:16px}
.ratios button[data-ratio="16:9"] span {width:16px;height:9px}
.ratios button[data-ratio="9:16"] span {width:9px;height:16px}
.ratios button[data-ratio="3:2"] span {width:15px;height:10px}
.ratios button[data-ratio="2:3"] span {width:10px;height:15px}
.ratios button[data-ratio="5:4"] span {width:15px;height:12px}
.ratios button[data-ratio="4:5"] span {width:12px;height:15px}
.ratios button.active,.styles button.active,.tabbar button.active {
  color:#6746cb;
  background:#f1edfd;
  border-color:#aa92ed;
}
.styles {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:15px;
}
.styles button,.tabbar button {
  font-size:11px;
  padding:5px 10px;
  background:#f5f4f8;
  border:1px solid transparent;
  border-radius:6px;
  color:#686575;
}
.model {
  gap:9px;
  padding:8px 10px;
  background:#f8f8fa;
  border:1px solid #edecf1;
  border-radius:8px;
  margin-bottom:12px;
}
.model-icon {
  height:29px;
  width:29px;
  display:grid;
  place-items:center;
  border:1px solid #e0dfe6;
  border-radius:7px;
  background:white;
}
.model div {
  display:grid;
  gap:2px;
}
.model small {
  font-size:9px;
  color:#797685;
}
.model b {
  font:600 12px -apple-system,Inter,sans-serif;
  letter-spacing:-.15px;
}
.model>i {
  margin-left:auto;
  color:#96929f;
}
.model>i svg {
  width:13px;
}
.primary {
  justify-content:center;
  gap:8px;
  background:linear-gradient(110deg,#8669e5,#6c4bcf);
  border:1px solid #7153c7;
  border-radius:8px;
  color:white;
  padding:10px 16px;
  box-shadow:0 2px 4px #8062b627;
  font-weight:630;
}
.quantity select {border:1px solid #e2e1e8;border-radius:7px;padding:4px 9px;background:white;color:inherit;font:inherit}
.generate {
  width:100%;
  height:41px;
}
.round-progress {margin:10px 0 0;padding:0;list-style:none;max-height:12rem;overflow:auto}
.round-progress li {display:grid;gap:3px;padding:8px 2px;border-bottom:1px solid var(--line);font-size:13px}
.round-progress li:last-child {border-bottom:0}
.round-progress li span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.round-progress small {color:var(--muted);font-size:12px}
.server-heading {display:flex;align-items:baseline;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:18px 0 12px}
.server-heading h2 {font-size:19px;margin:0}
.server-heading span,.server-metric p {font-size:12px;color:var(--muted)}
.server-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
.server-metric {padding:18px;min-width:0}
.server-metric h3 {margin:0 0 10px;font-size:13px;font-weight:600;color:var(--muted)}
.server-metric strong {display:block;font-size:clamp(19px,2vw,26px);font-variant-numeric:tabular-nums}
.server-metric p {line-height:1.6;margin:8px 0 0}
.server-metric meter {display:block;width:100%;height:8px;margin-top:10px;accent-color:var(--purple)}
.generate b {
  font-size:10px;
  font-weight:500;
  background:#ffffff26;
  border-radius:5px;
  padding:3px 7px;
  margin-left:2px;
}
.safe {
  margin-top:8px;
  gap:5px;
  justify-content:center;
  font-size:10px;
  color:#817d8b;
}
.safe svg {
  width:12px;
  height:12px;
}
.preview {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.preview-stage {
  position:relative;
  flex:1;
  min-height:300px;
  background:#271c2d;
  margin:12px 12px 0;
  border-radius:9px;
  overflow:hidden;
  isolation:isolate;
}
.preview-stage>img {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:51% 52%;
  inset:0;
}
.preview-stage.real>img {
  object-fit:contain;
  object-position:center;
}
.preview-stage::after {
  content:"";
  position:absolute;
  inset:48% 0 0;
  background:linear-gradient(transparent,#150e1bbf);
  pointer-events:none;
}
.preview-tag {
  position:absolute;
  top:14px;
  left:14px;
  gap:5px;
  padding:4px 8px;
  border:1px solid #ffffff48;
  border-radius:5px;
  background:#2a202854;
  color:white;
  font-size:10px;
  backdrop-filter:blur(10px);
}
.preview-tag svg {
  width:12px;
  height:12px;
}
.hero-caption {
  position:absolute;
  bottom:20px;
  left:22px;
  color:white;
  z-index:1;
  right:15px;
}
.hero-caption span {
  font:600 9px ui-monospace,monospace;
  letter-spacing:2.2px;
  color:#ffffffe0;
}
.hero-caption h3 {
  margin-top:5px;
  font-size:clamp(22px,2.3vw,34px);
  font-weight:630;
  letter-spacing:.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.preview-foot {
  padding:8px 14px 9px;
  justify-content:space-between;
  gap:8px;
  min-height:45px;
}
.preview-foot>span {
  font-size:11px;
  color:var(--muted);
  gap:6px;
}
.preview-foot>span svg {
  width:14px;
}
.pager {
  gap:5px;
}
.pager>span {
  font:10px ui-monospace,monospace;
  color:#777282;
}
.pager .icon {
  width:23px;
  height:23px;
  border:1px solid var(--line);
  border-radius:5px;
}
.pager svg {
  width:13px;
}
.inspiration {
  margin-top:24px;
}
.section-head,.rowhead {
  justify-content:space-between;
  margin-bottom:12px;
}
.section-head>div {
  gap:8px;
}
.section-head>div>i {
  color:#777183;
}
.mutebtn {
  color:#777183;
}
.tile-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
}
.tile {
  padding:0;
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  overflow:hidden;
  text-align:left;
  box-shadow:var(--shadow);
  transition:transform .16s;
}
.tile:hover {
  transform:translateY(-2px);
}
.tile img {
  display:block;
  width:100%;
  aspect-ratio:2.1;
  object-fit:cover;
}
.tile div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 11px;
  gap:4px;
}
.tile strong {
  font-size:13px;
}
.tile small {
  font-size:10px;
  color:#827c8e;
}
.mobile {
  display:none;
}
#scrim {
  position:fixed;
  inset:0;
  z-index:4;
  background:#15132155;
}
.block {
  padding:22px;
}
.stack {
  display:grid;
  gap:16px;
}
.split {
  display:grid;
  grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);
  gap:16px;
}
.block h2 {
  margin-bottom:14px;
}
.muted,.help {
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.big-num {
  font-size:48px;
  line-height:1.3;
  letter-spacing:-2px;
  font-weight:650;
}
.tabbar,.actions,.inline {
  flex-wrap:wrap;
  gap:8px;
}
.tabbar {
  margin-bottom:16px;
}
.tabbar button {
  font-size:13px;
  padding:7px 12px;
}
.secondary,.danger,.plain-link {
  border:1px solid #dedbe6;
  background:white;
  padding:7px 11px;
  border-radius:7px;
  font-size:12px;
}
.danger {
  color:#af4051;
}
.plain-link {
  display:inline-flex;
}
.listform {
  display:grid;
  gap:13px;
}
.listform label {
  display:grid;
  gap:6px;
  font-size:12px;
  font-weight:600;
}
.input,.listform input,.listform select,.listform textarea {
  width:100%;
  padding:10px 11px;
  border:1px solid #dcd9e5;
  border-radius:8px;
  background:#fdfcfe;
  color:var(--text);
  min-width:0;
}
.listform textarea {
  resize:vertical;
}
.inline .input {
  max-width:270px;
}
.empty {
  text-align:center;
  padding:55px 20px;
}
.empty .iconback {
  margin:0 auto 14px;
  width:40px;
  height:40px;
}
.empty h2 {
  margin-bottom:8px;
}
.empty button {
  margin:18px auto 0;
}
.rowhead {
  gap:8px;
  flex-wrap:wrap;
}
.table-wrap {
  overflow:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:left;
}
th,td {
  padding:11px 8px;
  border-bottom:1px solid #eceaf0;
  white-space:nowrap;
}
th {
  color:var(--muted);
  font-weight:550;
  background:#f8f7fa;
}
td .secondary,td .danger {
  margin:2px;
  padding:4px 7px;
}
.signed {
  color:#337756;
}
.status {
  padding:3px 7px;
  border-radius:5px;
  background:#efedf5;
  font-size:11px;
}
.pages {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  margin-top:14px;
  font-size:12px;
}
.gallery-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:14px;
}
.work {
  overflow:hidden;
  padding-bottom:12px;
}
.work img,.jobstate {
  width:100%;
  height:155px;
  object-fit:contain;
  display:grid;
  place-items:center;
  background:#ece9f1;
  color:var(--muted);
}
.work h3,.work p,.work .actions {
  margin:9px 12px;
}
.work h3 {
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  font-size:14px;
}
.work p {
  font-size:11px;
  color:var(--muted);
}
.gallery-grid .actions {
  gap:5px;
}
.search {
  max-width:300px;
  margin-bottom:18px;
}
.template-page .tile img {
  aspect-ratio:1.4;
}
.field-error {
  color:#ad354d;
  font-size:12px;
  line-height:1.6;
}
.wallet-top {
  background:linear-gradient(120deg,#fff,#f4f0ff);
}
.wallet-top h2 {
  display:flex;
  align-items:center;
  gap:8px;
}
.wallet-top h2 i {
  color:var(--purple);
}
.sidebar-support {margin:12px 8px 0;font-size:12px;color:var(--muted)}
.sidebar-support .contact-number {width:100%;justify-content:space-between}
.sidebar-support + .account {margin-top:5px}
.redeem-contact {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px 6px;
  margin:14px 0 0;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}
.contact-number {
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.contact-number strong {
  color:var(--text);
  font-variant-numeric:tabular-nums;
  user-select:all;
}
.contact-number button {min-height:28px}
.hint {
  font-size:11px;
  color:var(--muted);
  margin-top:7px;
}
#toast {
  position:fixed;
  z-index:20;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  padding:10px 16px;
  background:#282431;
  color:white;
  border-radius:9px;
  box-shadow:0 5px 30px #16102030;
  font-size:13px;
  max-width:90vw;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s;
}
#toast.show {
  opacity:1;
}
dialog {
  padding:0;
  border:1px solid var(--line);
  border-radius:15px;
  width:min(435px,92vw);
  max-height:90dvh;
  box-shadow:0 24px 90px #211a3533;
  color:var(--text);
  background:white;
}
dialog::backdrop {
  background:#201b2f66;
  backdrop-filter:blur(3px);
}
.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}
#dialog-body {
  padding:19px;
}
#dialog-body .help {
  margin-bottom:14px;
}
dialog.wide {
  width:min(870px,94vw);
}
#redeem-dialog {
  width:min(384px,calc(100vw - 32px));
  padding:24px;
  border-radius:20px;
}
#redeem-title {
  margin:0 0 18px;
  font-size:20px;
  letter-spacing:-.02em;
}
.redeem-receipt {
  padding:16px 18px 13px;
  background:linear-gradient(115deg,#f5f1ff,#fbfaff);
  border:1px solid #e4dcf6;
  border-radius:12px;
}
.redeem-label {
  display:flex;
  align-items:center;
  gap:6px;
  color:#60499b;
  font-size:13px;
  font-weight:600;
}
.redeem-face {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid #e4dcf6;
  color:var(--muted);
  font-size:13px;
}
.redeem-face strong {
  color:#49377b;
  font-size:20px;
  font-variant-numeric:tabular-nums;
}
.redeem-label i,.redeem-label svg {display:block;width:17px;height:17px}
.redeem-amount {
  display:flex;
  align-items:baseline;
  gap:6px;
  margin:6px 0 12px;
  color:#49377b;
}
.redeem-amount strong {
  font-size:clamp(32px,8vw,42px);
  line-height:1.14;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
.redeem-code {
  border-top:1px dashed #d8cfe9;
  padding-top:10px;
  color:var(--muted);
  font-size:12px;
}
.redeem-code span {margin-left:4px;font-family:ui-monospace,monospace;letter-spacing:.08em}
#redeem-terms {margin:14px 0 20px;font-size:14px;line-height:1.6}
#redeem-error:empty {display:none}
.redeem-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.redeem-actions button {min-height:42px;border-radius:9px;font-size:14px}
.large-art {
  width:100%;
  max-height:68vh;
  object-fit:contain;
  border-radius:8px;
  background:#f4f2f7;
}
.code-output {
  width:100%;
  height:180px;
  font:12px ui-monospace,monospace;
  white-space:pre;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:7px;
  padding:8px;
}
.modal-footer {
  margin-top:13px;
}
.login-switch {
  display:block;
  margin:12px auto 0;
  color:var(--purple);
  font-size:13px;
}
.mobile-nav-close {
  display:none;
}
.real .hero-caption,.real .preview-tag,.real::after {
  display:none;
}
.credit-box .balance {
  font-family:ui-rounded,-apple-system,sans-serif;
}
.tags {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:15px;
}
.tag {
  font-size:11px;
  border-radius:12px;
  border:1px solid var(--line);
  padding:4px 9px;
  color:var(--muted);
}
@media(min-width:1600px) {
  .editor-body {
    padding:22px;
  }
  .promptbox {
    min-height:125px;
  }
  .promptbox textarea {
    min-height:80px;
  }
  .preview-stage {
    min-height:370px;
  }
}
@media(max-width:1120px) {
  :root {
    --side:177px;
  }
  .sidebar {
    padding-left:11px;
    padding-right:11px;
  }
  .content {
    padding:22px 22px 40px;
  }
  .topbar {
    padding:0 22px;
  }
  .workspace {
    grid-template-columns:minmax(270px,.83fr) minmax(286px,1.17fr);
    gap:12px;
  }
  .editor-body {
    padding:13px;
  }
  .brand {
    gap:8px;
  }
  .tile div {
    flex-wrap:wrap;
  }
  .tile-grid {
    gap:9px;
  }
}
@media(max-width:850px) {
  :root {
    --side:0px;
  }
  .sidebar {
    width:214px;
    transform:translateX(-103%);
    transition:transform .18s;
  }
  .sidebar.open {
    transform:translateX(0);
  }
  .mobile {
    display:grid;
  }
  .crumb>i {
    display:none;
  }
  .topbar {
    height:52px;
  }
  .content {
    padding-top:22px;
  }
  .preview-stage {
    min-height:295px;
  }
}
@media(max-width:640px) {
  .content {
    padding:19px 14px 30px;
  }
  .topbar {
    padding:0 12px;
  }
  .crumb {
    gap:7px;
  }
  .workspace,.split {
    grid-template-columns:1fr;
  }
  .workspace {
    gap:14px;
  }
  .editor-body {
    padding:15px;
  }
  .panel-title {
    height:49px;
  }
  .preview-stage {
    min-height:0;
    flex:auto;
    aspect-ratio:1.52;
  }
  .tile-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tile img {
    aspect-ratio:1.65;
  }
  .block {
    padding:16px;
  }
  .intro {
    margin-bottom:16px;
  }
  .section-head h2 {
    font-size:16px;
  }
  .preview-foot {
    min-height:42px;
  }
  .safe {
    font-size:11px;
  }
  .promptbox {
    min-height:95px;
  }
  .gallery-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .work img,.jobstate {
    height:105px;
  }
  .block .inline {
    align-items:stretch;
  }
  .sidebar.open {
    overflow:auto;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
.work-image {
  display:block;
  padding:0;
  width:100%;
}
.wallet-top h2>svg,.empty .iconback>svg {
  width:18px;
  height:18px;
}

.reference-drop {display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px dashed #d3cedf;border-radius:8px;padding:9px 10px;margin-bottom:10px}
.reference-drop button {display:inline-flex;align-items:center;gap:5px}
.reference-drop small {color:var(--muted);font-size:11px}
.reference-list {display:flex;gap:8px;flex-wrap:wrap}
.reference-list:not(:empty) {margin:0 0 14px}
.ref-tile {position:relative;width:64px;height:58px;border:1px solid #dedbe6;border-radius:7px;overflow:hidden}
.ref-tile img {width:100%;height:100%;object-fit:contain;background:#f3f2f6}
.ref-tile span,.ref-tile button {position:absolute;color:#fff;background:#36313fda;font-size:11px}
.ref-tile span {left:0;bottom:0;padding:1px 4px;border-radius:0 4px 0 0}
.ref-tile button {top:2px;right:2px;border-radius:50%;width:21px;height:21px;font-size:15px;line-height:18px}

dialog:has(.register-form) {
  width:min(465px,94vw);
  max-height:92dvh;
  border-radius:18px;
}
dialog:has(.register-form) .dialog-head {
  padding:20px 24px 0;
  border:0;
}
dialog:has(.register-form) #dialog-body {
  padding:6px 24px 20px;
}
.register-form {
  gap:16px;
}
.registration-fields {
  display:grid;
  gap:12px;
}
.verification-row,.registration-passwords {
  display:grid;
  align-items:end;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.verification-row .secondary {
  height:40px;
  min-width:100px;
  color:var(--purple);
  background:var(--light);
}
.registration-passwords {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.register-form input {
  height:40px;
}
.register-form input[aria-invalid="true"] {
  border-color:#b7374c;
}
.delivery {
  margin:0;
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}
.delivery:empty,.register-form .field-error:empty {
  display:none;
}
.register-form .primary {
  min-height:40px;
}
@media(max-width:460px) {
  .registration-passwords { grid-template-columns:1fr; gap:12px; }
  dialog:has(.register-form) .dialog-head { padding:16px 16px 0; }
  dialog:has(.register-form) #dialog-body { padding:6px 16px 16px; }
  .register-form { gap:12px; }
}

#review-status {margin:14px 0 9px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.content-issue {margin:8px 0;color:#87293a;font-size:12px;line-height:1.6}
.content-issue div {padding:6px 9px;margin:4px 0 0;border:1px solid #f1c6ce;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}
.content-issue mark {background:#ffc5ce;color:#76192b;border-radius:2px}
.promptbox:has([aria-invalid="true"]),.ref-tile.flagged {outline:2px solid #be4054;outline-offset:1px}
.ref-tile.flagged span {background:#922d41}

/* Lumi fixed footer */
:root {
  --lumi-footer-height:56px;
  --lumi-footer-space:calc(var(--lumi-footer-height) + env(safe-area-inset-bottom, 0px));
}
html {scroll-padding-bottom:calc(var(--lumi-footer-space) + 16px)}
body {padding-bottom:var(--lumi-footer-space)}
.shell {min-height:calc(100vh - var(--lumi-footer-space))}
.sidebar {bottom:var(--lumi-footer-space)}
.site-footer {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:var(--lumi-footer-space);
  max-width:none;
  margin:0;
  padding:10px max(22px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  border-top:1px solid var(--line, #e4e4eb);
  background:rgba(250, 250, 253, .94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  box-shadow:0 -3px 16px #24233304;
  color:var(--muted, #6c6b7b);
  text-align:center;
  font-size:12px;
  line-height:1.6;
}
.footer-brand-group,.footer-links,.footer-contact {
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}
.site-footer a {display:inline-block;padding:5px 0;color:inherit;text-decoration:none;border-radius:4px}
.site-footer a:hover {color:var(--purple, #7254db);text-decoration:underline;text-underline-offset:3px}
.site-footer .footer-brand {color:var(--text, #242333);font-size:14px;font-weight:650;letter-spacing:.2px}
.footer-brand span {font-weight:450}
.footer-copyright {font-size:11px;color:var(--muted, #6c6b7b)}
.footer-divider {width:1px;height:12px;background:var(--line, #e4e4eb)}
.footer-contact {gap:6px}
.site-footer .contact-number {gap:7px}
.site-footer .contact-number strong {font-size:12px;font-weight:550}
.site-footer .textbtn {font-size:11px;padding:4px 5px;min-height:28px}
#toast {bottom:calc(var(--lumi-footer-space) + 16px)}
@media(max-width:760px) {
  :root {--lumi-footer-height:88px}
  .site-footer {flex-direction:column;justify-content:center;gap:3px;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom, 0px))}
  .footer-brand-group {gap:10px}
}
@media(max-width:440px) {
  :root {--lumi-footer-height:108px}
  .site-footer {padding-left:12px;padding-right:12px}
  .footer-links {flex-wrap:wrap;justify-content:center;gap:0 10px;width:100%}
  .footer-record {flex-basis:100%}
  .footer-divider {display:none}
}
/* End Lumi fixed footer */
