:root {
  color: #2d2924;
  background: #fff8ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #fff8ef;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #2d2924;
  --muted: #7d7164;
  --soft: #f4e7d8;
  --line: #eadac8;
  --primary: #db6d4d;
  --primary-dark: #b94f33;
  --primary-soft: #ffe2d4;
  --mint: #8bbfa7;
  --honey: #e8af58;
  --shadow-sm: 0 10px 28px rgba(83, 54, 34, 0.09);
  --shadow-md: 0 18px 54px rgba(83, 54, 34, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 10%, rgba(255, 225, 206, 0.85), transparent 28rem), linear-gradient(135deg, #fff8ef 0%, #fffdf9 46%, #f8efe4 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:not(:disabled) {
  cursor: pointer;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfa;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input {
  height: 48px;
  padding: 0 15px;
}

textarea {
  min-height: 98px;
  resize: vertical;
  padding: 14px 15px;
}

input:focus,
textarea:focus {
  border-color: rgba(219, 109, 77, 0.72);
  box-shadow: 0 0 0 4px rgba(219, 109, 77, 0.13);
  background: #ffffff;
}

input:disabled,
textarea:disabled {
  border-color: rgba(234, 218, 200, 0.72);
  background: #f8efe4;
  color: var(--muted);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

label > span {
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.panel-card {
  border: 1px solid rgba(234, 218, 200, 0.86);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px rgba(219, 109, 77, 0.28);
}

.secondary-button {
  color: var(--primary-dark);
  border: 1px solid rgba(219, 109, 77, 0.24);
  background: #fff4ec;
}

.ghost-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #ffffff;
}

.ghost-button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.primary-button:not(:disabled):hover,
.secondary-button:not(:disabled):hover,
.ghost-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(83, 54, 34, 0.12);
}

.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.ghost-button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}

.full-button {
  width: 100%;
}

.brand-paw {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.brand-paw::after {
  position: absolute;
  left: 11px;
  bottom: 7px;
  width: 13px;
  height: 12px;
  border-radius: 50% 50% 44% 44%;
  background: var(--primary);
  content: "";
}

.brand-paw i {
  position: absolute;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.brand-paw i:nth-child(1) {
  left: 8px;
  top: 8px;
}

.brand-paw i:nth-child(2) {
  left: 14px;
  top: 5px;
}

.brand-paw i:nth-child(3) {
  right: 8px;
  top: 8px;
}

.brand-paw i:nth-child(4) {
  right: 5px;
  top: 15px;
}

.brand-paw.soft {
  background: #fff0e6;
  flex: 0 0 auto;
}

.login-shell {
  display: flex;
  min-height: 100vh;
  padding: 24px;
  gap: 24px;
}

.login-visual {
  position: relative;
  display: flex;
  flex: 1 1 58%;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f7e9d8;
  box-shadow: var(--shadow-md);
}

.brand-mark {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 16, 0.06), rgba(42, 28, 17, 0.42));
  content: "";
}

.visual-copy {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  max-width: 640px;
  padding: 0 42px 94px;
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(45, 41, 36, 0.32);
}

.visual-copy h1 {
  margin: 10px 0 12px;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.visual-copy p:last-child {
  max-width: 560px;
  margin: 0;
  font-size: 1.08rem;
}

.login-panel {
  display: flex;
  flex: 1 1 42%;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px;
}

.login-card h2 {
  margin: 8px 0 8px;
  font-size: 2rem;
  line-height: 1.16;
}

.login-card .muted {
  margin: 0 0 26px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.app-workbench {
  min-height: 100vh;
  padding: 22px;
}

.topbar,
.workspace-intro,
.generator-body {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px 20px;
}

.topbar-brand,
.account-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand div {
  display: flex;
  flex-direction: column;
}

.topbar-brand strong {
  font-size: 1.05rem;
}

.topbar-brand span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.account-pill {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-pill span,
.account-email-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.account-menu {
  position: relative;
}

.account-email-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-email-button:hover {
  border-color: rgba(219, 109, 77, 0.36);
  box-shadow: 0 10px 22px rgba(83, 54, 34, 0.1);
  transform: translateY(-1px);
}

.account-dropdown {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  min-width: 138px;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(234, 218, 200, 0.92);
  border-radius: var(--radius-sm);
  background: #fffdfa;
  box-shadow: var(--shadow-sm);
}

.account-dropdown button {
  min-height: 36px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  padding: 0 10px;
}

.account-dropdown button:hover {
  background: #fff0e6;
  color: var(--primary-dark);
}

.workspace-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 24px;
}

.workspace-intro h1 {
  margin: 8px 0 8px;
  font-size: 2.45rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.workspace-intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.intro-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 10px;
}

.pet-select {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  gap: 6px;
}

.pet-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.pet-select select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 850;
  outline: none;
  padding: 0 36px 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pet-select select:focus {
  border-color: rgba(219, 109, 77, 0.52);
  box-shadow: 0 0 0 4px rgba(219, 109, 77, 0.11);
}

.pet-switcher {
  padding: 18px;
  margin-bottom: 18px;
}

.pet-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pet-chip {
  display: flex;
  min-width: 180px;
  flex: 1 1 180px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfa;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pet-chip:not(:disabled):hover {
  border-color: rgba(219, 109, 77, 0.42);
  box-shadow: 0 12px 24px rgba(83, 54, 34, 0.1);
  transform: translateY(-1px);
}

.pet-chip.active {
  border-color: rgba(219, 109, 77, 0.58);
  background: #fff4ec;
}

.pet-chip strong,
.pet-chip span,
.pet-chip em {
  min-width: 0;
}

.pet-chip strong {
  font-weight: 950;
}

.pet-chip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pet-chip em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.generator-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.side-column {
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  gap: 18px;
}

.main-column {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
}

.upload-card,
.info-card,
.main-column > .panel-card {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head.with-action {
  align-items: center;
  justify-content: space-between;
}

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

.head-actions > a,
.head-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.head-actions > a[aria-disabled=true] {
  opacity: 0.55;
  pointer-events: none;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-badge {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0e6;
  color: var(--primary-dark);
  font-weight: 950;
}

.upload-zone {
  align-items: center;
  justify-content: center;
  min-height: 188px;
  padding: 20px;
  border: 1.5px dashed rgba(219, 109, 77, 0.45);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff9f3, #fffdf9);
  color: var(--ink);
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.upload-zone:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(83, 54, 34, 0.08);
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone small {
  color: var(--muted);
  font-weight: 600;
}

.upload-symbol {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.upload-symbol::before,
.upload-symbol::after,
.upload-symbol span {
  position: absolute;
  background: var(--primary);
  content: "";
}

.upload-symbol::before {
  width: 3px;
  height: 24px;
  border-radius: 4px;
}

.upload-symbol::after {
  width: 18px;
  height: 3px;
  border-radius: 4px;
  transform: translateY(-8px);
}

.upload-symbol span {
  bottom: 15px;
  width: 22px;
  height: 3px;
  border-radius: 4px;
}

.source-preview {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfa;
  color: var(--muted);
  text-align: left;
}

.source-preview img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 10px;
  object-fit: fill;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card .section-head {
  margin-bottom: 2px;
}

.cost-chip {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff0e6;
  color: var(--primary-dark);
  font-weight: 950;
}

.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-tile {
  position: relative;
  display: flex;
  flex: 1 1 250px;
  min-height: 124px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 6px 18px rgba(83, 54, 34, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.action-tile:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-tile.selected {
  border-color: rgba(219, 109, 77, 0.72);
  background: linear-gradient(180deg, #fff7f1, #ffffff);
}

.tile-check {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #d9c9b8;
  border-radius: 50%;
  background: #ffffff;
}

.action-tile.selected .tile-check {
  border-color: var(--primary);
  background: var(--primary);
}

.action-tile.selected .tile-check::after {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.tile-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
}

.tile-content strong {
  font-size: 1.02rem;
}

.tile-content small {
  color: var(--muted);
  font-weight: 650;
}

.tile-content em {
  color: #a78d75;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.paid-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0dc;
  color: #9a6823;
  font-size: 0.75rem;
  font-weight: 950;
}

.paid-mark.included {
  background: #e7f4ed;
  color: #39755c;
}

.advanced-box {
  margin-top: 16px;
}

.advanced-box > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.advanced-box small {
  color: var(--muted);
  font-weight: 650;
}

.progress-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2dfcc;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--honey), var(--primary));
  transition: width 260ms ease;
}

.warm-message {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.form-error {
  margin: 10px 0 0;
  color: #b44838;
  font-weight: 850;
}

.form-success {
  margin: 4px 0 0;
  color: #3d8a68;
  font-weight: 850;
}

.pairing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(199, 112, 47, 0.42);
  border-radius: var(--radius-md);
  background: #fff8ed;
}

.pairing-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.pairing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pairing-actions .primary-button,
.pairing-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.pairing-content span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pairing-content strong {
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 2px;
}

.pairing-content small {
  color: var(--muted);
  line-height: 1.5;
}

.client-download-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdfa;
}

.video-meta {
  display: flex;
  min-width: 124px;
  flex-direction: column;
  gap: 6px;
}

.status-dot {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee3d7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.status-dot.complete {
  background: #e3f2e9;
  color: #3a785d;
}

.status-dot.error {
  background: #ffe4de;
  color: #ad3e2d;
}

.status-dot.generating,
.status-dot.queued {
  background: #fff0dc;
  color: #9a6823;
}

.video-preview-button {
  display: flex;
  min-height: 96px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(45deg, rgba(141, 191, 167, 0.12) 25%, transparent 25%), linear-gradient(-45deg, rgba(141, 191, 167, 0.12) 25%, transparent 25%), #f7f7f0;
  background-size: 18px 18px;
  color: var(--muted);
  font-weight: 900;
}

.video-preview-button video {
  width: 100%;
  height: 124px;
  object-fit: contain;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(45, 41, 36, 0.52);
  backdrop-filter: blur(12px);
}

.image-modal,
.video-modal,
.pay-modal,
.password-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #fffdfa;
  box-shadow: var(--shadow-md);
}

.image-modal img,
.video-modal video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.video-modal video {
  background: #00ff00;
}

.modal-close {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 14px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.pay-modal,
.password-modal {
  padding: 28px;
}

.pay-modal h2,
.password-modal h2 {
  margin: 0 0 10px;
}

.pay-modal p,
.password-modal p {
  margin: 0 0 20px;
  color: var(--muted);
}

.password-modal {
  display: flex;
  width: min(460px, 100%);
  flex-direction: column;
  gap: 14px;
}

.password-modal .modal-actions {
  margin-top: 4px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.product-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(97, 73, 50, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffaf2, #fff5e8);
  text-align: left;
  box-shadow: 0 12px 28px rgba(109, 80, 47, 0.08);
}

.product-option:not(:disabled):hover {
  border-color: rgba(199, 112, 47, 0.34);
  transform: translateY(-1px);
}

.product-option span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.product-option strong {
  color: var(--ink);
}

.product-option small,
.payment-loading {
  color: var(--muted);
  line-height: 1.5;
}

.product-option em {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 900;
}

.pending-payment {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(219, 109, 77, 0.22);
  border-radius: var(--radius-sm);
  background: #fff4ec;
}

.pending-payment span {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.pending-payment strong {
  color: var(--ink);
}

.pending-payment small {
  color: var(--muted);
  line-height: 1.5;
}

.pending-payment a {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.runtime-config-error {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.runtime-config-error__panel {
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(234, 218, 200, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.runtime-config-error__eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.runtime-config-error h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
}

.runtime-config-error__body {
  margin: 0 0 18px;
  color: var(--muted);
}

.runtime-config-error ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runtime-config-error li {
  padding: 12px 14px;
  border: 1px solid rgba(180, 72, 56, 0.18);
  border-radius: var(--radius-sm);
  background: #fff4ec;
  color: #9d372a;
  font-weight: 800;
}

@media (max-width: 980px) {
  .login-shell,
  .generator-body,
  .workspace-intro {
    flex-direction: column;
  }
  .login-visual {
    min-height: 460px;
    flex-basis: auto;
  }
  .login-panel {
    width: 100%;
    padding: 0;
  }
  .side-column {
    flex-basis: auto;
    width: 100%;
  }
  .workspace-intro {
    align-items: flex-start;
  }
  .intro-actions {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .login-shell,
  .app-workbench {
    padding: 14px;
  }
  .login-visual {
    min-height: 360px;
    border-radius: 22px;
  }
  .visual-copy {
    padding: 0 22px 92px;
  }
  .visual-copy h1,
  .workspace-intro h1 {
    font-size: 2rem;
  }
  .login-card,
  .upload-card,
  .info-card,
  .pet-switcher,
  .main-column > .panel-card {
    padding: 18px;
  }
  .topbar,
  .section-head.with-action,
  .pairing-panel,
  .video-row {
    align-items: stretch;
    flex-direction: column;
  }
  .account-pill {
    justify-content: flex-start;
  }
  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .pet-select {
    width: 100%;
  }
  .client-download-button {
    width: 100%;
  }
}
.admin-login,
.admin-shell {
  --admin-bg: #f6f9fb;
  --admin-panel: #ffffff;
  --admin-panel-soft: #f2f7f8;
  --admin-text: #16212b;
  --admin-muted: #667684;
  --admin-line: #dce8ec;
  --admin-accent: #1d8fb2;
  --admin-accent-dark: #0d6f90;
  --admin-success: #22855f;
  --admin-danger: #c64f3c;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 8%, rgba(93, 185, 188, 0.16), transparent 28%), linear-gradient(135deg, #f8fbfc 0%, #edf5f7 100%);
  color: var(--admin-text);
}

.admin-login {
  display: flex;
  padding: 28px;
}

.admin-login__visual,
.admin-login__panel {
  flex: 1 1 0;
}

.admin-login__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(140deg, rgba(28, 112, 145, 0.92), rgba(56, 146, 136, 0.86)), url("/127.0.0.1_1430_generate.png") center/220px auto no-repeat;
  color: #ffffff;
}

.admin-login__visual::after {
  position: absolute;
  inset: auto 36px 36px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.admin-login__brand,
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-login__mark,
.admin-sidebar__brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.admin-login__brand p,
.admin-login__brand strong {
  display: block;
  margin: 0;
}

.admin-login__brand p {
  opacity: 0.76;
}

.admin-login__pet-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-height: 220px;
  padding-left: 10%;
}

.admin-login__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 48px rgba(8, 58, 76, 0.24);
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.admin-login__bubble--dog {
  width: 128px;
  height: 128px;
}

.admin-login__bubble--sleep {
  width: 78px;
  height: 78px;
}

.admin-login__copy {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.admin-login__copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-login__copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.8;
}

.admin-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.admin-login-card,
.admin-modal,
.admin-panel {
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(45, 74, 86, 0.12);
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 34px;
}

.admin-login-card h2,
.admin-panel h2,
.admin-modal h2,
.admin-topbar h1 {
  margin: 0;
  letter-spacing: 0;
}

.admin-login-card label,
.admin-modal label,
.admin-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--admin-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-login-card input,
.admin-modal input,
.admin-search input {
  height: 46px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--admin-text);
  font: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-login-card input:focus,
.admin-modal input:focus,
.admin-search input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 4px rgba(29, 143, 178, 0.12);
}

.admin-kicker {
  margin: 0 0 8px;
  color: var(--admin-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-primary-button,
.admin-row-actions button,
.admin-topbar__account button,
.admin-modal__actions button {
  height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.admin-primary-button {
  width: 100%;
  margin-top: 16px;
  background: var(--admin-accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(29, 143, 178, 0.24);
}

.admin-primary-button:hover,
.admin-row-actions button:hover,
.admin-topbar__account button:hover,
.admin-modal__actions button:hover {
  transform: translateY(-1px);
}

.admin-primary-button:disabled,
.admin-row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.admin-form-error,
.admin-toast {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-form-error {
  background: #fff0ed;
  color: var(--admin-danger);
}

.admin-toast {
  background: #edf9f3;
  color: var(--admin-success);
}

.admin-shell {
  display: flex;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 236px;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  border-right: 1px solid var(--admin-line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.admin-sidebar__brand {
  color: var(--admin-text);
  text-decoration: none;
}

.admin-sidebar__brand span {
  background: #e5f3f6;
  color: var(--admin-accent-dark);
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar__nav a {
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--admin-muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-sidebar__nav a.router-link-active {
  background: #e7f4f7;
  color: var(--admin-accent-dark);
}

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-topbar__account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar__account span {
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--admin-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-topbar__account button,
.admin-row-actions button,
.admin-modal__actions button {
  background: #eef5f7;
  color: var(--admin-accent-dark);
}

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-stats article {
  flex: 1 1 180px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
}

.admin-stats span,
.admin-table small,
.admin-empty span,
.admin-modal__hint {
  color: var(--admin-muted);
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-search {
  width: min(280px, 100%);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f5fafb;
  color: var(--admin-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table tbody tr:hover {
  background: #f8fcfd;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f7f0;
  color: var(--admin-success);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-status--off {
  background: #fff0ed;
  color: var(--admin-danger);
}

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

.admin-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--admin-muted);
  font-weight: 800;
}

.admin-empty--orders {
  flex-direction: column;
  gap: 8px;
}

.admin-empty--orders strong {
  color: var(--admin-text);
  font-size: 1.08rem;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 32, 42, 0.36);
}

.admin-modal {
  width: min(420px, 100%);
  padding: 24px;
}

.admin-modal__hint {
  margin: 10px 0 18px;
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-modal__actions .admin-primary-button {
  width: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .admin-login,
  .admin-shell,
  .admin-topbar,
  .admin-panel__header {
    flex-direction: column;
  }
  .admin-login__visual {
    min-height: 440px;
  }
  .admin-login__panel {
    width: 100%;
    padding: 24px 0 0;
  }
  .admin-sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
  .admin-topbar,
  .admin-panel__header {
    align-items: stretch;
  }
}
@media (max-width: 640px) {
  .admin-login,
  .admin-main {
    padding: 14px;
  }
  .admin-login__visual {
    min-height: 380px;
    padding: 24px;
    border-radius: 22px;
  }
  .admin-login__copy h1 {
    font-size: 2.1rem;
  }
  .admin-login-card,
  .admin-modal {
    padding: 20px;
  }
  .admin-topbar__account,
  .admin-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }
}