:root {
  --bg: #07110f;
  --surface: rgba(15, 24, 22, 0.82);
  --surface-2: rgba(26, 42, 37, 0.9);
  --ink: #edf8f4;
  --muted: #8da19a;
  --line: rgba(54, 80, 72, 0.78);
  --accent: #ff4d41;
  --accent-2: #22d7b2;
  --warning: #ffd166;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.login-active {
  background: #06100e;
  overflow: auto;
}

.site-filing {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 20px;
  background: #06100e;
  color: #a9b7b2;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.site-filing a {
  color: inherit;
  text-decoration: none;
}

.site-filing a:hover {
  color: #43f4ca;
  text-decoration: underline;
}

body.login-active .login-page {
  min-height: calc(100svh - 72px);
}

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

button {
  cursor: pointer;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 54px;
  min-height: 100vh;
  padding: 72px clamp(32px, 7vw, 120px);
  overflow: hidden;
  color: #edf8f4;
  background: #06100e url("./tech-login-bg.svg") center / cover no-repeat;
}

.login-page.is-hidden,
.app-shell.is-hidden {
  display: none;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-page::before {
  background:
    linear-gradient(90deg, rgba(6, 16, 14, 0.82), rgba(6, 16, 14, 0.18) 55%, rgba(6, 16, 14, 0.72)),
    radial-gradient(circle at 24% 18%, rgba(34, 240, 195, 0.16), transparent 30%);
}

.login-page::after {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: scanNoise 8s linear infinite;
}

.login-bg,
.login-copy,
.login-card {
  position: relative;
  z-index: 1;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -16%;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(34, 240, 195, 0.16), transparent);
  filter: blur(4px);
  animation: scanMove 7s ease-in-out infinite;
}

.orb,
.orbit,
.particle {
  position: absolute;
  display: block;
}

.orb {
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.58;
}

.orb-a {
  width: 300px;
  height: 300px;
  right: 16%;
  top: 18%;
  background: rgba(34, 240, 195, 0.22);
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-b {
  width: 210px;
  height: 210px;
  right: 5%;
  bottom: 18%;
  background: rgba(255, 91, 79, 0.2);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.orbit {
  width: 460px;
  height: 460px;
  right: 18%;
  top: 25%;
  border: 1px solid rgba(34, 240, 195, 0.22);
  border-radius: 50%;
  animation: rotateOrbit 18s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22f0c3;
  box-shadow: 0 0 22px rgba(34, 240, 195, 0.95);
}

.orbit::before {
  top: 30px;
  left: 90px;
}

.orbit::after {
  right: 54px;
  bottom: 86px;
  background: #ff6b5e;
  box-shadow: 0 0 22px rgba(255, 107, 94, 0.95);
}

.orbit-b {
  width: 320px;
  height: 320px;
  right: 22%;
  top: 32%;
  border-color: rgba(255, 107, 94, 0.18);
  animation-duration: 13s;
  animation-direction: reverse;
}

.particle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22f0c3;
  box-shadow: 0 0 18px rgba(34, 240, 195, 0.95);
  animation: particleDrift 6s ease-in-out infinite;
}

.p1 { left: 18%; top: 20%; animation-delay: 0s; }
.p2 { left: 46%; top: 28%; animation-delay: -1.2s; }
.p3 { left: 62%; top: 70%; animation-delay: -2.6s; }
.p4 { left: 84%; top: 42%; animation-delay: -3.1s; }
.p5 { left: 30%; top: 78%; animation-delay: -4s; }

.login-copy {
  max-width: 760px;
}

.login-copy .eyebrow {
  color: #22f0c3;
  letter-spacing: 0;
}

.login-copy h1 {
  color: #f5fffb;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.04;
  margin-bottom: 22px;
  text-shadow: 0 0 30px rgba(34, 240, 195, 0.22);
}

.login-copy p {
  max-width: 640px;
  color: #abc0ba;
  font-size: 20px;
  line-height: 1.7;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.login-stats span {
  border: 1px solid rgba(34, 240, 195, 0.26);
  border-radius: 8px;
  background: rgba(12, 24, 21, 0.72);
  color: #b8cbc5;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.login-stats strong {
  color: #22f0c3;
  font-size: 24px;
  margin-right: 4px;
}

.login-card {
  display: grid;
  gap: 18px;
  align-self: center;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(34, 240, 195, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 25, 23, 0.86), rgba(9, 15, 14, 0.72));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.login-card-head strong,
.login-card-head span {
  display: block;
}

.login-card-head span {
  color: #8da19a;
  font-size: 14px;
  margin-top: 4px;
}

.auth-tabs,
.login-methods {
  display: grid;
  gap: 8px;
}

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

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

.auth-tabs button,
.login-methods button {
  min-height: 40px;
  border: 1px solid rgba(34, 240, 195, 0.18);
  border-radius: 8px;
  background: rgba(6, 12, 11, 0.5);
  color: #a9beb8;
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
}

.auth-tabs button.active,
.login-methods button.active {
  border-color: rgba(34, 240, 195, 0.6);
  background: rgba(34, 240, 195, 0.12);
  color: #43f4ca;
}

.auth-panel,
.login-method-panel {
  display: grid;
  gap: 14px;
}

.login-method-panel {
  display: none;
}

.login-method-panel.active {
  display: grid;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #b8cbc5;
  font-size: 14px;
  font-weight: 800;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(34, 240, 195, 0.22);
  border-radius: 10px;
  background: rgba(6, 12, 11, 0.72);
  color: #edf8f4;
  padding: 13px 14px;
  outline: none;
}

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

.inline-code-field .secondary-btn {
  min-height: 46px;
  padding: 0 10px;
  white-space: nowrap;
}

.login-card input:focus {
  border-color: rgba(34, 240, 195, 0.76);
  box-shadow: 0 0 0 3px rgba(34, 240, 195, 0.12);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remember {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  font-weight: 700 !important;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #22f0c3;
  padding: 0;
  font-weight: 800;
}

.login-submit {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #22f0c3, #7bffd8);
  color: #06100e;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(34, 240, 195, 0.32);
}

.login-note {
  color: #83958f;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

.auth-status {
  border: 1px solid rgba(34, 240, 195, 0.16);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.055);
  padding: 10px 12px;
}

.auth-status.is-warn {
  border-color: rgba(255, 209, 102, 0.38);
  background: rgba(255, 209, 102, 0.07);
  color: #ffd166;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(34, 240, 195, 0.14), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(255, 91, 79, 0.12), transparent 28%),
    #07110f;
}

.dashboard-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(34, 240, 195, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 240, 195, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%);
  opacity: 0.72;
}

.dashboard-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px);
  animation: dashNoise 9s linear infinite;
}

.dash-scan,
.dash-flow,
.dash-pulse,
.dash-dot {
  position: absolute;
  display: block;
}

.dash-scan {
  left: 264px;
  right: 0;
  top: -140px;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(34, 240, 195, 0.13), transparent);
  filter: blur(5px);
  animation: dashboardScan 8s ease-in-out infinite;
}

.dash-flow {
  width: 720px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 240, 195, 0.8), transparent);
  opacity: 0.28;
  transform: rotate(-17deg);
  animation: flowLine 10s linear infinite;
}

.flow-a {
  left: 32%;
  top: 18%;
}

.flow-b {
  left: 48%;
  top: 74%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 94, 0.72), transparent);
  animation-duration: 13s;
  animation-delay: -4s;
}

.dash-pulse {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(34, 240, 195, 0.18);
  border-radius: 50%;
  animation: pulseRing 6s ease-in-out infinite;
}

.pulse-a {
  right: 8%;
  top: 12%;
}

.pulse-b {
  right: 22%;
  bottom: 8%;
  border-color: rgba(255, 107, 94, 0.16);
  animation-delay: -2.8s;
}

.dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22f0c3;
  box-shadow: 0 0 18px rgba(34, 240, 195, 0.9);
  animation: dashDot 7s ease-in-out infinite;
}

.d1 { left: 36%; top: 22%; }
.d2 { left: 56%; top: 36%; animation-delay: -1.8s; }
.d3 { left: 78%; top: 62%; animation-delay: -3.4s; background: #ff6b5e; box-shadow: 0 0 18px rgba(255, 107, 94, 0.86); }
.d4 { left: 44%; top: 82%; animation-delay: -4.5s; }
 
.sidebar,
.workspace {
  position: relative;
  z-index: 1;
}

.sidebar {
  z-index: 20;
  background: linear-gradient(180deg, rgba(10, 20, 17, 0.94), rgba(8, 14, 13, 0.9));
  color: #f6fbf8;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  border-right: 1px solid rgba(34, 240, 195, 0.16);
  backdrop-filter: blur(18px);
}

.account-area {
  position: relative;
}

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

.account-trigger {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #f6fbf8;
  padding: 8px;
  text-align: left;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: rgba(34, 240, 195, 0.28);
  background: rgba(34, 240, 195, 0.06);
}

.account-caret {
  margin-left: auto;
  color: #43f4ca;
  font-size: 14px;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(34, 240, 195, 0.24);
  border-radius: 10px;
  background: rgba(8, 16, 14, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.account-menu button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7e7e2;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.account-menu button:hover {
  background: rgba(34, 240, 195, 0.1);
  color: #43f4ca;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff8a4a);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255, 77, 65, 0.28);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #a9b7b2;
  font-size: 13px;
  margin-top: 4px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd7d2;
  padding: 12px 14px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(30, 50, 44, 0.82);
  border-color: rgba(34, 240, 195, 0.36);
  color: #fff;
  box-shadow: inset 0 0 22px rgba(34, 240, 195, 0.06);
}

.store-switcher {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.store-switcher label {
  color: #a9b7b2;
  font-size: 13px;
}

.store-switcher > small {
  color: #7f938d;
  font-size: 11px;
  line-height: 1.45;
}

.multi-store-picker {
  position: relative;
}

.store-scope-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(7, 17, 15, 0.78);
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.store-scope-trigger[aria-expanded="true"] {
  border-color: rgba(34, 240, 195, 0.52);
  box-shadow: 0 0 0 3px rgba(34, 240, 195, 0.08);
}

.store-scope-menu {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 350px;
  max-height: min(620px, 76vh);
  overflow: hidden;
  border: 1px solid rgba(34, 240, 195, 0.28);
  border-radius: 8px;
  background: rgba(8, 18, 16, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
  padding: 12px;
}

.store-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.store-group-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #b8cbc5;
  background: rgba(18, 34, 30, 0.72);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.store-group-actions button:hover {
  border-color: rgba(34, 240, 195, 0.42);
  color: #43f4ca;
}

.store-checkbox-list {
  display: grid;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-gutter: stable;
}

.store-checkbox-list label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 45px;
  border-radius: 6px;
  padding: 5px 7px;
  cursor: pointer;
}

.store-checkbox-list label:hover {
  background: rgba(34, 240, 195, 0.06);
}

.store-checkbox-list input,
.strategy-store-row input {
  accent-color: #22d7b2;
}

.store-checkbox-list strong,
.store-checkbox-list small {
  display: block;
}

.store-checkbox-list strong {
  color: #dceae6;
  font-size: 13px;
}

.store-checkbox-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.store-scope-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.store-scope-footer .primary-btn {
  flex: 1;
  justify-content: center;
}

.store-switcher select,
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--ink);
  padding: 11px 12px;
}

.workspace {
  padding: 26px;
  overflow: auto;
  min-height: 100vh;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 7, 0.68);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.settings-dialog {
  width: min(720px, 100%);
  border: 1px solid rgba(34, 240, 195, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 25, 23, 0.96), rgba(9, 15, 14, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.settings-head h2 {
  font-size: 24px;
}

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

.settings-section-title {
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(34, 240, 195, 0.2);
  color: #43f4ca;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 0 10px;
}

.settings-form label {
  display: grid;
  gap: 8px;
  color: #b8cbc5;
  font-size: 14px;
  font-weight: 800;
}

.settings-form input,
.settings-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.settings-form input:focus,
.settings-form select:focus {
  border-color: rgba(34, 240, 195, 0.76);
  box-shadow: 0 0 0 3px rgba(34, 240, 195, 0.12);
}

.settings-note,
.settings-actions {
  grid-column: 1 / -1;
}

.settings-note {
  border: 1px solid rgba(34, 240, 195, 0.16);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.055);
  color: #a9beb8;
  padding: 10px 12px;
  font-size: 13px;
}

.settings-note.is-ok {
  color: #43f4ca;
  border-color: rgba(34, 240, 195, 0.38);
}

.settings-note.is-warn {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.38);
  background: rgba(255, 209, 102, 0.07);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.store-auth-panel {
  min-height: 430px;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.auth-steps span {
  display: grid;
  gap: 5px;
  border-top: 2px solid rgba(141, 161, 154, 0.22);
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}

.auth-steps strong {
  color: #afc1bb;
  font-size: 15px;
}

.auth-steps span.active {
  border-color: var(--accent-2);
  color: #d7e7e2;
}

.auth-steps span.active strong {
  color: #43f4ca;
}

.auth-copy {
  border: 1px solid rgba(34, 240, 195, 0.16);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.055);
  padding: 14px;
  margin-bottom: 16px;
}

.auth-copy strong {
  display: block;
  margin-bottom: 8px;
}

.auth-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.pdd-auth-window {
  display: grid;
  grid-template-columns: minmax(135px, 0.72fr) minmax(0, 1.28fr);
  min-height: 340px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(89, 121, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 15, 20, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.pdd-auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 28px 12px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(89, 121, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 121, 255, 0.2) 1px, transparent 1px),
    linear-gradient(145deg, #294ac8, #6749c6 52%, #243aa4);
  background-size: 30px 30px, 30px 30px, auto;
}

.pdd-auth-brand::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(69, 235, 255, 0.28), inset 0 0 36px rgba(255, 255, 255, 0.08);
}

.pdd-brand-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(51, 236, 255, 0.4);
}

.pdd-brand-mark,
.account-shield,
.qr-center {
  display: grid;
  place-items: center;
  color: #fff;
  background: #ee3344;
  font-weight: 900;
}

.pdd-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(238, 51, 68, 0.35);
}

.pdd-auth-brand strong,
.pdd-auth-brand p,
.pdd-brand-signals {
  position: relative;
  z-index: 1;
}

.pdd-auth-brand strong {
  max-width: 100%;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.pdd-auth-brand p {
  max-width: 100%;
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pdd-brand-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.pdd-brand-signals span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  background: rgba(4, 12, 42, 0.2);
}

.pdd-login-side {
  display: flex;
  min-width: 0;
  padding: 22px 18px 18px;
  flex-direction: column;
  background: rgba(8, 18, 17, 0.96);
}

.pdd-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.pdd-login-tabs button {
  position: relative;
  padding: 10px 8px 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pdd-login-tabs button.active {
  color: #66f6d4;
}

.pdd-login-tabs button.active::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 2px;
  background: #43f4ca;
}

.pdd-login-panel {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 18px;
  text-align: center;
}

.pdd-login-panel.active {
  display: flex;
}

.pdd-login-panel > p,
.official-account-entry p {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.55;
}

.official-qr-entry {
  position: relative;
  width: 144px;
  height: 144px;
  margin-bottom: 14px;
  border: 10px solid #fff;
  border-radius: 8px;
  color: #15231f;
  background:
    repeating-linear-gradient(0deg, #15231f 0 4px, transparent 4px 9px),
    repeating-linear-gradient(90deg, #15231f 0 4px, transparent 4px 9px),
    #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.official-qr-entry::after {
  content: "";
  position: absolute;
  inset: 34px;
  background: #fff;
}

.qr-corner {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 7px solid #15231f;
  background: #fff;
}

.qr-corner-a { top: 5px; left: 5px; }
.qr-corner-b { top: 5px; right: 5px; }
.qr-corner-c { bottom: 5px; left: 5px; }

.qr-center {
  position: absolute;
  z-index: 2;
  inset: 48px;
  border-radius: 6px;
  font-size: 20px;
}

.official-qr-entry small {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -29px;
  left: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.official-account-entry {
  display: grid;
  place-items: center;
  max-width: 360px;
}

.account-shield {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 8px 8px 20px 20px;
  font-size: 28px;
  box-shadow: 0 10px 28px rgba(238, 51, 68, 0.24);
}

.official-account-entry strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.pdd-login-cta {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.pdd-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
  color: #8fa69f;
  font-size: 12px;
}

.pdd-security-note span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #04100d;
  background: #43f4ca;
  font-weight: 900;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--ink);
  padding: 11px 12px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.authorized-store-list {
  display: grid;
  gap: 12px;
}

.authorized-store-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 16, 15, 0.62);
  padding: 14px;
}

.authorized-store-list strong {
  display: block;
  margin-bottom: 6px;
}

.authorized-store-list p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

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

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  margin-bottom: 0;
}

h2 {
  font-size: 18px;
  margin-bottom: 0;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.primary-btn,
.icon-btn,
.secondary-btn {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
}

.primary-btn {
  background: linear-gradient(90deg, var(--accent-2), #7bffd8);
  color: #06100e;
  padding: 0 16px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(34, 240, 195, 0.22);
}

.secondary-btn {
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
}

.icon-btn {
  width: 42px;
  background: rgba(15, 24, 22, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric {
  padding: 18px;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 27px;
  margin: 10px 0 8px;
}

.ops-strip,
.health-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.ops-strip {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
}

.health-strip {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.ops-card,
.health-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 24, 22, 0.9), rgba(9, 16, 15, 0.72));
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.ops-card::after,
.health-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 240, 195, 0.52), transparent);
}

.ops-card span,
.health-card span,
.realtime-metrics span {
  display: inline-block;
  color: #c5d6d1;
  border-bottom: 1px dashed rgba(197, 214, 209, 0.32);
  font-weight: 800;
}

.ops-card strong,
.health-card strong,
.realtime-metrics strong {
  display: block;
  color: #f7fffc;
  font-size: 36px;
  line-height: 1;
  margin: 22px 0 12px;
}

.ops-card.highlight strong {
  color: #43f4ca;
  text-shadow: 0 0 22px rgba(34, 240, 195, 0.28);
}

.ops-card button {
  border: 0;
  background: transparent;
  color: #58a6ff;
  font-weight: 800;
  padding: 0;
}

.health-card {
  min-height: 120px;
}

.health-card strong {
  font-size: 32px;
}

.health-card em {
  color: #d7e7e2;
  font-size: 18px;
  font-style: normal;
}

.health-card small {
  color: var(--muted);
}

.health-card small:first-of-type {
  color: #58a6ff;
}

.realtime-panel {
  margin-bottom: 16px;
  padding: 24px;
}

.realtime-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.realtime-head h2 {
  margin: 0;
  font-size: 28px;
}

.realtime-head span {
  color: var(--muted);
}

.realtime-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.realtime-actions,
.range-tabs,
.legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.realtime-actions {
  justify-content: center;
}

.range-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  justify-self: end;
  gap: 0;
}

.range-tabs button {
  min-height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(7, 17, 15, 0.56);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
}

.range-tabs button:first-child {
  border-left: 0;
}

.range-tabs button.active {
  background: rgba(34, 240, 195, 0.12);
  color: #43f4ca;
}

.overview-feedback {
  min-height: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 240, 195, 0.16);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.055);
  color: #a9beb8;
  padding: 7px 10px;
  font-size: 13px;
}

.overview-feedback.is-active {
  color: #43f4ca;
  border-color: rgba(34, 240, 195, 0.38);
  box-shadow: inset 0 0 18px rgba(34, 240, 195, 0.08);
}

.realtime-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.realtime-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  align-content: start;
}

.realtime-metrics article {
  min-width: 0;
  min-height: 132px;
  border: 1px solid rgba(54, 80, 72, 0.42);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.34);
  padding: 14px;
}

.realtime-metrics strong {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 2.4vw, 42px);
  letter-spacing: 0;
}

.realtime-metrics small {
  color: var(--muted);
}

.trend-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid rgba(54, 80, 72, 0.42);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.28);
  padding: 16px;
}

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

.trend-toolbar select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--ink);
  padding: 10px 12px;
}

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

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend .today {
  background: #4b82ff;
}

.legend .yesterday {
  background: #ffc247;
}

.trend-chart {
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: visible;
}

.grid-lines line {
  stroke: rgba(197, 214, 209, 0.16);
  stroke-dasharray: 5 6;
}

.axis-labels text {
  fill: #8da19a;
  font-size: 18px;
}

.line-today,
.line-yesterday {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.line-today {
  stroke: #4b82ff;
  filter: drop-shadow(0 0 8px rgba(75, 130, 255, 0.35));
}

.line-yesterday {
  stroke: #ffc247;
  filter: drop-shadow(0 0 8px rgba(255, 194, 71, 0.3));
}

.green {
  color: #43f4ca;
}

.goldText {
  color: #ffd166;
}

.two-column,
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.finance-summary article {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 24, 22, 0.84);
  box-shadow: var(--shadow);
  padding: 17px;
}

.finance-summary span,
.finance-summary small {
  color: var(--muted);
}

.finance-summary strong {
  display: block;
  margin: 18px 0 10px;
  color: #f5fffb;
  font-size: 27px;
  overflow-wrap: anywhere;
}

.finance-summary .profit {
  border-color: rgba(34, 240, 195, 0.3);
  background: rgba(34, 240, 195, 0.07);
}

.finance-summary .profit strong {
  color: #43f4ca;
}

.finance-toolbar,
.strategy-assignment-head,
.strategy-batch-toolbar,
.strategy-workflow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finance-toolbar h2,
.strategy-assignment-head h2 {
  margin: 0;
}

.finance-toolbar p,
.strategy-assignment-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.finance-controls select,
.strategy-batch-toolbar select,
.strategy-store-row select,
.strategy-create-form input,
.strategy-create-form select {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(7, 17, 15, 0.82);
  padding: 10px 11px;
}

.finance-view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.finance-data-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.05);
}

.finance-data-note p {
  margin: 0;
  color: #b9c8c3;
  font-size: 13px;
}

.finance-table,
.strategy-store-table {
  min-width: 0;
  overflow-x: auto;
}

.finance-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr 0.9fr 0.7fr;
  align-items: center;
  gap: 12px;
  min-width: 720px;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(54, 80, 72, 0.55);
  color: #c8d7d2;
  font-size: 13px;
}

.finance-table .finance-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #101c19;
  font-weight: 900;
}

.strategy-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.strategy-library-panel {
  position: sticky;
  top: 0;
}

.strategy-template-list {
  display: grid;
  gap: 9px;
}

.strategy-template-list article {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 13px;
}

.strategy-template-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.strategy-template-list article > div span {
  color: #43f4ca;
  font-size: 12px;
  font-weight: 900;
}

.strategy-template-list small,
.strategy-template-list p {
  color: var(--muted);
}

.strategy-template-list p {
  margin: 6px 0 0;
  line-height: 1.5;
  font-size: 13px;
}

.strategy-create-form {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.strategy-assignment-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.strategy-batch-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(34, 240, 195, 0.16);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.045);
}

.strategy-batch-toolbar select {
  min-width: 230px;
}

.strategy-store-head,
.strategy-store-row {
  display: grid;
  grid-template-columns: 42px minmax(145px, 1.15fr) minmax(100px, 0.75fr) minmax(175px, 1fr) 68px;
  align-items: center;
  gap: 8px;
  min-width: 610px;
}

.strategy-store-head {
  color: var(--muted);
  background: rgba(7, 17, 15, 0.72);
  padding: 10px 9px;
  font-size: 12px;
  font-weight: 900;
}

.strategy-store-row {
  min-height: 58px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  color: #bfcec9;
  font-size: 13px;
}

.strategy-store-row select {
  width: 100%;
  min-width: 0;
}

.strategy-preview {
  margin-top: 16px;
  border: 1px solid rgba(75, 130, 255, 0.26);
  border-radius: 8px;
  background: rgba(75, 130, 255, 0.055);
  padding: 14px;
}

.strategy-preview > p,
.strategy-preview small,
.strategy-preview article p {
  color: var(--muted);
}

.strategy-preview > p {
  margin: 8px 0 0;
}

.strategy-preview article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(75, 130, 255, 0.18);
}

.strategy-preview article span {
  color: #8fb4ff;
  font-weight: 900;
}

.strategy-preview article p {
  margin: 0;
  line-height: 1.5;
}

.strategy-preview small {
  display: block;
  margin-top: 12px;
}

.strategy-workflow-actions {
  justify-content: flex-end;
  margin: 14px 0;
}

.panel {
  padding: 18px;
}

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

.status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.status.ok {
  background: rgba(34, 240, 195, 0.13);
  color: #43f4ca;
  border: 1px solid rgba(34, 240, 195, 0.26);
}

.status.warn {
  background: rgba(255, 209, 102, 0.13);
  color: var(--warning);
  border: 1px solid rgba(255, 209, 102, 0.26);
}

.status.neutral {
  background: rgba(141, 161, 154, 0.14);
  color: #aebfba;
  border: 1px solid rgba(141, 161, 154, 0.22);
}

.store-table {
  display: grid;
  gap: 2px;
}

.store-table [role="row"] {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 0.6fr;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.store-table .table-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.insight-list,
.strategy-list,
.task-board {
  display: grid;
  gap: 12px;
}

.ai-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 16px;
}

.ai-chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(280px, 1fr) auto;
  min-height: calc(100vh - 130px);
}

.ai-chat-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-command-section {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.quick-command-title span {
  color: var(--muted);
  font-size: 12px;
}

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

.quick-command-grid button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(54, 80, 72, 0.9);
  border-radius: 6px;
  color: #d7e7e2;
  background: rgba(10, 23, 20, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.quick-command-grid button:hover,
.quick-command-grid button:focus-visible {
  border-color: rgba(34, 240, 195, 0.48);
  color: #66f6d4;
  background: rgba(34, 240, 195, 0.08);
}

.ai-message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: calc(100vh - 450px);
  overflow-y: auto;
  padding: 18px 4px 18px 0;
}

.ai-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  max-width: 88%;
}

.ai-message.user {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.ai-message.user .ai-avatar {
  grid-column: 2;
  grid-row: 1;
  color: #07110f;
  background: #66f6d4;
}

.ai-message.user > div {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(34, 240, 195, 0.28);
  background: rgba(34, 240, 195, 0.09);
}

.ai-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(89, 121, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  background: #405ccf;
  font-size: 12px;
  font-weight: 900;
}

.ai-message > div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 16, 15, 0.74);
}

.ai-message strong {
  display: block;
  margin-bottom: 6px;
}

.ai-message p {
  margin: 0;
  color: #b6c7c1;
  line-height: 1.6;
}

.ai-composer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ai-composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: rgba(5, 14, 12, 0.86);
  padding: 13px 14px;
}

.ai-composer textarea:focus {
  border-color: rgba(34, 240, 195, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 240, 195, 0.08);
}

.ai-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ai-composer-actions span {
  color: var(--muted);
  font-size: 12px;
}

.ai-side-column {
  display: grid;
  gap: 16px;
}

.workflow-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(54, 80, 72, 0.48);
}

.workflow-steps li:last-child {
  border-bottom: 0;
}

.workflow-steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workflow-steps li.active > span,
.workflow-steps li.done > span {
  border-color: rgba(34, 240, 195, 0.45);
  color: #06110e;
  background: #43f4ca;
}

.workflow-steps strong,
.workflow-steps small {
  display: block;
}

.workflow-steps small {
  margin-top: 4px;
  color: var(--muted);
}

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

.ai-approval-list article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ai-approval-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ai-approval-list p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.task-board.compact .task {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.task-board.compact .task > button {
  grid-column: 1 / -1;
}

.insight,
.strategy,
.task {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(9, 16, 15, 0.62);
}

.insight strong,
.strategy strong,
.task strong {
  display: block;
  margin-bottom: 7px;
}

.insight p,
.strategy p,
.task p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-stack textarea {
  min-height: 112px;
  resize: vertical;
}

.output-panel,
.creative-output {
  min-height: 320px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
}

.draft-output,
.creative-output {
  line-height: 1.6;
}

.result-block {
  display: grid;
  gap: 12px;
}

.result-block ul {
  margin: 0;
  padding-left: 20px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.listing-mode {
  max-width: 640px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.listing-flow {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.upload-panel,
.batch-panel {
  min-height: 430px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.step-list span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-top: 2px solid rgba(141, 161, 154, 0.22);
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}

.step-list strong {
  color: #afc1bb;
  font-size: 15px;
}

.step-list span.active {
  border-color: var(--accent-2);
  color: #d7e7e2;
}

.step-list span.active strong {
  color: #43f4ca;
}

.download-btn {
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  text-decoration: none;
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 174px;
  border: 1px dashed rgba(34, 240, 195, 0.46);
  border-radius: 8px;
  background: rgba(34, 240, 195, 0.045);
  color: #d7e7e2;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  background: rgba(34, 240, 195, 0.09);
}

.upload-zone input {
  display: none;
}

.upload-zone strong {
  color: #43f4ca;
}

.upload-zone span,
.upload-meta {
  color: var(--muted);
  font-size: 13px;
}

.upload-meta {
  margin: 14px 0;
}

.batch-output {
  min-height: 330px;
}

.batch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.batch-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.56);
  color: var(--muted);
  padding: 12px;
}

.batch-summary strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  margin-top: 5px;
}

.preview-table {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.preview-table div {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 0.8fr 0.7fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  font-size: 13px;
}

.preview-table .preview-head {
  color: var(--muted);
  font-weight: 800;
}

.batch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.is-hidden {
  display: none !important;
}

.segment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--muted);
  min-height: 40px;
  font-weight: 800;
}

.segment.active {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(34, 240, 195, 0.1);
}

.strategy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.strategy-actions {
  display: flex;
  gap: 8px;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.priority {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 77, 65, 0.14);
  color: var(--accent);
  font-weight: 900;
  border: 1px solid rgba(255, 77, 65, 0.25);
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 32px;
    overflow: auto;
  }

  body.login-active {
    overflow: auto;
  }

  .login-card {
    max-width: 460px;
  }

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

  .sidebar {
    position: static;
  }

  .nav-list {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .metrics-grid,
  .auth-layout,
  .ai-workbench,
  .strategy-workspace,
  .ops-strip,
  .health-strip,
  .two-column,
  .work-grid,
  .listing-flow {
    grid-template-columns: 1fr;
  }

  .finance-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .strategy-library-panel {
    position: static;
  }

  .ai-chat-panel {
    min-height: 720px;
  }

  .ai-message-list {
    max-height: 360px;
  }

  .realtime-head,
  .realtime-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-page {
    padding: 36px 18px;
  }

  .login-copy h1 {
    font-size: 40px;
  }

  .login-copy p {
    font-size: 16px;
  }

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

  .login-methods,
  .inline-code-field {
    grid-template-columns: 1fr;
  }

  .store-scope-menu {
    position: fixed;
    inset: auto 12px 12px;
    width: auto;
    max-height: 75vh;
  }

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

  .finance-toolbar,
  .finance-controls,
  .strategy-assignment-head,
  .strategy-workflow-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-controls {
    justify-content: stretch;
  }

  .finance-controls > *,
  .strategy-workflow-actions > * {
    width: 100%;
  }

  .finance-data-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-preview article {
    grid-template-columns: 1fr;
  }

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

  .ai-chat-panel {
    min-height: auto;
  }

  .ai-message {
    max-width: 100%;
  }

  .ai-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-layer {
    align-items: start;
    overflow: auto;
    padding: 18px;
  }

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

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .strategy,
  .task {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .metrics-grid {
    gap: 10px;
  }

  .realtime-actions,
  .auth-form,
  .authorized-store-list article,
  .range-tabs,
  .trend-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-form,
  .authorized-store-list article {
    grid-template-columns: 1fr;
  }

  .pdd-auth-window {
    grid-template-columns: 1fr;
  }

  .pdd-auth-brand {
    min-height: 220px;
  }

  .pdd-auth-brand::after {
    width: 180px;
    height: 180px;
  }

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

  .store-table [role="row"] {
    grid-template-columns: 1fr 0.8fr;
  }

  .store-table [role="row"] span:nth-child(3),
  .store-table [role="row"] span:nth-child(4) {
    display: none;
  }
}

@keyframes scanMove {
  0% { transform: translateY(-20vh); opacity: 0; }
  16% { opacity: 0.8; }
  72% { opacity: 0.55; }
  100% { transform: translateY(122vh); opacity: 0; }
}

@keyframes scanNoise {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

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

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 24px, 0) scale(1.08); }
}

@keyframes particleDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.32; }
  50% { transform: translate3d(26px, -34px, 0); opacity: 0.95; }
}

@keyframes dashboardScan {
  0% { transform: translateY(-20vh); opacity: 0; }
  18% { opacity: 0.82; }
  100% { transform: translateY(120vh); opacity: 0; }
}

@keyframes dashNoise {
  to { transform: translateY(24px); }
}

@keyframes flowLine {
  0% { transform: translate3d(-22vw, 0, 0) rotate(-17deg); opacity: 0; }
  20% { opacity: 0.34; }
  100% { transform: translate3d(70vw, 0, 0) rotate(-17deg); opacity: 0; }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.86); opacity: 0.16; }
  50% { transform: scale(1.08); opacity: 0.36; }
}

@keyframes dashDot {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.42; }
  50% { transform: translate3d(18px, -22px, 0); opacity: 1; }
}
