:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(255, 255, 255, .94);
  --panel-dark: rgba(9, 22, 39, .82);
  --ink: #111827;
  --ink-inverse: #f8fbff;
  --muted: #6b7890;
  --muted-inverse: #9fb2d4;
  --line: rgba(148, 163, 184, .22);
  --blue: #0066ff;
  --cyan: #00d8ff;
  --green: #14b87a;
  --orange: #ff9f1c;
  --red: #ef4444;
  --purple: #7c3aed;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.18);
  --glow: 0 0 0 1px rgba(0, 216, 255, .18), 0 22px 70px rgba(0, 102, 255, .18);
  --gold: #d6a545;
  --surface-glass: rgba(255,255,255,.74);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 216, 255, .20), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(0, 102, 255, .22), transparent 34%),
    linear-gradient(135deg, #060b14 0%, #081426 46%, #101827 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}

.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,216,255,.28), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(0,102,255,.25), transparent 30%),
    linear-gradient(135deg, #060b14, #0b1728 55%, #111827);
}

.login-card {
  width: min(440px, 94vw);
  padding: 34px;
  color: var(--ink-inverse);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    rgba(7, 17, 31, .82);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -100px;
  background: radial-gradient(circle, rgba(214,165,69,.26), transparent 64%);
}

.login-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.login-card h1 { margin: 18px 0 6px; font-size: 28px; }
.login-card p { margin: 0 0 24px; color: var(--muted-inverse); }
.login-card label { display: block; margin: 14px 0 8px; font-weight: 800; color: #dbeafe; }
.login-helper {
  display: block;
  margin: 8px 0 4px;
  color: #b8c8e8;
  line-height: 1.6;
}

input, select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: rgba(255,255,255,.98);
  font-size: 14px;
  transition: border .18s ease, box-shadow .18s ease, transform .18s ease;
}

textarea.import-box {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  background: rgba(255,255,255,.96);
  font-size: 14px;
  line-height: 1.7;
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

.toolbar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.ozon-profile {
  background:
    linear-gradient(135deg, rgba(0, 102, 255, .08), rgba(0, 216, 255, .06)),
    rgba(255,255,255,.86);
  border: 1px solid rgba(0, 102, 255, .16);
}

.ozon-kpis .mini {
  background: #eaf4ff;
  color: #0b4fb3;
}

.ozon-kpis strong {
  color: #0f2f66;
}

input:focus, select:focus { border-color: rgba(36,91,219,.55); box-shadow: 0 0 0 4px rgba(36,91,219,.08); }

button {
  border: 0;
  background: linear-gradient(135deg, #0b67ff, #00b7ff);
  color: white;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,102,255,.18);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

button:hover { filter: brightness(1.02); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,102,255,.22); }
button.ghost { background: #eef3ff; color: var(--blue); box-shadow: none; }
button.green-btn { background: var(--green); color: white; }
button.danger-btn { background: var(--red); color: white; }
button.mini-btn { padding: 6px 10px; font-size: 12px; border-radius: 999px; }
button, .small-btn, .mini-btn { white-space: nowrap; }

.login-card button { width: 100%; margin-top: 18px; padding: 13px 16px; }
.login-error { min-height: 20px; margin-top: 10px; color: var(--red); font-size: 13px; }
.login-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 286px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,216,255,.20), transparent 28%),
    linear-gradient(180deg, rgba(5, 12, 24, .98) 0%, rgba(8, 20, 38, .97) 58%, rgba(9, 30, 48, .98) 100%);
  color: white;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 16px 0 60px rgba(0,0,0,.28);
}

.brand { display: flex; gap: 12px; align-items: center; position: relative; }
.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(214,165,69,.95), rgba(0,216,255,.88) 45%, rgba(0,102,255,.94));
  box-shadow: 0 0 28px rgba(0, 216, 255, .32), inset 0 0 0 1px rgba(255,255,255,.28);
  font-size: 24px;
  font-weight: 900;
}
.brand h1 { font-size: 20px; margin: 0 0 4px; }
.brand p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.sidebar-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
  font-size: 20px;
}

nav { display: grid; gap: 7px; }
.nav {
  text-align: left;
  color: rgba(226, 236, 255, .76);
  background: transparent;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid transparent;
}
.nav:hover, .nav.active {
  background: linear-gradient(135deg, rgba(0,102,255,.30), rgba(0,216,255,.13));
  color: white;
  border-color: rgba(0,216,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.16);
}
.nav.disabled {
  display: none;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.sidebar-note span { font-weight: 800; }
.sidebar-note p { color: rgba(255,255,255,.75); margin: 8px 0 0; font-size: 12px; line-height: 1.6; }

.main { flex: 1; min-width: 0; }
.topbar {
  padding: 14px 24px;
  background: rgba(7, 17, 31, .72);
  backdrop-filter: blur(18px);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar h2 { margin: 0; font-size: 21px; color: var(--ink-inverse); }
.topbar p { margin: 4px 0 0; color: var(--muted-inverse); font-size: 12px; max-width: 720px; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions input { width: 260px; }

.user-pill {
  min-width: 170px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #eaf2ff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.user-pill strong { display: block; font-size: 13px; }
.user-pill span { display: block; margin-top: 2px; color: var(--muted-inverse); font-size: 12px; }

.content { padding: 26px 32px 48px; }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(5, minmax(150px, 1fr)); margin-top: 20px; }
.dashboard-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.card, .panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--gold));
}
.card .label { color: var(--muted); font-size: 13px; }
.card .value { margin-top: 8px; font-size: 30px; font-weight: 950; letter-spacing: -.8px; color: #0b2e73; }
.card .hint { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.4; }
.card.green .value { color: var(--green); }
.card.orange .value { color: var(--orange); }
.card.red .value { color: var(--red); }
.card.blue .value { color: var(--blue); }
.launch-cards { margin-top: 0; grid-template-columns: repeat(4, minmax(150px, 1fr)); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.feature-card {
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(236,246,255,.90)),
    rgba(255,255,255,.86);
  color: #0f2f66;
  border: 1px solid rgba(0,102,255,.14);
  box-shadow: 0 18px 44px rgba(15, 47, 102, .10);
}
.feature-card span {
  display: block;
  font-size: 16px;
  font-weight: 950;
}
.feature-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 600;
}
.feature-card.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(0,102,255,.24);
}
.feature-card.active small { color: rgba(255,255,255,.82); }

.sync-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef8ff;
  color: #0f4f86 !important;
  border: 1px solid rgba(0,102,255,.14);
  font-weight: 700;
}
.sync-note strong {
  color: #0b2e73;
  font-weight: 950;
}
.sync-note span {
  display: inline-flex;
  align-items: center;
}

.table-fullscreen {
  position: fixed;
  inset: 18px;
  z-index: 50;
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(2, 8, 23, .42);
}
.table-fullscreen .table-wrap {
  max-height: calc(100vh - 190px);
}
.table-fullscreen::after {
  content: "按 ESC 退出全屏";
  position: fixed;
  right: 34px;
  top: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 47, 102, .92);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.panel { padding: 20px; margin-top: 20px; }
.panel h3 { margin: 0 0 14px; }
.panel h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -.2px;
}
.panel h3::before {
  content: "";
  width: 9px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(0,216,255,.34);
}
.panel p { line-height: 1.75; color: #3c4b66; }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 9px 9px;
  text-align: left;
  vertical-align: top;
}
th {
  color: #0f2f66;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  font-weight: 850;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
tr:hover td { background: #fbfdff; }
td a { color: var(--blue); font-weight: 800; text-decoration: none; }

.app-shell.sidebar-collapsed .sidebar {
  width: 78px;
  padding: 18px 10px;
  align-items: center;
}
.app-shell.sidebar-collapsed .brand {
  flex-direction: column;
}
.app-shell.sidebar-collapsed .brand > div:not(.logo),
.app-shell.sidebar-collapsed .sidebar-note {
  display: none;
}
.app-shell.sidebar-collapsed nav {
  width: 100%;
}
.app-shell.sidebar-collapsed .nav {
  position: relative;
  height: 44px;
  color: transparent;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.app-shell.sidebar-collapsed .nav::after {
  content: attr(data-short);
  color: rgba(226,236,255,.92);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}
.app-shell.sidebar-collapsed .nav.active::after,
.app-shell.sidebar-collapsed .nav:hover::after {
  color: #fff;
}
.app-shell.sidebar-collapsed .sidebar-toggle {
  margin: 0;
}

.subpage-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.subpage-tabs button {
  background: rgba(255,255,255,.92);
  color: #1f3b67;
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: none;
  padding: 9px 13px;
}
.subpage-tabs button.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0,102,255,.18);
}

.data-table-compact {
  table-layout: auto;
  min-width: 960px;
  font-size: 13px;
}
.data-table-compact th,
.data-table-compact td {
  padding: 6px 7px;
  vertical-align: middle;
  white-space: nowrap;
}
.editable-customer-table .inline-input {
  min-width: 118px;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 13px;
}
.editable-customer-table select.inline-input {
  min-width: 128px;
}
.editable-customer-table th:first-child,
.editable-customer-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f8fbff;
}
.editable-customer-table th:nth-child(2),
.editable-customer-table td:nth-child(2) {
  position: sticky;
  left: 58px;
  z-index: 3;
  background: #ffffff;
  box-shadow: 8px 0 14px rgba(15, 47, 102, .05);
}
.editable-customer-table th:first-child,
.editable-customer-table th:nth-child(2) {
  z-index: 5;
}
.select-cell {
  width: 48px;
  min-width: 48px;
  text-align: center;
}
.field-highlight {
  animation: fieldPulse 1.8s ease-in-out 2;
  border-color: #ffb020 !important;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, .18) !important;
}
@keyframes fieldPulse {
  0%, 100% { background: #fff; }
  50% { background: #fff7e6; }
}
.action-cell {
  min-width: 112px;
  white-space: nowrap;
}

.ozon-snapshot-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.96));
}
.ozon-table-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.ozon-snapshot-wrap {
  max-height: 66vh;
  background: #fff;
}
.ozon-snapshot-table {
  table-layout: fixed;
  min-width: 2180px;
  font-size: 12.5px;
}
.ozon-snapshot-table th,
.ozon-snapshot-table td {
  height: 42px;
  max-height: 42px;
  padding: 7px 9px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ozon-snapshot-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}
.ozon-snapshot-table tbody tr:hover td {
  background: #eef7ff;
}
.ozon-snapshot-table th:nth-child(1),
.ozon-snapshot-table td:nth-child(1) {
  position: sticky;
  left: 0;
  width: 96px;
  min-width: 96px;
  z-index: 4;
  background: #f8fbff;
}
.ozon-snapshot-table th:nth-child(2),
.ozon-snapshot-table td:nth-child(2) {
  position: sticky;
  left: 96px;
  width: 136px;
  min-width: 136px;
  z-index: 4;
  background: #ffffff;
}
.ozon-snapshot-table th:nth-child(3),
.ozon-snapshot-table td:nth-child(3) {
  position: sticky;
  left: 232px;
  width: 112px;
  min-width: 112px;
  z-index: 4;
  background: #ffffff;
}
.ozon-snapshot-table th:nth-child(4),
.ozon-snapshot-table td:nth-child(4) {
  position: sticky;
  left: 344px;
  width: 180px;
  min-width: 180px;
  z-index: 4;
  background: #ffffff;
  box-shadow: 10px 0 16px rgba(15, 47, 102, .06);
}
.ozon-snapshot-table th:nth-child(1),
.ozon-snapshot-table th:nth-child(2),
.ozon-snapshot-table th:nth-child(3),
.ozon-snapshot-table th:nth-child(4) {
  z-index: 6;
}
.ozon-snapshot-table th:nth-child(5),
.ozon-snapshot-table td:nth-child(5),
.ozon-snapshot-table th:nth-child(6),
.ozon-snapshot-table td:nth-child(6) { width: 110px; }
.ozon-snapshot-table th:nth-child(7),
.ozon-snapshot-table td:nth-child(7),
.ozon-snapshot-table th:nth-child(10),
.ozon-snapshot-table td:nth-child(10),
.ozon-snapshot-table th:nth-child(11),
.ozon-snapshot-table td:nth-child(11),
.ozon-snapshot-table th:nth-child(12),
.ozon-snapshot-table td:nth-child(12),
.ozon-snapshot-table th:nth-child(16),
.ozon-snapshot-table td:nth-child(16),
.ozon-snapshot-table th:nth-child(17),
.ozon-snapshot-table td:nth-child(17) { width: 118px; }
.ozon-snapshot-table th:nth-child(14),
.ozon-snapshot-table td:nth-child(14),
.ozon-snapshot-table th:nth-child(19),
.ozon-snapshot-table td:nth-child(19) { width: 240px; }
.clamp-cell {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.nowrap-cell {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.money-cell {
  color: #0f8b4c;
  font-weight: 900;
}

.badge, .mini {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  background: #eef6ff;
  color: var(--blue);
  margin: 2px 4px 2px 0;
  white-space: nowrap;
}
.mini { background: #f3f5f9; color: #4b5d78; }
.badge.green { background: #eaf8f1; color: var(--green); }
.badge.orange { background: #fff4e3; color: var(--orange); }
.badge.red { background: #fff0f0; color: var(--red); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}
.hero-box {
  padding: 28px;
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 18% 15%, rgba(0,216,255,.42), transparent 30%),
    radial-gradient(circle at 80% 5%, rgba(0,102,255,.42), transparent 28%),
    linear-gradient(135deg, #07111f, #0b2b54 50%, #0c4a6e);
  box-shadow: var(--glow);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-box::after {
  content: "";
  display: block;
  width: 160px;
  height: 3px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), transparent);
}
.hero-box h3 { font-size: 30px; margin: 8px 0 10px; }
.hero-box p { color: rgba(255,255,255,.78); line-height: 1.8; }
.version {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 900;
}

.empty {
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: var(--muted);
  background: #fbfdff;
}
.muted { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.steps div {
  padding: 16px;
  border-radius: 16px;
  background: #f8faff;
  border: 1px solid var(--line);
}
.steps strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  margin-bottom: 10px;
}
.steps span { display: block; font-weight: 900; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.small-btn {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 10px;
  background: var(--purple);
  margin: 2px 4px 2px 0;
}

.small-btn.blue { background: var(--blue); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

.form-grid button {
  height: 44px;
}

.filter-console {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 8% 10%, rgba(0,216,255,.20), transparent 30%),
    linear-gradient(135deg, rgba(7,17,31,.96), rgba(12,42,72,.94));
  border: 1px solid rgba(0,216,255,.18);
  box-shadow: var(--glow);
}

.filter-console h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.filter-console p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
  font-size: 13px;
}

.filter-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
}

.filter-chip {
  min-height: 74px;
  padding: 11px 12px;
  border-radius: 16px;
  text-align: left;
  color: #dcecff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.filter-chip:hover,
.filter-chip.active {
  color: white;
  background: linear-gradient(135deg, rgba(0,102,255,.74), rgba(0,216,255,.28));
  border-color: rgba(0,216,255,.38);
}

.filter-chip strong,
.filter-chip small {
  display: block;
}

.filter-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  margin: 6px 0 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  font-weight: 950;
}

.filter-chip small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.profile-panel {
  border: 1px solid rgba(0, 102, 255, .24);
  background:
    radial-gradient(circle at 0 0, rgba(0,216,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,251,255,.94));
  box-shadow: 0 22px 70px rgba(0, 102, 255, .13);
}

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

.profile-head button {
  margin-left: auto;
}

.profile-head button + button {
  margin-left: 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 20%, rgba(0,216,255,.12), transparent 34%),
    linear-gradient(135deg, rgba(7,17,31,.96), rgba(13,42,78,.92));
  color: white;
  border: 1px solid rgba(0,216,255,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  margin-bottom: 16px;
}

.completion-ring {
  --pct: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #07111f 58%, transparent 60%),
    conic-gradient(var(--cyan) calc(var(--pct) * 1%), rgba(255,255,255,.16) 0);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 28px rgba(0,216,255,.16);
}

.completion-ring span {
  font-size: 24px;
  font-weight: 950;
}

.completion-ring small {
  margin-top: -36px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
}

.profile-summary-main h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.profile-summary-main p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.missing-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 850;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #305075;
  background: #f1f6ff;
  box-shadow: none;
  border: 1px solid rgba(148,163,184,.24);
}

.profile-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), #00a8ff);
  box-shadow: 0 12px 28px rgba(0,102,255,.18);
}

.profile-tab small {
  opacity: .76;
  font-weight: 900;
}

.profile-tab i {
  font-style: normal;
  opacity: .56;
  font-weight: 900;
}

.tab-warn {
  min-width: 30px;
  height: 20px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff9f1c;
  color: white;
  font-size: 11px;
  font-weight: 950;
}

.profile-group {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248,251,255,.98), rgba(243,247,255,.96));
  border: 1px solid var(--line);
}

.profile-group-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-group h4 {
  margin: 0 0 4px;
  color: #24395f;
}

.profile-group-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

.profile-grid label span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #344260;
}

.profile-grid label em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-grid label b {
  font-style: normal;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
}

.required-field input,
.required-field select,
.required-field textarea {
  border-color: rgba(214, 165, 69, .42);
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

textarea {
  width: 100%;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  resize: vertical;
  font-family: inherit;
  outline: none;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #64748b;
  background: #eef2f7;
  cursor: not-allowed;
}

.sensitive-placeholder {
  color: #8a5a00 !important;
  background: linear-gradient(135deg, #fff8e6, #eef3ff) !important;
  border-color: rgba(245, 158, 11, .32) !important;
  font-weight: 800;
  letter-spacing: .03em;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: #3c4b66;
  line-height: 2;
}

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero, .steps { grid-template-columns: 1fr; }
  .sidebar { width: 238px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .actions { flex-wrap: wrap; }
  .profile-grid, .form-grid { grid-template-columns: 1fr; }
  .filter-console { grid-template-columns: 1fr; }
  .filter-chips { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

/* V19 商务科技视觉增强：更强层级、更干净表单、更像正式业务系统 */
.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 22%),
    radial-gradient(circle at 16% 4%, rgba(0,216,255,.22), transparent 28%),
    radial-gradient(circle at 84% 38%, rgba(214,165,69,.13), transparent 26%),
    linear-gradient(180deg, #050b14 0%, #08172c 52%, #06101d 100%);
}

.brand {
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
}

.nav {
  position: relative;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

.nav::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
}

.nav.active::before,
.nav:hover::before {
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  box-shadow: 0 0 14px rgba(0,216,255,.55);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(7,17,31,.92), rgba(8,24,45,.80)),
    rgba(7, 17, 31, .78);
}

.card, .panel, .profile-panel {
  border-color: rgba(210, 226, 255, .72);
  box-shadow:
    0 22px 70px rgba(2, 8, 23, .16),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.94));
}

.table-wrap {
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  letter-spacing: .2px;
}

td {
  color: #26344f;
}

input, select, textarea {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,255,.98));
  border-color: rgba(128, 148, 178, .30);
}

textarea:focus {
  border-color: rgba(36,91,219,.55);
  box-shadow: 0 0 0 4px rgba(36,91,219,.08);
}

.profile-group {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,255,.96));
  border-color: rgba(167, 188, 220, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
}

.profile-grid label {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(219, 230, 246, .72);
}

.profile-grid label:focus-within {
  border-color: rgba(0, 102, 255, .32);
  box-shadow: 0 10px 26px rgba(0,102,255,.08);
}

.followup-box {
  border-color: rgba(0, 216, 255, .18);
  background:
    radial-gradient(circle at 6% 0%, rgba(0,216,255,.10), transparent 30%),
    linear-gradient(180deg, rgba(248,252,255,.98), rgba(241,247,255,.96));
}

.followup-form {
  display: grid;
  grid-template-columns: 180px 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin: 12px 0 14px;
}

.followup-form textarea {
  min-height: 46px;
}

.followup-form button {
  white-space: nowrap;
}

.profile-worklist {
  margin: 16px 0;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 8% 0%, rgba(0,216,255,.18), transparent 32%),
    radial-gradient(circle at 96% 16%, rgba(214,165,69,.14), transparent 28%),
    linear-gradient(135deg, rgba(7,17,31,.98), rgba(10,35,67,.94));
  border: 1px solid rgba(0,216,255,.18);
  box-shadow: var(--glow);
}

.worklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.worklist-head h4 {
  margin: 0 0 6px;
  font-size: 20px;
  color: white;
}

.worklist-head p {
  margin: 0;
  color: rgba(226,236,255,.72);
  line-height: 1.65;
}

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

.work-card {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 158px;
  padding: 15px;
  text-align: left;
  border-radius: 18px;
  color: #eaf4ff;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.work-card:hover {
  border-color: rgba(0,216,255,.38);
  background: linear-gradient(135deg, rgba(0,102,255,.22), rgba(255,255,255,.07));
}

.work-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.work-top b {
  font-size: 15px;
  color: white;
}

.work-top i {
  font-style: normal;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.work-card.hot .work-top i { background: rgba(239,68,68,.18); color: #fecaca; }
.work-card.warm .work-top i { background: rgba(255,159,28,.18); color: #fde68a; }
.work-card.done .work-top i { background: rgba(20,184,122,.18); color: #bbf7d0; }

.work-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  overflow: hidden;
}

.work-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--blue));
}

.work-meta,
.work-action {
  color: rgba(226,236,255,.74);
  font-size: 12px;
  line-height: 1.55;
}

.work-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-missing small,
.work-ok {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.work-missing small {
  color: #7c2d12;
  background: #ffedd5;
}

.work-ok {
  color: #065f46;
  background: #d1fae5;
}

.badge.blue {
  background: #e8f2ff;
  color: #0757d6;
}

.small-btn.blue,
button.blue {
  background: linear-gradient(135deg, #0757d6, #00a6ff);
}

.account-cards .value {
  font-size: 22px;
}

.setting-value {
  min-width: 360px;
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid rgba(44, 62, 100, .16);
  border-radius: 14px;
  padding: 10px 12px;
  color: #102033;
  background: #f8fbff;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .followup-form { grid-template-columns: 1fr; }
  .worklist-grid { grid-template-columns: 1fr; }
}
