:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0c1222;
  --surface: rgba(13, 19, 35, 0.84);
  --surface-strong: rgba(17, 25, 45, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(143, 171, 255, 0.28);
  --text: #f8fbff;
  --muted: #93a4bd;
  --muted-2: #c7d2e5;
  --primary: #7c5cff;
  --primary-dark: #5637d8;
  --primary-soft: rgba(124, 92, 255, 0.16);
  --cyan: #34d5ff;
  --blue: #4f8cff;
  --green: #36e4a6;
  --red: #ff5f7a;
  --gold: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --glow: 0 0 32px rgba(76, 201, 240, 0.22);
  --radius: 22px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-2: #eef3ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(22, 32, 58, 0.055);
  --soft: rgba(40, 56, 98, 0.06);
  --line: rgba(44, 62, 106, 0.13);
  --line-strong: rgba(92, 112, 196, 0.28);
  --text: #111827;
  --muted: #647089;
  --muted-2: #3e4b63;
  --primary: #5b5ff7;
  --primary-dark: #4147d8;
  --primary-soft: rgba(91, 95, 247, 0.12);
  --cyan: #0ea5e9;
  --blue: #2563eb;
  --green: #059669;
  --red: #e11d48;
  --gold: #d97706;
  --shadow: 0 24px 80px rgba(28, 39, 74, 0.14);
  --glow: 0 0 32px rgba(14, 165, 233, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(5, 8, 20, 0.92), rgba(12, 18, 34, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(124, 92, 255, 0.34), transparent 35%),
    radial-gradient(circle at 86% 10%, rgba(52, 213, 255, 0.24), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(54, 228, 166, 0.14), transparent 28%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 78%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

button {
  cursor: pointer;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(52, 213, 255, 0.26);
  outline-offset: 2px;
}

.bg-orbit {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.64;
  pointer-events: none;
}

.bg-orbit-one {
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(80, 120, 255, 0.45), transparent 62%);
}

.bg-orbit-two {
  bottom: -220px;
  left: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(30, 221, 178, 0.22), transparent 65%);
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 27, 50, 0.94), rgba(10, 15, 29, 0.9)),
    radial-gradient(circle at 18% 0%, rgba(124, 92, 255, 0.22), transparent 30%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.brand span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(52, 213, 255, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.62), transparent 28%);
  box-shadow: 0 18px 42px rgba(78, 118, 255, 0.3);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand span img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong {
  display: grid;
  gap: 3px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#nav {
  flex: 1;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
}

#nav::-webkit-scrollbar {
  width: 8px;
}

#nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.38);
}

.nav-group {
  margin-bottom: 16px;
}

.nav-group-title {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px 8px;
  color: #7e8aa6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-group-title .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  gap: 11px;
  align-items: center;
  margin-bottom: 6px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #aab7cc;
  text-align: left;
}

.nav-item::after {
  position: absolute;
  inset: 8px 10px auto auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.nav-item span:not(.icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item .icon {
  color: #7282a3;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.nav-item:hover .icon,
.nav-item.active .icon {
  color: var(--cyan);
}

.nav-item.active {
  border-color: rgba(124, 92, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(52, 213, 255, 0.12)),
    rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 34px rgba(42, 56, 130, 0.18);
}

.nav-item.active::after {
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.account {
  margin: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.account div {
  font-weight: 900;
}

.account button {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-weight: 800;
}

main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 17, 31, 0.74);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
}

.topbar p,
.topbar h1 {
  margin: 0;
}

.topbar p {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.topbar h1 {
  margin-top: 4px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.top-actions,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#points {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

#points .icon {
  color: var(--gold);
}

.view {
  padding: 22px 0 30px;
}

.site-footer {
  display: flex;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-footer span {
  display: inline-flex;
  align-items: center;
}

.site-footer span + span::before {
  width: 4px;
  height: 4px;
  margin-right: 18px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(52, 213, 255, 0.45);
  content: "";
}

.wechat-support {
  position: fixed;
  right: 28px;
  bottom: 30px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 14px;
}

.wechat-support-fab {
  position: relative;
  display: inline-flex;
  min-width: 168px;
  min-height: 62px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0 24px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(52, 213, 255, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 35%, rgba(54, 228, 166, 0.26), transparent 26%),
    linear-gradient(135deg, rgba(19, 104, 128, 0.92), rgba(28, 56, 120, 0.92));
  box-shadow: 0 18px 46px rgba(13, 49, 98, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: #fff;
  font-weight: 950;
  backdrop-filter: blur(18px);
}

.wechat-support-fab::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  content: "";
}

.wechat-support-fab:hover::before {
  transform: translateX(120%);
}

.wechat-support-fab-icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 139, 112, 0.98), rgba(24, 194, 126, 0.94));
  box-shadow: 0 10px 26px rgba(30, 221, 178, 0.28);
  color: #fff;
  font-size: 18px;
}

.wechat-support-fab strong {
  position: relative;
  letter-spacing: 0.02em;
}

.wechat-support-fab i {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(54, 228, 166, 0.12), 0 0 18px rgba(54, 228, 166, 0.78);
}

.wechat-support-panel {
  width: 322px;
  padding: 20px;
  border: 1px solid rgba(165, 180, 206, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(5, 10, 28, 0.28);
  color: #1f2937;
  transform-origin: right bottom;
  animation: wechatPanelIn 0.2s ease both;
}

.wechat-support-panel[hidden] {
  display: none;
}

.wechat-support-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.wechat-support-head strong {
  color: #111827;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.wechat-support-head button {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 20px;
}

.wechat-support-qr {
  display: grid;
  width: 192px;
  height: 192px;
  place-items: center;
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px dashed #d4dbe8;
  border-radius: 22px;
  background: #f8fafc;
}

.wechat-support-qr img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
}

.wechat-support-tip {
  margin: 0 0 14px;
  color: #49b92d;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.wechat-support-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid #eef1f6;
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wechat-support-phone::before {
  content: "📞";
}

.wechat-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wechat-support-direct,
.wechat-support-secondary {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font-weight: 950;
}

.wechat-support-direct {
  background: linear-gradient(135deg, #49c526, #35b51f);
  box-shadow: 0 12px 28px rgba(73, 197, 38, 0.24);
  color: #fff;
}

.wechat-support-direct::before {
  margin-right: 6px;
  content: "💬";
}

.wechat-support-secondary {
  background: #f2f4f8;
  color: #536072;
}

@keyframes wechatPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero {
  display: block;
}

.hero-main,
.panel,
.tool-card,
.work-card,
.result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-main::before,
.panel::before,
.tool-card::before,
.work-card::before,
.result-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 28%, rgba(52, 213, 255, 0.04));
}

.hero-main > *,
.panel > *,
.tool-card > *,
.work-card > *,
.result-card > * {
  position: relative;
  z-index: 1;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 28px;
  align-items: stretch;
  min-height: 420px;
  padding: 38px;
  border-color: rgba(124, 92, 255, 0.34);
  background:
    radial-gradient(circle at 76% 18%, rgba(52, 213, 255, 0.22), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(124, 92, 255, 0.27), transparent 36%),
    linear-gradient(135deg, rgba(24, 33, 64, 0.92), rgba(10, 15, 29, 0.94));
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.hero-main h2 {
  max-width: 660px;
  margin: 12px 0 0;
  font-size: clamp(40px, 3.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-main p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics div,
.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-metrics div {
  padding: 15px;
}

.hero-metrics span,
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-metrics strong,
.stat strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.hero-actions {
  margin-top: 28px;
}

.hero-console {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 80% 0%, rgba(52, 213, 255, 0.18), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.console-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.console-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.console-head strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.console-stack {
  display: grid;
  gap: 10px;
}

.console-stack article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.console-stack .icon {
  color: var(--cyan);
}

.console-stack span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

.console-stack strong {
  color: #fff;
  font-size: 18px;
}

.panel {
  padding: 22px;
}

.cockpit-panel {
  min-height: 420px;
}

.profile-orb,
.card-icon {
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(52, 213, 255, 0.72));
  box-shadow: 0 18px 42px rgba(69, 112, 255, 0.26);
}

.profile-orb {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.cockpit-panel h3,
.panel h2,
.tool-card h3,
.result-card h3,
.work-card h3 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.04em;
}

.cockpit-panel p,
.panel p,
.tool-card p,
.result-card p,
.work-card p {
  color: var(--muted);
}

.section {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  margin-top: 6px;
  font-size: 26px;
}

.section-head p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  position: relative;
  padding: 14px;
}

.stat .icon {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(52, 213, 255, 0.72);
}

.tool-card {
  min-height: 250px;
  padding: 20px;
}

.tool-card:hover,
.work-card:hover,
.result-card:hover,
.panel:hover {
  border-color: var(--line-strong);
}

.tool-card h3,
.tool-card p {
  margin: 0;
}

.tool-card p {
  margin-top: 10px;
  min-height: 54px;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #b7c5da;
  font-size: 12px;
  font-weight: 800;
}

.tag.mvp {
  border-color: rgba(54, 228, 166, 0.28);
  background: rgba(54, 228, 166, 0.12);
  color: var(--green);
}

.tag.phase2 {
  border-color: rgba(52, 213, 255, 0.25);
  background: rgba(52, 213, 255, 0.11);
  color: var(--cyan);
}

.primary,
.ghost,
.danger,
.plain,
.star {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 900;
}

.primary {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: 0 14px 36px rgba(72, 108, 255, 0.26);
}

.primary:hover {
  box-shadow: 0 18px 46px rgba(72, 108, 255, 0.38);
}

.ghost {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.062);
  color: #e9f0ff;
}

.danger {
  padding: 0 16px;
  border: 1px solid rgba(255, 95, 122, 0.3);
  background: rgba(255, 95, 122, 0.12);
  color: #ff96aa;
}

.plain {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  text-decoration: none;
}

.plain .icon {
  width: 16px;
  height: 16px;
}

.star {
  display: grid;
  width: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #71809b;
}

.star.on {
  border-color: rgba(255, 209, 102, 0.48);
  background: rgba(255, 209, 102, 0.14);
  color: var(--gold);
}

.studio {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 18px;
}

.tool-list {
  position: sticky;
  top: 126px;
  display: grid;
  max-height: calc(100vh - 150px);
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 35, 0.74);
  backdrop-filter: blur(22px);
}

.tool-list-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 8px 14px;
  border-bottom: 1px solid var(--line);
}

.tool-list-head > .icon {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

.tool-list-head strong,
.tool-list-head span {
  display: block;
}

.tool-list-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.tool-list button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
}

.tool-list button > .icon {
  grid-row: span 2;
  margin-top: 2px;
  color: #7e90b5;
}

.tool-list button.active {
  border-color: rgba(52, 213, 255, 0.36);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(52, 213, 255, 0.12));
  box-shadow: var(--glow);
}

.tool-list button.active > .icon {
  color: var(--cyan);
}

.tool-list span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #d6e1f4;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 14px;
}

select option {
  color: #0b1220;
}

textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
  color: #71809b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(52, 213, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(52, 213, 255, 0.12);
}

.result-card,
.work-card {
  margin-bottom: 12px;
  padding: 16px;
}

.result-card h3,
.work-card h3 {
  margin: 0 0 8px;
}

.result-card p,
.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.result-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #b7c5da;
  line-height: 1.85;
}

.result-card h4,
.tool-card h4 {
  margin: 14px 0 8px;
  color: #fff;
}

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

.result-actions .small {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
}

.result-hint {
  color: var(--muted);
  font-size: 13px;
}

.prompt-action {
  max-width: 100%;
  border-radius: 999px;
  text-align: left;
}

.generated-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.generated-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}

.generated-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.generated-thumb span {
  display: block;
  overflow: hidden;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-thumb em {
  display: block;
  padding: 0 10px 10px;
  color: #ffb86b;
  font-size: 11px;
  font-style: normal;
}

.generated-thumb.is-live {
  border-color: rgba(54, 228, 166, 0.36);
  box-shadow: 0 16px 36px rgba(54, 228, 166, 0.12);
}

.generated-thumb.is-fallback {
  border-color: rgba(255, 184, 107, 0.34);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.album-page,
.batch-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.album-page p,
.batch-item p {
  margin-top: 6px;
}

.album-page small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.batch-item {
  margin-top: 10px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.coverage-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.coverage-card {
  min-height: 280px;
}

.coverage-tools {
  display: grid;
  gap: 9px;
}

.coverage-tools button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
}

.coverage-tools button:hover {
  border-color: rgba(52, 213, 255, 0.35);
  background: rgba(52, 213, 255, 0.09);
}

.timeline {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.timeline article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.timeline article p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.mini-group-title {
  margin: 16px 8px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tab-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.tab-strip button {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

.tab-strip button.active {
  border-color: rgba(52, 213, 255, 0.32);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(52, 213, 255, 0.12));
  color: var(--text);
  box-shadow: var(--glow);
}

.soft-panel {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(52, 213, 255, 0.05)),
    var(--surface);
}

.timeline.mini {
  margin-top: 10px;
}

.timeline.mini article {
  padding: 10px 12px;
}

.result-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.asset-preview {
  width: 100%;
  max-height: 170px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.image-tools-page .tool-list,
.growth-tools-page .tool-list {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.api-admin-panel {
  border-color: rgba(52, 213, 255, 0.24);
}

.api-service-card {
  min-height: 100%;
}

.api-service-card .timeline article {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.09), rgba(52, 213, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.switch-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
}

.switch-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #b7c5da;
  line-height: 1.95;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(500px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(13, 19, 35, 0.96);
  box-shadow: var(--shadow);
}

.auth-modal {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 92, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(52, 213, 255, 0.16), transparent 32%),
    rgba(13, 19, 35, 0.97);
}

.modal > div,
.modal form {
  padding: 20px;
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.modal-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.auth-modal .modal-head {
  align-items: flex-start;
  gap: 18px;
}

.auth-modal .modal-head h2 {
  margin: 0 0 7px;
  letter-spacing: -0.03em;
}

.auth-modal .modal-head p,
.auth-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 20px 0;
}

.auth-tabs button {
  flex: 1;
}

.auth-panel {
  display: grid;
  gap: 16px;
}

.auth-panel[hidden] {
  display: none;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.terms-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(52, 213, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(52, 213, 255, 0.08), rgba(124, 92, 255, 0.07)),
    rgba(255, 255, 255, 0.045);
}

.terms-box strong {
  color: var(--text);
  font-size: 15px;
}

.terms-box p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.75;
}

.terms-confirm {
  justify-content: flex-start;
  width: fit-content;
  margin-top: 2px;
  border-color: rgba(54, 228, 166, 0.28);
  background: rgba(54, 228, 166, 0.08);
  color: var(--muted-2);
}

.terms-confirm input:disabled {
  opacity: 0.45;
}

.auth-actions {
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  max-width: 380px;
  padding: 14px 16px;
  border: 1px solid rgba(52, 213, 255, 0.28);
  border-radius: 18px;
  background: rgba(13, 19, 35, 0.95);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


:root[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.96), rgba(234, 241, 255, 0.94)),
    radial-gradient(circle at 14% 0%, rgba(91, 95, 247, 0.16), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(14, 165, 233, 0.14), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(5, 150, 105, 0.1), transparent 28%);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(42, 59, 108, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 108, 0.06) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

:root[data-theme="light"] .bg-orbit-one {
  background: radial-gradient(circle, rgba(91, 95, 247, 0.18), transparent 62%);
}

:root[data-theme="light"] .bg-orbit-two {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.13), transparent 65%);
}

:root[data-theme="light"] .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.86)),
    radial-gradient(circle at 18% 0%, rgba(91, 95, 247, 0.12), transparent 32%);
}

:root[data-theme="light"] .brand span {
  box-shadow: 0 18px 42px rgba(91, 95, 247, 0.22);
}

:root[data-theme="light"] .nav-item {
  color: #59657c;
}

:root[data-theme="light"] .nav-item .icon {
  color: #7b87a0;
}

:root[data-theme="light"] .nav-item:hover {
  background: rgba(91, 95, 247, 0.07);
  color: #111827;
}

:root[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(135deg, rgba(91, 95, 247, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.65);
  color: #121827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56), 0 12px 30px rgba(42, 58, 118, 0.09);
}

:root[data-theme="light"] .account,
:root[data-theme="light"] .topbar,
:root[data-theme="light"] #points,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .ghost,
:root[data-theme="light"] .hero-metrics div,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .hero-console,
:root[data-theme="light"] .console-stack article,
:root[data-theme="light"] .tool-list,
:root[data-theme="light"] .tool-list button,
:root[data-theme="light"] .album-page,
:root[data-theme="light"] .batch-item,
:root[data-theme="light"] .coverage-tools button,
:root[data-theme="light"] .timeline article {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] #points,
:root[data-theme="light"] .ghost,
:root[data-theme="light"] .theme-toggle {
  color: #111827;
}

:root[data-theme="light"] .hero-main {
  background:
    radial-gradient(circle at 76% 18%, rgba(14, 165, 233, 0.14), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(91, 95, 247, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 244, 255, 0.92));
}

:root[data-theme="light"] .hero-main::before,
:root[data-theme="light"] .panel::before,
:root[data-theme="light"] .tool-card::before,
:root[data-theme="light"] .work-card::before,
:root[data-theme="light"] .result-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 34%, rgba(14, 165, 233, 0.05));
}

:root[data-theme="light"] .hero-metrics strong,
:root[data-theme="light"] .stat strong,
:root[data-theme="light"] .console-head strong,
:root[data-theme="light"] .console-stack strong,
:root[data-theme="light"] .cockpit-panel h3,
:root[data-theme="light"] .panel h2,
:root[data-theme="light"] .tool-card h3,
:root[data-theme="light"] .result-card h3,
:root[data-theme="light"] .work-card h3,
:root[data-theme="light"] .result-card h4,
:root[data-theme="light"] .tool-card h4,
:root[data-theme="light"] .topbar h1 {
  color: #111827;
}

:root[data-theme="light"] .field label,
:root[data-theme="light"] .console-stack span {
  color: #273247;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
}

:root[data-theme="light"] .modal,
:root[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

:root[data-theme="light"] .auth-modal {
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 95, 247, 0.13), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.97);
}

:root[data-theme="light"] .terms-box {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(91, 95, 247, 0.07)),
    rgba(255, 255, 255, 0.72);
}

.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font-weight: 900;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

@media (max-width: 1100px) {
  body {
    min-width: 0;
  }

  .app {
    display: block;
    padding: 12px;
  }

  .sidebar {
    position: static;
    height: auto;
    margin-bottom: 14px;
  }

  #nav {
    max-height: 390px;
  }

  .topbar {
    top: 12px;
  }

  .hero,
  .studio,
  .grid,
  .kanban,
  .coverage-grid,
  .activity-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    width: min(560px, calc(100vw - 24px));
  }

  .auth-tabs,
  .inline-field {
    grid-template-columns: 1fr;
  }

  .auth-tabs {
    display: grid;
  }

  .tool-list {
    position: static;
    max-height: none;
  }

  .topbar,
  .top-actions,
  .section-head {
    align-items: flex-start;
  }
}
