:root {
  --bg: #f4f1ea;
  --shell: #fbfaf6;
  --card: #fffefa;
  --card-soft: #f8f4ec;
  --line: #ebe3d6;
  --line-strong: #dfcba9;
  --text-1: #1f1a13;
  --text-2: #5f584c;
  --text-3: #948a7a;
  --text-4: #b4aa9a;
  --brand: #b57a2c;
  --brand-dark: #8f5c18;
  --brand-light: #d9aa61;
  --brand-soft: #f3e2c5;
  --green: #2d7f55;
  --green-soft: #eaf6ef;
  --red: #b83a36;
  --red-soft: #fae7e5;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(43, 34, 22, .08);
  --shadow-strong: 0 10px 26px rgba(143, 92, 24, .24);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-width: 1180px;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d2c6b5;
  border-radius: 6px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf7ee 0%, #f6f1e6 100%);
  overflow: hidden;
}

.brand {
  height: 108px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.coin {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #f5d58e 0%, #b77d2c 54%, #855315 100%);
  box-shadow: 0 8px 18px rgba(143, 92, 24, .28);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.bt {
  color: var(--text-1);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.bs {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 12px 18px;
}

.nav-group {
  margin-bottom: 14px;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  color: #b5aa97;
  font-size: 11px;
  font-weight: 700;
}

.nav-label::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-light);
}

.nav-item,
.module-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.nav-item.parent {
  color: var(--text-1);
  font-weight: 700;
}

.nav-item .ic {
  width: 16px;
  color: var(--brand);
  font-size: 14px;
  text-align: center;
}

.module-list {
  margin: 4px 0 0 24px;
  display: grid;
  gap: 2px;
}

.nav-sub-list {
  margin: 4px 0 0 24px;
  display: grid;
  gap: 2px;
}

.module-item {
  min-height: 31px;
  padding: 0 12px;
  color: var(--text-3);
  font-size: 13px;
}

.nav-item.sub {
  min-height: 31px;
  padding: 0 12px;
  color: var(--text-3);
  font-size: 13px;
}

.nav-item:hover,
.module-item:hover {
  color: var(--brand-dark);
  background: rgba(181, 122, 44, .08);
}

.nav-group.active .nav-item.parent {
  border: 1px solid #eadbc5;
  background: linear-gradient(180deg, #fffdf7 0%, #f8f0df 100%);
  box-shadow: 0 6px 14px rgba(143, 92, 24, .08);
}

.module-item.active,
.module-item.current,
.page-item.active,
.page-item.current {
  color: var(--brand-dark);
  font-weight: 800;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 92px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 241, .94);
  backdrop-filter: blur(8px);
}

.crumb {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.crumb b {
  color: var(--text-1);
}

.slash {
  color: var(--text-3);
  margin: 0 4px;
}

.topbar-r {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 700;
}

.av {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #efcf8b 0%, #9f681e 100%);
  box-shadow: 0 6px 14px rgba(143, 92, 24, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.logout {
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
}

.logout:hover {
  color: var(--brand-dark);
}

.content {
  flex: 1;
  padding: 18px 18px 32px;
}

.content-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[hidden] {
  display: none !important;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .92);
  box-shadow: var(--shadow);
}

.corner {
  display: none;
}

.hero-l {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.seal {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #d9aa61 0%, #9b641d 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: var(--text-1);
  font-size: 22px;
  line-height: 1.25;
}

.hero p {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

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

.stat {
  min-width: 96px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.stat .k {
  color: var(--text-4);
  font-size: 11px;
  font-weight: 700;
}

.stat .v {
  margin-top: 2px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
}

.stat.violet .v {
  color: var(--brand-dark);
}

.grid {
  display: grid;
  grid-template-columns: minmax(500px, 33%) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.input-panel,
.result-panel {
  min-height: calc(100vh - 224px);
  max-height: calc(100vh - 224px);
  overflow: auto;
}

.panel-head,
.sol-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .9);
}

.tag {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.panel-head .tag,
.sol-head .tag,
.panel-head .en {
  display: none;
}

.tag.v {
  background: #f0e8dc;
  color: var(--brand);
}

.panel-head h2,
.sol-head h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 19px;
  line-height: 1.25;
}

.panel-head .en {
  margin-left: auto;
  color: var(--text-4);
  font-size: 11px;
}

.panel-body {
  padding: 16px 18px 20px;
}

.hidden-action,
.hidden-input {
  display: none;
}

.complete {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #eadbc5;
  border-radius: 8px;
  background: #fffaf2;
}

.complete-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.complete-top .lab {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
}

.complete-top .pct {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.pbar {
  height: 4px;
  border-radius: 4px;
  background: #dfd8cb;
  overflow: hidden;
}

.pbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e1ad57, #9c681f);
}

.hint {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 10px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 800;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: var(--brand);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label,
.modal .field span {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
}

.field .inp,
.field textarea,
.field select,
.field input,
.sms-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #ddd4c6;
  border-radius: 8px;
  background: #fffefa;
  color: var(--text-1);
  outline: none;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input,
.field select,
.field .inp {
  height: 38px;
  padding: 0 12px;
}

.field textarea {
  min-height: 112px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #766b5b 50%), linear-gradient(135deg, #766b5b 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field .inp:focus,
.field textarea:focus,
.field select:focus,
.field input:focus,
.sms-row input:focus {
  border-color: #d19b45;
  box-shadow: 0 0 0 3px rgba(181, 122, 44, .10);
}

.field ::placeholder,
.sms-row input::placeholder {
  color: var(--text-4);
}

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

.upload {
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #a8cdb9;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfff8 0%, #f5fbf2 100%);
  cursor: pointer;
  text-align: left;
}

.upload:hover {
  border-color: #74b890;
}

.upload .ut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
}

.upload .plus {
  color: #4b9167;
}

.upload .uf {
  display: block;
  margin-top: 14px;
  color: #1f6f48;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload .uf.empty {
  color: #1f6f48;
}

.upload .clr {
  display: inline-block;
  margin-top: 7px;
  color: var(--brand-dark);
  font-size: 12px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.djsbtn {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.djsbtn.sm {
  min-height: 30px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 7px;
}

.djsbtn.primary {
  background: linear-gradient(180deg, #dba951 0%, #a86d1f 100%);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.djsbtn.violet,
.djsbtn.danger {
  background: linear-gradient(180deg, #df6258 0%, #ab342e 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 58, 54, .22);
}

.djsbtn.busy {
  background: linear-gradient(180deg, #dba951 0%, #a86d1f 100%);
  color: #fff;
}

.djsbtn.ghost {
  border-color: var(--line);
  background: #fffefa;
  color: var(--text-2);
}

.djsbtn:hover:not(:disabled),
.md-export:hover:not(:disabled) {
  filter: brightness(.98);
}

.djsbtn:disabled,
.md-export:disabled {
  cursor: not-allowed;
  opacity: .56;
  box-shadow: none;
}

.md-export {
  min-height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.live {
  margin-left: auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.live.idle {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.live.done {
  color: #7a500f;
  background: #f6e1ba;
}

.sol-sub {
  padding: 0 18px 14px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbf8f1;
}

.chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-3);
  font-size: 12px;
}

.chip b {
  color: var(--brand-dark);
}

#resultContent {
  min-height: 420px;
  padding: 16px 18px 20px;
}

.empty-result {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-3);
}

.empty-card {
  margin: 0 auto;
}

.empty-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f2e7d5;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
}

.empty-result h3 {
  margin: 0 0 8px;
  color: var(--text-1);
  font-size: 18px;
}

.empty-result p {
  margin: 0;
  font-size: 13px;
}

.loading-result {
  min-height: 420px;
}

.loading-hero,
.gen-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #eadbc5;
  border-radius: 8px;
  background: #fffaf2;
}

.loading-spinner,
.spin {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #eadcc8;
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}

.loading-spinner span,
.spin span {
  color: var(--brand-dark);
  font-weight: 900;
  animation: spin 1s linear infinite reverse;
}

.loading-hero h3,
.gt {
  margin: 0 0 5px;
  color: var(--text-1);
  font-size: 16px;
}

.loading-hero p,
.gp {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.loading-grid,
.skeleton {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.skeleton-card,
.sk-block {
  display: grid;
  gap: 8px;
}

.skeleton-line,
.skeleton-title,
.sk-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eee4d4 0%, #fbf7ef 50%, #eee4d4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skeleton-title,
.sk-line.title {
  width: 38%;
  height: 14px;
}

.skeleton-line.wide,
.sk-line.w90 {
  width: 92%;
}

.skeleton-line.short,
.sk-line.w50 {
  width: 52%;
}

.skeleton-line:not(.wide):not(.short),
.sk-line.w70 {
  width: 72%;
}

.footnote {
  color: var(--text-4);
  font-size: 12px;
  text-align: center;
}

.result-body {
  display: grid;
  gap: 14px;
}

.result-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #eadbc5;
  border-radius: 8px;
  background: #fffaf2;
}

.score-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 75%, #e6dfd2 75% 100%);
}

.score-ring > div {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fffefa;
}

.score-ring b {
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
}

.score-ring span {
  color: var(--text-3);
  font-size: 11px;
}

.summary-copy h3 {
  margin: 0 0 8px;
  color: var(--text-1);
  font-size: 17px;
}

.summary-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.summary-tags span,
.result-line-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4e6cf;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.result-card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  background: var(--card);
}

.result-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.result-card-index {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e3c9;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.result-card h3 {
  margin: 0;
  color: var(--text-1);
  font-size: 16px;
}

.result-line-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.result-line::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand-light);
}

.result-line-label {
  grid-column: 2;
}

.result-line-text {
  grid-column: 2;
}

.result-line-label + .result-line-text {
  grid-column: 2;
}

.result-line.plain .result-line-text {
  grid-column: 2;
}

.raw-lines {
  white-space: pre-wrap;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.aux-view {
  gap: 14px;
}

.aux-grid {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(460px, 1.1fr);
  gap: 16px;
}

.aux-panel {
  min-height: calc(100vh - 224px);
}

.aux-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .9);
}

.aux-panel-head h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 18px;
}

.assistant-toolbar,
.cloud-toolbar,
.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fffefa;
}

.aux-input,
.aux-select {
  height: 36px;
  min-width: 0;
  border: 1px solid #ddd4c6;
  border-radius: 8px;
  background: #fffefa;
  color: var(--text-1);
  outline: none;
  padding: 0 12px;
  font-size: 13px;
}

.aux-input {
  flex: 1;
}

.assistant-empty {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  text-align: center;
}

.assistant-empty h3 {
  margin: 0;
  color: var(--text-1);
  font-size: 17px;
}

.assistant-empty p {
  margin: 0 0 8px;
  font-size: 13px;
}

.assistant-cards {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.assistant-card {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.assistant-card b {
  color: var(--text-1);
}

.assistant-card span {
  color: var(--text-2);
  font-size: 13px;
}

.assistant-card em,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f4e6cf;
  color: var(--brand-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chat-box {
  display: grid;
  gap: 10px;
  padding: 0 18px 16px;
}

.chat-msg {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.chat-msg span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.chat-msg.me span {
  background: #e7f2ea;
  color: #2d7f55;
}

.chat-msg p {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-2);
  line-height: 1.55;
}

.cloud-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cloud-aside {
  min-height: calc(100vh - 224px);
  padding: 14px 12px;
}

.cloud-aside .aux-input {
  width: 100%;
  margin-bottom: 10px;
}

.streamer-summary,
.streamer-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}

.streamer-summary {
  display: flex;
  justify-content: space-between;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.streamer-row:hover {
  background: #f7f0e3;
}

.avatar-mini {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8dccb;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.streamer-row small {
  color: var(--text-3);
  font-size: 11px;
}

.cloud-main {
  min-height: calc(100vh - 224px);
}

.plain-link {
  margin-left: auto;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.aux-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.aux-table th,
.aux-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  text-align: left;
}

.aux-table th {
  height: 42px;
  background: #f6f1e7;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
}

.aux-table td b {
  color: var(--text-1);
  font-weight: 600;
}

.aux-table a {
  color: var(--brand-dark);
  font-weight: 800;
}

.ok {
  color: var(--green);
  font-weight: 800;
}

.warn {
  color: #d36f00;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--text-3);
  font-size: 13px;
}

.page-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  background: #fffefa;
  color: var(--text-2);
  cursor: pointer;
}

.page-btn.active {
  background: var(--brand);
  color: #fff;
}

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

.setting-card {
  padding: 18px;
}

.setting-card h2 {
  margin: 0 0 8px;
  color: var(--text-1);
  font-size: 18px;
}

.setting-card p {
  margin: 0 0 16px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.setting-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.setting-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.setting-list span {
  color: var(--text-3);
}

.setting-list b {
  color: var(--text-1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 26, 19, .48);
  backdrop-filter: blur(8px);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: min(396px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 22px 70px rgba(31, 26, 19, .24);
}

.modal-title {
  margin: 0;
  color: var(--text-1);
  font-size: 19px;
}

.modal-desc {
  margin: 8px 0 16px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2e8;
}

.modal-tab {
  height: 34px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.modal-tab.active {
  background: var(--card);
  color: var(--brand-dark);
  box-shadow: 0 5px 14px rgba(31, 26, 19, .08);
}

.modal .field {
  margin-bottom: 12px;
}

.register-only {
  display: none;
}

.modal.register-mode .register-only {
  display: flex;
}

.sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.sms-row input {
  height: 38px;
  padding: 0 12px;
}

.sms-btn {
  height: 38px;
  border: 1px solid rgba(181, 122, 44, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6e2bd, #dcaa59);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sms-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.field-hint {
  margin: -4px 0 10px;
  color: var(--text-3);
  font-size: 12px;
}

.form-err {
  min-height: 18px;
  color: var(--red);
  font-size: 12.5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.modal-switch {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
  text-align: right;
}

.modal-switch button {
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1200;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
}

.toast {
  min-width: 220px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .98);
  box-shadow: 0 12px 32px rgba(31, 26, 19, .14);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
}

.toast.success {
  color: #178342;
}

.toast.error {
  color: var(--red);
}

.toast.warning {
  color: var(--brand-dark);
}

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

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 1280px) {
  body {
    min-width: 0;
  }

  .app {
    grid-template-columns: 232px minmax(0, 1fr);
  }

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

  .input-panel,
  .result-panel {
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .brand {
    height: 78px;
  }

  .nav {
    padding: 12px;
  }

  .module-list {
    margin-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    height: 64px;
    padding: 0 14px;
  }

  .content {
    padding: 12px;
  }

  .hero,
  .result-summary {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-r,
  .section-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .form-grid,
  .uploads {
    grid-template-columns: 1fr;
  }
}

:root {
  --bg: #050b09;
  --shell: #07110d;
  --card: rgba(7, 18, 14, .92);
  --card-soft: #0b1f18;
  --line: rgba(34, 232, 156, .18);
  --line-strong: rgba(39, 255, 175, .46);
  --text-1: #effff7;
  --text-2: #b5c9bf;
  --text-3: #6e8a7d;
  --text-4: #3f5b4e;
  --brand: #25e89d;
  --brand-dark: #18d991;
  --brand-light: #77ffd5;
  --brand-soft: rgba(37, 232, 157, .12);
  --green: #20ee9c;
  --green-soft: rgba(32, 238, 156, .12);
  --red: #ff5f6c;
  --red-soft: rgba(255, 95, 108, .12);
  --shadow: 0 18px 56px rgba(0, 0, 0, .34);
  --shadow-strong: 0 0 24px rgba(37, 232, 157, .24);
}

body {
  background:
    radial-gradient(circle at 22% 12%, rgba(37, 232, 157, .12), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(146, 104, 255, .12), transparent 26%),
    linear-gradient(180deg, #06100c 0%, #030806 100%);
  color: var(--text-1);
}

::-webkit-scrollbar-thumb {
  background: rgba(37, 232, 157, .35);
}

.app {
  grid-template-columns: 262px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid rgba(37, 232, 157, .18);
  background: linear-gradient(180deg, rgba(5, 17, 12, .98), rgba(3, 10, 7, .98));
  box-shadow: inset -1px 0 0 rgba(37, 232, 157, .06);
}

.brand {
  border-bottom-color: rgba(37, 232, 157, .16);
}

.coin,
.seal,
.empty-mark,
.demo-avatar {
  background: linear-gradient(145deg, #32f5ae 0%, #0bbf7e 56%, #067d57 100%);
  box-shadow: 0 0 26px rgba(37, 232, 157, .32);
  color: #052017;
}

.bt {
  color: #f7fff9;
}

.bs {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}

.nav {
  padding: 22px 14px 18px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-label {
  color: rgba(133, 169, 152, .78);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-label::before {
  background: var(--brand);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(37, 232, 157, .58);
}

.nav-item,
.module-item {
  color: #7d968a;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-item.parent {
  color: #d9eee4;
}

.nav-item .ic {
  color: var(--brand);
}

.nav-item:hover,
.module-item:hover,
.streamer-row:hover {
  color: #dffff3;
  background: rgba(37, 232, 157, .08);
}

.nav-group.active .nav-item.parent,
.nav-item.page-item.current,
.module-item.active,
.module-item.current {
  color: var(--brand);
  border-color: rgba(37, 232, 157, .36);
  background: linear-gradient(90deg, rgba(37, 232, 157, .18), rgba(37, 232, 157, .04));
  box-shadow: inset 3px 0 0 var(--brand), 0 0 24px rgba(37, 232, 157, .12);
  font-weight: 900;
}

.page-item.active,
.page-item.current {
  color: var(--brand);
}

.module-list,
.nav-sub-list {
  margin-left: 24px;
}

.topbar {
  height: 62px;
  border-bottom-color: rgba(37, 232, 157, .16);
  background: rgba(3, 10, 7, .88);
  backdrop-filter: blur(14px);
}

.crumb,
.slash {
  color: #80998c;
}

.crumb b {
  color: var(--brand);
}

.user {
  color: #eafff5;
}

.av {
  background: linear-gradient(145deg, #b99cff, #734be8);
  box-shadow: 0 0 20px rgba(146, 104, 255, .36);
}

.logout {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #8fa89a;
  background: rgba(255, 255, 255, .02);
}

.logout:hover {
  color: var(--brand);
}

.content {
  padding: 14px 28px 32px;
  background: linear-gradient(180deg, rgba(7, 17, 13, .55), rgba(3, 8, 6, .16));
}

.hero {
  min-height: 110px;
  border-color: rgba(37, 232, 157, .24);
  background: linear-gradient(180deg, rgba(8, 28, 20, .76), rgba(6, 18, 13, .9));
  box-shadow: inset 0 0 0 1px rgba(37, 232, 157, .04), var(--shadow);
}

.corner {
  position: absolute;
  display: block;
  width: 15px;
  height: 15px;
  border-color: rgba(176, 255, 222, .62);
}

.corner.tl {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner.tr {
  top: 10px;
  right: 10px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner.bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner.br {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero h1,
.panel-head h2,
.sol-head h2,
.aux-panel-head h2,
.assistant-empty h3,
.setting-card h2 {
  color: #f4fff9;
}

.hero p,
.setting-card p,
.assistant-card span {
  color: var(--text-2);
}

.stat,
.panel,
.modal {
  border-color: rgba(37, 232, 157, .18);
  background: rgba(5, 14, 10, .84);
  box-shadow: var(--shadow);
}

.stat .v,
.stat.violet .v,
.setting-list b,
.aux-table td b,
.complete-top .lab,
.field label,
.modal .field span,
.section-title {
  color: #f3fff8;
}

.stat .k,
.panel-head .en {
  color: #5c7f70;
}

.grid {
  grid-template-columns: minmax(430px, 32%) minmax(0, 1fr);
}

.input-panel,
.result-panel,
.aux-panel,
.cloud-aside,
.cloud-main,
.script-context-panel,
.script-chat-panel {
  min-height: calc(100vh - 176px);
}

.panel-head,
.sol-head,
.aux-panel-head,
.assistant-toolbar,
.cloud-toolbar,
.chat-input {
  border-bottom-color: rgba(37, 232, 157, .14);
  background: rgba(7, 20, 15, .74);
}

.panel-head .tag,
.sol-head .tag,
.panel-head .en {
  display: grid;
}

.panel-head .en {
  margin-left: auto;
  font-size: 10px;
}

.tag,
.tag.v,
.pill,
.assistant-card em {
  background: rgba(37, 232, 157, .16);
  color: var(--brand);
}

.complete,
.assistant-card,
.setting-list div,
.chat-msg p,
.result-card,
.gen-card {
  border-color: rgba(37, 232, 157, .16);
  background: rgba(7, 24, 17, .72);
}

.pbar {
  background: rgba(255, 255, 255, .08);
}

.pbar i {
  background: linear-gradient(90deg, #27eca0, #8b6cff);
  box-shadow: 0 0 18px rgba(37, 232, 157, .42);
}

.hint,
.raw-lines,
.chat-msg p,
.setting-list span,
.aux-table td,
.modal-desc,
.modal-switch,
.field-hint {
  color: var(--text-2);
}

.field .inp,
.field textarea,
.field select,
.field input,
.sms-row input,
.aux-input,
.aux-select {
  border-color: rgba(37, 232, 157, .18);
  background: rgba(4, 12, 9, .92);
  color: #f4fff9;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
}

.field .inp:focus,
.field textarea:focus,
.field select:focus,
.field input:focus,
.sms-row input:focus,
.aux-input:focus,
.aux-select:focus {
  border-color: rgba(37, 232, 157, .72);
  box-shadow: 0 0 0 3px rgba(37, 232, 157, .12);
}

.upload {
  border-color: rgba(37, 232, 157, .32);
  background: linear-gradient(180deg, rgba(14, 40, 29, .68), rgba(5, 18, 13, .86));
}

.upload .ut {
  color: #effff7;
}

.upload .plus,
.upload .uf,
.upload .uf.empty,
.plain-link,
.aux-table a,
.modal-switch button {
  color: var(--brand);
}

.djsbtn.primary,
.djsbtn.busy,
.sms-btn,
.streamer-summary,
.page-btn.active {
  background: linear-gradient(180deg, #31efaa 0%, #12b97d 100%);
  color: #04150f;
  box-shadow: 0 12px 28px rgba(37, 232, 157, .22);
}

.djsbtn.violet,
.djsbtn.danger {
  background: linear-gradient(180deg, #9d80ff 0%, #5a39d6 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(130, 96, 255, .25);
}

.djsbtn.ghost,
.md-export,
.page-btn,
.script-preset-grid button {
  border-color: rgba(146, 104, 255, .32);
  background: rgba(12, 16, 25, .88);
  color: #c8b8ff;
}

.live {
  background: rgba(146, 104, 255, .16);
  color: #c9b7ff;
  border: 1px solid rgba(146, 104, 255, .3);
}

.live.done,
.ok {
  color: var(--brand);
}

.warn {
  color: #ffb45f;
}

.aux-table th {
  background: rgba(255, 255, 255, .035);
  color: #6f8a7d;
}

.aux-table th,
.aux-table td {
  border-bottom-color: rgba(37, 232, 157, .11);
}

.streamer-row,
.streamer-summary {
  color: #c3d7cc;
}

.avatar-mini {
  background: rgba(37, 232, 157, .14);
  color: var(--brand);
}

.modal-backdrop {
  background: rgba(1, 4, 3, .68);
}

.modal-tabs {
  border-color: rgba(37, 232, 157, .14);
  background: rgba(255, 255, 255, .035);
}

.modal-tab.active {
  background: rgba(37, 232, 157, .12);
  color: var(--brand);
}

.toast {
  border-color: rgba(37, 232, 157, .26);
  background: rgba(5, 14, 10, .96);
  color: #eafff5;
}

.script-assistant-layout {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.script-streamer-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(37, 232, 157, .2);
  border-radius: 12px;
  background: rgba(11, 35, 24, .76);
}

.demo-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
}

.script-streamer-card h3 {
  margin: 0;
  color: #f4fff9;
  font-size: 18px;
}

.script-streamer-card p {
  margin: 6px 0 0;
  color: #8aa496;
  font-size: 12.5px;
}

.script-video-card {
  height: 190px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 232, 157, .2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 48%, rgba(37, 232, 157, .14), transparent 22%),
    linear-gradient(135deg, rgba(16, 47, 34, .8), rgba(4, 12, 9, .9));
  color: #506f60;
}

.play-dot {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 232, 157, .46);
  border-radius: 50%;
  color: var(--brand);
  box-shadow: 0 0 28px rgba(37, 232, 157, .22);
}

.script-transcript-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.script-transcript-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 232, 157, .1);
  border-radius: 9px;
  background: rgba(3, 10, 7, .75);
}

.script-transcript-list b {
  color: var(--brand);
  font-size: 12px;
}

.script-transcript-list span {
  color: #c2d8cc;
  font-size: 12.5px;
}

.script-chat-panel {
  display: flex;
  flex-direction: column;
}

.script-chat-body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.script-welcome {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(37, 232, 157, .24);
  border-radius: 12px;
  background: rgba(10, 42, 28, .72);
}

.script-welcome b {
  color: #f4fff9;
  font-size: 18px;
}

.script-welcome span {
  color: #92ab9e;
  font-size: 12.5px;
}

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

.script-preset-grid button {
  min-height: 38px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.script-dialog {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.script-msg {
  max-width: min(66%, 720px);
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.7;
  font-size: 13px;
}

.script-msg.me {
  justify-self: end;
  background: rgba(37, 232, 157, .18);
  color: var(--brand);
  font-weight: 800;
}

.script-msg.ai {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .38);
  color: #d7e9df;
}

.script-chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin: 0 22px 22px;
  padding: 10px;
  border: 1px solid rgba(37, 232, 157, .12);
  border-radius: 16px;
  background: rgba(3, 10, 7, .82);
}

.script-chat-input .aux-input {
  border-color: transparent;
  background: transparent;
}

.add-room-panel {
  min-height: calc(100vh - 176px);
  padding-bottom: 24px;
}

.aux-notice {
  margin: 22px 20px 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: rgba(37, 232, 157, .08);
  color: #b8d0c3;
  line-height: 1.7;
}

.aux-notice b {
  color: #f4fff9;
}

.add-form-layout {
  width: min(920px, calc(100% - 40px));
  display: grid;
  gap: 22px;
  margin: 26px 20px 24px;
}

.add-field-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.add-field-row label {
  color: #d9eee4;
  font-weight: 800;
  text-align: right;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-help {
  grid-column: 2;
  margin: -12px 0 0;
  color: #688879;
  font-size: 12px;
}

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

.seg-list button {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: #9db4a8;
  font-weight: 800;
  cursor: pointer;
}

.seg-list button.active {
  border-color: rgba(37, 232, 157, .52);
  background: rgba(37, 232, 157, .12);
  color: var(--brand);
}

.seg-list.wide button {
  min-width: 128px;
}

.aux-fold-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 20px;
  border-top: 1px solid rgba(37, 232, 157, .14);
  border-bottom: 1px solid rgba(37, 232, 157, .14);
  background: rgba(37, 232, 157, .08);
  color: #9db4a8;
  font-size: 12px;
}

.aux-fold-bar button {
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.add-actions {
  display: flex;
  gap: 12px;
  margin: 32px 0 0 118px;
}

.toolbar-label {
  color: #708c7f;
  font-size: 12px;
  font-weight: 800;
}

.compare-main {
  min-height: calc(100vh - 176px);
}

.compare-cell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.compare-cell small {
  grid-column: 2;
  color: #6f8a7d;
}

.compare-table td:last-child,
.aux-table td:last-child {
  white-space: nowrap;
}

.aux-table a + a {
  margin-left: 8px;
}

@media (max-width: 1280px) {
  .script-assistant-layout,
  .aux-grid,
  .cloud-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

/* Keep the new dark web shell, but restore the six conversion modules to the
   previous desktop-console surface. */
#conversionView {
  --card: #fffefa;
  --card-soft: #f8f4ec;
  --line: #ebe3d6;
  --line-strong: #dfcba9;
  --text-1: #1f1a13;
  --text-2: #5f584c;
  --text-3: #948a7a;
  --text-4: #b4aa9a;
  --brand: #b57a2c;
  --brand-dark: #8f5c18;
  --brand-light: #d9aa61;
  --brand-soft: #f3e2c5;
  --green: #2d7f55;
  --green-soft: #eaf6ef;
  --red: #b83a36;
  --red-soft: #fae7e5;
  --shadow: 0 8px 24px rgba(43, 34, 22, .08);
  --shadow-strong: 0 10px 26px rgba(143, 92, 24, .24);
  gap: 14px;
}

#conversionView .hero {
  min-height: 80px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .92);
  box-shadow: var(--shadow);
}

#conversionView .corner {
  display: none;
}

#conversionView .seal,
#conversionView .empty-mark {
  background: linear-gradient(145deg, #d9aa61 0%, #9b641d 100%);
  box-shadow: none;
  color: #fff;
}

#conversionView .hero h1,
#conversionView .panel-head h2,
#conversionView .sol-head h2,
#conversionView .empty-result h3,
#conversionView .result-card h3,
#conversionView .loading-hero h3,
#conversionView .gt,
#conversionView .summary-copy h3 {
  color: var(--text-1);
}

#conversionView .hero p,
#conversionView .hint,
#conversionView .sol-sub,
#conversionView .raw-lines,
#conversionView .empty-result p,
#conversionView .loading-hero p,
#conversionView .gp,
#conversionView .summary-copy p,
#conversionView .score-ring span {
  color: var(--text-3);
}

#conversionView .stat,
#conversionView .panel {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--shadow);
}

#conversionView .stat {
  background: var(--card);
}

#conversionView .stat .k,
#conversionView .panel-head .en {
  color: var(--text-4);
}

#conversionView .stat .v,
#conversionView .stat.violet .v,
#conversionView .complete-top .lab,
#conversionView .field label,
#conversionView .section-title {
  color: var(--text-1);
}

#conversionView .stat.violet .v,
#conversionView .complete-top .pct,
#conversionView .score-ring b,
#conversionView .chip b {
  color: var(--brand-dark);
}

#conversionView .grid {
  grid-template-columns: minmax(500px, 33%) minmax(0, 1fr);
  gap: 16px;
}

#conversionView .input-panel,
#conversionView .result-panel {
  min-height: calc(100vh - 224px);
  max-height: calc(100vh - 224px);
  overflow: auto;
}

#conversionView .panel-head,
#conversionView .sol-head {
  min-height: 54px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .9);
}

#conversionView .panel-head .tag,
#conversionView .sol-head .tag,
#conversionView .panel-head .en {
  display: none;
}

#conversionView .complete {
  border: 1px solid #eadbc5;
  background: #fffaf2;
}

#conversionView .pbar {
  background: #dfd8cb;
}

#conversionView .pbar i {
  background: linear-gradient(90deg, #e1ad57, #9c681f);
  box-shadow: none;
}

#conversionView .field .inp,
#conversionView .field textarea,
#conversionView .field select,
#conversionView .field input {
  border: 1px solid #ddd4c6;
  background-color: #fffefa;
  color: var(--text-1);
}

#conversionView .field select {
  background-image: linear-gradient(45deg, transparent 50%, #766b5b 50%), linear-gradient(135deg, #766b5b 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#conversionView .field .inp:focus,
#conversionView .field textarea:focus,
#conversionView .field select:focus,
#conversionView .field input:focus {
  border-color: #d19b45;
  box-shadow: 0 0 0 3px rgba(181, 122, 44, .10);
}

#conversionView .field ::placeholder {
  color: var(--text-4);
}

#conversionView .upload {
  border: 1px dashed #a8cdb9;
  background: linear-gradient(180deg, #fbfff8 0%, #f5fbf2 100%);
}

#conversionView .upload .ut {
  color: var(--text-1);
}

#conversionView .upload .plus,
#conversionView .upload .uf,
#conversionView .upload .uf.empty {
  color: #1f6f48;
}

#conversionView .djsbtn.primary,
#conversionView .djsbtn.busy {
  background: linear-gradient(180deg, #dba951 0%, #a86d1f 100%);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

#conversionView .djsbtn.violet,
#conversionView .djsbtn.danger {
  background: linear-gradient(180deg, #df6258 0%, #ab342e 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 58, 54, .22);
}

#conversionView .djsbtn.ghost,
#conversionView .md-export {
  border-color: var(--line);
  background: #fffefa;
  color: var(--text-2);
}

#conversionView .live {
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

#conversionView .live .dot {
  background: var(--brand);
}

#conversionView .live.idle,
#conversionView .live.done,
#conversionView .ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

#conversionView .live.loading {
  background: #fff1d6;
  color: #a96b13;
}

#conversionView .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbf8f1;
}

#conversionView .chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-3);
  font-size: 12px;
}

#conversionView #resultContent {
  padding: 16px 18px 20px;
}

#conversionView .empty-result,
#conversionView .loading-result {
  min-height: 420px;
  color: var(--text-3);
}

#conversionView .loading-hero,
#conversionView .gen-card {
  border: 1px solid #eadbc5;
  background: #fffaf2;
}

#conversionView .loading-spinner,
#conversionView .spin {
  border-color: #eadcc8;
  border-top-color: var(--brand);
}

#conversionView .loading-spinner span,
#conversionView .spin span {
  color: var(--brand-dark);
}

#conversionView .skeleton-line,
#conversionView .skeleton-title,
#conversionView .sk-line {
  background: linear-gradient(90deg, #eee4d4 0%, #fbf7ef 50%, #eee4d4 100%);
  background-size: 200% 100%;
}

#conversionView .result-summary {
  border: 1px solid #eadbc5;
  background: #fffaf2;
}

#conversionView .score-ring {
  background: conic-gradient(var(--brand) 0 75%, #e6dfd2 75% 100%);
}

#conversionView .score-ring > div {
  background: #fffefa;
}

#conversionView .summary-tags span,
#conversionView .result-line-label {
  background: #f4e6cf;
  color: var(--brand-dark);
}

#conversionView .result-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  background: var(--card);
}

#conversionView .result-card-index {
  background: #f3e3c9;
  color: var(--brand-dark);
}

#conversionView .result-line {
  color: var(--text-2);
}

#conversionView .result-line::before {
  background: var(--brand-light);
}

#conversionView .result-line-text {
  color: var(--text-2);
}

.nav-group[data-nav-group="conversion"].active .nav-item.parent {
  border-color: rgba(37, 232, 157, .18);
  background: rgba(37, 232, 157, .07);
  box-shadow: none;
}

.nav-group[data-nav-group="conversion"] .module-item.active,
.nav-group[data-nav-group="conversion"] .module-item.current {
  border-color: rgba(37, 232, 157, .28);
  background: rgba(37, 232, 157, .10);
  box-shadow: inset 3px 0 0 var(--brand);
}

@media (max-width: 1280px) {
  #conversionView .grid {
    grid-template-columns: 1fr;
  }

  #conversionView .input-panel,
  #conversionView .result-panel {
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 860px) {
  #conversionView .hero,
  #conversionView .result-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  #conversionView .form-grid,
  #conversionView .uploads,
  #conversionView .section-grid {
    grid-template-columns: 1fr;
  }
}

/* Reference skin from dianjinshou.html: command-console conversion workspace. */
:root {
  --bg: #050807;
  --bg-2: #0a0f0d;
  --panel: #0c1310;
  --panel-2: #0e1714;
  --line: rgba(46, 229, 157, .14);
  --line-soft: rgba(255, 255, 255, .06);
  --green: #2ee59d;
  --green-bright: #3cff9e;
  --green-dim: #1a8a64;
  --violet: #a78bfa;
  --violet-bright: #c4b0ff;
  --white: #f2f7f5;
  --muted: #7d8c87;
  --muted-2: #566460;
  --brand: #2ee59d;
  --brand-dark: #2ee59d;
  --brand-light: #3cff9e;
  --brand-soft: rgba(46, 229, 157, .12);
  --text-1: #f2f7f5;
  --text-2: #7d8c87;
  --text-3: #566460;
  --text-4: #42504c;
  --mono: "JetBrains Mono", Consolas, monospace;
  --disp: "Chakra Petch", "Microsoft YaHei", sans-serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font: var(--sans);
  --shadow: 0 18px 56px rgba(0, 0, 0, .34);
  --shadow-strong: 0 0 24px rgba(46, 229, 157, .24);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(46, 229, 157, .10), transparent 60%),
    radial-gradient(800px 700px at 95% 110%, rgba(167, 139, 250, .10), transparent 55%),
    radial-gradient(600px 400px at 80% 0%, rgba(46, 229, 157, .05), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(46, 229, 157, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 229, 157, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 40%, transparent 100%);
}

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

.sidebar {
  width: 262px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 13, .96), rgba(5, 8, 7, .96));
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.brand {
  height: auto;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.coin,
.seal,
.empty-mark,
.demo-avatar {
  background: linear-gradient(145deg, #2ee59d, #0e7a55);
  box-shadow: 0 0 18px rgba(46, 229, 157, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
  color: #04150e;
}

.coin {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-family: var(--disp);
  font-size: 20px;
}

.bt {
  color: var(--white);
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 700;
}

.bs {
  margin-top: 2px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 8px;
}

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

.nav::-webkit-scrollbar-thumb {
  background: rgba(46, 229, 157, .2);
  border-radius: 3px;
}

.nav-group {
  margin-bottom: 6px;
}

.nav-label {
  gap: 7px;
  height: auto;
  padding: 14px 12px 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-label::before {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--green-dim);
  box-shadow: none;
}

.nav-item,
.module-item {
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  transition: .18s;
}

.nav-item .ic {
  width: 15px;
  color: currentColor;
  opacity: .7;
}

.nav-item.parent {
  color: #aeb8b4;
  font-weight: 500;
}

.nav-item.sub,
.module-item {
  padding-left: 34px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.module-list,
.nav-sub-list {
  margin: 0;
  gap: 0;
}

.nav-item:hover,
.module-item:hover,
.streamer-row:hover {
  color: var(--white);
  background: rgba(46, 229, 157, .06);
}

.nav-group.active {
  margin: 6px 2px;
  padding: 2px 0 6px;
  border: 1px solid rgba(46, 229, 157, .35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(46, 229, 157, .05), rgba(46, 229, 157, .01));
  box-shadow: 0 0 0 1px rgba(46, 229, 157, .06), 0 0 24px rgba(46, 229, 157, .07);
}

.nav-group.active .nav-label {
  color: var(--green);
}

.nav-group.active .nav-label::before {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.nav-group.active .nav-item.parent {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #aeb8b4;
  font-weight: 500;
}

.nav-item.current,
.module-item.current,
.module-item.active,
.page-item.current {
  position: relative;
  border-color: transparent;
  background: linear-gradient(90deg, rgba(46, 229, 157, .16), rgba(46, 229, 157, .02));
  box-shadow: none;
  color: var(--green-bright);
  font-weight: 500;
}

.nav-item.current::before,
.module-item.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.storage {
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
}

.storage-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.storage-h b {
  color: var(--green);
  font-weight: 500;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
}

.bar i {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--violet));
  box-shadow: 0 0 8px rgba(46, 229, 157, .5);
}

.ver {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.ver::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.topbar {
  height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 10, .72);
  backdrop-filter: blur(10px);
}

.crumb,
.slash {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.crumb b {
  color: var(--green);
  font-weight: 500;
}

.slash {
  color: var(--violet);
  opacity: .7;
}

.user {
  color: #cfd8d4;
  font-size: 13px;
}

.av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--violet), #5b48a8);
  box-shadow: 0 0 12px rgba(167, 139, 250, .4);
  font-family: var(--disp);
}

.logout {
  height: auto;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.logout:hover {
  border-color: rgba(46, 229, 157, .4);
  color: var(--green);
}

.content {
  padding: 26px 28px 40px;
  background: transparent;
}

#conversionView {
  --card: rgba(12, 19, 16, .85);
  --line: rgba(46, 229, 157, .14);
  --text-1: var(--white);
  --text-2: var(--muted);
  --text-3: var(--muted-2);
  --brand: var(--green);
  --brand-dark: var(--green-bright);
  --brand-light: var(--green-bright);
  --brand-soft: rgba(46, 229, 157, .12);
  gap: 22px;
}

#conversionView .hero {
  min-height: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(14, 23, 20, .9), rgba(10, 15, 13, .7));
  box-shadow: none;
}

#conversionView .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(500px 200px at 0% 0%, rgba(46, 229, 157, .12), transparent 60%);
}

#conversionView .corner {
  display: block;
  width: 16px;
  height: 16px;
  border-color: var(--green);
  opacity: .55;
}

#conversionView .corner.tl,
#conversionView .corner.tr,
#conversionView .corner.bl,
#conversionView .corner.br {
  border-width: 1.5px;
}

#conversionView .seal {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(46, 229, 157, .4);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(46, 229, 157, .2), rgba(46, 229, 157, .04));
  box-shadow: inset 0 0 18px rgba(46, 229, 157, .15), 0 0 22px rgba(46, 229, 157, .12);
  color: var(--green-bright);
  font-family: var(--disp);
  font-size: 24px;
}

#conversionView .hero h1 {
  margin-bottom: 7px;
  color: var(--white);
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 700;
}

#conversionView .hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#conversionView .hero-r {
  gap: 12px;
}

#conversionView .stat {
  min-width: 88px;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(0, 0, 0, .25);
  box-shadow: none;
}

#conversionView .stat .k {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

#conversionView .stat .v,
#conversionView .stat.violet .v {
  margin-top: 5px;
  color: var(--green);
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
}

#conversionView .stat.violet .v {
  color: var(--violet);
}

#conversionView .grid {
  grid-template-columns: 1fr .86fr;
  gap: 22px;
  align-items: start;
}

#conversionView .panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 19, 16, .85), rgba(8, 12, 10, .8));
  box-shadow: none;
}

#conversionView .input-panel,
#conversionView .result-panel {
  min-height: auto;
  max-height: none;
  overflow: hidden;
}

#conversionView .panel-head,
#conversionView .sol-head {
  min-height: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

#conversionView .panel-head .tag,
#conversionView .sol-head .tag {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--green);
  color: #04150e;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

#conversionView .panel-head .tag.v,
#conversionView .sol-head .tag.v {
  background: var(--violet);
  color: #1b1340;
}

#conversionView .panel-head .en {
  display: block;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
}

#conversionView .panel-head h2,
#conversionView .sol-head h2 {
  color: var(--white);
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 600;
}

#conversionView .panel-body {
  padding: 20px 22px 24px;
}

#conversionView .complete {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

#conversionView .complete-top {
  margin-bottom: 9px;
}

#conversionView .complete-top .lab {
  color: #b6c2bd;
  font-size: 12.5px;
}

#conversionView .complete-top .pct {
  color: var(--green-bright);
  font-family: var(--disp);
  font-size: 18px;
  text-shadow: 0 0 14px rgba(46, 229, 157, .5);
}

#conversionView .pbar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
}

#conversionView .pbar i {
  background: linear-gradient(90deg, var(--green-dim), var(--green), var(--green-bright));
  box-shadow: 0 0 12px rgba(46, 229, 157, .6);
}

#conversionView .complete .hint,
#conversionView .hint {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.5;
}

#conversionView .section-title {
  gap: 8px;
  margin: 6px 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

#conversionView .section-title::before {
  display: none;
}

#conversionView .section-title::after {
  background: linear-gradient(90deg, rgba(46, 229, 157, .3), transparent);
}

#conversionView .form-grid {
  gap: 14px 18px;
}

#conversionView .field {
  gap: 7px;
}

#conversionView .field label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9fb0aa;
  font-size: 11.5px;
  font-weight: 500;
}

#conversionView .field label::before {
  content: "";
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--green);
  opacity: .6;
}

#conversionView .field .inp,
#conversionView .field textarea,
#conversionView .field select,
#conversionView .field input {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background-color: rgba(0, 0, 0, .35);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
}

#conversionView .field input,
#conversionView .field select,
#conversionView .field .inp {
  height: 42px;
  padding: 0 13px;
}

#conversionView .field textarea {
  min-height: 96px;
  padding: 11px 13px;
  line-height: 1.6;
}

#conversionView .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232EE59D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 12px;
}

#conversionView .field .inp:focus,
#conversionView .field textarea:focus,
#conversionView .field select:focus,
#conversionView .field input:focus {
  border-color: rgba(46, 229, 157, .5);
  box-shadow: 0 0 0 3px rgba(46, 229, 157, .08);
}

#conversionView .uploads {
  gap: 13px;
  margin-top: 6px;
}

#conversionView .upload {
  padding: 14px;
  border: 1px dashed rgba(46, 229, 157, .28);
  border-radius: 11px;
  background: rgba(46, 229, 157, .025);
  transition: .18s;
}

#conversionView .upload:hover {
  border-color: rgba(46, 229, 157, .55);
  background: rgba(46, 229, 157, .05);
}

#conversionView .upload .ut {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}

#conversionView .upload .plus {
  color: var(--green);
  font-family: var(--disp);
  font-size: 16px;
}

#conversionView .upload .uf,
#conversionView .upload .uf.empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

#conversionView .upload .uf.empty {
  color: var(--muted-2);
}

#conversionView .upload .clr {
  color: var(--violet);
}

#conversionView .actions {
  gap: 12px;
  margin-top: 24px;
}

#conversionView .djsbtn {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 600;
  transition: .18s;
}

#conversionView .djsbtn.primary {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: #04150e;
  box-shadow: 0 0 22px rgba(46, 229, 157, .3);
}

#conversionView .djsbtn.primary:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(46, 229, 157, .5);
  transform: translateY(-1px);
}

#conversionView .djsbtn.violet,
#conversionView .djsbtn.busy {
  background: linear-gradient(135deg, rgba(167, 139, 250, .9), #6b54bd);
  color: #fff;
  box-shadow: 0 0 22px rgba(167, 139, 250, .3);
}

#conversionView .djsbtn.busy {
  position: relative;
  overflow: hidden;
}

#conversionView .djsbtn.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25), transparent 70%);
  animation: sweep 1.6s linear infinite;
}

#conversionView .djsbtn.ghost {
  border-color: var(--line);
  background: transparent;
  color: #b6c2bd;
}

#conversionView .djsbtn.ghost:hover:not(:disabled) {
  border-color: rgba(46, 229, 157, .5);
  color: var(--green);
}

#conversionView .md-export {
  min-height: 0;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

#conversionView .md-export::before {
  content: "↳";
  margin-right: 7px;
  color: var(--green);
}

#conversionView .md-export:hover:not(:disabled) {
  color: var(--green);
}

#conversionView .live {
  min-height: 0;
  padding: 4px 11px;
  border: 1px solid rgba(46, 229, 157, .35);
  border-radius: 20px;
  background: rgba(46, 229, 157, .06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

#conversionView .live .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

#conversionView .live.idle,
#conversionView .live.done,
#conversionView .live.loading {
  border-color: rgba(46, 229, 157, .35);
  background: rgba(46, 229, 157, .06);
  color: var(--green);
}

#conversionView .sol-sub {
  padding: 14px 22px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

#conversionView .chips {
  gap: 9px;
  padding: 12px 22px 18px;
  border: 0;
  background: transparent;
}

#conversionView .chip {
  min-height: 0;
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(0, 0, 0, .25);
  color: #9fb0aa;
  font-family: var(--mono);
  font-size: 10px;
}

#conversionView .chip b {
  color: var(--green);
  font-weight: 500;
}

#conversionView #resultContent {
  min-height: 0;
  padding: 0 22px 24px;
}

#conversionView .empty-result,
#conversionView .loading-result {
  min-height: 420px;
  color: var(--muted);
}

#conversionView .loading-hero,
#conversionView .gen-card {
  border: 1px solid rgba(167, 139, 250, .25);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(167, 139, 250, .07), rgba(46, 229, 157, .02));
}

#conversionView .empty-card {
  margin: 0 auto;
}

#conversionView .empty-mark {
  border: 1px solid rgba(46, 229, 157, .4);
  background: linear-gradient(145deg, rgba(46, 229, 157, .2), rgba(46, 229, 157, .04));
  color: var(--green-bright);
}

#conversionView .loading-spinner,
#conversionView .spin {
  width: 42px;
  height: 42px;
  border: 2.5px solid rgba(46, 229, 157, .15);
  border-top-color: var(--green);
  border-right-color: var(--violet);
}

#conversionView .loading-spinner span,
#conversionView .spin span {
  color: var(--green);
  font-family: var(--disp);
}

#conversionView .loading-hero h3,
#conversionView .gt,
#conversionView .empty-result h3 {
  color: var(--white);
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
}

#conversionView .loading-hero p,
#conversionView .gp,
#conversionView .empty-result p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

#conversionView .skeleton,
#conversionView .loading-grid {
  gap: 18px;
  margin-top: 20px;
}

#conversionView .skeleton-line,
#conversionView .skeleton-title,
#conversionView .sk-line {
  background: linear-gradient(90deg, rgba(46, 229, 157, .1), rgba(46, 229, 157, .04), rgba(46, 229, 157, .1));
  background-size: 200% 100%;
}

#conversionView .skeleton-title,
#conversionView .sk-line.title {
  background: linear-gradient(90deg, rgba(167, 139, 250, .18), rgba(167, 139, 250, .06), rgba(167, 139, 250, .18));
  background-size: 200% 100%;
}

#conversionView .result-summary,
#conversionView .result-card {
  border: 1px solid rgba(46, 229, 157, .16);
  background: rgba(7, 24, 17, .72);
}

#conversionView .result-summary {
  padding: 18px;
}

#conversionView .score-ring {
  background: conic-gradient(var(--green) 0 75%, rgba(255, 255, 255, .08) 75% 100%);
}

#conversionView .score-ring > div {
  background: #07100c;
}

#conversionView .score-ring b,
#conversionView .summary-tags span,
#conversionView .result-line-label,
#conversionView .result-card-index {
  color: var(--green);
}

#conversionView .summary-copy h3,
#conversionView .result-card h3 {
  color: var(--white);
  font-family: var(--disp);
}

#conversionView .summary-copy p,
#conversionView .result-line,
#conversionView .result-line-text,
#conversionView .raw-lines {
  color: #b6c2bd;
}

#conversionView .summary-tags span,
#conversionView .result-line-label,
#conversionView .result-card-index {
  background: rgba(46, 229, 157, .12);
}

#conversionView .result-card {
  border-top: 1px solid rgba(46, 229, 157, .35);
}

#conversionView .result-line::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 229, 157, .45);
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

@media (max-width: 1180px) {
  #conversionView .grid {
    grid-template-columns: 1fr;
  }
}

/* Live overview page: command-console web adaptation. */
.live-overview {
  display: grid;
  gap: 18px;
}

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

.live-metric-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-color: rgba(46, 229, 157, .14);
  background: linear-gradient(135deg, rgba(12, 19, 16, .86), rgba(8, 12, 10, .78));
}

.metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 229, 157, .22);
  border-radius: 13px;
  background: rgba(46, 229, 157, .08);
  box-shadow: inset 0 0 18px rgba(46, 229, 157, .08);
  color: var(--green);
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 700;
}

.metric-icon.amber {
  border-color: rgba(255, 208, 138, .22);
  background: rgba(255, 208, 138, .08);
  color: #ffd08a;
}

.metric-icon.gold {
  border-color: rgba(245, 201, 107, .26);
  background: rgba(245, 201, 107, .08);
  color: #f5c96b;
}

.live-metric-card small {
  color: var(--muted);
  font-size: 12px;
}

.live-metric-card b {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-family: var(--disp);
  font-size: 28px;
}

.live-overview-panel {
  overflow: hidden;
}

.live-panel-top {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.live-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
}

.live-tabs button {
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.live-tabs button.active {
  background: rgba(46, 229, 157, .14);
  color: var(--green-bright);
}

.live-tabs b {
  margin-left: 6px;
  color: var(--green);
  font-family: var(--mono);
}

.live-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.live-search {
  flex: 0 1 260px;
}

.console-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb8b4;
  font-size: 12.5px;
  cursor: pointer;
}

.console-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.console-radio span {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
}

.console-radio input:checked + span {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #07100c, 0 0 12px rgba(46, 229, 157, .36);
}

.live-record-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #ff6b6b, #9b2d36) !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(255, 95, 108, .24) !important;
}

.record-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

.live-select {
  flex: 0 0 92px;
}

.live-category {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
  color: #b6c2bd;
  font-size: 12px;
}

.live-category span {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--green);
}

.live-room-table th {
  background: rgba(255, 255, 255, .025);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.live-room-table td {
  height: 72px;
  vertical-align: middle;
}

.room-cell {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 229, 157, .24);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(46, 229, 157, .28), rgba(46, 229, 157, .08));
  box-shadow: 0 0 18px rgba(46, 229, 157, .14);
  color: var(--green-bright);
  font-weight: 900;
}

.room-cell b {
  color: var(--white);
}

.room-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.room-tags em {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(46, 229, 157, .1);
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.room-tags em:nth-child(2) {
  background: rgba(245, 201, 107, .1);
  color: #f5c96b;
}

.console-switch {
  width: 42px;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.console-switch span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #9ba7a1;
  transition: .18s;
}

.console-switch.on {
  border-color: rgba(245, 201, 107, .45);
  background: linear-gradient(135deg, rgba(245, 201, 107, .22), rgba(46, 229, 157, .1));
}

.console-switch.on span {
  transform: translateX(18px);
  background: #f5c96b;
  box-shadow: 0 0 12px rgba(245, 201, 107, .45);
}

.mono-count {
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
}

.live-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.live-actions a,
.live-room-table a {
  color: #f5c96b;
  font-weight: 800;
  cursor: pointer;
}

.live-actions a.secondary {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .live-metric-grid {
    grid-template-columns: 1fr;
  }

  .live-toolbar {
    align-items: flex-start;
  }

  .live-record-btn {
    margin-left: 0;
  }
}
