:root {
  color-scheme: light;
  --bg: #08162a;
  --panel: #12243f;
  --text: #eef6ff;
  --muted: #9fb1ca;
  --line: rgba(133, 158, 205, 0.24);
  --primary: #6957ff;
  --primary-dark: #5142dd;
  --danger: #b91c1c;
  --blue: #36a3ff;
  --amber: #f6c75d;
  --cyan: #42f2d0;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(72, 93, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #071224 0%, #0b1830 100%);
}

.hidden {
  display: none !important;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

button.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

button.primary:hover {
  background: var(--primary-dark);
}

button.danger {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

button.danger.wide {
  margin-top: 10px;
}

.wide {
  width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.3;
}

h2 {
  font-size: 17px;
  line-height: 1.35;
}

p,
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.login-view {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 28px 18px 80px;
  color: #101827;
  background: linear-gradient(180deg, #dff0ff 0%, #f7fbff 48%, #ffffff 100%);
}

.login-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(127, 159, 207, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(45, 88, 145, 0.13);
}

.login-hero {
  padding: 28px 18px;
  background:
    radial-gradient(circle at right top, rgba(93, 213, 143, 0.18), transparent 42%),
    linear-gradient(135deg, #eaf2ff 0%, #e9faee 100%);
}

.login-hero > span {
  display: inline-flex;
  border: 1px solid rgba(61, 116, 246, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  color: #1c3fa8;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.login-hero h1 {
  margin-top: 18px;
  color: #101827;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.login-hero p {
  margin-top: 12px;
  color: #637083;
}

.login-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.login-tags em {
  border: 1px solid rgba(96, 125, 168, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #172033;
  background: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 18px 0;
  border-radius: 11px;
  padding: 4px;
  background: #edf3fb;
}

.login-tabs button {
  min-height: 30px;
  border: 0;
  color: #5e6d80;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.login-tabs button.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 6px 14px rgba(31, 64, 113, 0.1);
}

.login-panel {
  display: grid;
  gap: 10px;
  padding: 20px 18px 14px;
}

.login-panel input {
  min-height: 34px;
  color: #111827;
  border: 1px solid rgba(96, 125, 168, 0.24);
  background: #fff;
}

.remember-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #56657a;
  font-size: 13px;
}

.remember-line input {
  width: 15px;
  min-height: 15px;
  accent-color: #3d74f6;
}

.login-foot {
  padding: 0 18px 18px;
  color: #8794a7;
}

.member-panel {
  display: grid;
  gap: 12px;
  max-height: min(60vh, 560px);
  overflow-y: auto;
  padding: 18px;
}

.member-card {
  border: 1px solid rgba(96, 125, 168, 0.22);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(45, 88, 145, 0.08);
}

.member-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(96, 125, 168, 0.18);
  padding: 13px 14px;
}

.member-card h2 {
  color: #2e3440;
  font-size: 16px;
  font-weight: 500;
}

.member-card header span {
  border: 1px solid #53d54f;
  border-radius: 3px;
  padding: 2px 5px;
  color: #26ba23;
  font-size: 13px;
}

.member-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px 18px 12px;
}

.member-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-card dt {
  position: relative;
  color: #3b4250;
  font-size: 15px;
}

.member-card dt::before {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  margin-right: 7px;
  border: 1px solid #50df4d;
  border-radius: 999px;
  color: #50df4d;
  content: "✓";
  font-size: 12px;
}

.member-card dd {
  margin: 0;
  color: #2d333d;
  text-align: right;
}

.member-card dd strong {
  font-size: 23px;
}

.member-card del {
  margin-left: 8px;
  color: #9aa5b3;
  font-weight: 800;
}

.buy-member {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  border: 0;
  color: #fff;
  background: #a64ff0;
  font-weight: 800;
}

.purchase-card {
  width: min(340px, 100%);
  border-radius: 14px;
  padding: 20px;
  color: #111827;
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
}

.purchase-card h2 {
  color: #111827;
}

.purchase-card p {
  margin-top: 6px;
  color: #5f6f86;
}

.purchase-contact {
  margin: 16px 0;
  border: 1px solid rgba(96, 125, 168, 0.22);
  border-radius: 8px;
  padding: 12px;
  color: #102033;
  background: #f8fbff;
  white-space: pre-wrap;
}

.error-text {
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand.compact {
  margin-bottom: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  font-weight: 700;
}

.mobile-app {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  padding-bottom: 76px;
  background: linear-gradient(180deg, #e8f4ff 0%, #f7fbff 45%, #ffffff 100%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  padding: 12px 14px;
  background: rgba(7, 18, 36, 0.96);
  backdrop-filter: blur(10px);
}

.header-actions {
  flex: 0 0 auto;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-content {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 14px;
  overflow-x: hidden;
}

.home-top {
  position: static;
  border-bottom: 0;
  padding: 28px 14px 10px;
  color: #1c3fa8;
  background: transparent;
  backdrop-filter: none;
}

.home-top h1 {
  font-size: 27px;
  font-weight: 800;
}

.home-top p {
  color: #66728a;
  font-size: 13px;
}

.home-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
  padding: 9px 13px;
  color: #1a2638;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(37, 71, 120, 0.12);
  font-size: 13px;
  white-space: nowrap;
}

.home-status::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #24c27a;
  content: "";
}

[data-panel="live"].tab-panel.active {
  gap: 12px;
}

.tutorial-card,
.live-start-card,
.home-card {
  width: 100%;
  border: 0;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 18px 28px rgba(45, 88, 145, 0.12);
}

.tutorial-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 18px 16px;
  color: #fff;
  background: #2ec96f;
}

.tutorial-card h2 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}

.tutorial-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
}

.tutorial-card span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.home-section {
  display: grid;
  gap: 10px;
}

.home-notice {
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
  line-height: 1.5;
}

.home-section > h2 {
  position: relative;
  padding-left: 12px;
  color: #1b2a41;
  font-size: 18px;
  font-weight: 800;
}

.home-section > h2::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 24px;
  border-radius: 8px;
  background: #3a72ff;
  content: "";
}

.live-start-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 20px 16px;
  color: #fff;
  background: #3d74f6;
}

.live-start-card strong {
  display: block;
  font-size: 35px;
  line-height: 1.05;
  font-weight: 900;
}

.live-start-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
}

.live-start-card em {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  padding: 5px 12px;
  color: #3d74f6;
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.live-start-card i {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  color: #fff;
  font-size: 28px;
  font-style: normal;
}

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

.home-card {
  position: relative;
  min-height: 92px;
  padding: 16px 42px 14px 12px;
  color: #24344c;
  background: #f1f7ff;
}

.home-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 900;
}

.home-card span {
  display: block;
  margin-top: 8px;
  color: #6b7a91;
  font-size: 12px;
}

.home-card i {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #ff9819;
  font-size: 29px;
  font-style: normal;
}

.compact-panel {
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.section-title {
  display: grid;
  gap: 4px;
  padding: 4px 2px;
}

.panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(20, 39, 70, 0.98), rgba(13, 30, 58, 0.98));
  box-shadow: var(--shadow);
}

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

.panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panel-actions button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #c9d8f0;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--text);
  background: rgba(6, 18, 36, 0.72);
  outline: none;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.button-row.two {
  grid-template-columns: 1fr 1fr;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

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

.status-strip > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 18, 36, 0.6);
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip strong {
  margin-bottom: 4px;
  font-size: 13px;
}

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

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin: 0;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.18s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s ease;
}

.switch input:checked + span {
  background: var(--primary);
}

.switch input:checked + span::before {
  transform: translateX(20px);
}

.timeline-panel {
  min-height: calc(100vh - 188px);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
}

.event {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(9, 23, 45, 0.82);
}

.event.chat {
  border-left: 4px solid var(--blue);
}

.event.reply {
  border-left: 4px solid var(--primary);
  background: rgba(16, 185, 129, 0.12);
}

.event.script {
  border-left: 4px solid var(--amber);
  background: rgba(246, 199, 93, 0.12);
}

.event.gift {
  border-left: 4px solid #9333ea;
  background: rgba(147, 51, 234, 0.12);
}

.event.like {
  border-left: 4px solid #db2777;
  background: rgba(219, 39, 119, 0.12);
}

.event.member,
.event.social {
  border-left: 4px solid #0891b2;
  background: rgba(8, 145, 178, 0.12);
}

.event.stats {
  border-left: 4px solid #64748b;
}

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

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.event-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-time {
  flex: 0 0 auto;
}

.event-content {
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rules {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.script-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
}

.script-types button {
  min-height: 38px;
  padding: 0 8px;
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.24);
  background: #ecfdf5;
}

.rule-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 18, 36, 0.58);
}

.rule-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rule-toolbar input {
  font-weight: 700;
}

.rule-toolbar button {
  min-width: 40px;
  padding: 0 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.check-row input {
  width: auto;
}

.script-result {
  min-height: 106px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  line-height: 1.65;
  background: rgba(6, 18, 36, 0.58);
  white-space: pre-wrap;
}

.file-line input {
  padding: 8px;
}

.voice-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.voice-select-status {
  margin: 10px 0 0;
  border: 1px solid rgba(66, 242, 208, 0.26);
  border-radius: 8px;
  padding: 9px 10px;
  color: #42f2d0;
  background: rgba(66, 242, 208, 0.08);
  font-size: 13px;
}

.voice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 18, 36, 0.48);
  cursor: pointer;
}

.voice-item.active {
  border-color: rgba(66, 242, 208, 0.55);
  box-shadow: 0 0 0 1px rgba(66, 242, 208, 0.2);
}

.voice-item strong,
.voice-item span {
  display: block;
}

.voice-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.voice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.voice-actions button {
  min-height: 30px;
  min-width: 58px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.voice-actions [data-select-voice] {
  color: #fff;
  border-color: rgba(105, 87, 255, 0.48);
  background: rgba(105, 87, 255, 0.5);
}

.voice-item.active .voice-actions [data-select-voice] {
  color: #08162a;
  border-color: rgba(66, 242, 208, 0.7);
  background: var(--cyan);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7, 18, 36, 0.98);
  box-shadow: 0 -10px 22px rgba(23, 32, 51, 0.08);
}

.bottom-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.bottom-nav button.active {
  color: #fff;
  background: var(--primary);
}

.home-nav {
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  border-top: 1px solid #dbe7f6;
  padding: 9px 22px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 26px rgba(38, 68, 112, 0.1);
}

.home-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 54px;
  color: #a8b3c4;
  border: 0;
  background: transparent;
  font-size: 23px;
  font-weight: 700;
}

.home-nav button span {
  font-size: 13px;
}

.home-nav button.active {
  color: #3d74f6;
  background: transparent;
}

.home-nav .nav-live {
  width: 64px;
  height: 64px;
  min-height: 64px;
  justify-self: center;
  border-radius: 999px;
  color: #fff;
  background: #3d74f6;
  box-shadow: 0 14px 24px rgba(61, 116, 246, 0.36);
  font-size: 31px;
}

.mine-card p {
  margin: 0;
  color: #5f6f86;
}

.mine-card,
.mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: #102033;
  background: rgba(255, 255, 255, 0.84);
}

.mine-card strong {
  display: inline-block;
  margin-right: 10px;
  color: #102033;
  font-size: 18px;
}

.mine-card button {
  min-width: 96px;
  color: #1a2638;
  border-color: rgba(96, 125, 168, 0.28);
  background: #f8fbff;
}

.mine-row strong {
  color: #102033;
}

.mine-row span {
  color: #536780;
  text-align: right;
}

@media (min-width: 760px) {
  .mobile-app {
    padding-bottom: 86px;
  }

  .app-header {
    padding-right: max(24px, calc((100vw - 960px) / 2));
    padding-left: max(24px, calc((100vw - 960px) / 2));
  }

  .tab-panel.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  [data-panel="live"].tab-panel.active {
    grid-template-columns: 1fr;
  }

  .section-title {
    grid-column: 1 / -1;
  }

  [data-panel="monitor"].tab-panel.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .switch-row {
    justify-content: space-between;
    width: 100%;
  }

  .button-row,
  .button-row.two,
  .mini-row,
  .status-strip,
  .live-strip {
    grid-template-columns: 1fr;
  }

  .voice-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .strategy-grid label {
    grid-template-columns: auto 58px 1fr;
    font-size: 13px;
  }

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

  .timeline {
    min-height: 360px;
    max-height: calc(100vh - 245px);
  }

  .event-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

.back-btn {
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.pill {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(105, 87, 255, 0.35);
  border-radius: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(105, 87, 255, 0.25), rgba(20, 184, 166, 0.08)),
    rgba(12, 28, 55, 0.9);
  box-shadow: var(--shadow);
}

.hero-card p {
  color: var(--cyan);
}

.hero-card span {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.project-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mode {
  min-height: 48px;
  border-color: rgba(105, 87, 255, 0.5);
  color: #dbeafe;
}

.mode.active {
  color: #fff;
  background: rgba(105, 87, 255, 0.42);
}

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

.script-types button {
  color: #dbeafe;
  border-color: rgba(105, 87, 255, 0.5);
  background: rgba(105, 87, 255, 0.12);
}

.script-types button.active {
  color: #fff;
  background: rgba(105, 87, 255, 0.46);
}

.script-list {
  display: grid;
  gap: 10px;
}

.script-list.empty {
  color: var(--muted);
  line-height: 1.6;
}

.script-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 18, 36, 0.58);
  line-height: 1.65;
}

.script-index {
  color: var(--cyan);
  font-size: 13px;
}

.script-item button {
  justify-self: end;
  min-height: 32px;
  color: #fff;
  background: rgba(54, 163, 255, 0.22);
}

.apply-row {
  margin-top: 12px;
}

.voice-card {
  border-color: rgba(66, 242, 208, 0.24);
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.54);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  width: min(360px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(105, 87, 255, 0.45);
  border-radius: 14px;
  padding: 16px;
  background: #10203d;
  box-shadow: var(--shadow);
}

body.modal-open {
  overflow: hidden;
}

.tutorial-text {
  color: #dbeafe;
  font-size: 14px;
}

.tutorial-link {
  display: block;
  margin-top: 14px;
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  background: var(--primary);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.card-switch {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(6, 18, 36, 0.5);
}

.strategy-panel h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.strategy-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.strategy-grid label {
  display: grid;
  grid-template-columns: auto 60px 1fr;
  align-items: center;
  gap: 8px;
  color: #e9f2ff;
  font-size: 14px;
}

.strategy-grid input {
  min-height: 44px;
  padding: 0 8px;
  text-align: center;
}

.strategy-grid select {
  grid-column: 2 / 4;
}
