:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: rgba(16, 21, 34, 0.78);
  --surface-solid: #101522;
  --surface-strong: #151b2c;
  --line: rgba(24, 242, 255, 0.2);
  --line-strong: rgba(24, 242, 255, 0.42);
  --text: #f4f7fb;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #18f2ff;
  --pink: #ff2e9f;
  --purple: #8b5cff;
  --green: #b6ff3b;
  --yellow: #ffd166;
  --danger: #ff4f6d;
  --radius: 8px;
  --shadow-cyan: 0 0 24px rgba(24, 242, 255, 0.2);
  --shadow-pink: 0 0 28px rgba(255, 46, 159, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 46, 159, 0.22), transparent 28rem),
    radial-gradient(circle at 10% 35%, rgba(24, 242, 255, 0.16), transparent 22rem),
    linear-gradient(145deg, #06080f 0%, #090d17 48%, #0d1020 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

#neon-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(24, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 159, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), black 30%, black 80%, transparent);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
  opacity: 0.42;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.76);
  backdrop-filter: blur(22px);
}

.brand,
.topbar,
.panel,
.stat-card,
.auth-card,
.prompt-detail-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 242, 255, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(24, 242, 255, 0.3), transparent),
    linear-gradient(315deg, rgba(255, 46, 159, 0.34), transparent);
  box-shadow: 0 0 22px rgba(24, 242, 255, 0.32);
}

.brand-mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.brand strong,
.panel h2,
.topbar h1,
.auth-card h2 {
  margin: 0;
}

.brand small,
.stat-card small,
.option-head small,
.task-meta span,
.model-tags span {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted-strong);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(24, 242, 255, 0.12), rgba(255, 46, 159, 0.08));
  box-shadow: var(--shadow-cyan);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--cyan);
  border: 1px solid rgba(24, 242, 255, 0.24);
  border-radius: 6px;
  background: rgba(24, 242, 255, 0.07);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 46, 159, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 46, 159, 0.08);
}

.user-badge strong {
  font-size: 14px;
}

.user-badge span {
  color: var(--muted);
  font-size: 12px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.workspace-grid,
.config-grid {
  display: grid;
  grid-template-columns: minmax(330px, 480px) minmax(0, 1fr);
  gap: 18px;
}

.workspace-grid.is-expert-result {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-grid.is-expert-result .control-panel {
  display: none;
}
.expert-market-panel,
.expert-detail-panel {
  min-height: 520px;
}

.expert-market-heading {
  align-items: flex-start;
}

.expert-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.38);
}

.expert-search-field {
  display: grid;
  gap: 8px;
}

.expert-search-field span {
  color: var(--muted-strong);
  font-size: 13px;
}

.expert-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.expert-card {
  display: grid;
  overflow: hidden;
  color: inherit;
  border: 1px solid rgba(24, 242, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.58);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.expert-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-cyan);
}

.expert-card-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-height: 174px;
  background: rgba(24, 242, 255, 0.14);
}

.expert-card-samples .expert-sample-tile:only-child {
  grid-column: 1 / -1;
}

.expert-sample-tile {
  position: relative;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: #050814;
}

.expert-sample-tile.is-compact {
  min-height: 174px;
  border: 0;
  border-radius: 0;
}

.expert-sample-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.expert-sample-placeholder {
  display: grid;
  grid-template-rows: 1fr auto;
}

.expert-sample-visual {
  position: relative;
  min-height: 132px;
  background:
    linear-gradient(rgba(24, 242, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 24%, rgba(182, 255, 59, 0.26), transparent 5rem),
    radial-gradient(circle at 26% 80%, rgba(255, 46, 159, 0.24), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(6, 78, 88, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-placeholder.is-pink .expert-sample-visual {
  background:
    linear-gradient(rgba(255, 46, 159, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 78% 30%, rgba(255, 46, 159, 0.35), transparent 6rem),
    radial-gradient(circle at 20% 70%, rgba(139, 92, 255, 0.26), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(68, 18, 72, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-placeholder.is-green .expert-sample-visual {
  background:
    linear-gradient(rgba(182, 255, 59, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(182, 255, 59, 0.34), transparent 6rem),
    radial-gradient(circle at 18% 76%, rgba(24, 242, 255, 0.24), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 54, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-visual span {
  position: absolute;
  left: 18%;
  bottom: 12%;
  width: 42%;
  height: 72%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 48% 48% 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(24, 242, 255, 0.16));
  box-shadow: 0 0 20px rgba(24, 242, 255, 0.22);
}

.expert-sample-visual i {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 38%;
  height: 46%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.52);
  transform: rotate(-4deg);
}

.expert-sample-tile figcaption {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(7, 10, 18, 0.82);
}

.expert-sample-tile figcaption strong {
  font-size: 14px;
}

.expert-sample-tile figcaption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.expert-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.expert-card-head {
  display: grid;
  gap: 6px;
}

.expert-card-head > span {
  width: fit-content;
  padding: 4px 8px;
  color: #031015;
  border-radius: 999px;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.expert-card-head strong {
  font-size: 19px;
  line-height: 1.25;
}

.expert-card-body p,
.expert-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.expert-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.expert-detail-topline .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
  box-shadow: none;
}

.expert-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 18px;
  margin-bottom: 18px;
}

.expert-detail-copy,
.expert-sample-section,
.expert-config-card,
.expert-material-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.expert-detail-copy {
  display: grid;
  align-content: center;
  padding: 22px;
  overflow: hidden;
}

.expert-detail-copy::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 242, 255, 0.12), transparent 62%);
  pointer-events: none;
}

.expert-detail-heading {
  align-items: flex-start;
  margin-bottom: 10px;
}

.expert-detail-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.expert-description {
  max-width: 680px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.expert-scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.expert-scene-tags span {
  padding: 6px 9px;
  color: var(--muted-strong);
  border: 1px solid rgba(24, 242, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 242, 255, 0.07);
  font-size: 12px;
}

.expert-scene-tags.is-card {
  margin: 0;
}

.expert-sample-section {
  padding: 14px;
}

.expert-sample-section .option-head {
  margin-bottom: 12px;
}

.expert-sample-list {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  gap: 10px;
}

.expert-sample-list .expert-sample-tile {
  min-height: 214px;
}

.expert-sample-list .expert-sample-tile:first-child {
  grid-row: span 2;
  min-height: 438px;
}

.expert-sample-tile {
  position: relative;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: #050814;
}

.expert-sample-tile.is-compact {
  min-height: 174px;
  border: 0;
  border-radius: 0;
}

.expert-sample-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.expert-sample-placeholder {
  display: grid;
  grid-template-rows: 1fr auto;
}

.expert-sample-visual {
  position: relative;
  min-height: 132px;
  background:
    linear-gradient(rgba(24, 242, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 24%, rgba(182, 255, 59, 0.26), transparent 5rem),
    radial-gradient(circle at 26% 80%, rgba(255, 46, 159, 0.24), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(6, 78, 88, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-list .expert-sample-tile:first-child .expert-sample-visual {
  min-height: 356px;
}

.expert-sample-placeholder.is-pink .expert-sample-visual {
  background:
    linear-gradient(rgba(255, 46, 159, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 78% 30%, rgba(255, 46, 159, 0.35), transparent 6rem),
    radial-gradient(circle at 20% 70%, rgba(139, 92, 255, 0.26), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(68, 18, 72, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-placeholder.is-green .expert-sample-visual {
  background:
    linear-gradient(rgba(182, 255, 59, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 72% 22%, rgba(182, 255, 59, 0.34), transparent 6rem),
    radial-gradient(circle at 18% 76%, rgba(24, 242, 255, 0.24), transparent 6rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 54, 0.72));
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.expert-sample-visual span {
  position: absolute;
  left: 18%;
  bottom: 12%;
  width: 42%;
  height: 72%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 48% 48% 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(24, 242, 255, 0.16));
  box-shadow: 0 0 20px rgba(24, 242, 255, 0.22);
}

.expert-sample-visual i {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 38%;
  height: 46%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.52);
  transform: rotate(-4deg);
}

.expert-sample-tile figcaption {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(7, 10, 18, 0.82);
}

.expert-sample-tile figcaption strong {
  font-size: 14px;
}

.expert-sample-tile figcaption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.expert-workbench-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.expert-config-card,
.expert-material-card {
  padding: 16px;
}

.expert-material-card {
  border-color: rgba(182, 255, 59, 0.28);
  background: linear-gradient(180deg, rgba(182, 255, 59, 0.08), rgba(7, 10, 18, 0.56));
}

.expert-card-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 14px;
}

.expert-card-section-head span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #031015;
  border-radius: 50%;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.expert-card-section-head strong {
  font-size: 18px;
}

.text-button {
  margin-left: auto;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

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

.expert-form {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.expert-field-group {
  padding: 12px;
  border: 1px solid rgba(24, 242, 255, 0.12);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(3, 8, 18, 0.36);
}

.expert-field-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.expert-field-group-head strong {
  font-size: 15px;
}

.expert-field-group-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.expert-form .field {
  margin-bottom: 0;
}

.expert-form .field.is-wide {
  grid-column: 1 / -1;
}

.expert-form textarea {
  min-height: 112px;
}

.expert-ratio-block {
  margin-bottom: 0;
}

.expert-upload-zone {
  margin-top: 0;
}

.expert-upload-zone > div {
  min-height: 178px;
  border-style: solid;
  background:
    radial-gradient(circle at 50% 20%, rgba(182, 255, 59, 0.12), transparent 7rem),
    rgba(3, 8, 18, 0.56);
}

.expert-upload-zone > div strong {
  font-size: 20px;
}

.expert-upload-zone > div span {
  max-width: 460px;
  line-height: 1.6;
}

.expert-material-card .reference-list {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.expert-action-row {
  margin-top: 12px;
}

.expert-action-row .primary-button {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.expert-cost-note {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
/* Expert detail redesign */
.expert-detail-panel {
  padding: 22px;
  border-color: rgba(24, 242, 255, 0.22);
  background:
    linear-gradient(140deg, rgba(6, 12, 26, 0.94), rgba(13, 10, 28, 0.92)),
    rgba(7, 10, 18, 0.92);
}

.expert-detail-topline {
  margin-bottom: 18px;
}

.expert-detail-topline .chip {
  min-height: 34px;
  padding: 0 14px;
  color: #031015;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 20px rgba(24, 242, 255, 0.28);
  font-weight: 800;
}

.expert-detail-hero {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-bottom: 16px;
}

.expert-detail-copy,
.expert-sample-section,
.expert-config-card,
.expert-material-card {
  border-color: rgba(24, 242, 255, 0.16);
  background: rgba(5, 9, 20, 0.72);
  box-shadow: none;
}

.expert-detail-copy {
  min-height: 244px;
  align-content: start;
  padding: 28px;
  background:
    radial-gradient(circle at 96% 100%, rgba(24, 242, 255, 0.16), transparent 11rem),
    linear-gradient(150deg, rgba(8, 18, 34, 0.88), rgba(7, 10, 18, 0.72));
}

.expert-detail-copy::after {
  opacity: 0.42;
}

.expert-detail-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.expert-description {
  max-width: 620px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.85;
}

.expert-scene-tags {
  margin-top: 22px;
}

.expert-scene-tags span {
  padding: 7px 10px;
  background: rgba(24, 242, 255, 0.08);
}

.expert-sample-section {
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
}

.expert-sample-section .option-head {
  display: none;
}

.expert-sample-list {
  --sample-depth: clamp(210px, 23vw, 330px);
  position: relative;
  display: block;
  height: 336px;
  min-height: 336px;
  perspective: 1200px;
  perspective-origin: 50% 46%;
  overflow: hidden;
  border: 1px solid rgba(24, 242, 255, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 48%, rgba(24, 242, 255, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(3, 8, 18, 0.36), rgba(3, 8, 18, 0.78));
}

.expert-sample-list.is-carousel .expert-sample-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: 1fr;
  width: clamp(156px, 18vw, 218px);
  height: 278px;
  min-height: 0;
  margin: 0;
  transform:
    translate(-50%, -50%)
    rotateY(var(--sample-angle))
    translateZ(var(--sample-depth))
    rotateY(calc(-1 * var(--sample-angle)));
  transform-style: preserve-3d;
  animation: expert-sample-orbit 28s linear infinite;
  will-change: transform;
}

.expert-sample-list.is-carousel::before {
  content: "正在加载案例预览";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: 999px;
  color: rgba(207, 244, 255, 0.74);
  background: rgba(5, 12, 24, 0.72);
  box-shadow: 0 0 34px rgba(24, 242, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease;
}

.expert-sample-list.is-carousel:not(.is-ready):not(.has-preview)::before,
.expert-sample-list.is-carousel.is-load-error::before {
  opacity: 1;
}

.expert-sample-list.is-carousel.is-load-error::before {
  content: "案例预览暂时加载失败";
}

.expert-sample-list.is-carousel .expert-sample-tile {
  transition: opacity 420ms ease, filter 420ms ease;
}

.expert-sample-list.is-carousel:not(.is-ready) .expert-sample-tile {
  animation-play-state: paused;
  opacity: 0;
}

.expert-sample-list.is-carousel.is-loading .expert-sample-tile.is-image-loaded {
  opacity: 0.92;
  filter: saturate(0.9) brightness(0.86);
}

.expert-sample-list.is-carousel.is-loading .expert-sample-tile:first-child.is-image-loaded {
  z-index: 2;
  animation: none;
  transform: translate(-50%, -50%);
}

.expert-sample-list.is-carousel.is-ready .expert-sample-tile.is-image-loaded,
.expert-sample-list.is-carousel.is-loading .expert-sample-tile.is-image-loaded {
  opacity: 1;
}

.expert-sample-list.is-carousel .expert-sample-tile.is-image-error {
  visibility: hidden;
}
.expert-sample-list.is-carousel:hover .expert-sample-tile {
  animation-play-state: paused;
}

.expert-sample-list.is-carousel .expert-sample-tile:nth-child(odd) {
  margin-top: -10px;
}

.expert-sample-list.is-carousel .expert-sample-tile:nth-child(even) {
  margin-top: 10px;
}

.expert-sample-media {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(24, 242, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 242, 255, 0.06) 1px, transparent 1px),
    #050814;
  background-size: 28px 28px, 28px 28px, auto;
}

.expert-sample-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.expert-card-samples .expert-sample-media,
.expert-card-samples .expert-sample-media img {
  height: 100%;
  object-fit: cover;
}

.expert-sample-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: var(--expert-sample-ratio, 4 / 5);
}

.expert-sample-tile {
  border-color: rgba(24, 242, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 18, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 26px rgba(24, 242, 255, 0.12);
}

.expert-sample-tile figcaption {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  background: rgba(7, 10, 18, 0.9);
}

.expert-sample-tile figcaption strong {
  font-size: 14px;
  line-height: 1.25;
}

.expert-sample-tile figcaption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes expert-sample-orbit {
  from {
    transform:
      translate(-50%, -50%)
      rotateY(var(--sample-angle))
      translateZ(var(--sample-depth))
      rotateY(calc(-1 * var(--sample-angle)));
  }

  to {
    transform:
      translate(-50%, -50%)
      rotateY(calc(var(--sample-angle) + 1turn))
      translateZ(var(--sample-depth))
      rotateY(calc(-1 * var(--sample-angle) - 1turn));
  }
}
.expert-workbench-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.expert-material-card,
.expert-config-card {
  padding: 20px;
}

.expert-material-card {
  position: sticky;
  top: 18px;
  align-self: start;
  border-color: rgba(182, 255, 59, 0.26);
  background:
    linear-gradient(180deg, rgba(182, 255, 59, 0.08), rgba(5, 9, 20, 0.8));
}

.expert-config-card {
  background: rgba(5, 9, 20, 0.72);
}

.expert-card-section-head {
  margin-bottom: 18px;
}

.expert-card-section-head span {
  width: 30px;
  height: 30px;
  background: var(--green);
}

.expert-card-section-head strong {
  font-size: 20px;
}

.expert-upload-zone {
  padding: 0;
  border: 0;
  background: transparent;
}

.expert-upload-zone::before {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  background: rgba(182, 255, 59, 0.08);
}

.expert-upload-zone > div {
  display: grid;
  align-content: center;
  min-height: 188px;
  width: 100%;
  padding: 28px 24px 28px 84px;
  border: 1px dashed rgba(182, 255, 59, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(182, 255, 59, 0.09), rgba(24, 242, 255, 0.04)),
    rgba(3, 8, 18, 0.64);
}

.expert-upload-zone > div strong {
  font-size: 20px;
  line-height: 1.25;
}

.expert-upload-zone > div span {
  max-width: 250px;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.65;
}

.expert-material-card .reference-list {
  min-height: 18px;
  margin-bottom: 18px;
}

.expert-action-row .primary-button {
  min-height: 52px;
  border-radius: 10px;
  font-size: 17px;
}

.expert-cost-note {
  margin-top: 12px;
}

.expert-field-group {
  padding: 16px;
  border-color: rgba(24, 242, 255, 0.14);
  border-radius: 10px;
  background: rgba(3, 8, 18, 0.42);
}

.expert-field-group-head {
  margin-bottom: 14px;
}

.expert-field-group-head strong {
  font-size: 16px;
}

.expert-field-grid {
  gap: 14px;
}

.expert-ratio-block {
  padding: 16px;
  border: 1px solid rgba(24, 242, 255, 0.14);
  border-radius: 10px;
  background: rgba(3, 8, 18, 0.42);
}
.panel {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
}

.panel::before,
.auth-card::before,
.prompt-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(24, 242, 255, 0.12), transparent 22%, transparent 72%, rgba(255, 46, 159, 0.1));
  pointer-events: none;
}

.panel > *,
.auth-card > *,
.prompt-detail-card > * {
  position: relative;
  z-index: 1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: 20px;
}

#history-view .panel-heading > div {
  flex: 0 0 auto;
}

#history-view .panel-heading h2 {
  white-space: nowrap;
}

#history-view .panel-heading > select {
  flex: 1 1 260px;
  width: auto;
  min-width: 180px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #001014;
  border: 1px solid rgba(24, 242, 255, 0.45);
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(24, 242, 255, 0.3);
  font-size: 13px;
  white-space: nowrap;
}

.chip.muted {
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span,
.option-head span {
  color: var(--muted-strong);
  font-size: 13px;
}

textarea,
input,
select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.72);
  outline: none;
}

textarea,
input {
  padding: 11px 12px;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(24, 242, 255, 0.12);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.option-block {
  margin: 14px 0;
}

.option-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

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

.segmented button {
  min-height: 38px;
  color: var(--muted-strong);
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.segmented button:hover,
.segmented button.is-selected {
  color: var(--text);
  border-color: var(--pink);
  background: rgba(255, 46, 159, 0.13);
  box-shadow: var(--shadow-pink);
}

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px;
  border: 1px dashed rgba(182, 255, 59, 0.42);
  border-radius: var(--radius);
  background: rgba(182, 255, 59, 0.06);
}

.upload-zone::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  color: var(--green);
  border: 1px solid rgba(182, 255, 59, 0.44);
  border-radius: 50%;
  font-size: 24px;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone strong {
  display: block;
}

.upload-zone span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.reference-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #020617;
}

.reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(7, 10, 18, 0.78);
}

.action-row,
.result-actions,
.captcha-row {
  display: flex;
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  flex: 1;
  color: #031015;
  border: 1px solid rgba(24, 242, 255, 0.7);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(24, 242, 255, 0.34);
  font-weight: 700;
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.26);
  background: rgba(15, 23, 42, 0.5);
}

.danger-button {
  color: var(--text);
  border: 1px solid rgba(255, 79, 109, 0.44);
  background: rgba(255, 79, 109, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.primary-button.is-loading,
.ghost-button.is-loading,
.danger-button.is-loading {
  position: relative;
  padding-left: 36px;
}

.primary-button.is-loading::before,
.ghost-button.is-loading::before,
.danger-button.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 760ms linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.full {
  width: 100%;
}

.result-panel {
  min-height: 640px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 430px;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  margin: 18px 0 4px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

.orbital {
  position: relative;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(24, 242, 255, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(24, 242, 255, 0.18), var(--shadow-cyan);
}

.orbital span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 46, 159, 0.34);
  border-radius: 50%;
  animation: orbitPulse 2.8s infinite ease-in-out;
}

.orbital span:nth-child(2) {
  inset: 34px;
  border-color: rgba(182, 255, 59, 0.42);
  animation-delay: 0.4s;
}

.orbital span:nth-child(3) {
  inset: 52px;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
  animation-delay: 0.8s;
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.task-stage {
  padding: 14px;
  border: 1px solid rgba(24, 242, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.48);
  margin-bottom: 14px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.progress-rail {
  height: 8px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.16);
}

.progress-rail span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--green));
  box-shadow: 0 0 16px rgba(24, 242, 255, 0.4);
  transition: width 300ms ease;
}

#task-message {
  margin: 0;
  color: var(--muted);
}

.task-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin: 12px 0 2px;
  padding: 11px 14px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(182, 255, 59, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(182, 255, 59, 0.15), rgba(24, 242, 255, 0.07) 42%, rgba(7, 10, 18, 0.42)),
    rgba(3, 8, 18, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(182, 255, 59, 0.08);
}

.task-source::before {
  content: "";
  flex: 0 0 8px;
  align-self: stretch;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--cyan));
  box-shadow: 0 0 16px rgba(182, 255, 59, 0.42);
}

.task-source span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #031015;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.task-source strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.task-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.task-params span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(24, 242, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 242, 255, 0.07);
  color: var(--text);
  line-height: 1.35;
}

.task-params b {
  color: var(--muted);
  font-weight: 600;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.result-card {
  border: 1px solid rgba(24, 242, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.55);
  overflow: hidden;
}

.result-media {
  display: grid;
  place-items: center;
  width: 100%;
  background: #020617;
}

.result-card.has-ratio .result-media {
  aspect-ratio: var(--result-aspect-ratio);
}

.result-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #020617;
}

.result-card.has-ratio .result-media img {
  height: 100%;
  object-fit: contain;
}

.result-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.result-card-footer span {
  color: var(--muted);
  font-size: 12px;
}

.result-card-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.result-actions {
  margin-top: 14px;
}

.plaza-filter-bar {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(24, 242, 255, 0.18);
  background: rgba(7, 10, 18, 0.28);
}

.plaza-panel {
  padding: 0;
}

.plaza-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plaza-filter-heading > div {
  display: grid;
  gap: 2px;
}

.plaza-filter-heading strong {
  color: var(--text);
  font-size: 14px;
}

.plaza-filter-heading span {
  color: var(--muted);
  font-size: 12px;
}

.plaza-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  text-decoration: none;
}

.plaza-featured-link small {
  padding: 2px 7px;
  color: var(--green);
  border: 1px solid rgba(182, 255, 59, 0.24);
  border-radius: 999px;
  background: rgba(182, 255, 59, 0.06);
  font-size: 11px;
}

.plaza-featured-link b {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 400;
}

.plaza-featured-link:hover {
  color: var(--text);
}

.plaza-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(24, 242, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(24, 242, 255, 0.09), rgba(255, 46, 159, 0.07), rgba(182, 255, 59, 0.06)),
    rgba(7, 10, 18, 0.42);
}

.plaza-stat-card {
  position: relative;
  min-height: 106px;
  padding: 15px;
  border: 1px solid rgba(24, 242, 255, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.62);
  box-shadow: 0 0 22px rgba(24, 242, 255, 0.08);
}

.plaza-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 12px
  );
  opacity: 0.12;
  pointer-events: none;
}

.plaza-stat-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.plaza-stat-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.plaza-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.92;
  text-shadow: 0 0 22px rgba(24, 242, 255, 0.34);
}

.plaza-stat-card:nth-child(2) {
  border-color: rgba(255, 46, 159, 0.28);
}

.plaza-stat-card:nth-child(2)::after {
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}

.plaza-stat-card:nth-child(3) {
  border-color: rgba(182, 255, 59, 0.25);
}

.plaza-stat-card:nth-child(3)::after {
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.plaza-filter-block {
  display: grid;
  gap: 7px;
}

.plaza-filter-block > span {
  color: var(--muted);
  font-size: 12px;
}

.plaza-keyword-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plaza-keyword-line .flat-filter-row {
  display: contents;
}

.plaza-keyword-search {
  display: block;
  width: 168px;
  height: 38px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.24);
  border-radius: 8px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
}

.plaza-keyword-search:focus {
  border-color: rgba(24, 242, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(24, 242, 255, 0.1);
}

.plaza-keyword-search:not(.has-value)::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

@media (max-width: 640px) {
  .plaza-keyword-search {
    width: 100%;
  }
}

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

.flat-filter-row button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.flat-filter-row button:hover,
.flat-filter-row button.is-selected {
  color: var(--text);
  border-color: rgba(24, 242, 255, 0.82);
  background: rgba(24, 242, 255, 0.08);
  box-shadow: 0 0 14px rgba(24, 242, 255, 0.18);
}

.prompt-plaza-list {
  columns: 3 280px;
  column-gap: 14px;
  padding: 18px;
}

.prompt-plaza-list.is-empty {
  display: grid;
  grid-template-columns: 1fr;
  columns: auto;
  min-height: 220px;
  padding: 18px;
}

.plaza-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 2px 18px 20px;
  color: var(--muted-strong);
  font-size: 13px;
}

.plaza-pagination:empty {
  display: none;
}

.plaza-pagination button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.plaza-load-state {
  display: flex;
  width: min(100%, 620px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 242, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 13, 24, 0.82), rgba(12, 20, 34, 0.58));
  box-shadow: inset 0 0 18px rgba(24, 242, 255, 0.05);
}

.plaza-load-state > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.plaza-load-state strong {
  color: var(--text);
  font-size: 14px;
}

.plaza-load-state span {
  color: var(--muted);
  line-height: 1.45;
}

.plaza-load-state.is-loading {
  justify-content: flex-start;
  border-color: rgba(24, 242, 255, 0.34);
  background: linear-gradient(135deg, rgba(4, 26, 38, 0.84), rgba(11, 18, 31, 0.62));
}

.plaza-load-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid rgba(24, 242, 255, 0.18);
  border-top-color: var(--cyan);
  border-radius: 999px;
  animation: button-spin 0.82s linear infinite;
  box-shadow: 0 0 16px rgba(24, 242, 255, 0.22);
}

.plaza-load-count {
  margin-left: auto;
  white-space: nowrap;
}

.plaza-load-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(170, 255, 57, 0.55);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 46%, var(--lime) 48%, var(--lime) 58%, transparent 60%),
    rgba(170, 255, 57, 0.08);
  box-shadow: 0 0 14px rgba(170, 255, 57, 0.2);
}

.plaza-load-state.is-complete {
  width: auto;
  justify-content: center;
  padding-inline: 18px;
  border-color: rgba(170, 255, 57, 0.22);
}

.prompt-card {
  display: grid;
  grid-template-rows: auto 1fr;
  break-inside: avoid;
  min-width: 0;
  margin-bottom: 14px;
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(7, 10, 18, 0.5);
}

.prompt-cover {
  position: relative;
  aspect-ratio: var(--prompt-image-ratio, 3 / 2);
  overflow: hidden;
  background: #020617;
}

.prompt-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-cover span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.72);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-cover small {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.62);
  font-size: 11px;
}

.prompt-card-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.prompt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prompt-card-head strong {
  min-width: 0;
  font-size: 16px;
}

.prompt-card-head span,
.detail-tags span,
.keyword-row span {
  color: var(--muted-strong);
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  white-space: nowrap;
}

.prompt-card-head span {
  padding: 4px 7px;
}

.prompt-card p {
  display: -webkit-box;
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-row span {
  padding: 4px 7px;
}

.prompt-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.prompt-actions .ghost-button,
.prompt-actions .primary-button {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.prompt-actions a.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

#prompt-detail-body .prompt-actions {
  flex: 0 0 auto;
  margin-top: 12px;
}

.plaza-empty {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(7, 10, 18, 0.7), rgba(15, 23, 42, 0.45));
}

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

.plaza-empty span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.redeem-package-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.redeem-package-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(182, 255, 59, 0.18);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(182, 255, 59, 0.07);
}

.package-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.redeem-package-card .package-price {
  color: var(--green);
  font-weight: 800;
  font-size: 24px;
}

.redeem-package-card .package-original {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
}

.package-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.package-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 77, 210, 0.24);
  border-radius: 999px;
  color: #ff7bdc;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 77, 210, 0.08);
}

.redeem-package-card strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 24px;
}

.redeem-package-card p {
  margin: 0;
}

.redeem-package-card .primary-button {
  width: 100%;
}

.redeem-form,
.redeem-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.redeem-admin-form {
  grid-template-columns: minmax(160px, 220px) 110px auto;
}

.redeem-code-output {
  min-height: 120px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(7, 10, 18, 0.48);
  white-space: pre-wrap;
}

.wechat-redeem-card {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(24, 242, 255, 0.36);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(7, 10, 18, 0.98));
  box-shadow: var(--shadow);
  color: var(--muted-strong);
}

.wechat-redeem-card h2 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 28px;
}

.wechat-modal-head {
  padding-right: 34px;
}

.wechat-redeem-card #wechat-redeem-package {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.wechat-contact-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(24, 242, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wechat-qr-frame {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.wechat-qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
}

.wechat-contact-copy {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  text-align: center;
}

.wechat-contact-copy strong {
  color: var(--text);
  font-size: 18px;
}

.wechat-contact-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.wechat-buy-steps {
  display: grid;
  gap: 10px;
}

.wechat-buy-steps span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(182, 255, 59, 0.14);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(182, 255, 59, 0.055);
}

.wechat-buy-steps b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #061015;
  font-size: 13px;
  background: var(--green);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ops-range-buttons,
.ops-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ops-range-buttons button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 242, 255, 0.22);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.46);
}

.ops-range-buttons button.is-active {
  color: #031015;
  border-color: rgba(24, 242, 255, 0.72);
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.ops-custom-range input {
  min-height: 36px;
}

.ops-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ops-card strong {
  font-size: 28px;
}

.ops-funnel,
.ops-table,
.ops-health,
.ops-note,
.ops-trend {
  display: grid;
  gap: 10px;
}

.ops-trend-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
}

.ops-trend-bars {
  display: grid;
  gap: 4px;
}

.ops-trend-bars i,
.ops-trend-bars b,
.ops-trend-bars em {
  display: block;
  height: 7px;
  min-width: 3px;
  border-radius: 999px;
}

.ops-trend-bars i {
  background: var(--cyan);
}

.ops-trend-bars b {
  background: var(--green);
}

.ops-trend-bars em {
  background: var(--pink);
}

.ops-line-chart {
  padding: 12px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.48);
}

.ops-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 13px;
}

.ops-chart-legend button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.5);
}

.ops-chart-legend button.is-active {
  border-color: rgba(24, 242, 255, 0.62);
  color: var(--text);
  background: rgba(24, 242, 255, 0.14);
}

.ops-chart-legend button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 999px;
}

.ops-chart-legend button[data-trend-metric="all"]::before {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink));
}

.ops-chart-legend .views::before,
.ops-line.views,
.ops-dot.views {
  stroke: #f8fafc;
}

.ops-chart-legend .views::before {
  background: #f8fafc;
}

.ops-chart-legend .visitors::before,
.ops-line.visitors,
.ops-dot.visitors {
  stroke: #a78bfa;
}

.ops-chart-legend .visitors::before {
  background: #a78bfa;
}

.ops-chart-legend .tasks::before,
.ops-line.tasks,
.ops-dot.tasks {
  stroke: var(--cyan);
}

.ops-chart-legend .tasks::before {
  background: var(--cyan);
}

.ops-chart-legend .success::before,
.ops-line.success,
.ops-dot.success {
  stroke: var(--green);
}

.ops-chart-legend .success::before {
  background: var(--green);
}

.ops-chart-legend .points::before,
.ops-line.points,
.ops-dot.points {
  stroke: var(--pink);
}

.ops-chart-legend .points::before {
  background: var(--pink);
}

.ops-chart-canvas {
  position: relative;
}

.ops-line-chart svg {
  display: block;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.ops-chart-grid line {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.ops-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(24, 242, 255, 0.18));
}

.ops-dot {
  fill: #07101b;
  stroke-width: 3;
}

.ops-chart-hit-area rect {
  fill: transparent;
  cursor: crosshair;
}

.ops-chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 178px;
  padding: 10px;
  border: 1px solid rgba(24, 242, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: var(--shadow-cyan);
  pointer-events: none;
}

.ops-chart-tooltip strong,
.ops-chart-tooltip span {
  display: block;
}

.ops-chart-tooltip strong {
  margin-bottom: 6px;
}

.ops-chart-tooltip span {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.ops-axis-labels text {
  fill: var(--muted);
  font-size: 12px;
}

.ops-trend-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-trend-summary span {
  padding: 6px 8px;
  border: 1px solid rgba(24, 242, 255, 0.14);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.42);
  font-size: 12px;
}

.ops-funnel-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
}

.ops-funnel-row div {
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 242, 255, 0.12);
  overflow: hidden;
}

.ops-funnel-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.ops-row,
.ops-empty,
.ops-note,
.ops-health-grid {
  padding: 12px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.48);
}

.ops-row {
  display: grid;
  gap: 4px;
}

.ops-row span,
.ops-note span,
.ops-empty {
  color: var(--muted);
}

.ops-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted-strong);
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius);
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.history-list,
.transaction-list,
.model-list {
  display: grid;
  gap: 10px;
}

.history-item,
.transaction-item,
.model-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.48);
}

.history-item {
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.history-item:hover,
.history-item:focus-visible {
  border-color: rgba(24, 242, 255, 0.46);
  background: rgba(12, 24, 39, 0.72);
  outline: 0;
  transform: translateY(-1px);
}

.history-empty {
  grid-template-columns: 1fr;
}

.history-thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(24, 242, 255, 0.08);
}

.history-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(145deg, rgba(20, 33, 50, 0.92), rgba(7, 10, 18, 0.9));
  font-size: 24px;
  font-weight: 800;
}

.history-thumb-placeholder.is-failed {
  color: #ff9aac;
  border-color: rgba(255, 79, 109, 0.4);
  background: linear-gradient(145deg, rgba(95, 24, 46, 0.58), rgba(21, 10, 22, 0.92));
}

.history-body strong,
.model-item strong {
  display: block;
}

.history-body p,
.model-item p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-source-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  color: var(--cyan);
  border: 1px solid rgba(24, 242, 255, 0.24);
  border-radius: 999px;
  background: rgba(24, 242, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.status-pill {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.history-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.history-detail-cue {
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
  transition: transform 180ms ease;
}

.history-item:hover .history-detail-cue,
.history-item:focus-visible .history-detail-cue {
  transform: translateX(3px);
}

.status-pill.succeeded {
  color: #001014;
  background: var(--green);
}

.status-pill.running,
.status-pill.pending {
  color: #001014;
  background: var(--cyan);
}

.status-pill.failed,
.status-pill.refunded {
  background: rgba(255, 79, 109, 0.28);
}

.transaction-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.transaction-item span {
  color: var(--muted);
  font-size: 13px;
}

.amount-plus {
  color: var(--green);
}

.amount-minus {
  color: var(--pink);
}

.model-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(24, 242, 255, 0.2);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.auth-card,
.prompt-detail-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
}

.auth-card {
  width: min(460px, 100%);
}

.prompt-detail-card {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.prompt-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
  max-height: calc(100vh - 92px);
  min-height: 0;
}

.prompt-detail-image {
  position: relative;
  width: 100%;
  aspect-ratio: var(--prompt-detail-image-ratio, 3 / 2);
  overflow: hidden;
  border: 1px solid rgba(24, 242, 255, 0.2);
  border-radius: var(--radius);
  background: #020617;
}

.prompt-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.prompt-detail-image span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.78);
  box-shadow: 0 0 14px rgba(24, 242, 255, 0.16);
  font-size: 12px;
  line-height: 1;
}

.prompt-detail-layout h2 {
  margin: 0 48px 10px 0;
}

.prompt-detail-content {
  display: flex;
  min-height: 0;
  max-height: calc(100vh - 92px);
  flex-direction: column;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-tags span {
  padding: 5px 8px;
}

.detail-keywords {
  margin-bottom: 12px;
}

.detail-text-stack {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.detail-text-block {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-section-heading strong {
  color: var(--text);
  font-size: 13px;
}

.detail-original {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid rgba(24, 242, 255, 0.24);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.52), rgba(12, 20, 34, 0.34));
  box-shadow: inset 0 0 18px rgba(24, 242, 255, 0.04);
}

.detail-original .detail-section-heading strong {
  color: var(--cyan);
}

.detail-prompt {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(24, 242, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.36);
  color: var(--muted-strong);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-color: rgba(24, 242, 255, 0.46) rgba(15, 23, 42, 0.48);
  scrollbar-width: thin;
}

.detail-prompt::-webkit-scrollbar {
  width: 8px;
}

.detail-prompt::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.48);
  border-radius: 999px;
}

.detail-prompt::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(24, 242, 255, 0.46);
}

.detail-prompt::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 242, 255, 0.68);
}

.detail-translation {
  display: flex;
  min-height: 132px;
  max-height: 36%;
  flex: 0 1 36%;
  flex-direction: column;
  border: 1px solid rgba(182, 255, 59, 0.22);
  background: rgba(182, 255, 59, 0.06);
}

.detail-translation .detail-section-heading strong {
  color: var(--green);
}

.detail-translation p {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  overflow: auto;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-color: rgba(182, 255, 59, 0.46) rgba(15, 23, 42, 0.48);
  scrollbar-width: thin;
}

.detail-translation p::-webkit-scrollbar {
  width: 8px;
}

.detail-translation p::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.48);
  border-radius: 999px;
}

.detail-translation p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(182, 255, 59, 0.46);
}

.detail-translation p::-webkit-scrollbar-thumb:hover {
  background: rgba(182, 255, 59, 0.68);
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(24, 242, 255, 0.22);
  background: rgba(7, 10, 18, 0.72);
  font-size: 24px;
  line-height: 1;
  z-index: 3;
}

.icon-button:hover {
  border-color: var(--pink);
  background: rgba(255, 46, 159, 0.14);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.auth-tabs button {
  min-height: 38px;
  color: var(--muted-strong);
  border: 1px solid rgba(24, 242, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.5);
}

.auth-tabs button.is-active {
  color: #031015;
  border-color: var(--cyan);
  background: var(--cyan);
}

.auth-form {
  display: grid;
}

.captcha-row {
  align-items: center;
}

.captcha-row input {
  flex: 1;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.86);
  box-shadow: var(--shadow-cyan);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.toast span {
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}


@media (prefers-reduced-motion: reduce) {
  .expert-sample-list.is-carousel .expert-sample-tile {
    animation-play-state: paused;
  }
}
@media (max-width: 1080px) {
  .expert-material-card {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .expert-detail-copy {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .expert-detail-panel {
    padding: 14px;
  }

  .expert-detail-copy,
  .expert-sample-section,
  .expert-material-card,
  .expert-config-card {
    padding: 14px;
  }

  .expert-detail-copy h2 {
    font-size: 26px;
  }

  .expert-upload-zone > div {
    min-height: 156px;
    padding: 76px 16px 18px;
    text-align: center;
  }

  .expert-upload-zone::before {
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
  }

  .expert-upload-zone > div span {
    max-width: none;
  }
}
@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .nav-item {
    justify-content: center;
  }

  .nav-item span:last-child {
    display: none;
  }

  .workspace-grid,
  .config-grid,
  .expert-filter-panel,
  .expert-detail-hero,
  .expert-workbench-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 520px;
  }

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

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

  .ops-two-column {
    grid-template-columns: 1fr;
  }

  .ops-trend-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 14px;
  }

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

  .user-area,
  .action-row,
  .result-actions,
  .captcha-row {
    width: 100%;
    flex-direction: column;
  }

  .field-grid,
  .stats-grid,
  .expert-field-grid,
  .redeem-package-list,
  .redeem-form,
  .redeem-admin-form {
    grid-template-columns: 1fr;
  }

  #history-view .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #history-view .panel-heading h2 {
    white-space: normal;
  }

  #history-view .panel-heading > select {
    width: 100%;
    min-width: 0;
  }

  .expert-card-samples,
  .expert-sample-list {
    grid-template-columns: 1fr;
  }

  .expert-sample-list .expert-sample-tile:first-child {
    grid-row: auto;
    min-height: 240px;
  }

  .expert-sample-list .expert-sample-tile:first-child .expert-sample-visual {
    min-height: 168px;
  }

  .expert-sample-list.is-carousel {
    --sample-depth: 170px;
    height: 300px;
    min-height: 300px;
  }

  .expert-sample-list.is-carousel .expert-sample-tile,
  .expert-sample-list.is-carousel .expert-sample-tile:first-child {
    width: 150px;
    height: 236px;
    min-height: 0;
  }

  .expert-sample-list.is-carousel .expert-sample-tile:first-child .expert-sample-visual {
    min-height: 0;
  }

  .expert-detail-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-detail-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .prompt-detail-card {
    overflow: auto;
  }

  .prompt-detail-content {
    max-height: none;
  }

  .detail-text-stack,
  .detail-original,
  .detail-translation {
    overflow: visible;
  }

  .detail-prompt,
  .detail-translation p {
    max-height: 260px;
  }

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

  .plaza-filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .plaza-stat-card {
    min-height: 92px;
  }

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

  .history-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .history-thumb {
    width: 58px;
    height: 58px;
  }

  .history-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .auth-card,
  .prompt-detail-card {
    padding: 14px;
  }

  .prompt-actions {
    grid-template-columns: 1fr;
  }

}
