:root {
  --bg: #0d1410;
  --bg-soft: #111a15;
  --panel: #151f19;
  --panel-2: #1a2720;
  --panel-3: #203128;
  --paper: #f4f0e6;
  --paper-soft: #d9ded7;
  --muted: #8fa198;
  --muted-2: #67786f;
  --line: rgba(244, 240, 230, 0.11);
  --line-strong: rgba(244, 240, 230, 0.2);
  --accent: #ef8354;
  --accent-soft: rgba(239, 131, 84, 0.14);
  --lime: #b9e38b;
  --green: #4faf80;
  --green-soft: rgba(79, 175, 128, 0.14);
  --danger: #e2766b;
  --danger-soft: rgba(226, 118, 107, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

/* Cover Agent */
.cover-agent-shell {
  display: grid;
  gap: 18px;
}

.cover-agent-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 10%, rgba(253, 255, 167, 0.13), transparent 18rem),
    linear-gradient(135deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.cover-agent-hero h2 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15;
}

.cover-agent-hero .lead-copy {
  max-width: 760px;
  margin: 0;
}

.cover-agent-hero-mark {
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(253, 255, 167, 0.4);
  border-radius: 24px;
  color: var(--bg);
  background: #fdffa7;
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 0 0 10px rgba(253, 255, 167, 0.05);
}

.cover-agent-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cover-agent-progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(21, 31, 25, 0.72);
}

.cover-agent-progress-step span {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.cover-agent-progress-step b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-agent-progress-step.is-active {
  border-color: rgba(253, 255, 167, 0.5);
  color: var(--paper);
  background: rgba(253, 255, 167, 0.08);
}

.cover-agent-progress-step.is-done {
  border-color: rgba(79, 175, 128, 0.35);
  color: var(--lime);
  background: var(--green-soft);
}

.cover-agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.cover-agent-main {
  display: grid;
  gap: 16px;
}

.cover-agent-step {
  padding: 24px;
}

.cover-agent-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.cover-agent-action-row small,
.cover-agent-side-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.cover-angle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cover-angle-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--paper);
  text-align: left;
  background: rgba(26, 39, 32, 0.72);
}

.cover-angle-card:hover,
.cover-angle-card.is-selected {
  border-color: rgba(253, 255, 167, 0.55);
  background: rgba(253, 255, 167, 0.07);
}

.cover-angle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
}

.cover-angle-top strong {
  color: #fdffa7;
  font-family: Consolas, monospace;
  font-size: 18px;
}

.cover-angle-card b {
  font-size: 16px;
  line-height: 1.45;
}

.cover-angle-card small {
  color: var(--paper-soft);
  font-size: 12px;
}

.cover-angle-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.6;
}

.cover-agent-copy-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cover-agent-copy-editor .cover-agent-action-row {
  grid-column: 1 / -1;
}

.cover-agent-label {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.cover-aspect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
}

.choice-chip.is-selected {
  border-color: rgba(253, 255, 167, 0.55);
  color: var(--bg);
  background: #fdffa7;
}

.cover-agent-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cover-agent-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cover-agent-review > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 39, 32, 0.64);
}

.cover-agent-review span,
.cover-agent-side-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.cover-agent-review strong {
  font-size: 14px;
  line-height: 1.5;
}

.cover-agent-side {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.cover-agent-side h3 {
  margin: 4px 0 18px;
}

.cover-agent-side-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cover-agent-side-row strong {
  font-size: 13px;
  line-height: 1.5;
}

.cover-agent-side-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cover-agent-result {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
}

.cover-agent-result img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cover-agent-result-side {
  display: grid;
  gap: 10px;
  align-items: start;
}

.cover-agent-result-side h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.cover-agent-result-side p {
  margin: 0;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .cover-agent-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-agent-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .cover-agent-progress,
  .cover-angle-grid,
  .cover-agent-copy-editor,
  .cover-agent-two-col,
  .cover-agent-review,
  .cover-agent-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-agent-hero {
    align-items: flex-start;
  }

  .cover-agent-hero-mark {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 960px;
  background: var(--bg);
}

body {
  min-width: 960px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% -10%, rgba(239, 131, 84, 0.16), transparent 34rem),
    radial-gradient(circle at 10% 100%, rgba(79, 175, 128, 0.1), transparent 30rem),
    var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--lime);
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup h1 {
  margin: 0;
  color: var(--paper);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--bg);
  background: var(--paper);
  font-size: 24px;
  font-weight: 900;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(400px, 500px) minmax(520px, 1fr);
  gap: 64px;
  padding: 56px;
  align-items: center;
}

.auth-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(21, 31, 25, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-lead {
  max-width: 380px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.auth-aside {
  max-width: 700px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(239, 131, 84, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-aside h2 {
  margin: 18px 0 32px;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.auth-points {
  display: grid;
  gap: 12px;
}

.auth-points > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.025);
}

.auth-points strong {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(185, 227, 139, 0.65);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(185, 227, 139, 0.09);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.script-textarea {
  min-height: 240px;
}

select option {
  color: var(--paper);
  background: var(--panel-2);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.field-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.ghost-button,
.mini-button,
.text-button {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.primary-button {
  padding: 13px 18px;
  color: #1a100b;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(239, 131, 84, 0.2);
}

.primary-button:hover {
  background: #f49a73;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.secondary-button:hover {
  border-color: rgba(185, 227, 139, 0.45);
  background: rgba(185, 227, 139, 0.08);
}

.ghost-button {
  padding: 10px 14px;
  color: var(--paper-soft);
  border: 1px solid var(--line);
  background: transparent;
}

.text-button {
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.text-button:hover {
  color: var(--paper);
}

.danger-text {
  color: var(--danger);
}

.mini-button {
  padding: 8px 10px;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 11px;
}

.full {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.link-button {
  text-decoration: none;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(239, 131, 84, 0.055), transparent 24%),
    rgba(13, 20, 16, 0.94);
  backdrop-filter: blur(20px);
}

.brand-lockup--sidebar {
  padding: 0 8px;
}

.brand-lockup--sidebar h1 {
  font-size: 23px;
}

.brand-lockup--sidebar .brand-mark {
  width: 44px;
  height: 44px;
}

.new-project-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 26px 8px 12px;
  padding: 12px;
  border: 1px solid rgba(239, 131, 84, 0.32);
  border-radius: 12px;
  color: var(--paper);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.new-project-button span {
  color: var(--accent);
  font-size: 18px;
}

.main-nav {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 3px;
  margin-top: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 240, 230, 0.16) transparent;
}

.main-nav::-webkit-scrollbar {
  width: 5px;
}

.main-nav::-webkit-scrollbar-track {
  background: transparent;
}

.main-nav::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(244, 240, 230, 0.16);
}

.nav-section {
  margin: 20px 12px 7px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.nav-item span {
  width: 20px;
  color: var(--muted-2);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.is-active span {
  color: var(--accent);
}

.sidebar-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.admin-entry-button {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(185, 227, 139, 0.28);
  border-radius: 11px;
  color: var(--lime);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-entry-button:hover,
.admin-entry-button.is-active {
  color: var(--bg);
  background: var(--lime);
}

.user-chip {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 15px 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  text-align: left;
}

.user-chip:hover {
  color: var(--lime);
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip strong {
  font-size: 12px;
}

.user-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.workspace {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  min-width: 0;
  padding: 30px clamp(26px, 4vw, 60px) 36px;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.workspace-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.head-status {
  display: flex;
  min-width: 148px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.head-install-button {
  color: var(--paper);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.head-install-button:hover {
  color: var(--lime);
  border-color: rgba(185, 227, 139, 0.4);
  background: var(--green-soft);
}

.install-glyph {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1;
}

.head-status.is-ready {
  color: var(--lime);
  border-color: rgba(185, 227, 139, 0.24);
}

.head-status.is-warning {
  color: #f0bf8f;
  border-color: rgba(239, 131, 84, 0.25);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 175, 128, 0.12);
}

.view-root {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 20px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.5fr);
  gap: 28px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(239, 131, 84, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy h3 {
  max-width: 780px;
  margin: 9px 0 14px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.hero-copy > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: end;
}

.hero-stats > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-stats strong {
  font-family: Consolas, monospace;
  font-size: 27px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.stage-card {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  color: var(--paper);
  background: var(--panel);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stage-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 131, 84, 0.35);
}

.stage-card.is-done {
  background: linear-gradient(180deg, rgba(79, 175, 128, 0.08), var(--panel));
}

.stage-card.is-current {
  border-color: rgba(239, 131, 84, 0.55);
  background: linear-gradient(180deg, rgba(239, 131, 84, 0.12), var(--panel));
  box-shadow: inset 0 0 0 1px rgba(239, 131, 84, 0.1);
}

.stage-card-number {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.stage-card-eyebrow {
  margin-top: 25px;
  color: var(--muted-2);
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.stage-card strong {
  margin-top: 6px;
  font-size: 18px;
}

.stage-card small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.stage-card em {
  margin-top: auto;
  padding-top: 16px;
  color: var(--lime);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 25px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-list.compact {
  gap: 6px;
}

.project-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.project-row:hover {
  border-color: rgba(185, 227, 139, 0.28);
  background: rgba(185, 227, 139, 0.04);
}

.project-step {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.project-main {
  min-width: 0;
  flex: 1;
}

.project-main strong,
.project-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-main strong {
  font-size: 13px;
}

.project-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.project-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
}

.project-meta em {
  color: var(--lime);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.project-meta time,
.project-meta b {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.create-card {
  max-width: 760px;
  padding: 36px;
}

.create-card h3 {
  margin: 5px 0 12px;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.script-create-layout .create-card {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.copy-library-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.script-create-layout {
  min-height: calc(100vh - 170px);
  align-items: stretch;
}

.script-create-layout #project-create-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.script-create-layout #project-create-form > label:first-child {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.script-create-layout #project-theme {
  min-height: 260px;
  flex: 1;
  resize: vertical;
}

.theme-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-quick-actions .secondary-button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}

.library-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 13px;
}

.library-tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.library-tab span {
  margin-left: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.library-tab:hover,
.library-tab.is-active {
  color: var(--paper);
  border-color: rgba(239, 131, 84, 0.45);
  background: var(--accent-soft);
}

.library-tab.is-active span {
  color: var(--accent);
}

.content-library-list {
  margin-top: 10px;
}

.library-entry-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.library-group-label {
  margin: 4px 0 2px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.library-entry-text {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.library-entry-text strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.library-entry-text small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-library-item em {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.title-library-item:hover em,
.material-library-item:hover em {
  color: var(--lime);
}

.material-detail-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-library-list {
  display: grid;
  align-content: start;
  min-height: 0;
  flex: 1;
  gap: 8px;
  margin-top: 16px;
  overflow-y: scroll;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 131, 84, 0.68) rgba(255, 255, 255, 0.06);
  scrollbar-gutter: stable;
}

.copy-library-list::-webkit-scrollbar {
  width: 8px;
}

.copy-library-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.copy-library-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(239, 131, 84, 0.68);
  background-clip: padding-box;
}

.copy-library-list::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 131, 84, 0.88);
  background-clip: padding-box;
}

.copy-library-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  font-weight: 400;
}

.copy-library-item:hover,
.copy-library-item.is-selected {
  border-color: rgba(239, 131, 84, 0.52);
  background: var(--accent-soft);
}

.copy-library-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.copy-library-item small {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.copy-library-empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}

.copy-library-empty strong,
.copy-library-empty span {
  display: block;
}

.copy-library-empty strong {
  color: var(--paper);
  font-size: 14px;
}

.copy-library-empty span {
  margin-top: 7px;
}

.copy-library-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 8, 6, 0.78);
  backdrop-filter: blur(10px);
}

.copy-library-modal-card {
  position: relative;
  width: min(760px, calc(100vw - 56px));
  max-height: min(78vh, 820px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(239, 131, 84, 0.09), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.copy-library-modal-card h3 {
  margin: 6px 0 5px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.copy-library-modal-card time {
  color: var(--muted-2);
  font-size: 10px;
}

.copy-library-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
  line-height: 1;
}

.copy-library-modal-close:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.copy-library-modal-body {
  max-height: 52vh;
  margin-top: 18px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper-soft);
  background: rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  white-space: pre-wrap;
}

.copy-library-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.copy-library-modal-actions small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.material-modal-card {
  display: flex;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(88vh, 940px);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.material-modal-card > .eyebrow {
  margin: 0;
  padding: 25px 28px 0;
}

.material-modal-card > h3 {
  margin: 6px 28px 18px;
}

.material-stepper {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.material-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.material-step i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 10px;
  font-style: normal;
}

.material-step.is-active {
  color: var(--paper);
}

.material-step.is-active i {
  color: #1b110b;
  border-color: var(--accent);
  background: var(--accent);
}

.material-step.is-done {
  color: var(--lime);
}

.material-step.is-done i {
  color: var(--lime);
  border-color: rgba(185, 227, 139, 0.45);
  background: var(--green-soft);
}

.material-step-arrow {
  color: var(--muted-2);
}

.material-modal-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 22px 28px 26px;
}

.material-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.material-modal-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.material-import-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.material-import-tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.material-import-tab:hover,
.material-import-tab.is-active {
  color: var(--paper);
  border-color: rgba(239, 131, 84, 0.45);
  background: var(--accent-soft);
}

.material-url-import,
.material-text-import {
  display: grid;
  gap: 12px;
}

.material-url-import textarea,
.material-text-import textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 1.75;
}

.material-text-import textarea {
  min-height: 190px;
}

.material-url-import textarea:focus,
.material-text-import textarea:focus,
.material-doc-editor textarea:focus {
  border-color: rgba(239, 131, 84, 0.55);
}

.material-url-import p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.material-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.material-platform-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.material-dropzone {
  display: grid;
  min-height: 210px;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
  font-size: 11px;
}

.material-dropzone strong {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
}

.material-dropzone input[type="file"] {
  max-width: 360px;
  color: var(--paper-soft);
  font-size: 11px;
}

.material-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 10px;
}

.material-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.material-section-head small {
  color: var(--muted);
  font-size: 10px;
}

.material-source-list {
  display: grid;
  gap: 8px;
}

.material-source-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.material-source-row:hover,
.material-doc-item:hover,
.material-doc-item.is-selected {
  border-color: rgba(239, 131, 84, 0.45);
  background: var(--accent-soft);
}

.material-source-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.material-source-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
}

.material-source-main small {
  color: var(--muted-2);
  font-size: 9px;
}

.material-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.material-status.is-parsed {
  color: var(--lime);
  background: var(--green-soft);
}

.material-status.is-needs_manual_text {
  color: var(--accent);
  background: var(--accent-soft);
}

.material-status.is-failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.material-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  gap: 7px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.material-empty strong {
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
}

.material-editor-layout {
  display: grid;
  min-height: 420px;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
}

.material-doc-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 56vh;
  overflow: auto;
  padding-right: 3px;
}

.material-doc-entry {
  display: grid;
  gap: 4px;
}

.material-doc-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 9px;
}

.material-doc-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.material-doc-item {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.material-doc-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
}

.material-doc-item small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.material-doc-editor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.material-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.material-editor-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 500;
}

.material-editor-head small {
  color: var(--muted);
  font-size: 9px;
}

.material-manual-notice {
  padding: 10px 12px;
  border: 1px solid rgba(239, 131, 84, 0.28);
  border-radius: 10px;
  color: #f0b08d;
  background: var(--accent-soft);
  font-size: 10px;
  line-height: 1.65;
}

.material-doc-editor textarea {
  width: 100%;
  min-height: 330px;
  flex: 1;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  color: var(--paper-soft);
  background: rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.8;
}

.material-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.material-editor-actions small {
  color: var(--muted);
  font-size: 9px;
}

.material-editor-loading {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  font-size: 11px;
}

.material-analysis-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 227, 139, 0.18);
  border-radius: 11px;
  color: var(--paper-soft);
  background: var(--green-soft);
  font-size: 11px;
}

.material-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
}

.material-title-options,
.material-option-list {
  display: grid;
  gap: 8px;
}

.material-title-option,
.material-option {
  display: flex;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.018);
  font-size: 11px;
  line-height: 1.6;
}

.material-title-option input,
.material-option input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.material-title-option > span {
  min-width: 0;
  flex: 1;
}

.material-title-option em {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
}

.material-title-option.is-selected,
.material-option.is-selected {
  border-color: rgba(239, 131, 84, 0.5);
  background: var(--accent-soft);
}

.material-option > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.material-option strong {
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
}

.material-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .material-analysis-grid,
  .material-editor-layout {
    grid-template-columns: 1fr;
  }

  .material-doc-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .material-doc-item {
    min-width: 220px;
  }
}

.lead-copy {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid > label {
  align-content: start;
}

.form-grid select {
  min-height: 52px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-actions small {
  max-width: 380px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  color: #ecc9b9;
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1.7;
}

.error-notice {
  border-left-color: var(--danger);
  color: #f0b8b1;
  background: var(--danger-soft);
}

.status-pill,
.mini-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-ready,
.mini-status.is-ready {
  color: var(--lime);
  background: var(--green-soft);
}

.status-pill.is-warn,
.mini-status.is-warn {
  color: #f2b58e;
  background: var(--accent-soft);
}

.title-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.title-option {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.title-option.is-selected {
  color: var(--paper);
  border-color: rgba(239, 131, 84, 0.45);
  background: var(--accent-soft);
}

.scene-preview {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.scene-preview-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.scene-preview-item > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.scene-preview-item strong,
.scene-preview-item small {
  display: block;
}

.scene-preview-item strong {
  font-size: 12px;
}

.scene-preview-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.reference-preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.reference-preview video,
.reference-preview img {
  width: 150px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.reference-preview strong {
  font-size: 12px;
}

.reference-preview p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.asset-tip {
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.locked-script {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.locked-script strong {
  display: block;
  font-size: 17px;
}

.locked-script p:not(.eyebrow) {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 700;
}

.inline-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.inline-field select {
  flex: 1;
  min-width: 0;
}

.inline-field .secondary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.asset-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-choice {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.asset-choice input {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.asset-choice img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.asset-choice span {
  display: block;
  overflow: hidden;
  padding: 8px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.upload-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-line small {
  color: var(--muted);
  font-size: 10px;
}

.progress-panel {
  min-height: 460px;
}

.empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.empty-state.tall {
  min-height: 330px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--paper);
  font-size: 18px;
}

.empty-state span {
  margin-top: 8px;
}

.job-panel {
  display: grid;
  gap: 18px;
}

.job-percent {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f2bd7c);
  transition: width 500ms ease;
}

.job-stages {
  display: grid;
  gap: 5px;
}

.job-stage {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  color: var(--muted-2);
  font-size: 11px;
}

.job-stage > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 9px;
}

.job-stage em {
  font-size: 9px;
  font-style: normal;
}

.job-stage.is-current {
  color: var(--paper);
}

.job-stage.is-current > span {
  color: #1a100b;
  border-color: var(--accent);
  background: var(--accent);
}

.job-stage.is-done {
  color: var(--lime);
}

.job-stage.is-done > span {
  color: var(--bg);
  border-color: var(--green);
  background: var(--green);
}

.result-block {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.result-video {
  display: block;
  width: min(100%, 330px);
  max-height: 480px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #000;
}

.result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.platform-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.platform-head strong {
  font-size: 13px;
}

.platform-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 9px;
}

.platform-actions a {
  color: var(--lime);
  text-decoration: none;
}

.platform-actions .platform-publish-button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--paper);
  border-color: rgba(185, 227, 139, 0.3);
  background: var(--green-soft);
  font-size: 10px;
}

.platform-actions .text-button {
  font-size: 9px;
}

.platform-account {
  padding: 5px 8px;
  border: 1px solid rgba(185, 227, 139, 0.24);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(185, 227, 139, 0.08);
  font-size: 9px;
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.review-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-action h4,
.review-report h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.review-action p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.review-report {
  display: grid;
  gap: 17px;
}

.review-report h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.review-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.review-label {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  font-size: 9px;
  font-weight: 800;
}

.review-label.good {
  color: var(--lime);
  background: var(--green-soft);
}

.review-label.bad {
  color: #f1b3ab;
  background: var(--danger-soft);
}

.review-block ul,
.review-block ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--paper-soft);
  font-size: 11px;
  line-height: 1.6;
}

.insight-list {
  display: grid;
  gap: 9px;
}

.insight-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.insight-card.winner {
  border-left: 3px solid var(--green);
}

.insight-card.pitfall {
  border-left: 3px solid var(--danger);
}

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.insight-head em {
  color: var(--muted);
  font-style: normal;
}

.insight-card > strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
}

.insight-card > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.insight-approve {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.insight-approve select {
  min-width: 180px;
  padding: 8px;
  font-size: 10px;
}

.skill-mini-list {
  display: grid;
  gap: 7px;
}

.skill-mini-list > div {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
}

.skill-mini-list span,
.skill-mini-list em {
  color: var(--muted);
  font-style: normal;
}

.skill-mini-list strong {
  font-size: 10px;
}

.account-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(239, 131, 84, 0.1), transparent 48%),
    var(--panel);
}

.account-intro h3 {
  margin: 4px 0 10px;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.account-intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.rule-badge {
  flex: 0 0 auto;
  padding: 16px 22px;
  border: 1px solid rgba(239, 131, 84, 0.3);
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
}

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

.provider-card {
  padding: 26px;
}

.provider-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-title h3 {
  margin: 0;
  font-size: 23px;
}

.provider-title .status-pill {
  margin-left: auto;
}

.provider-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--bg);
  background: var(--paper);
  font-family: Consolas, monospace;
  font-size: 16px;
  font-weight: 900;
}

.provider-description {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.capability-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.capability-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 9px;
}

.onboarding-list {
  display: grid;
  gap: 7px;
  margin: 0 0 17px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.connection-state {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 17px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
}

.connection-state strong {
  color: var(--lime);
  font-family: Consolas, monospace;
}

.connection-state small {
  margin-left: auto;
  color: var(--muted-2);
}

.provider-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.provider-foot a {
  text-decoration: none;
}

.connection-tools {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.wallet-metrics .metric-card strong {
  font-size: 30px;
}

.wallet-layout {
  align-items: stretch;
}

.wallet-recharge-card,
.wallet-ledger-card {
  min-height: 620px;
}

.wallet-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.wallet-preset {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.wallet-preset:hover,
.wallet-preset.is-selected {
  color: var(--paper);
  border-color: rgba(239, 131, 84, 0.5);
  background: var(--accent-soft);
}

.wallet-custom-amount {
  margin-bottom: 16px;
}

.wallet-qr-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.wallet-qr-box {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: #f7f4ec;
}

.wallet-qr-box img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 8px;
}

.wallet-qr-missing {
  display: none;
  max-width: 130px;
  color: #6f746d;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

.wallet-qr-missing.is-visible {
  display: grid;
}

.wallet-qr-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.wallet-qr-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.wallet-create-order {
  width: 100%;
  min-height: 52px;
}

.wallet-active-order {
  display: grid;
  gap: 14px;
}

.wallet-active-order h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.wallet-active-order > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.wallet-active-order .wallet-qr-box {
  max-width: 260px;
  min-height: auto;
  margin: 0 auto;
}

.wallet-active-order .wallet-qr-box img {
  max-width: 230px;
}

.wallet-active-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.wallet-order-list,
.wallet-transaction-list {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.wallet-ledger-head {
  margin-top: 24px;
}

.wallet-order-row,
.wallet-transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.wallet-order-row strong,
.wallet-transaction-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.wallet-order-row small,
.wallet-transaction-row small {
  color: var(--muted-2);
  font-size: 9px;
}

.wallet-order-meta,
.wallet-transaction-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.wallet-order-meta b,
.wallet-transaction-row b {
  font-size: 13px;
  font-weight: 600;
}

.wallet-transaction-row b.is-spend {
  color: var(--accent);
}

.wallet-transaction-row b.is-credit {
  color: var(--lime);
}

.wallet-status {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  font-style: normal;
}

.wallet-status.is-paid {
  color: var(--lime);
  background: var(--green-soft);
}

.wallet-status.is-pending,
.wallet-status.is-claimed {
  color: var(--accent);
  background: var(--accent-soft);
}

.wallet-status.is-rejected,
.wallet-status.is-cancelled {
  color: var(--danger);
  background: var(--danger-soft);
}

.wallet-pricing-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
}

.wallet-pricing-box span {
  color: var(--muted);
}

.wallet-pricing-box strong {
  color: var(--paper);
  font-weight: 500;
}

.platform-key-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.platform-key-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.platform-key-row strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.platform-key-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.platform-key-row input {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
}

.platform-key-row button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 10px;
}

.qr-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qr-upload-grid form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-upload-grid strong {
  font-size: 12px;
  font-weight: 500;
}

.qr-upload-grid small {
  color: var(--muted-2);
  font-size: 9px;
}

.qr-upload-grid input {
  padding: 8px;
  font-size: 9px;
}

.wallet-admin-adjust {
  display: flex;
  gap: 5px;
  align-items: center;
}

.wallet-admin-adjust input {
  width: 90px;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 10px;
}

.wallet-admin-adjust button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 9px;
}

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

.metric-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--paper);
  font-family: Consolas, monospace;
  font-size: 28px;
}

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

.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.admin-tab {
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
}

.admin-user-table .data-row {
  grid-template-columns: 1.1fr 0.9fr 0.6fr 0.5fr 1.3fr;
}

.admin-project-table .data-row {
  grid-template-columns: 1.2fr 0.8fr 0.7fr 1.6fr 0.7fr;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-admin-list {
  display: grid;
  gap: 8px;
}

.skill-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.skill-admin-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

.skill-admin-main span {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 900;
}

.skill-admin-main strong {
  font-size: 12px;
}

.skill-admin-main small {
  color: var(--muted);
  font-size: 10px;
}

.skill-content {
  grid-column: 1 / -1;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--paper-soft);
  background: rgba(0, 0, 0, 0.18);
  white-space: pre-wrap;
  font: 10px/1.65 Consolas, monospace;
}

.admin-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-asset-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-asset-card video,
.admin-asset-card img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.admin-asset-card strong {
  font-size: 11px;
}

.admin-asset-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.admin-lower {
  align-items: start;
}

.data-table {
  display: grid;
  gap: 4px;
}

.data-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--paper-soft);
  font-size: 10px;
}

.data-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.data-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-head {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
}

.loading-block {
  padding: 100px;
  color: var(--muted);
  text-align: center;
}

.library-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.library-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.library-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.library-card video,
.library-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #000;
}

.library-copy {
  padding: 12px;
}

.library-copy strong {
  font-size: 12px;
}

.library-copy p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.library-copy small {
  color: var(--muted-2);
  font-size: 9px;
}

.my-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(239, 131, 84, 0.12), transparent 52%),
    var(--panel);
}

.my-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.my-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  color: var(--bg);
  background: var(--paper);
  font-size: 25px;
  font-weight: 900;
}

.my-profile h3 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.my-profile p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.my-status-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.my-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.my-creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.portrait-card {
  grid-column: 1 / -1;
}

.portrait-editor {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 16px;
}

.portrait-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(253, 255, 167, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.portrait-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.cover-portrait-status {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cover-portrait-status.is-ready {
  border-color: rgba(120, 210, 192, 0.32);
  background: rgba(120, 210, 192, 0.07);
}

.cover-portrait-status.is-warn {
  border-color: rgba(239, 152, 104, 0.32);
  background: rgba(239, 152, 104, 0.07);
}

.cover-portrait-status img,
.cover-portrait-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.cover-portrait-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(239, 152, 104, 0.12);
  font-weight: 800;
}

.cover-portrait-status strong,
.cover-portrait-status small {
  display: block;
}

.cover-portrait-status small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.my-account-list {
  display: grid;
  gap: 7px;
}

.my-account-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.my-account-row > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.my-account-row.is-on > span {
  color: var(--bg);
  background: var(--lime);
}

.my-account-row strong,
.my-account-row small {
  display: block;
}

.my-account-row strong {
  font-size: 11px;
}

.my-account-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.my-account-row em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.my-account-row.is-on em {
  color: var(--lime);
}

.my-action-list {
  display: grid;
  gap: 7px;
}

.my-action-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.my-action-list button:hover {
  border-color: rgba(185, 227, 139, 0.3);
  background: rgba(185, 227, 139, 0.04);
}

.my-action-list button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
}

.my-action-list strong,
.my-action-list small {
  display: block;
}

.my-action-list strong {
  font-size: 11px;
}

.my-action-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.my-action-list b {
  color: var(--muted-2);
  font-size: 12px;
}

.compact-form {
  gap: 12px;
}

.outro-preview {
  width: 100%;
  max-height: 250px;
  margin-top: 16px;
  border-radius: 12px;
  background: #000;
}

.voice-profile-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.voice-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.voice-profile-card > div strong,
.voice-profile-card > div small {
  display: block;
}

.voice-profile-card > div strong {
  font-size: 11px;
}

.voice-profile-card > div small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.voice-profile-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #eab3aa;
  font-size: 9px;
  line-height: 1.5;
}

.voice-profile-card audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
}

.voice-profile-card .text-button {
  justify-self: start;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 700;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-switch label {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.mode-switch label.is-selected {
  border-color: rgba(239, 131, 84, 0.55);
  background: var(--accent-soft);
}

.mode-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-switch strong {
  font-size: 12px;
}

.mode-switch small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
}

.inline-link {
  padding: 0;
  border: 0;
  color: var(--lime);
  background: transparent;
  font-size: inherit;
  font-weight: 800;
}

.recorded-voice-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.recorded-voice-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.recorded-voice-box audio {
  width: 100%;
  height: 36px;
}

.recorded-voice-box > small {
  color: var(--muted);
  font-size: 9px;
}

.soft-notice {
  border-left-color: var(--lime);
  color: var(--paper-soft);
  background: var(--green-soft);
}

.refine-panel {
  display: grid;
  gap: 14px;
}

.refine-panel h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.refine-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.refine-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.refine-options label {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.refine-options label.is-selected {
  border-color: rgba(239, 131, 84, 0.52);
  background: var(--accent-soft);
}

.refine-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.refine-options strong {
  font-size: 11px;
}

.refine-options small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.45;
}

.paste-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.paste-metrics textarea {
  min-height: 82px;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 30;
  max-width: 420px;
  padding: 13px 17px;
  border-radius: 12px;
  color: var(--paper);
  background: #24372c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  font-size: 12px;
  line-height: 1.6;
}

.toast.is-error {
  background: #713f38;
}

.toast.is-success {
  background: #24533e;
}

.install-help {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 7, 0.72);
  backdrop-filter: blur(10px);
}

.install-help-card {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(239, 131, 84, 0.12), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow);
}

.install-help-card h3 {
  margin: 8px 0 12px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.install-help-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.install-help-steps {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
  padding-left: 20px;
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.65;
}

.install-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
  line-height: 1;
}

.install-help-close:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

body.has-modal {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .workspace {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .stage-card {
    min-height: 170px;
  }

  .hero-panel,
  .two-column {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .account-grid,
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .my-creative-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .hero-panel,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-stats > div {
    display: block;
  }

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

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