html[data-authed="1"] #auth { display: none !important; }
html[data-authed="1"] #desk { display: block !important; }

.order-error:not(:empty) {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  font-weight: 600;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 36px 0 24px;
}
.auth-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #86efac;
  letter-spacing: 0.22em;
}
.auth-hero .kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
}
.auth-hero .display {
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: clamp(36px, 4.4vw, 58px);
}
.auth-hero .display span {
  background: linear-gradient(100deg, #f8fafc 8%, #a7f3d0 58%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-hero .lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 24em;
  color: #cbd5e1;
}
.auth-points {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 28em;
}
.auth-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.auth-points li:first-child { padding-top: 0; border-top: 0; }
.auth-points li span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}
.auth-points strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.auth-points em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}
.auth-points b {
  flex: none;
  display: block;
  width: auto;
  height: auto;
  padding-top: 2px;
  border-radius: 0;
  background: none;
  color: #6ee7b7;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}
.page.wrap { width: min(var(--wide), calc(100% - 32px)); }
.auth-card {
  max-width: none;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 28px 28px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 40px rgba(0, 0, 0, 0.18);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.auth-tabs button,
.tabs.auth-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7dde8;
  font-weight: 600;
}
.auth-tabs button.on {
  background: rgba(16, 185, 129, 0.12);
  color: #fff;
  box-shadow: none;
}
.auth-hint {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
#google-wrap { margin-bottom: 4px; }
.google-slot {
  position: relative;
  min-height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.google-continue {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 650;
}
.google-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
}
.google-mark {
  display: block;
  width: 20px;
  height: 20px;
  shape-rendering: geometricPrecision;
}
#google-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 48px;
  opacity: 0;
}
#google-btn > div,
#google-btn iframe,
#google-btn .nsm7Bb-HzV7m-LgbsSe,
#google-btn .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
  width: 100% !important;
  min-width: 100% !important;
  height: 48px !important;
  max-width: none !important;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
}
.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
#auth-form { margin-top: 4px; }
#auth-form input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
}
.email-field { position: relative; display: block; }
.email-suggest {
  position: relative;
  z-index: 8;
  max-height: 168px;
  margin: 8px 0 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border-radius: 14px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.email-suggest button {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f8fafc;
  justify-content: flex-start;
  font-weight: 550;
}
.email-suggest button:hover,
.email-suggest button.on {
  background: rgba(16, 185, 129, 0.14);
  color: #fff;
}
.email-suggest b { color: #94a3b8; font-weight: 500; }
#auth-form input:focus {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(7, 10, 18, 0.72);
  outline: none;
}
#auth-submit {
  display: flex;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 0;
}
.auth-fine {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
#forgot {
  border: 0;
  background: none;
  padding: 0;
  color: #86efac;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#forgot:hover { color: #d1fae5; }
.auth-note {
  min-height: 1.2em;
  margin: 0;
  color: #86efac;
  font-size: 13px;
}

#top .menu a.on,
#top .nav a.on {
  color: #042f1e;
  background: linear-gradient(180deg, #6ee7b7, #10b981);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.26);
  font-weight: 700;
}
#desk #desk-tabs.desk-tabs {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: none;
  margin: 6px 0 20px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(8, 16, 14, 0.72);
  border: 1px solid rgba(167, 243, 208, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  overflow: visible;
}
#desk #desk-tabs.desk-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(226, 239, 233, 0.68);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
#desk #desk-tabs.desk-tabs button:hover {
  color: #f4fbf7;
  background: rgba(255, 255, 255, 0.08);
}
#desk #desk-tabs.desk-tabs button.on {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #042f1e;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
#desk #desk-tabs.desk-tabs button.on:hover {
  color: #022c1a;
  background: linear-gradient(180deg, #6ee7b7, #10b981);
}
#desk .desk-ico-wrap {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}
#desk #desk-tabs.desk-tabs button.on .desk-ico-wrap {
  background: rgba(4, 47, 30, 0.18);
}
#desk .desk-ico {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 1;
  background: currentColor;
}
.desk-ico.script {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M3.2 2.4h6.1L12.8 6v7.6a.8.8 0 0 1-.8.8H3.2a.8.8 0 0 1-.8-.8V3.2a.8.8 0 0 1 .8-.8zm5.6.8v3.2h3.2L8.8 3.2zM4.8 9.2h6.4a.6.6 0 0 1 0 1.2H4.8a.6.6 0 1 1 0-1.2zm0 2.2h4.4a.6.6 0 0 1 0 1.2H4.8a.6.6 0 1 1 0-1.2z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M3.2 2.4h6.1L12.8 6v7.6a.8.8 0 0 1-.8.8H3.2a.8.8 0 0 1-.8-.8V3.2a.8.8 0 0 1 .8-.8zm5.6.8v3.2h3.2L8.8 3.2zM4.8 9.2h6.4a.6.6 0 0 1 0 1.2H4.8a.6.6 0 1 1 0-1.2zm0 2.2h4.4a.6.6 0 0 1 0 1.2H4.8a.6.6 0 1 1 0-1.2z'/></svg>") center / contain no-repeat;
}
.desk-ico.create {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M8 2.2a.8.8 0 0 1 .8.8v4.2H13a.8.8 0 0 1 0 1.6H8.8V13a.8.8 0 0 1-1.6 0V8.8H3a.8.8 0 0 1 0-1.6h4.2V3a.8.8 0 0 1 .8-.8z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M8 2.2a.8.8 0 0 1 .8.8v4.2H13a.8.8 0 0 1 0 1.6H8.8V13a.8.8 0 0 1-1.6 0V8.8H3a.8.8 0 0 1 0-1.6h4.2V3a.8.8 0 0 1 .8-.8z'/></svg>") center / contain no-repeat;
}
.desk-ico.orders {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M3.2 3.4h9.6a.8.8 0 0 1 0 1.6H3.2a.8.8 0 0 1 0-1.6zm0 3.8h9.6a.8.8 0 0 1 0 1.6H3.2a.8.8 0 1 1 0-1.6zm0 3.8h6.4a.8.8 0 0 1 0 1.6H3.2a.8.8 0 0 1 0-1.6z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M3.2 3.4h9.6a.8.8 0 0 1 0 1.6H3.2a.8.8 0 0 1 0-1.6zm0 3.8h9.6a.8.8 0 0 1 0 1.6H3.2a.8.8 0 1 1 0-1.6zm0 3.8h6.4a.8.8 0 0 1 0 1.6H3.2a.8.8 0 0 1 0-1.6z'/></svg>") center / contain no-repeat;
}
.desk-ico.library {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M5.2 3.4v9.2L13 8 5.2 3.4z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M5.2 3.4v9.2L13 8 5.2 3.4z'/></svg>") center / contain no-repeat;
}
#desk .desk-count {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #34d399;
  color: #042f1e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(8, 18, 14, 0.88);
}
#desk #desk-tabs.desk-tabs button.on .desk-count {
  background: #042f1e;
  color: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(4, 47, 30, 0.18);
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}
.stat, .stats .card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.stat::before, .stats .card::before {
  content: none;
  display: none;
}
.stat b { font-size: 32px; }
.stat span { display: block; margin-top: 6px; }

#desk[data-pane="create"] .stats { display: none; }
#order-form.card {
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 40px rgba(0, 0, 0, 0.18);
}
#order-form.card:focus-within {
  border-color: rgba(16, 185, 129, 0.28);
}
#order-form h2 { margin: 0 0 6px; letter-spacing: -0.03em; }
.compose-head { margin-bottom: 6px; }
.compose-now {
  margin: 0;
  color: #86efac;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.compose-block {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.compose-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.compose-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.compose-block .presets + .compose-label {
  margin-top: 16px;
}
.prompt-count {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}
.prompt-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}
.prompt-way {
  margin: 0;
  padding: 11px 12px 10px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.16);
}
.prompt-way b {
  display: block;
  margin: 0 0 4px;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.prompt-way span {
  display: block;
  color: rgba(226, 239, 233, 0.78);
  font-size: 13px;
  line-height: 1.45;
}
#prompt-hint {
  margin-top: 8px;
}
.look-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.look-pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.look-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.look-name {
  color: rgba(226, 239, 233, 0.62);
  font-size: 13px;
}
.look-preview {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.look-preview img {
  width: 84px;
  height: 126px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}
.industry-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  margin: 0 -2px;
}
.industry-rail::-webkit-scrollbar { height: 6px; }
.industry-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
.pick {
  flex: 0 0 132px;
  scroll-snap-align: start;
  text-align: left;
  background: rgba(7, 10, 18, 0.45);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 10px;
  min-height: 0;
  box-shadow: none;
  color: var(--ink);
  overflow: hidden;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.pick:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}
.pick.on {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.075);
}
.pick-cover {
  display: block;
  aspect-ratio: 3 / 4;
  background: #0c1118 center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pick b {
  display: block;
  font-size: 13px;
  margin: 8px 10px 0;
}
.pick .pick-title {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#order-form .presets.rich:not(.aspects) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#order-form .presets.rich:not(.aspects) button:nth-child(n+4) {
  grid-column: auto;
}
#order-aspects {
  gap: 12px;
  max-width: 560px;
}
#order-aspects button {
  position: relative;
  min-height: 108px;
  padding: 16px 18px 16px 86px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(16, 185, 129, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.03);
}
#order-aspects button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
#order-aspects button:hover::before { opacity: 1; }
#order-aspects button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}
#order-aspects button.on {
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 50%),
    rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#order-aspects button.on::after { background: #10b981; }
.frame-glyph {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1016;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  opacity: 0.88;
}
.frame-glyph.portrait {
  width: 36px;
  height: 58px;
  border-radius: 9px;
}
.frame-glyph.landscape {
  width: 58px;
  height: 36px;
  border-radius: 8px;
}
.frame-glyph::before {
  content: "";
  position: absolute;
  inset: 5px 4px 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.05));
}
.frame-glyph.landscape::before { inset: 5px 8px 5px 5px; }
.frame-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 10px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}
.frame-glyph.landscape::after {
  left: auto;
  right: 3px;
  top: 50%;
  bottom: auto;
  width: 2px;
  height: 10px;
  transform: translateY(-50%);
}
#order-aspects button.on .frame-glyph {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}
#order-aspects button em { font-size: 16px; }
#order-aspects button span { margin-top: 2px; max-width: 16em; }
#order-form textarea {
  min-height: 148px;
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.65;
  caret-color: #10b981;
  resize: vertical;
}
#order-form textarea.has-script {
  min-height: 280px;
}
.script-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
  font-size: 13px;
}
.script-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}
.script-result {
  margin-top: 12px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: rgba(7, 10, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.script-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.script-result-head .compose-label { margin: 0; }
#script-body {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  line-height: 1.65;
  color: var(--ink);
}
.script-result #script-hint { margin: 10px 0 0; }
.script-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px 20px;
}
.script-entry h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.script-entry .hint { margin: 0; }
.script-entry button { flex: none; }
.compose-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 20px 0 0;
  padding: 14px 16px 14px 14px;
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(16, 185, 129, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.compose-preview.is-ready {
  border-color: rgba(16, 185, 129, 0.28);
}
.compose-preview.is-landscape {
  grid-template-columns: 128px minmax(0, 1fr) auto;
}
.compose-preview .preview-cover {
  width: 76px;
  height: 114px;
  border-radius: 16px;
  background: #0c1118 center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.compose-preview.is-landscape .preview-cover {
  width: 128px;
  height: 72px;
}
.compose-preview .preview-cover.empty {
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(16, 185, 129, 0.16), transparent 46%),
    #10151c;
}
.preview-glyph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
  position: relative;
}
.preview-glyph::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #6ee7b7;
}
.compose-preview .preview-copy { min-width: 0; }
.compose-preview .preview-kicker {
  margin: 0 0 4px;
  color: #86efac;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.compose-preview .preview-copy b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.preview-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 11px;
}
.preview-chips .money {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}
.compose-preview .preview-copy em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compose-preview .preview-frame {
  width: 28px;
  height: 46px;
  border: 1.6px solid rgba(16, 185, 129, 0.72);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.compose-preview .preview-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.7);
  transform: translateX(-50%);
}
.compose-preview .preview-frame.landscape {
  width: 46px;
  height: 28px;
}
.compose-preview .preview-frame.landscape::after {
  left: auto;
  right: 4px;
  top: 50%;
  bottom: auto;
  width: 2px;
  height: 8px;
  transform: translateY(-50%);
}
.compose-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.compose-pay { min-width: 0; }
.compose-pay #price-line { margin: 0 0 8px; }
#order-form .composer-perks {
  margin: 0;
  gap: 6px;
}
#order-form .composer-perks li {
  min-height: 0;
  padding: 7px 8px;
  font-size: 11px;
}
.compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}
.compose-actions .ghost {
  min-height: 44px;
  padding: 0 14px;
}
.compose-actions button[type="submit"] {
  min-width: 120px;
}
.presets:not(.rich) { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.presets:not(.rich) button {
  background: rgba(7, 10, 18, 0.45);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
}
.presets:not(.rich) button.on {
  background: rgba(16, 185, 129, 0.075);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.32);
}
.pane-head { margin: 8px 0 18px; }
#desk[data-pane="orders"] .pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 2px 0 14px;
}
#desk[data-pane="orders"] .pane-head .kicker { display: none; }
#desk[data-pane="orders"] .pane-head h2 { font-size: 22px; margin: 0; }
#desk[data-pane="orders"] .pane-head .lead { font-size: 13px; margin: 0; }
.pane-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}
.pane-head .lead { margin: 0; max-width: 38em; }
#desk[data-pane="orders"] .stats,
#desk[data-pane="library"] .stats,
#desk[data-pane="orders"] #account-card,
#desk[data-pane="library"] #account-card { display: none; }
#pane-orders,
#order-filters,
.order-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#order-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#order-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 239, 233, 0.68);
  box-shadow: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
#order-filters button:hover {
  color: #f4fbf7;
  background: rgba(255, 255, 255, 0.06);
}
#order-filters button.on {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #042f1e;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
#order-filters .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: inherit;
  opacity: 0.88;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
#order-filters button.on .count {
  background: rgba(4, 47, 30, 0.18);
}
.order-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.empty-board {
  display: grid;
  place-items: center;
  gap: 16px;
  width: 100%;
  min-height: 280px;
  padding: 56px 24px;
  border-radius: 14px;
  background: rgba(21, 23, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: center;
}
.empty-board .empty {
  margin: 0;
  padding: 0;
  color: #f8fafc;
  background: none;
  border: 0;
  font-size: 20px;
  font-weight: 650;
  text-align: center;
}
.empty-board .empty-desc {
  margin: 8px auto 0;
  max-width: 32em;
  color: var(--muted);
  font-size: 14px;
}

.order {
  margin: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(18, 22, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}
.order-head {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.order-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.order-head .slim {
  flex: none;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
}
.order-no {
  flex: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226, 239, 233, 0.48);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.order-meta {
  color: rgba(226, 239, 233, 0.58);
  font-size: 12px;
  white-space: nowrap;
}
.order h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-time, .order .origin { color: var(--muted); font-size: 13px; margin: 0; }
.order-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.chip.ok { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.chip.wait { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.72); }
.chip.run { background: rgba(16, 185, 129, 0.10); color: #10b981; }
.chip.bad { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.chip.ghost { color: var(--muted); font-weight: 500; }
.order-progress { margin: 0 0 8px; }
.order-step {
  margin: 0;
  color: rgba(226, 239, 233, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.progress.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.order .progress {
  margin: 0 0 2px;
  gap: 8px;
}
.order .progress li {
  display: grid;
  gap: 6px;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.order .progress li em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.order .progress li::before { height: 3px; margin: 0; }
.order .progress li.done,
.order .progress li.on { color: var(--ink); }
.order .progress li.on em { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.order .progress li.done em { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
.order .progress li.bad { color: #fca5a5; }
.order .progress li.bad em { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.order-ref {
  margin: 10px 0 0;
  max-width: 132px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}
.order-ref img {
  display: block;
  width: 100%;
  height: 176px;
  max-height: 176px;
  object-fit: cover;
  background: #111;
  cursor: zoom-in;
}
.order-ref figcaption {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--muted);
}
.order-now {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}
.order-now.is-confirm { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); }
.order-now.is-pay { grid-template-columns: 148px minmax(0, 1fr); }
.order-now.is-making { grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
.order-now.is-done { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
.order-now-main, .order-now-side, .pay-copy, .order-media-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.order-now form { margin-top: 0; }
.order-now button[type="submit"]:not(.ghost),
.order-now .btn { width: 100%; min-height: 36px; }
.order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-links .btn,
.order-links a {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
}
.order-media-actions .block-label { margin: 0; }
.order form.soft {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.order form.soft label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.order form.soft textarea,
.order-now textarea {
  min-height: 42px;
  height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  resize: vertical;
}
.make-dot {
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.order-elapsed { margin: 0; color: var(--muted); font-size: 12px; }
.order-now .wait-clock { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.order-more {
  margin: 10px 0 0;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.order-more summary {
  cursor: pointer;
  list-style: none;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(226, 239, 233, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.order-more summary::-webkit-details-marker { display: none; }
.order-more summary::after { content: "+"; color: var(--accent); }
.order-more[open] summary::after { content: "–"; }
.order-more .origin { margin: 0 0 12px; }
.order-block {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.order-block summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.order-block summary::-webkit-details-marker { display: none; }
.block-label {
  margin: 0 0 6px;
  color: rgba(16, 185, 129, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.script-idea { margin: 10px 0 6px; font-weight: 600; }
.script-line { margin: 0 0 10px; color: rgba(255, 255, 255, 0.62); }
.script-full { margin-top: 8px; }
.script-full summary { color: var(--muted); font-size: 13px; font-weight: 500; }
.order-actions, .order form.soft { margin-top: 14px; }
.order-actions form + form { margin-top: 12px; }
.order-actions button[type="submit"]:not(.ghost) { min-width: 180px; }
.order .slim { min-height: 28px; padding: 0 8px; font-size: 12px; }
.order-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 0;
  padding: 8px 4px 2px;
  color: var(--muted);
  font-size: 12px;
}
.order-pager p { margin: 0; }
.order-pager div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.order-pager button {
  min-height: 32px;
  min-width: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.order-pager button.on {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
.pay-box {
  margin: 14px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.pay-box .pay-amount { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.pay-box .pay-amount small { font-size: 13px; color: var(--muted); }
.pay-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  min-height: 52px;
}
.pay-field span { color: var(--muted); font-size: 12px; flex: none; }
.pay-field b { font-weight: 650; word-break: break-all; }
.pay-field.copied { border-color: #10b981; }
.order-media { margin-top: 0; }

.library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#home-name { margin: 6px 0 8px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; }
#home-bio:empty { display: none; }
.home-hero {
  display: grid;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 26px 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-hero-top {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.home-avatar {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, #34d399, #059669);
  color: #042f24;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.home-hero .kicker { color: #86efac; letter-spacing: 0.16em; }
.home-hero .lead { margin: 0; max-width: 46rem; color: #cbd5e1; }
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.home-stats span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
}
.home-page { padding-bottom: 48px; }
.home-page .library-board { gap: 22px; }
#pane-library .pane-head { margin: 4px 0 20px; }
#pane-library .pane-head .kicker {
  color: #86efac;
  letter-spacing: 0.18em;
}
#pane-library .pane-head h2 {
  background: linear-gradient(100deg, #f8fafc 10%, #a7f3d0 62%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#pane-library .pane-head .lead { color: #94a3b8; }
.lib-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}
.lib-filters,
.lib-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-toolbar button,
.lib-toolbar a {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.lib-toolbar button.on {
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}
.lib-tools a,
.lib-tools button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.library-board { display: grid; gap: 20px; }
.lib-shelf {
  padding: 16px 16px 14px;
  border-radius: 22px;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(16, 185, 129, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lib-shelf.is-tv {
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(56, 189, 248, 0.10), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
.lib-shelf.is-loose {
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(148, 163, 184, 0.10), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}
.lib-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.lib-shelf-head h3 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.lib-shelf-head .kicker {
  margin: 0;
  color: #86efac;
  letter-spacing: 0.14em;
}
.lib-shelf.is-tv .lib-shelf-head .kicker,
.lib-shelf.is-tv .tv-season h4 { color: #7dd3fc; }
.movie-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
}
.lib-card { min-width: 0; }
.lib-card .work-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0d10;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.lib-card .work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.10) 48%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.lib-card:hover .work-cover::after {
  transform: translateX(130%);
  transition: transform 0.7s ease;
}
.lib-card:hover .work-cover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(16, 185, 129, 0.28);
}
.lib-card.is-shared .work-cover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(52, 211, 153, 0.45);
}
.lib-card.is-movie .work-cover { aspect-ratio: 2 / 3; }
.lib-card.is-tv .work-cover,
.lib-card.is-land .work-cover { aspect-ratio: 16 / 9; }
.lib-card.is-clip .work-cover { aspect-ratio: 9 / 16; }
.lib-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}
.lib-card.is-playing .lib-poster { opacity: 0; }
.lib-card .work-cover > video.clip,
.lib-card .clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  background: transparent;
}
.lib-play {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 10, 12, 0.58);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.lib-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.lib-card.is-playing .lib-play { display: none; }
.lib-fade {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}
.lib-fade b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}
.lib-fade small {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 11px;
}
.lib-card em,
.lib-share {
  position: absolute;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 10, 12, 0.72);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.lib-card em {
  top: 8px;
  left: 8px;
  font-style: normal;
}
.lib-share {
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 56px);
  white-space: nowrap;
  cursor: pointer;
}
.lib-card.is-shared .lib-share {
  background: rgba(16, 185, 129, 0.88);
  color: #042f24;
}
.lib-share input { width: 12px; height: 12px; accent-color: #10b981; }
.lib-meta {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.lib-tv-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 6px;
}
.lib-tv-meta:has(.lib-ep) {
  grid-template-columns: 72px minmax(0, 1fr);
}
.lib-meta select,
.lib-show,
.lib-season,
.lib-ep,
.lib-title {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.lib-actions {
  display: flex;
  gap: 6px;
}
.lib-sort { display: flex; gap: 6px; flex: 1; }
.lib-sort button,
.lib-actions a {
  flex: 1;
  min-height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tv-show { margin-top: 4px; }
.tv-show header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.tv-show header h3 { margin: 0; font-size: 18px; }
.tv-show header span { color: #94a3b8; font-size: 13px; }
.tv-season { margin: 0 0 14px; }
.tv-season h4 {
  margin: 0 0 10px;
  color: #86efac;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.tv-eps {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
}
.tv-eps .lib-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.shelf-sheet { max-width: 440px; }
.shelf-presets,
.shelf-styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.shelf-presets button,
.shelf-styles button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.shelf-styles button.on {
  background: #059669;
  border-color: #047857;
  color: #fff;
}
.clip-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.clip-card figcaption {
  display: grid;
  gap: 4px;
  padding: 10px 6px 4px;
}
.library .work-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 9 / 16;
}
.library .clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #0b0b0b;
}
.work-note-label {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.clip-card .work-note {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.clip-card .work-note:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.45);
}

details.card {
  margin-top: 28px;
  padding: 20px 24px;
}
details.card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
details.card summary::-webkit-details-marker { display: none; }
details.card form { margin-top: 14px; }

.script-wait, .prompt-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(16px);
}
.script-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(16, 185, 129, 0.16), transparent 58%),
    radial-gradient(circle at 18% 80%, rgba(6, 95, 70, 0.22), transparent 36%),
    #070b10;
  overflow: auto;
}
.script-wait[hidden], .prompt-layer[hidden] { display: none; }
.wait-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}
.wait-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.05) 48%, transparent 52%);
  background-size: 100% 220%;
  animation: wait-scan 7.5s linear infinite;
  mix-blend-mode: screen;
}
.script-wait-card {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 28px 26px 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 16, 20, 0.78);
  border: 1px solid rgba(167, 243, 208, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(22px) saturate(1.2);
  color: #e8f0ec;
  text-align: center;
}
.script-wait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(167, 243, 208, 0.08) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: wait-sheen 6s ease-in-out infinite;
}
.prompt-sheet {
  width: min(560px, 100%);
  padding: 28px 26px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}
.script-wait-card h2, .prompt-sheet h3 {
  margin: 6px 0 10px;
  letter-spacing: -0.03em;
}
.script-wait-card h2 {
  margin: 4px 0 8px;
  color: #f6fbf8;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
}
.script-wait-card .kicker {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  letter-spacing: 0.22em;
}
.wait-status {
  min-height: 1.5em;
  margin: 0 0 6px;
  color: #9ee6c5;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.wait-status::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 5px;
  vertical-align: -3px;
  background: #34d399;
  animation: wait-caret 1s steps(2) infinite;
}
.wait-clock {
  margin: 4px 0 14px;
  color: #f8fafc;
  font-size: 48px;
  font-weight: 720;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.22);
}
.wait-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.wait-meters span {
  display: grid;
  gap: 2px;
  padding: 10px 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.wait-meters em {
  font-style: normal;
  color: rgba(226, 239, 233, 0.48);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.wait-meters b {
  color: #ecfdf5;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.wait-core {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
}
.wait-orbit,
.wait-nucleus,
.wait-node {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.wait-orbit {
  border: 1px solid rgba(110, 231, 183, 0.22);
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.08);
}
.wait-orbit.o1 { inset: 8px; animation: wait-spin 10s linear infinite; }
.wait-orbit.o2 { inset: 20px; border-style: dashed; animation: wait-spin 16s linear infinite reverse; }
.wait-orbit.o3 { inset: 32px; animation: wait-spin 7s linear infinite; }
.wait-nucleus {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 30%, #ecfdf5, #10b981 55%, #065f46);
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.7), 0 0 48px rgba(16, 185, 129, 0.28);
  animation: wait-pulse 1.8s ease-in-out infinite;
}
.wait-node {
  width: 6px;
  height: 6px;
  inset: auto;
  background: #86efac;
  box-shadow: 0 0 10px #34d399;
}
.wait-node.n1 { top: 6px; left: 53px; animation: wait-spin 10s linear infinite; transform-origin: 3px 50px; }
.wait-node.n2 { top: 18px; left: 53px; animation: wait-spin 16s linear infinite reverse; transform-origin: 3px 38px; }
.wait-node.n3 { top: 30px; left: 53px; animation: wait-spin 7s linear infinite; transform-origin: 3px 26px; }
.wait-log {
  min-height: 3.4em;
  margin: 0 0 12px;
  color: rgba(167, 243, 208, 0.72);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.script-wait-card .hint {
  margin: 0 auto;
  color: rgba(226, 239, 233, 0.52);
  font-size: 12px;
}
.wait-next-card {
  padding: 18px 20px 16px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(8, 14, 18, 0.88);
}
.wait-next-card::before { display: none; }
.wait-next-card .kicker { margin-top: 0; }
.wait-next-card h3 {
  margin: 8px 0 6px;
  color: #f6fbf8;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.wait-next-card .hint {
  margin: 0 0 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 239, 233, 0.68);
}
.wait-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wait-next-actions .btn,
.wait-next-actions .ghost {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}
.wait-next-card .btn {
  background: #34d399;
  color: #042f1e;
  border: 0;
}
.wait-next-card .ghost {
  color: #d1fae5;
  border-color: rgba(167, 243, 208, 0.22);
  background: rgba(16, 185, 129, 0.08);
}
.script-wait:has(.wait-next-card) .wait-meters,
.script-wait:has(.wait-next-card) .wait-log { display: none; }
.script-wait:has(.wait-next-card) .wait-clock { font-size: 36px; margin: 4px 0 10px; }
.script-wait:has(.wait-next-card) .wait-core { width: 80px; height: 80px; }
.studio-stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.script-wait .studio-stage-rail {
  position: relative;
}
.script-wait .studio-stage-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 13px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.45), transparent);
}
.studio-stage-rail li {
  position: relative;
  min-height: 44px;
  padding: 18px 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: rgba(226, 239, 233, 0.42);
  font-size: 13px;
  text-align: center;
}
.studio-stage-rail li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.studio-stage-rail li.on {
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.38);
}
.studio-stage-rail li.on::before {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: wait-pulse 1.4s ease-in-out infinite;
}
.studio-stage-rail li.done { color: #6ee7b7; background: rgba(16, 185, 129, 0.10); }
.studio-stage-rail li.done::before { background: #6ee7b7; }
@keyframes wait-spin { to { transform: rotate(360deg); } }
@keyframes wait-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.82; }
}
@keyframes wait-scan {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}
@keyframes wait-sheen {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
@keyframes wait-caret {
  0%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wait-scan, .script-wait-card::before, .wait-orbit, .wait-node, .wait-nucleus,
  .wait-status::after, .studio-stage-rail li.on::before { animation: none; }
  .lib-card .work-cover,
  .lib-card:hover .work-cover { transform: none; }
}
.script-version-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
}
.script-version-tabs button { flex: none; }
.script-version-tabs button {
  min-height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.45);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.script-version-tabs button.on {
  background: rgba(16, 185, 129, 0.075);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.32);
}
.script-version-tabs button:disabled { opacity: 0.38; }
.prompt-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 16px;
  background: #10b981;
  color: #fff;
  font-weight: 750;
  border: 0;
  box-shadow: none;
}
.script-rewrite-meter {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}
.payment-qr-panel { justify-items: stretch; }
.qr-wrap {
  width: 160px;
  height: 160px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.qr-wrap canvas, .qr-wrap img { width: 100%; height: 100%; display: block; }
.make-box {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.make-box h3 { margin: 0 0 6px; }
.make-box .wait-clock { font-size: 28px; }
.order-video-player {
  position: relative;
  width: 100%;
  max-width: 92px;
  max-height: 164px;
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #05070d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.order-video-player video,
.order-video-player video.clip {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.order-video-player.landscape { aspect-ratio: 16 / 9; max-width: 168px; max-height: 96px; }
.watch-open-btn {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 10, 12, 0.72);
  color: #ecfdf5;
  font-size: 11px;
}
.watch-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #000;
  box-sizing: border-box;
}
.watch-layer[hidden] { display: none !important; }
.watch-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  touch-action: none;
  transform-origin: center center;
  overflow: hidden;
}
.watch-frame video,
#watch-video {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #000;
  border-radius: 0;
  aspect-ratio: auto;
}
.watch-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 2;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.watch-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
body.watch-open { overflow: hidden; }
body.watch-open .top,
body.watch-open #kefu-root { visibility: hidden; pointer-events: none; }
@media (max-width: 720px) {
  .watch-layer {
    padding: calc(48px + env(safe-area-inset-top, 0px)) 0 calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .watch-tip { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .watch-layer {
    padding: 8px calc(56px + env(safe-area-inset-right, 0px)) 8px 8px;
  }
}
.prompt-sheet { width: min(720px, 100%); max-height: min(84vh, 860px); display: grid; grid-template-rows: auto 1fr; }
.prompt-sheet header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.prompt-tools { display: flex; gap: 8px; }
.prompt-sheet pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(7, 10, 18, 0.55);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
}
body.prompt-open { overflow: hidden; }

@media (max-width: 980px) {
  .auth-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: auto;
    padding: 16px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .auth-card { order: -1; }
  .auth-hero .display { font-size: 32px; }
  .auth-hero .lead { font-size: 15px; }
  .auth-points { grid-template-columns: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-toolbar { flex-direction: column; align-items: stretch; }
  .movie-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-eps .lib-card { flex-basis: 72vw; }
  .compose-bar { flex-direction: column; align-items: stretch; }
  .compose-preview,
  .compose-preview.is-landscape { grid-template-columns: 64px minmax(0, 1fr); }
  .compose-preview .preview-cover { width: 64px; height: 96px; }
  .compose-preview.is-landscape .preview-cover { width: 64px; height: 36px; }
  .compose-preview .preview-frame { display: none; }
  #order-form .presets.rich:not(.aspects) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .order-now.is-confirm,
  .order-now.is-pay { grid-template-columns: minmax(0, 1fr); }
  .order-now.is-done { grid-template-columns: 80px minmax(0, 1fr); }
  .order-now.is-pay { justify-items: center; }
}
@media (max-width: 640px) {
  .auth-hero .display { font-size: 28px; }
  .auth-card { padding: 20px 16px 16px; }
  .auth-points li { padding: 10px 0; }
  .library { grid-template-columns: 1fr; }
  .home-hero-top { align-items: center; }
  .movie-wall { grid-template-columns: 1fr 1fr; }
  .prompt-ways { grid-template-columns: 1fr; }
  #desk #desk-tabs.desk-tabs {
    top: calc(64px + env(safe-area-inset-top, 0px));
    width: 100%;
    margin: 8px 0 14px;
    padding: 4px;
    gap: 3px;
    border-radius: 16px;
  }
  #desk #desk-tabs.desk-tabs button {
    min-height: 44px;
    padding: 0 6px;
    font-size: 12px;
    gap: 4px;
  }
  #desk #desk-tabs.desk-tabs button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #desk .desk-ico-wrap {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  #desk .desk-count {
    top: 6px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
  }
  #order-form.card { padding: 16px 14px 14px; }
  #order-form .presets.rich:not(.aspects) {
    grid-template-columns: 1fr 1fr;
  }
  #order-form .presets.rich:not(.aspects) button:nth-child(5) {
    grid-column: 1 / -1;
  }
  #order-aspects button {
    min-height: 86px;
    padding: 12px 12px 12px 68px;
  }
  .frame-glyph.portrait { width: 28px; height: 46px; }
  .frame-glyph.landscape { width: 46px; height: 28px; }
  #order-aspects button span { display: block; }
  .compose-actions { width: 100%; }
  .compose-actions button { flex: 1; }
  .compose-actions button[type="submit"] { flex: 1 1 100%; }
  .compose-bar { padding-bottom: 8px; }
  #order-form .composer-perks { grid-template-columns: 1fr; }
  #order-form .composer-perks li { text-align: left; }
  #order-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding: 4px;
    gap: 3px;
    border-radius: 14px;
  }
  #order-filters button { min-height: 36px; padding: 0 8px; font-size: 12px; }
  .order { padding: 14px 12px 12px; border-radius: 16px; }
  .order-head { gap: 6px; }
  .order-head .order-meta,
  .order-no { font-size: 11px; }
  .order h3 { font-size: 15px; }
  .order-actions, .order-actions button[type="submit"]:not(.ghost) {
    width: 100%;
    min-width: 0;
  }
  .empty-board { min-height: 200px; padding: 36px 16px; }
  .order-list { gap: 10px; }
  .order-pager { justify-content: center; }
  .order-pager p { width: 100%; text-align: center; }
  .studio-stage-rail { grid-template-columns: 1fr 1fr; }
  .script-wait .studio-stage-rail::before { display: none; }
  .wait-clock { font-size: 36px; }
  .script-wait, .prompt-layer { padding: 16px 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .script-wait-card, .prompt-sheet { padding: 20px 16px 16px; }
  .wait-next-card { padding: 16px; }
  .wait-next-actions { flex-direction: column; }
  .wait-next-actions .btn,
  .wait-next-actions .ghost { width: 100%; }
  .wait-core { width: 88px; height: 88px; }
  .wait-meters { gap: 6px; }
  .order-now.is-done { grid-template-columns: 76px minmax(0, 1fr); }
  .order-video-player { max-width: 76px; max-height: 136px; }
  .order-video-player.landscape { max-width: 120px; max-height: 68px; }
  .order-links .btn,
  .order-links a { flex: 1; justify-content: center; }
  .prompt-sheet header { flex-direction: column; }
  .prompt-tools { width: 100%; }
  .prompt-tools button { flex: 1; }
  .pay-field { width: 100%; }
  .qr-wrap { width: min(180px, 56vw); height: min(180px, 56vw); margin: 0 auto; }
}
