:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-strong: #ebe4d8;
  --panel: #fbf8f2;
  --panel-2: #f6f2ea;
  --ink: #2a3440;
  --muted: #697586;
  --line: #ddd4c6;
  --navy: #374454;
  --navy-soft: #516174;
  --orange: #bf7a46;
  --orange-soft: rgba(191, 122, 70, 0.12);
  --green: #50715f;
  --red: #9f5b57;
  --shadow: 0 20px 50px rgba(30, 38, 48, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--bg), var(--bg-strong));
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.sidebar {
  padding: 28px 18px;
  border-right: 1px solid rgba(61, 76, 91, 0.08);
  background: linear-gradient(180deg, rgba(42, 52, 64, 0.96), rgba(56, 69, 84, 0.92));
  color: #f5f1ea;
  min-width: 0;
  overflow: hidden;
}

.brand {
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-kicker,
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(255, 236, 219, 0.76);
}

.brand h1 {
  margin: 8px 0 6px;
  font-size: 28px;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 0;
  color: rgba(245, 241, 234, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.nav {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

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

.nav-section-title {
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
  color: rgba(245, 241, 234, 0.48);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-section-links {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(245, 241, 234, 0.82);
  background: transparent;
  border: 1px solid transparent;
}

.nav-link.active {
  background: rgba(191, 122, 70, 0.14);
  border-color: rgba(191, 122, 70, 0.18);
  color: #fff7ef;
}

.main {
  padding: 22px;
  min-width: 0;
  overflow-x: hidden;
}

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

.topbar h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.eyebrow {
  color: var(--orange);
}

.topbar-actions,
.action-row,
.tag-row,
.stat-row,
.toolbar,
.filters,
.quick-grid,
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.secondary-button,
.primary-button,
.status-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.primary-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #cf8953, #b96e39);
}

.secondary-button {
  background: var(--panel-2);
}

.page-grid,
.split-grid,
.detail-grid,
.dashboard-grid,
.stats-grid,
.metric-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

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

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

.metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.card,
.panel,
.metric-card,
.empty-panel {
  background: rgba(251, 248, 242, 0.92);
  border: 1px solid rgba(221, 212, 198, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel {
  padding: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-card-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 122, 70, 0.3);
  box-shadow: 0 24px 54px rgba(30, 38, 48, 0.1);
}

.metric-copy {
  display: grid;
  gap: 6px;
}

.metric-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
}

.metric-card.focus {
  background: rgba(191, 122, 70, 0.12);
}

.metric-card.warm {
  background: rgba(191, 122, 70, 0.08);
}

.metric-card.cool {
  background: rgba(55, 68, 84, 0.08);
}

.metric-card.risk {
  background: rgba(159, 91, 87, 0.08);
}

.section-title,
.card h3,
.card h4 {
  margin: 0 0 12px;
}

.section-note,
.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.list-item,
.timeline-item,
.alert-item,
.activity-item,
.owner-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(221, 212, 198, 0.8);
}

.timeline,
.stack {
  display: grid;
  gap: 12px;
}

.pill,
.tag,
.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.tag-button {
  cursor: pointer;
}

.nav-icon,
.metric-icon,
.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-icon svg,
.metric-icon svg,
.quick-link-icon svg {
  width: 18px;
  height: 18px;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.quick-link-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(221, 212, 198, 0.9);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 122, 70, 0.3);
  box-shadow: 0 24px 54px rgba(30, 38, 48, 0.1);
}

.quick-link-card strong {
  font-size: 16px;
}

.quick-link-card span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(191, 122, 70, 0.12);
  color: var(--orange);
}

.quick-link-icon svg {
  width: 20px;
  height: 20px;
}

.score-chip.high {
  color: var(--green);
  background: rgba(80, 113, 95, 0.1);
}

.score-chip.medium {
  color: var(--orange);
  background: rgba(191, 122, 70, 0.12);
}

.score-chip.low {
  color: var(--red);
  background: rgba(159, 91, 87, 0.1);
}

.table-wrap {
  overflow: auto;
}

.chart-list {
  display: grid;
  gap: 14px;
}

.chart-row {
  display: grid;
  gap: 8px;
}

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

.stats-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.stats-tab.active {
  background: var(--orange-soft);
  color: var(--ink);
  border-color: rgba(191, 122, 70, 0.28);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(221, 212, 198, 0.82);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.toolbar-card {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.toolbar-card .filters input,
.toolbar-card .filters select,
.table select,
.table input,
.form-grid input,
.form-grid select,
.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.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;
}

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

.empty-panel {
  padding: 24px;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(55, 68, 84, 0.08);
  overflow: hidden;
}

.progress-value {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c6814d, #b46836);
}

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

.login-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid rgba(61, 76, 91, 0.08);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 24px 64px rgba(31, 42, 51, 0.08);
}

.login-card h1 {
  margin: 10px 0 12px;
}

.login-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

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

.login-submit {
  width: 100%;
  justify-content: center;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(198, 129, 77, 0.12);
  color: #9a5426;
}

.login-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(61, 76, 91, 0.08);
  color: var(--muted);
  display: grid;
  gap: 6px;
}

@media (max-width: 1180px) {
  .quick-link-grid,
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .split-grid,
  .detail-grid,
  .stats-grid,
  .stats-grid-wide,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(61, 76, 91, 0.08);
  }

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

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

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
  }

  .quick-link-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
.view-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
}

.view-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.view-filter-chip:hover {
  border-color: rgba(205, 129, 67, 0.44);
  background: rgba(240, 230, 220, 0.7);
  transform: translateY(-1px);
}

.view-filter-chip.is-active {
  border-color: rgba(205, 129, 67, 0.66);
  background: rgba(205, 129, 67, 0.14);
  color: var(--orange);
}

.workbench-hero {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.workbench-hero.cool {
  background: linear-gradient(135deg, rgba(41, 58, 77, 0.96), rgba(61, 76, 91, 0.9));
  color: #f7f3ee;
}

.workbench-hero.focus {
  background: linear-gradient(135deg, rgba(26, 39, 55, 0.98), rgba(52, 71, 96, 0.92));
  color: #f7f3ee;
}

.workbench-hero.neutral {
  background: linear-gradient(135deg, rgba(252, 248, 243, 0.94), rgba(244, 236, 228, 0.88));
}

.workbench-hero .eyebrow,
.workbench-hero .muted,
.workbench-hero h3 {
  margin: 0;
}

.workbench-hero.cool .eyebrow,
.workbench-hero.focus .eyebrow,
.workbench-hero.cool .muted,
.workbench-hero.focus .muted,
.workbench-hero.cool h3,
.workbench-hero.focus h3 {
  color: inherit;
}

.operations-create-card {
  padding: 24px;
}

.operations-list {
  display: grid;
  gap: 18px;
}

.operations-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.operations-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr) minmax(220px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.operations-card-left,
.operations-card-center,
.operations-card-right {
  display: grid;
  gap: 14px;
}

.operations-card-right {
  align-content: space-between;
}

.operations-meta-grid,
.operations-progress-grid,
.operations-action-grid {
  display: grid;
  gap: 12px;
}

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

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

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

.progress-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(221, 212, 198, 0.86);
  background: rgba(255, 255, 255, 0.72);
}

.operations-detail {
  display: grid;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(221, 212, 198, 0.82);
}

.compact-stack {
  display: grid;
  gap: 10px;
}

@media (max-width: 1180px) {
  .operations-card-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .operations-meta-grid,
  .operations-progress-grid {
    grid-template-columns: 1fr;
  }
}

.evidence-cell {
  min-width: 260px;
}

.evidence-stack {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.evidence-input {
  display: block;
  width: 100%;
}

.evidence-grid {
  display: grid;
  gap: 10px;
}

.evidence-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(221, 212, 198, 0.82);
  background: rgba(255, 255, 255, 0.78);
}

.evidence-thumb-link {
  display: block;
}

.evidence-thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(221, 212, 198, 0.9);
}

.evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-name {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.evidence-remove {
  min-height: 32px;
  padding: 0 12px;
}

.evidence-empty {
  color: var(--muted);
  font-size: 13px;
}

.compact-management-page {
  gap: 18px;
}

.management-toolbar-panel,
.filter-panel,
.compact-list-panel,
.collapsible-form-panel {
  position: relative;
  overflow: hidden;
}

.management-toolbar-panel::before,
.filter-panel::before,
.compact-list-panel::before,
.collapsible-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(86, 142, 255, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(212, 124, 66, 0.08), transparent 40%);
}

.management-toolbar,
.toolbar-actions,
.filter-grid,
.compact-list,
.detail-drawer-body,
.detail-drawer-footer,
.drawer-subpanel,
.stable-form,
.row-actions {
  position: relative;
  z-index: 1;
}

.management-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

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

.filter-grid {
  display: grid;
  gap: 14px;
}

.filter-grid-primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.compact-filter-field {
  gap: 8px;
}

.filter-search-field {
  min-width: 0;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtle-tag {
  background: rgba(86, 142, 255, 0.12);
  border-color: rgba(86, 142, 255, 0.22);
  color: #7fb4ff;
}

.collapsible-form-panel {
  padding-bottom: 8px;
}

.stable-form {
  align-items: start;
}

.stable-form .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.compact-table-head,
.compact-table-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.compact-table-head {
  padding: 0 16px 8px;
  color: rgba(222, 232, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.compact-table-row {
  padding: 16px;
  border: 1px solid rgba(86, 142, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(13, 19, 32, 0.92)),
    rgba(14, 20, 32, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(126, 172, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.compact-table-row span,
.compact-table-row strong {
  min-width: 0;
}

.compact-table-row .strong {
  color: #f5f9ff;
}

.leads-head,
.leads-row {
  grid-template-columns:
    minmax(120px, 1.15fr)
    minmax(92px, 0.9fr)
    minmax(72px, 0.7fr)
    minmax(138px, 1.1fr)
    minmax(92px, 0.9fr)
    minmax(92px, 0.85fr)
    minmax(92px, 0.85fr)
    minmax(92px, 0.85fr)
    minmax(82px, 0.7fr)
    minmax(90px, 0.8fr)
    minmax(128px, 1fr)
    minmax(180px, 1.2fr);
}

.operations-head,
.operations-row {
  grid-template-columns:
    minmax(120px, 1.05fr)
    minmax(110px, 0.95fr)
    minmax(92px, 0.8fr)
    minmax(92px, 0.78fr)
    minmax(128px, 1fr)
    minmax(140px, 1fr)
    minmax(92px, 0.8fr)
    minmax(92px, 0.8fr)
    minmax(82px, 0.72fr)
    minmax(128px, 0.95fr)
    minmax(180px, 1.15fr);
}

.inline-progress {
  display: grid;
  gap: 6px;
}

.inline-progress strong {
  color: #f4f8ff;
  font-size: 13px;
}

.inline-progress-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.inline-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #59c4ff 0%, #6f6bff 55%, #d47c42 100%);
  box-shadow: 0 0 18px rgba(89, 196, 255, 0.45);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.row-actions .ghost-button,
.row-actions .secondary-button,
.row-actions .primary-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.detail-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.58);
  backdrop-filter: blur(4px);
  z-index: 60;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(760px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at top right, rgba(86, 142, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(8, 14, 25, 0.98), rgba(13, 19, 32, 0.98));
  border-left: 1px solid rgba(86, 142, 255, 0.22);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.34);
  z-index: 61;
}

.detail-drawer-header,
.detail-drawer-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-drawer-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-drawer-body {
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.drawer-subpanel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 142, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

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

.evidence-record-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(86, 142, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.evidence-record-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.evidence-record-copy {
  display: grid;
  gap: 8px;
}

.evidence-preview-link {
  display: block;
}

.evidence-preview-image {
  display: block;
  width: 144px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(86, 142, 255, 0.2);
}

.management-card-list {
  display: grid;
  gap: 14px;
}

.management-record {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.95fr);
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(86, 142, 255, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(13, 19, 32, 0.92)),
    rgba(14, 20, 32, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(126, 172, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.record-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.record-title-block {
  display: grid;
  gap: 8px;
}

.record-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.record-title-row strong {
  color: #f5f9ff;
  font-size: 18px;
  line-height: 1.2;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(222, 232, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

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

.record-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(86, 142, 255, 0.08);
}

.record-stat-label {
  font-size: 12px;
  color: rgba(222, 232, 255, 0.68);
}

.record-stat strong {
  color: #f5f9ff;
  font-size: 16px;
  line-height: 1.35;
}

.record-progress {
  align-content: start;
}

.record-side {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.record-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.record-actions {
  justify-content: flex-start;
}

.record-actions .ghost-button,
.record-actions .secondary-button,
.record-actions .primary-button {
  min-width: 0;
}

.operations-card-list .management-record,
.leads-card-list .management-record {
  position: relative;
  overflow: hidden;
}

.operations-card-list .management-record::before,
.leads-card-list .management-record::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(89, 196, 255, 0.95), rgba(212, 124, 66, 0.85));
  box-shadow: 0 0 20px rgba(89, 196, 255, 0.35);
}

@media (max-width: 1360px) {
  .filter-grid-primary,
  .filter-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-table-head {
    display: none;
  }

  .leads-row,
  .operations-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .row-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .management-toolbar,
  .detail-drawer-header,
  .detail-drawer-footer,
  .evidence-record-main {
    grid-template-columns: 1fr;
    display: grid;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .filter-grid-primary,
  .filter-grid-secondary,
  .leads-row,
  .operations-row {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    width: 100vw;
  }

  .management-record {
    padding: 16px;
  }

  .record-title-row strong {
    font-size: 16px;
  }
}

/* ===== Futuristic Command Center theme override ===== */
:root {
  color-scheme: dark;
  --bg: #050b18;
  --bg-strong: #091325;
  --panel: rgba(12, 21, 40, 0.84);
  --panel-2: rgba(9, 18, 36, 0.92);
  --ink: #eaf2ff;
  --muted: #8ea4c2;
  --line: rgba(92, 144, 255, 0.22);
  --navy: #38bdf8;
  --navy-soft: #8b5cf6;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --green: #34d399;
  --red: #fb7185;
  --shadow:
    0 24px 80px rgba(1, 7, 19, 0.45),
    0 0 0 1px rgba(86, 140, 255, 0.05);
  --radius: 18px;
  --radius-sm: 14px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 26%),
    radial-gradient(circle at 50% 120%, rgba(249, 115, 22, 0.08), transparent 30%),
    linear-gradient(180deg, #040916 0%, #07111f 32%, #091428 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 64% 72%, rgba(139, 92, 246, 0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 84%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px;
  opacity: 0.32;
}

body::after {
  backdrop-filter: saturate(120%);
}

.shell {
  background: linear-gradient(90deg, rgba(3, 8, 18, 0.68), rgba(4, 9, 20, 0.2));
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 18px 24px;
  border-right: 1px solid rgba(111, 154, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 13, 28, 0.96), rgba(10, 17, 34, 0.92)),
    rgba(8, 14, 27, 0.94);
  box-shadow:
    inset -1px 0 0 rgba(115, 165, 255, 0.08),
    18px 0 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.12), transparent 30%);
}

.brand {
  position: relative;
  padding: 10px 12px 20px;
  border-bottom: 1px solid rgba(122, 165, 255, 0.1);
}

.brand h1 {
  color: #f7fbff;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
}

.brand-kicker {
  color: rgba(102, 218, 255, 0.84);
}

.brand-subtitle,
.nav-section-title {
  color: rgba(156, 177, 206, 0.7);
}

.nav {
  gap: 26px;
}

.nav-section-links {
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 13px 14px;
  border-radius: 16px;
  color: rgba(229, 240, 255, 0.84);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link:hover {
  transform: translateX(2px);
  border-color: rgba(77, 177, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.18)),
    rgba(18, 31, 53, 0.9);
  border-color: rgba(94, 167, 255, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(143, 200, 255, 0.08),
    0 0 0 1px rgba(94, 167, 255, 0.08),
    0 12px 28px rgba(4, 12, 24, 0.34),
    0 0 28px rgba(56, 189, 248, 0.12);
}

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #e8f3ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(126, 172, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link.active .nav-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(139, 92, 246, 0.24));
  border-color: rgba(120, 192, 255, 0.22);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.16);
}

.main {
  padding: 28px 28px 32px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.05), transparent 28%),
    transparent;
}

.topbar {
  margin-bottom: 24px;
  padding: 8px 2px;
}

.eyebrow {
  color: #67d8ff;
  letter-spacing: 0.12em;
}

.topbar h2,
.card h3,
.card h4,
.section-title {
  color: #f5f9ff;
}

.muted,
.section-note,
.quick-link-card span:last-child,
.table th,
.record-meta,
.record-stat-label,
.brand-subtitle {
  color: var(--muted);
}

.card,
.panel,
.metric-card,
.empty-panel,
.toolbar-card,
.quick-link-card,
.list-item,
.timeline-item,
.alert-item,
.activity-item,
.owner-item,
.list-item,
.table-wrap {
  border: 1px solid rgba(92, 144, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 28, 51, 0.88), rgba(10, 17, 31, 0.92)),
    rgba(10, 17, 31, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(162, 205, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.card,
.panel {
  padding: 20px;
}

.workbench-hero,
.tech-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.2), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(9, 20, 38, 0.96), rgba(12, 25, 46, 0.92));
  border: 1px solid rgba(103, 177, 255, 0.26);
}

.workbench-hero::after,
.tech-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 38%;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 66%);
  pointer-events: none;
}

.workbench-hero h3,
.tech-hero-panel h3 {
  font-size: 34px;
  margin-bottom: 8px;
}

.metric-grid,
.tech-metric-grid {
  gap: 18px;
}

.metric-card,
.metric-card-link {
  min-height: 128px;
  align-items: center;
  border-radius: 20px;
}

.metric-card-link {
  background:
    linear-gradient(180deg, rgba(14, 24, 44, 0.9), rgba(9, 16, 31, 0.94)),
    rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(90, 148, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(180, 219, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.metric-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 188, 255, 0.3);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(56, 189, 248, 0.12);
}

.metric-card strong {
  font-size: 34px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

.metric-card.focus,
.metric-card.warm,
.metric-card.cool,
.metric-card.risk {
  background: transparent;
}

.metric-icon,
.quick-link-icon {
  color: #eff6ff;
  border: 1px solid rgba(112, 170, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(139, 92, 246, 0.18));
}

.quick-link-grid {
  gap: 16px;
}

.quick-link-card,
.tech-link-card {
  min-height: 170px;
  align-content: start;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 26, 48, 0.9), rgba(9, 17, 31, 0.95)),
    rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(91, 145, 255, 0.18);
}

.quick-link-card:hover,
.tech-link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(119, 196, 255, 0.34);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(139, 92, 246, 0.12);
}

.quick-link-card strong {
  font-size: 18px;
  color: #f4f8ff;
}

.quick-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(56, 189, 248, 0.22));
}

.dashboard-section,
.tech-panel {
  background:
    linear-gradient(180deg, rgba(12, 21, 40, 0.9), rgba(8, 15, 28, 0.94)),
    rgba(8, 15, 28, 0.92);
}

.list-item,
.tech-list-item,
.owner-item,
.activity-item,
.timeline-item,
.alert-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(101, 152, 255, 0.12);
}

.progress-bar,
.tech-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(107, 154, 255, 0.12);
}

.progress-value {
  background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 58%, #f97316 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.ghost-button,
.secondary-button,
.primary-button,
.status-input,
.stats-tab,
.pill,
.tag,
.score-chip {
  min-height: 40px;
  border-radius: 999px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.ghost-button,
.secondary-button,
.status-input,
.stats-tab,
.pill,
.tag,
.score-chip {
  color: #e8f2ff;
  border-color: rgba(96, 148, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.stats-tab:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #fefefe;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #0ea5e9, #6366f1 58%, #f97316 110%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(37, 99, 235, 0.24);
}

.primary-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 36px rgba(37, 99, 235, 0.3),
    0 0 22px rgba(56, 189, 248, 0.14);
}

.secondary-button:hover,
.ghost-button:hover,
.stats-tab:hover,
.tag-button:hover {
  border-color: rgba(120, 188, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.stats-tab.active,
.tag.active,
.pill.active {
  color: #f7fbff;
  border-color: rgba(115, 188, 255, 0.34);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.18));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
}

.score-chip.high {
  color: #86efac;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.18);
}

.score-chip.medium {
  color: #fbbf24;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.16);
}

.score-chip.low {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.16);
}

.toolbar-card,
.management-toolbar-panel,
.filter-panel,
.collapsible-form-panel,
.compact-list-panel {
  background:
    linear-gradient(180deg, rgba(12, 21, 40, 0.9), rgba(8, 15, 28, 0.95)),
    rgba(8, 15, 28, 0.92);
  border-color: rgba(91, 145, 255, 0.18);
}

.table-wrap {
  border-radius: 18px;
  padding: 8px 0;
  overflow: auto;
}

.table {
  min-width: 940px;
}

.table th,
.table td {
  border-bottom-color: rgba(96, 148, 255, 0.12);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table select,
.table input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar-card .filters input,
.toolbar-card .filters select,
.field input,
.field select,
.field textarea {
  width: 100%;
  color: #edf5ff;
  border: 1px solid rgba(99, 148, 255, 0.16);
  background: rgba(4, 10, 20, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.table select:focus,
.table input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.toolbar-card .filters input:focus,
.toolbar-card .filters select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(92, 194, 255, 0.42);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.12),
    0 0 24px rgba(56, 189, 248, 0.08);
}

.field label,
.toolbar-card strong,
.kicker-row strong {
  color: #f4f8ff;
}

.login-card {
  max-width: 480px;
  border: 1px solid rgba(100, 153, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(13, 22, 42, 0.92), rgba(8, 15, 28, 0.96)),
    rgba(8, 15, 28, 0.95);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(56, 189, 248, 0.08);
}

.detail-drawer,
.detail-drawer-shell,
.modal-content {
  border-color: rgba(101, 152, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.98), rgba(8, 14, 27, 0.98)),
    rgba(8, 14, 27, 0.98);
  box-shadow:
    -24px 0 60px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(56, 189, 248, 0.08);
}

.drawer-subpanel,
.evidence-record-card,
.record-stat {
  background: rgba(255, 255, 255, 0.03);
}

.management-record {
  border-color: rgba(95, 149, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 26, 48, 0.92), rgba(10, 17, 31, 0.96)),
    rgba(10, 17, 31, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(178, 216, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.operations-card-list .management-record::before,
.leads-card-list .management-record::before {
  width: 4px;
  background: linear-gradient(180deg, #38bdf8, #8b5cf6 56%, #f97316);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.24);
}

.record-title-row strong,
.record-stat strong {
  color: #f7fbff;
}

.evidence-preview-image {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.empty-panel {
  color: #91a6c3;
  text-align: center;
}

@media (max-width: 1180px) {
  .metric-grid,
  .tech-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sidebar {
    position: static;
    min-height: auto;
  }

  .main {
    padding: 18px;
  }

  .metric-grid,
  .tech-metric-grid,
  .quick-link-grid,
  .stats-grid,
  .dashboard-grid,
  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Readability tuning: calmer command-center skin ===== */
:root {
  --bg: #050b18;
  --bg-strong: #07111f;
  --panel: #0b1730;
  --panel-2: #0f1d3a;
  --ink: #f5f8ff;
  --muted: #94a7c6;
  --line: rgba(114, 146, 198, 0.2);
  --navy: #38bdf8;
  --navy-soft: #8b5cf6;
  --orange: #f97316;
  --shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.015);
}

body {
  color: #c8d4e8;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.07), transparent 20%),
    linear-gradient(180deg, #050b18 0%, #07111f 44%, #081223 100%);
}

body::before {
  opacity: 0.12;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(10, 17, 33, 0.96)),
    #09111f;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    10px 0 28px rgba(0, 0, 0, 0.24);
}

.brand h1,
.topbar h2,
.card h3,
.card h4,
.section-title,
.record-title-row strong,
.record-stat strong,
.quick-link-card strong,
.metric-card strong {
  color: #f5f8ff;
  text-shadow: none;
}

.brand-subtitle,
.nav-section-title,
.muted,
.section-note,
.quick-link-card span:last-child,
.table th,
.record-meta,
.record-stat-label,
.field label,
.record-side,
.metric-copy span {
  color: #94a7c6;
}

.eyebrow,
.brand-kicker {
  color: #67d4ff;
}

.nav-link {
  color: rgba(220, 231, 248, 0.86);
  background: rgba(255, 255, 255, 0.018);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.032);
  box-shadow: none;
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.12)),
    rgba(18, 30, 52, 0.94);
  border-color: rgba(92, 166, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.nav-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.nav-link.active .nav-icon {
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.12);
}

.card,
.panel,
.metric-card,
.empty-panel,
.toolbar-card,
.quick-link-card,
.list-item,
.timeline-item,
.alert-item,
.activity-item,
.owner-item,
.table-wrap,
.management-record,
.detail-drawer,
.drawer-subpanel,
.evidence-record-card,
.collapsible-form-panel,
.compact-list-panel,
.filter-panel,
.management-toolbar-panel {
  background:
    linear-gradient(180deg, rgba(12, 23, 48, 0.96), rgba(15, 29, 58, 0.96)),
    #0b1730;
  border-color: rgba(124, 149, 192, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.workbench-hero,
.tech-hero-panel {
  background:
    linear-gradient(135deg, rgba(11, 23, 48, 0.98), rgba(15, 29, 58, 0.96)),
    #0b1730;
  border-color: rgba(111, 152, 219, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.workbench-hero::after,
.tech-hero-panel::after {
  opacity: 0.32;
}

.workbench-hero h3,
.tech-hero-panel h3 {
  font-size: 30px;
  line-height: 1.2;
}

.topbar h2 {
  font-size: 31px;
}

.card h3,
.card h4 {
  font-size: 22px;
  line-height: 1.3;
}

.metric-card,
.metric-card-link {
  min-height: 122px;
}

.metric-card-link {
  background:
    linear-gradient(180deg, rgba(12, 24, 47, 0.98), rgba(14, 28, 54, 0.96)),
    #0e1d38;
  border-color: rgba(120, 150, 197, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

.metric-card-link:hover {
  border-color: rgba(89, 177, 242, 0.22);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(56, 189, 248, 0.08);
}

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

.metric-icon,
.quick-link-icon {
  box-shadow: none;
}

.quick-link-card,
.tech-link-card {
  background:
    linear-gradient(180deg, rgba(12, 24, 47, 0.98), rgba(14, 28, 54, 0.96)),
    #0f1d3a;
  border-color: rgba(120, 150, 197, 0.15);
}

.quick-link-card:hover,
.tech-link-card:hover {
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(139, 92, 246, 0.07);
}

.list-item,
.tech-list-item,
.owner-item,
.activity-item,
.timeline-item,
.alert-item,
.record-stat,
.drawer-subpanel,
.evidence-record-card {
  background: rgba(255, 255, 255, 0.022);
  border-color: rgba(123, 149, 194, 0.1);
}

.ghost-button,
.secondary-button,
.status-input,
.stats-tab,
.pill,
.tag,
.score-chip {
  color: #dce7f8;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(124, 149, 192, 0.18);
  box-shadow: none;
}

.ghost-button:hover,
.secondary-button:hover,
.stats-tab:hover,
.tag-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(111, 166, 238, 0.24);
  box-shadow: none;
}

.primary-button {
  background: linear-gradient(135deg, #208bcf, #5c6ee8 62%, #d97706 120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(24, 78, 160, 0.22);
}

.primary-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(24, 78, 160, 0.26);
}

.stats-tab.active,
.tag.active,
.pill.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(89, 177, 242, 0.26);
  box-shadow: none;
}

.table select,
.table input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar-card .filters input,
.toolbar-card .filters select,
.field input,
.field select,
.field textarea {
  min-height: 44px;
  color: #dce7f8;
  background: rgba(6, 12, 24, 0.72);
  border-color: rgba(124, 149, 192, 0.22);
}

.table select:focus,
.table input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.toolbar-card .filters input:focus,
.toolbar-card .filters select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(82, 180, 247, 0.34);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.record-meta,
.list-item p,
.card p,
.table td,
.field,
.quick-link-card span,
.drawer-subpanel,
.evidence-record-copy,
.record-stat strong,
.record-stat-label {
  line-height: 1.6;
}

.record-title-row strong,
.quick-link-card strong {
  font-size: 17px;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.table td,
.field input,
.field select,
.field textarea,
.list-item,
.metric-copy span {
  font-size: 14px;
}

.empty-panel {
  color: #9bb0cf;
}

/* ===== Light SaaS command-center override ===== */
:root {
  color-scheme: light;
  --bg: #eaf6fb;
  --bg-strong: #edf7ff;
  --bg-soft: #f6fbff;
  --panel: #ffffff;
  --panel-2: #f8fcff;
  --panel-3: #e9f7ff;
  --ink: #16324f;
  --ink-soft: #214a68;
  --muted: #47657e;
  --muted-soft: #7f9bb0;
  --line: #d8ecf6;
  --line-strong: #c6e3f2;
  --brand: #4db7e5;
  --brand-strong: #39a8d8;
  --accent: #7cc7f3;
  --accent-2: #8b5cf6;
  --success: #67c587;
  --warning: #f5c56b;
  --danger: #f08a8a;
  --info: #69bce3;
  --shadow: 0 18px 36px rgba(22, 50, 79, 0.08);
  --shadow-soft: 0 10px 24px rgba(33, 74, 104, 0.07);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(124, 206, 240, 0.22), transparent 24%),
    radial-gradient(circle at top left, rgba(77, 183, 229, 0.14), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eff8fd 44%, #eaf6fb 100%);
}

body,
.main,
.page-grid,
.split-grid,
.detail-grid,
.dashboard-grid,
.stats-grid,
.metric-grid,
.compact-list,
.management-card-list,
.card,
.panel,
.table td,
.table th,
.list-item,
.record-meta,
.muted,
.brand-subtitle {
  text-shadow: none;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(47, 168, 204, 0.96), rgba(36, 143, 178, 0.96)),
    #2fa8cc;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 12px 0 30px rgba(36, 143, 178, 0.12);
}

.sidebar::before {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 38%);
  opacity: 0.8;
}

.brand {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.brand-kicker,
.nav-section-title {
  color: rgba(237, 250, 255, 0.72);
}

.brand h1,
.brand-subtitle,
.nav-link,
.nav-link:visited {
  color: #f6fdff;
}

.brand h1 {
  font-size: 30px;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(244, 252, 255, 0.82);
  line-height: 1.7;
}

.nav-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  box-shadow: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.96);
  color: #1d5874;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 24px rgba(18, 84, 109, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: inherit;
  box-shadow: none;
}

.nav-link.active .nav-icon {
  background: rgba(77, 183, 229, 0.14);
  border-color: rgba(77, 183, 229, 0.22);
  box-shadow: 0 0 0 1px rgba(77, 183, 229, 0.08);
}

.main {
  background: transparent;
}

.topbar h2,
.management-toolbar h2,
.card h3,
.card h4,
.workbench-hero h3,
.tech-hero-panel h3,
.section-heading h3,
.record-title-row strong,
.quick-link-card strong,
.metric-copy strong {
  color: #16324f;
}

.topbar h2 {
  font-size: 31px;
  font-weight: 800;
}

.eyebrow {
  color: #399dcb;
  letter-spacing: 0.06em;
}

.muted,
.card p,
.record-meta,
.record-stat-label,
.quick-link-card span,
.list-item p,
.empty-panel,
.field span,
.table td,
.table th,
.detail-drawer .muted {
  color: #5d7891;
}

.card,
.panel,
.metric-card,
.empty-panel,
.toolbar-card,
.quick-link-card,
.list-item,
.timeline-item,
.alert-item,
.activity-item,
.owner-item,
.table-wrap,
.management-record,
.detail-drawer,
.drawer-subpanel,
.evidence-record-card,
.collapsible-form-panel,
.compact-list-panel,
.filter-panel,
.management-toolbar-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96)),
    #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.workbench-hero,
.tech-hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 247, 255, 0.95)),
    #ffffff;
  border-color: rgba(105, 188, 227, 0.24);
  box-shadow:
    0 22px 40px rgba(22, 50, 79, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workbench-hero::after,
.tech-hero-panel::after {
  background:
    radial-gradient(circle at top right, rgba(123, 207, 242, 0.22), transparent 45%);
  opacity: 0.7;
}

.workbench-hero h3,
.tech-hero-panel h3 {
  font-size: 32px;
  line-height: 1.2;
}

.workbench-hero .muted,
.tech-hero-panel .muted {
  color: #53718c;
  max-width: 72ch;
}

.metric-card,
.metric-card-link {
  min-height: 122px;
}

.metric-card-link,
.quick-link-card,
.tech-link-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 248, 253, 0.98)),
    #ffffff;
  border-color: rgba(210, 232, 244, 0.92);
  box-shadow: var(--shadow-soft);
}

.metric-card-link:hover,
.quick-link-card:hover,
.tech-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 183, 229, 0.32);
  box-shadow: 0 18px 36px rgba(57, 168, 216, 0.12);
}

.metric-copy strong {
  font-size: 33px;
  line-height: 1.05;
}

.metric-copy span,
.record-stat strong,
.record-stat-label {
  color: #57738d;
}

.metric-icon,
.quick-link-icon,
.stat-icon,
.record-icon {
  background: linear-gradient(135deg, rgba(233, 247, 255, 0.98), rgba(245, 251, 255, 0.98));
  border-color: rgba(154, 213, 240, 0.26);
  color: #389fce;
  box-shadow: none;
}

.list-item,
.tech-list-item,
.owner-item,
.activity-item,
.timeline-item,
.alert-item,
.record-stat,
.drawer-subpanel,
.evidence-record-card {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.95), rgba(239, 248, 253, 0.92));
  border-color: rgba(216, 236, 246, 0.92);
}

.ghost-button,
.secondary-button,
.status-input,
.stats-tab,
.pill,
.tag,
.score-chip,
.tag-button {
  color: #31526e;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(202, 226, 239, 0.96);
  box-shadow: none;
}

.ghost-button:hover,
.secondary-button:hover,
.stats-tab:hover,
.tag-button:hover,
.pill:hover {
  background: #f4fbff;
  border-color: rgba(105, 188, 227, 0.4);
  color: #1e4f69;
}

.primary-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #57bee8, #41aedc 56%, #76c8ef 100%);
  box-shadow:
    0 10px 22px rgba(77, 183, 229, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.primary-button:hover {
  background: linear-gradient(135deg, #44b1de, #399fca 56%, #68bde5 100%);
  box-shadow:
    0 14px 28px rgba(57, 168, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stats-tab.active,
.tag.active,
.pill.active {
  color: #16516c;
  background: #eaf7ff;
  border-color: rgba(105, 188, 227, 0.44);
}

.table-wrap,
.compact-list-panel,
.filter-panel,
.management-toolbar-panel {
  overflow: hidden;
}

.table {
  background: transparent;
}

.table th {
  color: #6c89a2;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table td {
  color: #2d4b65;
}

.table tr + tr td {
  border-top-color: #e7f2f8;
}

.table select,
.table input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toolbar-card .filters input,
.toolbar-card .filters select,
.field input,
.field select,
.field textarea,
.filter-grid input,
.filter-grid select {
  min-height: 46px;
  color: #24455f;
  background: #ffffff;
  border-color: #cfe6f2;
  box-shadow: inset 0 1px 2px rgba(25, 65, 91, 0.03);
}

.table select::placeholder,
.table input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #9ab0c0;
}

.table select:focus,
.table input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.toolbar-card .filters input:focus,
.toolbar-card .filters select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(77, 183, 229, 0.56);
  box-shadow:
    0 0 0 3px rgba(77, 183, 229, 0.12),
    inset 0 1px 2px rgba(25, 65, 91, 0.03);
}

.progress-bar,
.tech-progress {
  background: rgba(216, 236, 246, 0.9);
  border-color: rgba(210, 232, 244, 0.94);
}

.progress-value {
  background: linear-gradient(90deg, #4db7e5, #7cc7f3 60%, #8b5cf6 100%);
  box-shadow: none;
}

.status-success,
.tag.success,
.pill.success {
  color: #2f7b4d;
  background: rgba(103, 197, 135, 0.16);
  border-color: rgba(103, 197, 135, 0.22);
}

.status-warning,
.tag.warning,
.pill.warning {
  color: #94650b;
  background: rgba(245, 197, 107, 0.2);
  border-color: rgba(245, 197, 107, 0.24);
}

.status-danger,
.tag.danger,
.pill.danger {
  color: #a85656;
  background: rgba(240, 138, 138, 0.16);
  border-color: rgba(240, 138, 138, 0.22);
}

.status-info,
.tag.info,
.pill.info {
  color: #2d7ea7;
  background: rgba(105, 188, 227, 0.16);
  border-color: rgba(105, 188, 227, 0.22);
}

.detail-drawer,
.modal-content,
.drawer-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98)),
    #ffffff;
  border-color: rgba(205, 229, 242, 0.96);
  box-shadow: 0 26px 48px rgba(22, 50, 79, 0.14);
}

.detail-drawer-header,
.modal-header {
  border-bottom-color: #e7f2f8;
}

.empty-panel {
  color: #7f9bb0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.92));
}

.topbar-actions,
.action-row,
.tag-row,
.stat-row,
.toolbar,
.filters,
.quick-grid,
.stats-tabs,
.toolbar-actions,
.record-actions {
  gap: 12px;
}

.section-heading,
.kicker-row,
.record-title-row {
  gap: 12px;
}

.record-title-row strong,
.quick-link-card strong {
  font-size: 18px;
}

.table td,
.field input,
.field select,
.field textarea,
.list-item,
.metric-copy span,
.muted {
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .sidebar {
    background:
      linear-gradient(180deg, rgba(47, 168, 204, 0.98), rgba(36, 143, 178, 0.98)),
      #2fa8cc;
  }

  .workbench-hero h3,
  .tech-hero-panel h3,
  .topbar h2 {
    font-size: 28px;
  }
}

/* ===== Playful accent layer: keep logic intact, add energy ===== */
:root {
  --accent-orange: #ffb86c;
  --accent-yellow: #ffd66b;
  --accent-green: #7ed9b5;
  --accent-purple: #b9b8ff;
  --accent-pink: #ffa8a8;
  --accent-peach: #ffc9a9;
  --accent-blue-soft: #dff4ff;
  --accent-orange-soft: #fff1df;
  --accent-yellow-soft: #fff8d9;
  --accent-green-soft: #e6fbf3;
  --accent-purple-soft: #efedff;
  --accent-pink-soft: #fff0f0;
  --accent-peach-soft: #fff1e8;
}

.topbar,
.management-toolbar,
.section-heading {
  position: relative;
}

.tech-workbench-page .workbench-hero,
.tech-workbench-page .tech-hero-panel {
  position: relative;
  overflow: hidden;
}

.tech-workbench-page .workbench-hero::before,
.tech-workbench-page .tech-hero-panel::before {
  content: "";
  position: absolute;
  top: -24px;
  right: 88px;
  width: 116px;
  height: 116px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.34), rgba(255, 184, 108, 0.18));
  transform: rotate(-12deg);
  pointer-events: none;
}

.tech-workbench-page .workbench-hero::after,
.tech-workbench-page .tech-hero-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 154px;
  height: 154px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(185, 184, 255, 0.34), transparent 44%),
    radial-gradient(circle at 70% 72%, rgba(126, 217, 181, 0.22), transparent 42%),
    radial-gradient(circle at 55% 30%, rgba(85, 194, 232, 0.16), transparent 52%);
  opacity: 1;
  pointer-events: none;
}

.tech-workbench-page .hero-copy {
  position: relative;
  z-index: 1;
}

.tech-workbench-page .hero-copy::after {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent-purple));
  opacity: 0.88;
}

.metric-grid > *:nth-child(1) .metric-icon,
.metric-grid > *:nth-child(1) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-orange-soft), #fff9ef);
  color: #d1832d;
  border-color: rgba(255, 184, 108, 0.32);
}

.metric-grid > *:nth-child(2) .metric-icon,
.metric-grid > *:nth-child(2) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-blue-soft), #f7fcff);
  color: #3eaad1;
  border-color: rgba(85, 194, 232, 0.28);
}

.metric-grid > *:nth-child(3) .metric-icon,
.metric-grid > *:nth-child(3) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-green-soft), #f6fffb);
  color: #39a987;
  border-color: rgba(126, 217, 181, 0.3);
}

.metric-grid > *:nth-child(4) .metric-icon,
.metric-grid > *:nth-child(4) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-purple-soft), #fbfaff);
  color: #7c77ea;
  border-color: rgba(185, 184, 255, 0.34);
}

.metric-grid > *:nth-child(5) .metric-icon,
.metric-grid > *:nth-child(5) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-pink-soft), #fff7f7);
  color: #da7272;
  border-color: rgba(255, 168, 168, 0.32);
}

.metric-grid > *:nth-child(6) .metric-icon,
.metric-grid > *:nth-child(6) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-yellow-soft), #fffdf3);
  color: #c39c23;
  border-color: rgba(255, 214, 107, 0.34);
}

.quick-link-grid > *:nth-child(6n + 1) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-orange-soft), #fff9ef);
  color: #d1832d;
  border-color: rgba(255, 184, 108, 0.3);
}

.quick-link-grid > *:nth-child(6n + 2) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-blue-soft), #f7fcff);
  color: #399dcb;
  border-color: rgba(85, 194, 232, 0.28);
}

.quick-link-grid > *:nth-child(6n + 3) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-green-soft), #f4fffb);
  color: #36a37f;
  border-color: rgba(126, 217, 181, 0.3);
}

.quick-link-grid > *:nth-child(6n + 4) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-purple-soft), #faf9ff);
  color: #756fdf;
  border-color: rgba(185, 184, 255, 0.34);
}

.quick-link-grid > *:nth-child(6n + 5) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-pink-soft), #fff7f7);
  color: #d86f7c;
  border-color: rgba(255, 168, 168, 0.32);
}

.quick-link-grid > *:nth-child(6n) .quick-link-icon {
  background: linear-gradient(135deg, var(--accent-peach-soft), #fff7f0);
  color: #d58a57;
  border-color: rgba(255, 201, 169, 0.34);
}

.quick-link-card,
.tech-link-card,
.metric-card-link {
  position: relative;
  overflow: hidden;
}

.quick-link-card::after,
.tech-link-card::after,
.metric-card-link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(85, 194, 232, 0.9), rgba(185, 184, 255, 0.92));
  opacity: 0.8;
}

.quick-link-grid > *:nth-child(3n + 2) .quick-link-card::after,
.quick-link-grid > *:nth-child(3n + 2) .tech-link-card::after {
  background: linear-gradient(135deg, rgba(255, 184, 108, 0.95), rgba(255, 214, 107, 0.95));
}

.quick-link-grid > *:nth-child(3n) .quick-link-card::after,
.quick-link-grid > *:nth-child(3n) .tech-link-card::after {
  background: linear-gradient(135deg, rgba(126, 217, 181, 0.95), rgba(185, 184, 255, 0.92));
}

.section-heading h3,
.kicker-row strong,
.management-toolbar h2,
.topbar h2 {
  position: relative;
}

.section-heading h3::before,
.management-toolbar h2::before,
.topbar h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 5px;
  vertical-align: -1px;
  background: linear-gradient(135deg, rgba(85, 194, 232, 0.92), rgba(185, 184, 255, 0.92));
  box-shadow: 0 4px 10px rgba(85, 194, 232, 0.12);
}

.tech-workbench-page .dashboard-section:nth-of-type(1) .section-heading h3::before,
.tech-operations-page .section-heading h3::before {
  background: linear-gradient(135deg, rgba(126, 217, 181, 0.92), rgba(85, 194, 232, 0.9));
}

.tech-leads-page .section-heading h3::before {
  background: linear-gradient(135deg, rgba(255, 184, 108, 0.95), rgba(255, 214, 107, 0.95));
}

.stats-page .section-heading h3::before,
.tech-stats-page .section-heading h3::before {
  background: linear-gradient(135deg, rgba(185, 184, 255, 0.96), rgba(85, 194, 232, 0.92));
}

.tag,
.pill,
.score-chip,
.subtle-tag {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag:not(.success):not(.warning):not(.danger):not(.info),
.pill:not(.success):not(.warning):not(.danger):not(.info),
.score-chip {
  color: #3f6f8d;
  background: #edf8ff;
  border-color: #d4ebf7;
}

.operations-card-list .tag,
.operations-card-list .pill,
.leads-card-list .tag,
.leads-card-list .pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.record-actions .ghost-button::before,
.record-actions .secondary-button::before,
.record-actions .primary-button::before,
.toolbar-actions .ghost-button::before,
.toolbar-actions .secondary-button::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(85, 194, 232, 0.7);
}

.record-actions .primary-button::before {
  background: rgba(255, 255, 255, 0.8);
}

.record-actions .ghost-button:nth-child(2)::before,
.toolbar-actions .ghost-button:nth-child(2)::before {
  background: rgba(255, 184, 108, 0.72);
}

.record-actions .ghost-button:nth-child(3)::before {
  background: rgba(126, 217, 181, 0.74);
}

.record-actions .ghost-button:nth-child(4)::before {
  background: rgba(255, 168, 168, 0.72);
}

.progress-value {
  background: linear-gradient(90deg, #55c2e8 0%, #6ccce8 45%, #7ed9b5 100%);
}

.operations-progress-grid .progress-card:nth-child(2n) .progress-value,
.operations-card-list .record-progress .progress-value {
  background: linear-gradient(90deg, #55c2e8 0%, #7bc7f1 55%, #b9b8ff 100%);
}

.empty-panel::before {
  content: "✦";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf8ff, #fff4e5);
  color: #54b9df;
  font-size: 14px;
  font-weight: 700;
}

.filter-panel,
.management-toolbar-panel,
.collapsible-form-panel {
  position: relative;
}

.filter-panel::after,
.management-toolbar-panel::after,
.collapsible-form-panel::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 18px;
  width: 56px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.18), rgba(255, 214, 107, 0.18), rgba(126, 217, 181, 0.16));
}

.nav-section-links .nav-link:nth-child(4n + 1) .nav-icon {
  background: linear-gradient(135deg, var(--accent-blue-soft), #f4fbff);
}

.nav-section-links .nav-link:nth-child(4n + 2) .nav-icon {
  background: linear-gradient(135deg, var(--accent-orange-soft), #fff8ef);
}

.nav-section-links .nav-link:nth-child(4n + 3) .nav-icon {
  background: linear-gradient(135deg, var(--accent-green-soft), #f2fff9);
}

.nav-section-links .nav-link:nth-child(4n) .nav-icon {
  background: linear-gradient(135deg, var(--accent-purple-soft), #faf9ff);
}

/* ===== Pastel polish layer: blue-white base with lively accents ===== */
:root {
  --accent-orange-strong: #ffb86c;
  --accent-yellow-strong: #ffd66b;
  --accent-green-strong: #7ed9b5;
  --accent-purple-strong: #b9b8ff;
  --accent-pink-strong: #ffa8a8;
  --accent-peach-strong: #ffc9a9;
  --hero-deco-blue: rgba(85, 194, 232, 0.18);
  --hero-deco-purple: rgba(185, 184, 255, 0.18);
  --hero-deco-green: rgba(126, 217, 181, 0.18);
  --hero-deco-yellow: rgba(255, 214, 107, 0.18);
  --hero-deco-orange: rgba(255, 184, 108, 0.18);
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(85, 194, 232, 0.10), transparent 19%),
    radial-gradient(circle at 84% 9%, rgba(255, 214, 107, 0.11), transparent 16%),
    radial-gradient(circle at 78% 24%, rgba(185, 184, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #f5fbff 0%, #eef8ff 48%, #f9fcff 100%);
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 78%, rgba(126, 217, 181, 0.08), transparent 18%),
    radial-gradient(circle at 92% 72%, rgba(255, 201, 169, 0.08), transparent 16%);
  z-index: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, #51bbdf 0%, #45afd4 24%, #2c96bf 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 20px 0 50px rgba(87, 159, 195, 0.14);
}

.sidebar .brand-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sidebar .brand-panel::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  opacity: 0.55;
}

.nav-link {
  backdrop-filter: blur(8px);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(26, 112, 149, 0.18);
}

.topbar,
.management-toolbar-panel,
.filter-panel,
.collapsible-form-panel,
.compact-list-panel,
.tech-panel,
.card {
  box-shadow:
    0 22px 50px rgba(125, 166, 201, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.72) inset;
}

.topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.96));
}

.page-grid {
  position: relative;
  z-index: 1;
}

.tech-workbench-page .workbench-hero,
.tech-workbench-page .tech-hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, #ffffff 0%, #f4fbff 58%, #eff9ff 100%);
  border: 1px solid rgba(166, 221, 244, 0.7);
}

.tech-workbench-page .workbench-hero::before,
.tech-workbench-page .tech-hero-panel::before {
  width: 180px;
  height: 180px;
  right: -36px;
  top: -44px;
  border-radius: 40px;
  transform: rotate(18deg);
  background:
    linear-gradient(135deg, var(--hero-deco-blue), var(--hero-deco-purple));
  box-shadow: none;
}

.tech-workbench-page .workbench-hero::after,
.tech-workbench-page .tech-hero-panel::after {
  width: 120px;
  height: 120px;
  left: auto;
  right: 120px;
  bottom: -32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hero-deco-green), var(--hero-deco-yellow));
}

.tech-workbench-page .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.tech-workbench-page .hero-copy::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffd66b;
  box-shadow:
    18px 6px 0 rgba(255, 184, 108, 0.88),
    36px -2px 0 rgba(126, 217, 181, 0.88);
}

.tech-workbench-page .hero-copy h3 {
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: 0;
}

.tech-workbench-page .hero-copy .muted {
  max-width: 680px;
  line-height: 1.78;
}

.metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
  border: 1px solid rgba(214, 234, 246, 0.92);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.95), rgba(126, 217, 181, 0.9));
  opacity: 0.8;
}

.metric-grid > *:nth-child(2) .metric-card::before {
  background: linear-gradient(90deg, rgba(255, 184, 108, 0.95), rgba(255, 214, 107, 0.92));
}

.metric-grid > *:nth-child(3) .metric-card::before {
  background: linear-gradient(90deg, rgba(126, 217, 181, 0.95), rgba(85, 194, 232, 0.92));
}

.metric-grid > *:nth-child(4) .metric-card::before {
  background: linear-gradient(90deg, rgba(185, 184, 255, 0.96), rgba(85, 194, 232, 0.92));
}

.metric-grid > *:nth-child(5) .metric-card::before {
  background: linear-gradient(90deg, rgba(255, 168, 168, 0.94), rgba(255, 201, 169, 0.92));
}

.metric-grid > *:nth-child(6) .metric-card::before {
  background: linear-gradient(90deg, rgba(255, 214, 107, 0.95), rgba(255, 184, 108, 0.92));
}

.metric-card strong {
  text-shadow: none;
}

.metric-copy span {
  color: #65859d;
}

.quick-link-grid {
  gap: 18px;
}

.quick-link-card,
.tech-link-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
  border: 1px solid rgba(217, 234, 247, 0.95);
  box-shadow: 0 18px 36px rgba(146, 185, 214, 0.08);
}

.quick-link-card:hover,
.tech-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(123, 167, 199, 0.13);
}

.quick-link-card::before,
.tech-link-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.45), rgba(185, 184, 255, 0.42));
}

.quick-link-grid > *:nth-child(2n) .quick-link-card::before,
.quick-link-grid > *:nth-child(2n) .tech-link-card::before {
  background: linear-gradient(90deg, rgba(255, 184, 108, 0.48), rgba(255, 214, 107, 0.42));
}

.quick-link-grid > *:nth-child(3n) .quick-link-card::before,
.quick-link-grid > *:nth-child(3n) .tech-link-card::before {
  background: linear-gradient(90deg, rgba(126, 217, 181, 0.46), rgba(185, 184, 255, 0.40));
}

.section-heading,
.kicker-row,
.management-toolbar {
  align-items: center;
}

.section-heading .eyebrow,
.management-toolbar .eyebrow,
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 247, 252, 0.95), rgba(244, 250, 255, 0.95));
  border: 1px solid rgba(212, 233, 245, 0.95);
}

.section-heading .eyebrow::before,
.management-toolbar .eyebrow::before,
.hero-copy .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #55c2e8;
  box-shadow: 14px 0 0 rgba(255, 184, 108, 0.95);
}

.tech-workbench-page .dashboard-grid {
  gap: 22px;
}

.dashboard-section,
.compact-list-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.list-item,
.management-record {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.98));
  border: 1px solid rgba(217, 234, 247, 0.92);
}

.list-item strong,
.management-record strong,
.record-title-row strong {
  color: #1e4867;
}

.record-meta,
.muted,
.record-stat-label,
.field span + small {
  color: #7e9bb2;
}

.primary-button {
  background: linear-gradient(135deg, #55c2e8 0%, #6bcdec 100%);
  box-shadow: 0 12px 26px rgba(85, 194, 232, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, #44b5de 0%, #5fc5e6 100%);
  box-shadow: 0 14px 30px rgba(85, 194, 232, 0.26);
}

.ghost-button,
.secondary-button {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(201, 224, 239, 0.96);
}

.ghost-button:hover,
.secondary-button:hover {
  background: #f3fbff;
}

.tag.success,
.pill.success {
  background: #edf9f3;
  color: #479368;
  border-color: #cfead8;
}

.tag.warning,
.pill.warning {
  background: #fff7e8;
  color: #bf8a2f;
  border-color: #f4e1b7;
}

.tag.danger,
.pill.danger {
  background: #fff0f0;
  color: #c96a6a;
  border-color: #f0c8c8;
}

.tag.info,
.pill.info {
  background: #edf7ff;
  color: #4d88b2;
  border-color: #d7eaf8;
}

.score-chip.high {
  background: #fff5e8;
  color: #c7851d;
  border-color: #f4d7aa;
}

.score-chip.medium {
  background: #f1efff;
  color: #7069d8;
  border-color: #dad6ff;
}

.score-chip.low {
  background: #ecfaf5;
  color: #47966c;
  border-color: #cfeada;
}

.filter-grid .field input,
.filter-grid .field select,
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  background: #fcfeff;
}

.filter-grid .field input:focus,
.filter-grid .field select:focus,
.form-grid .field input:focus,
.form-grid .field select:focus,
.form-grid .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(85, 194, 232, 0.12);
}

.drawer-panel,
.modal-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(214, 233, 246, 0.95);
}

.drawer-header,
.modal-header {
  background: linear-gradient(180deg, rgba(239, 249, 255, 0.96), rgba(247, 252, 255, 0.92));
}

.stats-page .metric-card,
.tech-stats-page .metric-card {
  min-height: 148px;
}

.chart-panel,
.stats-table-panel,
.stats-summary-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
}

.empty-panel {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(245, 250, 255, 0.98));
  border: 1px dashed rgba(201, 225, 239, 0.9);
  color: #7f9ab1;
}

@media (max-width: 900px) {
  .tech-workbench-page .hero-copy h3 {
    font-size: 30px;
  }

  .quick-link-card::before,
  .tech-link-card::before {
    width: 34px;
  }
}

/* ===== Blue-white lively polish layer: keep logic intact, refine energy ===== */
:root {
  --ui-blue-main: #55c2e8;
  --ui-blue-deep: #3eaad1;
  --ui-blue-soft: #eaf8ff;
  --ui-orange-soft: #ffb86c;
  --ui-yellow-soft: #ffd66b;
  --ui-green-soft: #7ed9b5;
  --ui-purple-soft: #b9b8ff;
  --ui-pink-soft: #ffa8a8;
  --ui-peach-soft: #ffc9a9;
  --ui-card-white: rgba(255, 255, 255, 0.98);
  --ui-card-blue: rgba(246, 251, 255, 0.98);
  --ui-border-soft: rgba(207, 228, 243, 0.96);
  --ui-text-strong: #1d4866;
  --ui-text-main: #4b6d86;
  --ui-text-soft: #7f9db4;
  --ui-panel-shadow: 0 20px 42px rgba(124, 166, 196, 0.10);
}

body {
  background:
    radial-gradient(circle at 9% 10%, rgba(85, 194, 232, 0.08), transparent 16%),
    radial-gradient(circle at 88% 8%, rgba(255, 214, 107, 0.10), transparent 14%),
    radial-gradient(circle at 82% 22%, rgba(185, 184, 255, 0.08), transparent 18%),
    radial-gradient(circle at 16% 78%, rgba(126, 217, 181, 0.07), transparent 18%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 44%, #fbfdff 100%);
}

.topbar,
.card,
.tech-panel,
.management-toolbar-panel,
.filter-panel,
.collapsible-form-panel,
.compact-list-panel,
.quick-link-card,
.metric-card,
.metric-card-link {
  box-shadow: var(--ui-panel-shadow);
}

.card,
.tech-panel,
.management-toolbar-panel,
.filter-panel,
.collapsible-form-panel,
.compact-list-panel,
.dashboard-section,
.chart-panel,
.stats-table-panel,
.stats-summary-panel {
  background: linear-gradient(180deg, var(--ui-card-white), var(--ui-card-blue));
  border: 1px solid var(--ui-border-soft);
}

.topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.96));
  border: 1px solid rgba(220, 236, 247, 0.92);
}

.topbar h2,
.management-toolbar h2,
.section-heading h3,
.dashboard-section h3,
.card h3 {
  color: var(--ui-text-strong);
  letter-spacing: 0;
}

.muted,
.record-meta,
.field span + small,
.quick-link-card span:last-child,
.tech-link-card span:last-child,
.metric-copy span,
.stats-page .eyebrow + h3 + .muted,
.management-toolbar p,
.section-heading p {
  color: var(--ui-text-soft);
}

.sidebar {
  background:
    linear-gradient(180deg, #58c3e7 0%, #49b4da 26%, #2d99c2 100%);
}

.sidebar .brand-panel {
  position: relative;
  overflow: hidden;
}

.sidebar .brand-panel::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 22px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.82), transparent 16%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  opacity: 0.52;
}

.sidebar .brand-title {
  color: #ffffff;
}

.sidebar .brand-copy,
.sidebar .nav-section-title {
  color: rgba(241, 250, 255, 0.82);
}

.nav-link {
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.active {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px rgba(34, 114, 147, 0.18);
}

.nav-icon,
.metric-icon,
.quick-link-icon {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.nav-icon::after,
.metric-icon::after,
.quick-link-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-grid {
  gap: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  opacity: 0.24;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, rgba(85, 194, 232, 0.28), rgba(185, 184, 255, 0.28));
}

.metric-grid > *:nth-child(2) .metric-card::after {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, rgba(255, 184, 108, 0.28), rgba(255, 214, 107, 0.28));
}

.metric-grid > *:nth-child(3) .metric-card::after {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, rgba(126, 217, 181, 0.28), rgba(85, 194, 232, 0.24));
}

.metric-grid > *:nth-child(4) .metric-card::after {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, rgba(185, 184, 255, 0.28), rgba(85, 194, 232, 0.24));
}

.metric-grid > *:nth-child(5) .metric-card::after {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, rgba(255, 168, 168, 0.28), rgba(255, 201, 169, 0.24));
}

.metric-grid > *:nth-child(6) .metric-card::after {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, rgba(255, 214, 107, 0.26), rgba(255, 184, 108, 0.24));
}

.metric-card strong {
  font-size: clamp(34px, 3.8vw, 44px);
  color: #173f5c;
}

.metric-copy span {
  font-size: 15px;
  font-weight: 600;
}

.tech-workbench-page .workbench-hero,
.tech-workbench-page .tech-hero-panel {
  padding: 30px 32px;
}

.tech-workbench-page .hero-copy {
  max-width: 760px;
}

.hero-copy .eyebrow,
.management-toolbar .eyebrow,
.section-heading .eyebrow {
  color: #4b89b1;
  font-weight: 700;
}

.hero-copy .eyebrow {
  position: relative;
  padding-left: 18px;
}

.hero-copy .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ui-orange-soft), var(--ui-yellow-soft));
  transform: translateY(-50%);
}

.tech-workbench-page .hero-copy h3 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.tech-workbench-page .hero-copy .muted {
  font-size: 15px;
  color: #6d8ba4;
}

.quick-link-grid {
  gap: 18px;
}

.quick-link-card,
.tech-link-card {
  min-height: 148px;
  padding-top: 34px;
}

.quick-link-card strong,
.tech-link-card strong {
  color: var(--ui-text-strong);
  font-size: 18px;
}

.quick-link-card span:last-child,
.tech-link-card span:last-child {
  font-size: 14px;
}

.quick-link-card::after,
.tech-link-card::after {
  width: 10px;
  height: 10px;
  opacity: 0.86;
}

.quick-link-card:hover,
.tech-link-card:hover,
.metric-card-link:hover {
  transform: translateY(-3px);
}

.management-toolbar-panel,
.filter-panel,
.collapsible-form-panel {
  overflow: hidden;
}

.management-toolbar-panel::before,
.filter-panel::before,
.collapsible-form-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.86), rgba(126, 217, 181, 0.72), rgba(255, 214, 107, 0.74));
}

.filter-grid .field input,
.filter-grid .field select,
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  border: 1px solid rgba(201, 224, 239, 0.98);
  background: rgba(255, 255, 255, 0.96);
  color: #34556f;
}

.filter-grid .field input::placeholder,
.form-grid .field input::placeholder,
.form-grid .field textarea::placeholder {
  color: #9cb0c5;
}

.filter-grid .field input:focus,
.filter-grid .field select:focus,
.form-grid .field input:focus,
.form-grid .field select:focus,
.form-grid .field textarea:focus {
  border-color: rgba(85, 194, 232, 0.88);
  box-shadow: 0 0 0 4px rgba(85, 194, 232, 0.11);
}

.tag,
.pill,
.score-chip,
.subtle-tag {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.1;
}

.tag,
.pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.tag.success,
.pill.success {
  background: linear-gradient(180deg, #f0fbf5, #e8f8ef);
}

.tag.warning,
.pill.warning {
  background: linear-gradient(180deg, #fff9ef, #fff3df);
}

.tag.danger,
.pill.danger {
  background: linear-gradient(180deg, #fff3f3, #ffeded);
}

.tag.info,
.pill.info {
  background: linear-gradient(180deg, #f2f9ff, #eaf5ff);
}

.score-chip.high {
  background: linear-gradient(180deg, #fff7ea, #fff0da);
}

.score-chip.medium {
  background: linear-gradient(180deg, #f5f1ff, #efebff);
}

.score-chip.low {
  background: linear-gradient(180deg, #eefaf4, #e5f7ef);
}

.progress-bar,
.inline-progress-bar {
  background: rgba(228, 239, 248, 0.88);
  border: 1px solid rgba(214, 230, 243, 0.95);
}

.progress-value,
.inline-progress-bar span {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.record-actions,
.toolbar-actions,
.action-row {
  gap: 10px;
}

.primary-button {
  background: linear-gradient(135deg, #53bee4 0%, #67cdea 58%, #87d7ef 100%);
  border: 1px solid rgba(62, 170, 209, 0.28);
}

.ghost-button,
.secondary-button {
  color: #3a6482;
}

.ghost-button:hover,
.secondary-button:hover {
  color: #2a5572;
}

.danger-button {
  background: linear-gradient(180deg, #fff4f4, #ffefef);
  color: #c06f6f;
  border-color: #f0d0d0;
}

.danger-button:hover {
  background: linear-gradient(180deg, #ffeded, #ffe5e5);
}

.compact-list-panel .section-heading,
.filter-panel .section-heading,
.collapsible-form-panel .section-heading,
.management-toolbar {
  margin-bottom: 16px;
}

.management-record,
.list-item {
  border-radius: 24px;
}

.management-record {
  position: relative;
  overflow: hidden;
}

.management-record::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.55), rgba(185, 184, 255, 0.4));
}

.operations-card-list .management-record:nth-child(2n)::before {
  background: linear-gradient(90deg, rgba(126, 217, 181, 0.55), rgba(85, 194, 232, 0.38));
}

.leads-card-list .management-record:nth-child(2n)::before {
  background: linear-gradient(90deg, rgba(255, 184, 108, 0.58), rgba(255, 214, 107, 0.42));
}

.drawer-panel,
.modal-panel {
  box-shadow: 0 26px 56px rgba(111, 154, 183, 0.16);
}

.drawer-header,
.modal-header {
  border-bottom: 1px solid rgba(219, 234, 245, 0.94);
}

.empty-panel {
  position: relative;
  padding-top: 26px;
}

.empty-panel::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.84), transparent 18%),
    linear-gradient(135deg, rgba(85, 194, 232, 0.16), rgba(255, 214, 107, 0.18));
}

.table th {
  color: #64829c;
  font-weight: 700;
}

.table td {
  color: #42627b;
}

.stats-page .metric-card,
.tech-stats-page .metric-card {
  min-height: 152px;
}

.stats-tabs .stats-tab.active {
  box-shadow: 0 12px 24px rgba(85, 194, 232, 0.16);
}

@media (max-width: 900px) {
  .tech-workbench-page .workbench-hero,
  .tech-workbench-page .tech-hero-panel {
    padding: 24px 22px;
  }

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

  .quick-link-card,
  .tech-link-card {
    min-height: 132px;
    padding-top: 30px;
  }
}

/* ===== Blue-white playful accent layer: visual only, no logic changes ===== */
:root {
  --accent-blue: #55c2e8;
  --accent-blue-deep: #3eaad1;
  --accent-blue-soft: #eaf8ff;
  --accent-orange-soft: #ffefe1;
  --accent-yellow-soft: #fff5cf;
  --accent-green-soft: #e9f8f1;
  --accent-purple-soft: #f0efff;
  --accent-pink-soft: #fff0f0;
  --accent-peach-soft: #fff1e7;
  --accent-text-strong: #17324f;
  --accent-text-title: #214a68;
  --accent-text-body: #47657e;
  --accent-text-muted: #7f9bb0;
  --accent-border: #d8ecf6;
  --accent-divider: #e5f2f8;
}

body,
.app-shell {
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 214, 107, 0.2), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(185, 184, 255, 0.16), transparent 20%),
    radial-gradient(circle at 80% 78%, rgba(126, 217, 181, 0.12), transparent 18%),
    linear-gradient(180deg, #edf8ff 0%, #f7fcff 45%, #eef8fd 100%);
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 28%, rgba(255, 184, 108, 0.07), transparent 12%),
    radial-gradient(circle at 74% 18%, rgba(85, 194, 232, 0.08), transparent 14%),
    radial-gradient(circle at 66% 74%, rgba(255, 168, 168, 0.05), transparent 12%);
  z-index: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, #49b6dc 0%, #35a3ca 52%, #2891b6 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    22px 0 42px rgba(72, 162, 200, 0.14);
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 110px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.3), transparent 16%),
    radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  opacity: 0.78;
  pointer-events: none;
}

.sidebar .brand {
  position: relative;
  border-radius: 28px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar .brand::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.74), transparent 18%),
    linear-gradient(135deg, rgba(255, 214, 107, 0.28), rgba(255, 255, 255, 0.08));
  opacity: 0.82;
}

.sidebar .brand-title {
  font-size: 32px;
  letter-spacing: 0;
}

.sidebar .brand-copy {
  max-width: 260px;
  line-height: 1.75;
}

.sidebar .brand::after {
  content: none;
}

.nav-section-title {
  position: relative;
  padding-left: 14px;
}

.nav-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
}

.nav-link {
  border-radius: 22px;
  min-height: 62px;
  padding-inline: 20px;
}

.nav-link.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 255, 0.96));
  border-color: rgba(255, 255, 255, 0.7);
}

.nav-link.active .nav-text {
  color: var(--accent-text-title);
}

.nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
}

.nav-icon,
.metric-icon,
.quick-link-icon {
  border-radius: 18px;
}

.nav-icon {
  background: rgba(255, 255, 255, 0.16);
}

.nav-link.active .nav-icon {
  background: linear-gradient(180deg, #effaff, #e8f7ff);
}

.page-grid {
  position: relative;
  z-index: 1;
}

.card,
.tech-panel,
.metric-card,
.metric-card-link,
.quick-link-card,
.management-record,
.empty-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  border-color: var(--accent-border);
  box-shadow: 0 12px 32px rgba(129, 175, 201, 0.1);
}

.card,
.tech-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.98));
}

.management-toolbar h2,
.page-grid h2 {
  color: var(--accent-text-strong);
}

.section-heading h3,
.kicker-row h3,
.dashboard-section h3,
.compact-list-panel h3,
.filter-panel h3,
.collapsible-form-panel h3 {
  color: var(--accent-text-title);
  letter-spacing: 0;
}

.muted,
.page-grid p,
.record-meta,
.record-stat-label,
.quick-link-card span:last-child,
.tech-link-card span:last-child {
  color: var(--accent-text-body);
}

.hero-copy .muted,
.management-toolbar .muted,
.section-heading .muted,
.empty-panel,
.filter-summary {
  color: var(--accent-text-muted);
}

.tech-workbench-page .workbench-hero,
.tech-workbench-page .tech-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 214, 107, 0.3), transparent 16%),
    radial-gradient(circle at 76% 78%, rgba(185, 184, 255, 0.24), transparent 18%),
    linear-gradient(145deg, #ffffff 0%, #f3fbff 52%, #eef8ff 100%);
}

.tech-workbench-page .workbench-hero::before,
.tech-workbench-page .tech-hero-panel::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 34px;
  width: 156px;
  height: 156px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(145deg, rgba(255, 184, 108, 0.18), rgba(185, 184, 255, 0.16));
  opacity: 0.9;
  transform: rotate(8deg);
}

.tech-workbench-page .workbench-hero::after,
.tech-workbench-page .tech-hero-panel::after {
  content: "";
  position: absolute;
  right: 118px;
  bottom: 28px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(145deg, rgba(126, 217, 181, 0.22), rgba(85, 194, 232, 0.12));
}

.tech-workbench-page .hero-copy {
  position: relative;
  z-index: 1;
}

.tech-workbench-page .hero-copy h3 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.18;
}

.hero-copy .eyebrow,
.management-toolbar .eyebrow,
.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-copy .eyebrow::before,
.management-toolbar .eyebrow::before,
.section-heading .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb86c, #ffd66b);
  flex: none;
}

.hero-copy .eyebrow::after {
  display: none;
}

.metric-card {
  min-height: 156px;
  padding-top: 26px;
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #55c2e8, #95dfff);
}

.metric-grid > *:nth-child(2) .metric-card::before {
  background: linear-gradient(90deg, #ffb86c, #ffd66b);
}

.metric-grid > *:nth-child(3) .metric-card::before {
  background: linear-gradient(90deg, #7ed9b5, #55c2e8);
}

.metric-grid > *:nth-child(4) .metric-card::before {
  background: linear-gradient(90deg, #b9b8ff, #8fd5f1);
}

.metric-grid > *:nth-child(5) .metric-card::before {
  background: linear-gradient(90deg, #ffa8a8, #ffc9a9);
}

.metric-grid > *:nth-child(6) .metric-card::before {
  background: linear-gradient(90deg, #ffd66b, #ffb86c);
}

.metric-card .metric-icon {
  background: var(--accent-blue-soft);
}

.metric-grid > *:nth-child(2) .metric-card .metric-icon {
  background: var(--accent-orange-soft);
}

.metric-grid > *:nth-child(3) .metric-card .metric-icon {
  background: var(--accent-green-soft);
}

.metric-grid > *:nth-child(4) .metric-card .metric-icon {
  background: var(--accent-purple-soft);
}

.metric-grid > *:nth-child(5) .metric-card .metric-icon {
  background: var(--accent-pink-soft);
}

.metric-grid > *:nth-child(6) .metric-card .metric-icon {
  background: var(--accent-yellow-soft);
}

.metric-card strong {
  margin-top: 6px;
}

.quick-link-card,
.tech-link-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.quick-link-card::before,
.tech-link-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(85, 194, 232, 0.6), rgba(255, 184, 108, 0.4));
}

.quick-link-card .quick-link-icon {
  background: var(--accent-blue-soft);
}

.quick-link-grid > *:nth-child(2n) .quick-link-card .quick-link-icon {
  background: var(--accent-orange-soft);
}

.quick-link-grid > *:nth-child(3n) .quick-link-card .quick-link-icon {
  background: var(--accent-green-soft);
}

.quick-link-grid > *:nth-child(4n) .quick-link-card .quick-link-icon {
  background: var(--accent-purple-soft);
}

.quick-link-grid > *:nth-child(5n) .quick-link-card .quick-link-icon {
  background: var(--accent-pink-soft);
}

.quick-link-grid > *:nth-child(6n) .quick-link-card .quick-link-icon {
  background: var(--accent-yellow-soft);
}

.quick-link-card:hover,
.tech-link-card:hover {
  box-shadow: 0 18px 34px rgba(114, 168, 196, 0.16);
}

.dashboard-section,
.compact-list-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  position: relative;
}

.dashboard-section::after,
.compact-list-panel::after,
.filter-panel::after,
.collapsible-form-panel::after,
.management-toolbar-panel::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(85, 194, 232, 0.14);
}

.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.field span,
.record-stat-label,
.record-meta span,
.table th,
.toolbar-actions .tag {
  color: var(--accent-text-title);
}

.field input,
.field select,
.field textarea {
  border-radius: 16px;
}

.primary-button {
  min-height: 46px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(77, 183, 229, 0.18);
}

.ghost-button,
.secondary-button {
  border-radius: 16px;
}

.tag,
.pill,
.score-chip,
.subtle-tag {
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
}

.tag {
  border-color: rgba(136, 180, 206, 0.2);
  color: #48667f;
}

.tag.success,
.pill.success {
  color: #478765;
  border-color: rgba(103, 197, 135, 0.18);
}

.tag.warning,
.pill.warning {
  color: #aa7c20;
  border-color: rgba(245, 197, 107, 0.22);
}

.tag.danger,
.pill.danger {
  color: #bd6e6e;
  border-color: rgba(240, 138, 138, 0.2);
}

.tag.info,
.pill.info {
  color: #467c9f;
  border-color: rgba(105, 188, 227, 0.22);
}

.score-chip.high {
  color: #ab7a27;
}

.score-chip.medium {
  color: #6d66bd;
}

.score-chip.low {
  color: #4b9472;
}

.progress-bar,
.inline-progress-bar {
  border-radius: 999px;
}

.progress-value,
.inline-progress-bar span {
  background: linear-gradient(90deg, #55c2e8, #7ed9b5);
}

.operations-card-list .inline-progress-bar span {
  background: linear-gradient(90deg, #55c2e8, #8fd4ff);
}

.leads-card-list .management-record,
.operations-card-list .management-record {
  padding-top: 28px;
}

.operations-card-list .record-status-stack .tag:nth-child(2) {
  background: linear-gradient(180deg, #fef6ea, #fff0dd);
  color: #9f7428;
}

.operations-card-list .record-status-stack .tag:nth-child(3) {
  background: linear-gradient(180deg, #eef7ff, #e7f3ff);
  color: #4a7fa5;
}

.leads-card-list .record-status-stack .tag:nth-child(2) {
  background: linear-gradient(180deg, #f2fbf7, #e7f8ee);
  color: #4c8e6d;
}

.leads-card-list .record-status-stack .tag:nth-child(3) {
  background: linear-gradient(180deg, #f7f3ff, #f1edff);
  color: #6f65c4;
}

.detail-drawer,
.drawer-panel,
.modal-panel {
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  border-color: var(--accent-border);
}

.detail-drawer-header,
.drawer-header,
.modal-header,
.detail-drawer-footer {
  background: rgba(248, 252, 255, 0.86);
}

.empty-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 251, 255, 0.92));
}

.stats-page .metric-card,
.tech-stats-page .metric-card {
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.table tr:hover td {
  background: rgba(234, 248, 255, 0.38);
}

.settings-page .card,
.logs-page .card {
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

@media (max-width: 1100px) {
  .tech-workbench-page .workbench-hero::before,
  .tech-workbench-page .tech-hero-panel::before {
    width: 112px;
    height: 112px;
    right: 20px;
    top: 22px;
  }

  .tech-workbench-page .workbench-hero::after,
  .tech-workbench-page .tech-hero-panel::after {
    right: 82px;
    bottom: 18px;
    width: 60px;
    height: 60px;
  }
}

/* Script library and AI-assisted replies */
.script-page-header,
.script-card-head,
.reply-card-title,
.reference-row,
.ai-link-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.script-page-header h3,
.script-editor-card h3,
.ai-output-panel h3,
.referenced-templates h3,
.ai-history h3 {
  margin: 6px 0;
  color: #16324f;
}

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

.script-filter-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-items: end;
}

.filter-submit,
.form-actions,
.tag-row,
.script-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.choice-field {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d9eaf5;
  border-radius: 16px;
}

.choice-field legend {
  padding: 0 8px;
  color: #1f3f5b;
  font-weight: 700;
}

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

.choice-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-grid label,
.template-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #35556f;
}

.script-card-list,
.reply-card-list {
  display: grid;
  gap: 16px;
}

.script-template-card {
  border-left: 4px solid #65bfe2;
}

.script-template-card.is-disabled {
  opacity: 0.72;
  border-left-color: #aab8c4;
}

.script-card-head h3 {
  margin: 10px 0 6px;
}

.script-counts {
  flex: 0 0 auto;
}

.script-counts span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f8fc;
  color: #467c9f;
  font-size: 13px;
}

.script-template-card details {
  margin: 16px 0;
  border-top: 1px solid #e2eef5;
  border-bottom: 1px solid #e2eef5;
  padding: 14px 0;
}

.script-template-card summary,
.ai-history summary {
  cursor: pointer;
  color: #3f88b2;
  font-weight: 700;
}

.script-body > p,
.reply-card > p {
  color: #203f58;
  line-height: 1.8;
  white-space: normal;
}

.script-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f5fbfe;
  border-radius: 12px;
}

.script-note.risk,
.import-result.has-errors {
  background: #fff8ef;
  border-color: #f3d5a6;
}

.script-note p {
  margin: 6px 0 0;
}

.file-action {
  cursor: pointer;
}

.ai-reply-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 18px;
  align-items: start;
}

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

.kimi-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #6f879a;
}

.kimi-test-meta strong {
  color: #203f58;
}

.kimi-test-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.kimi-test-form .field {
  margin: 0;
}

.kimi-test-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.kimi-test-output {
  padding: 14px 16px;
  border: 1px solid #d9eaf5;
  border-radius: 12px;
  background: #f7fbfe;
}

.kimi-test-output p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.75;
}

.ai-input-panel,
.ai-output-panel {
  display: grid;
  gap: 16px;
}

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

.template-picker {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}

.template-picker label {
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #e2eef5;
  border-radius: 12px;
}

.template-picker span {
  display: grid;
  gap: 4px;
}

.template-picker small {
  color: #6f879a;
}

.ai-placeholder {
  min-height: 380px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #6f879a;
}

.reply-card {
  padding: 16px;
  border: 1px solid #d9eaf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fdff);
}

.reply-card p {
  margin: 12px 0 16px;
}

.sales-reminders {
  padding: 16px;
  border-radius: 16px;
  background: #f2faf6;
  color: #35556f;
}

.sales-reminders ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.ai-link-form {
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid #e2eef5;
}

.ai-link-form .field {
  flex: 1;
}

.reference-row {
  padding: 12px 0;
  border-top: 1px solid #e2eef5;
  color: #35556f;
}

.ai-history details {
  padding: 12px 0;
  border-top: 1px solid #e2eef5;
}

.ai-history summary span {
  float: right;
  color: #7890a2;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .kimi-test-form {
    grid-template-columns: 1fr;
  }

  .ai-reply-layout,
  .script-filter-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .script-page-header,
  .script-card-head,
  .ai-link-form {
    align-items: stretch;
    flex-direction: column;
  }

  .script-editor-grid,
  .two-column-fields,
  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }
}

/* Login page: keep the public entry consistent with the blue-white workspace theme. */
.login-shell {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: 40px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4fbff 0%, #eaf7ff 100%);
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(85, 194, 232, 0.08);
}

.login-shell::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: 8%;
}

.login-shell::after {
  width: 150px;
  height: 150px;
  bottom: -70px;
  left: 10%;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-width: 460px;
  padding: 38px;
  border: 1px solid #d8ecf7;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(44, 109, 143, 0.12);
}

.login-card .brand-kicker {
  color: #3eaad1;
}

.login-card h1 {
  color: #163a59;
}

.login-card .login-subtitle {
  color: #5d7890;
}

.login-card .field span {
  color: #35556f;
}

.login-card .field input {
  min-height: 48px;
  color: #163a59;
  border-color: #d3e7f3;
  background: #ffffff;
  box-shadow: none;
}

.login-card .field input::placeholder {
  color: #a6b8c8;
}

.login-card .field input:focus {
  border-color: #58c2e6;
  box-shadow: 0 0 0 3px rgba(88, 194, 230, 0.14);
}

.login-card .login-submit {
  min-height: 48px;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #51c4e8, #6dcce9);
  box-shadow: 0 10px 24px rgba(81, 196, 232, 0.22);
}

.login-card .login-submit:hover {
  background: linear-gradient(135deg, #49bddd, #73d2ed);
  transform: translateY(-1px);
}

.login-card .login-note {
  color: #6f879a;
  border-top-color: #e5f1f7;
  text-align: center;
}

.login-card .login-error {
  color: #a45252;
  background: #fff1f1;
  border: 1px solid #f4d7d7;
}

@media (max-width: 640px) {
  .login-shell {
    min-height: calc(100vh - 80px);
    padding: 24px 14px;
  }

  .login-card {
    padding: 28px 22px;
  }
}

/* ===== Blue-white lively accent refinement: visual polish only ===== */
:root {
  --accent-blue: #55c2e8;
  --accent-blue-deep: #3eaad1;
  --accent-blue-soft: #eaf8ff;
  --accent-orange-soft: #ffefe1;
  --accent-yellow-soft: #fff6cf;
  --accent-green-soft: #e7f8f0;
  --accent-purple-soft: #f0efff;
  --accent-pink-soft: #ffe8ec;
  --accent-peach-soft: #ffe7d8;
  --accent-text-strong: #15324a;
  --accent-text-title: #264761;
  --accent-text-body: #486985;
  --accent-text-muted: #7d95ad;
  --accent-border-soft: rgba(108, 169, 206, 0.16);
  --accent-shadow-soft: 0 18px 40px rgba(122, 167, 194, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(85, 194, 232, 0.08), transparent 18%),
    radial-gradient(circle at 86% 8%, rgba(185, 184, 255, 0.06), transparent 17%),
    radial-gradient(circle at 74% 78%, rgba(126, 217, 181, 0.05), transparent 16%),
    linear-gradient(180deg, #f6fbff 0%, #eef8ff 38%, #f9fcff 100%);
  color: var(--accent-text-body);
}

.app-shell {
  position: relative;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(85, 194, 232, 0.03), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(255, 184, 108, 0.03), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(185, 184, 255, 0.03), transparent 24%);
  z-index: -1;
}

.sidebar {
  background: linear-gradient(180deg, rgba(58, 146, 198, 0.96), rgba(83, 172, 218, 0.94));
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 18px 0 34px rgba(85, 160, 205, 0.12);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 86%, rgba(255, 255, 255, 0.1), transparent 18%);
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 56px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  opacity: 0.4;
  pointer-events: none;
}

.sidebar .brand,
.sidebar .brand-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar .brand::before,
.sidebar .brand-panel::before {
  content: none;
}

.sidebar .brand-title {
  color: #ffffff;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(44, 115, 153, 0.14);
}

.sidebar .brand-copy,
.sidebar .nav-section-title {
  color: rgba(244, 251, 255, 0.82);
}

.sidebar .brand-copy {
  max-width: 260px;
  line-height: 1.75;
}

.sidebar .nav-section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  vertical-align: middle;
}

.nav-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link .nav-icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #5b8def;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link .nav-icon svg,
.nav-link .nav-icon i,
.nav-link .nav-icon img {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.nav-link.is-active,
.nav-link.active,
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(210, 230, 242, 0.96);
  box-shadow: 0 10px 20px rgba(44, 112, 152, 0.08);
}

.nav-link.is-active .nav-icon,
.nav-link.active .nav-icon,
.nav-link[aria-current="page"] .nav-icon {
  background: #f2f8fc;
  border-color: #d8e9f4;
  color: #2f6e9e;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-link:hover .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.22);
  filter: brightness(0.98) saturate(1.04);
}

.nav-link .nav-label,
.nav-link span:last-child,
.nav-link strong {
  color: rgba(255, 255, 255, 0.92);
}

.nav-link.is-active .nav-label,
.nav-link.active .nav-label,
.nav-link.is-active span:last-child,
.nav-link.active span:last-child,
.nav-link.is-active strong,
.nav-link.active strong,
.nav-link[aria-current="page"] .nav-label,
.nav-link[aria-current="page"] span:last-child,
.nav-link[aria-current="page"] strong {
  color: #2f5f86;
}

.nav-link[href="#/workbench"] .nav-icon {
  color: #5b8def;
}

.nav-link[href="#/leads"] .nav-icon {
  color: #f4a261;
}

.nav-link[href="#/operations"] .nav-icon {
  color: #5dbb9a;
}

.nav-link[href="#/aftersales"] .nav-icon {
  color: #8b80f9;
}

.nav-link[href="#/alerts"] .nav-icon {
  color: #e57373;
}

.nav-link[href="#/stats"] .nav-icon {
  color: #6c8ebf;
}

.nav-link[href="#/stats/daily-deal"] .nav-icon {
  color: #f2b94b;
}

.nav-link[href="#/stats/daily-conversion"] .nav-icon {
  color: #4db6ac;
}

.nav-link[href="#/stats/weekly-conversion"] .nav-icon {
  color: #7e8ce0;
}

.nav-link[href="#/stats/monthly-conversion"] .nav-icon {
  color: #f299c1;
}

.nav-link[href="#/stats/monthly-renewal"] .nav-icon {
  color: #9ccc65;
}

.nav-link[href="#/settings"] .nav-icon {
  color: #7a8ca5;
}

.nav-link[href="#/logs"] .nav-icon {
  color: #8d99ae;
}

.nav-link.active[href="#/workbench"] .nav-icon,
.nav-link[aria-current="page"][href="#/workbench"] .nav-icon {
  color: #5b8def;
}

.nav-link.active[href="#/leads"] .nav-icon,
.nav-link[aria-current="page"][href="#/leads"] .nav-icon {
  color: #f4a261;
}

.nav-link.active[href="#/operations"] .nav-icon,
.nav-link[aria-current="page"][href="#/operations"] .nav-icon {
  color: #5dbb9a;
}

.nav-link.active[href="#/aftersales"] .nav-icon,
.nav-link[aria-current="page"][href="#/aftersales"] .nav-icon {
  color: #8b80f9;
}

.nav-link.active[href="#/alerts"] .nav-icon,
.nav-link[aria-current="page"][href="#/alerts"] .nav-icon {
  color: #e57373;
}

.nav-link.active[href="#/stats"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats"] .nav-icon {
  color: #6c8ebf;
}

.nav-link.active[href="#/stats/daily-deal"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats/daily-deal"] .nav-icon {
  color: #f2b94b;
}

.nav-link.active[href="#/stats/daily-conversion"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats/daily-conversion"] .nav-icon {
  color: #4db6ac;
}

.nav-link.active[href="#/stats/weekly-conversion"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats/weekly-conversion"] .nav-icon {
  color: #7e8ce0;
}

.nav-link.active[href="#/stats/monthly-conversion"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats/monthly-conversion"] .nav-icon {
  color: #f299c1;
}

.nav-link.active[href="#/stats/monthly-renewal"] .nav-icon,
.nav-link[aria-current="page"][href="#/stats/monthly-renewal"] .nav-icon {
  color: #9ccc65;
}

.nav-link.active[href="#/settings"] .nav-icon,
.nav-link[aria-current="page"][href="#/settings"] .nav-icon {
  color: #7a8ca5;
}

.nav-link.active[href="#/logs"] .nav-icon,
.nav-link[aria-current="page"][href="#/logs"] .nav-icon {
  color: #8d99ae;
}

.page-header,
.page-shell > .card:first-child,
.card,
.metric-card,
.metric-card-link,
.quick-link-card,
.tech-panel,
.dashboard-section,
.compact-list-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel,
.management-record,
.modal-panel,
.drawer-panel,
.detail-drawer,
.table-shell,
.stats-chart-panel {
  box-shadow: 0 10px 24px rgba(126, 163, 188, 0.09);
}

.card,
.metric-card,
.metric-card-link,
.quick-link-card,
.tech-panel,
.dashboard-section,
.compact-list-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel,
.management-record {
  border-color: var(--accent-border-soft);
}

.page-title,
.page-shell h1,
.hero-copy h3,
.dashboard-section h3,
.compact-list-panel h3,
.filter-panel h3,
.management-toolbar-panel h3 {
  color: #16324f;
}

.page-shell p,
.page-shell li,
.page-shell span,
.muted,
.record-meta,
.field span,
.stack .muted {
  color: #35556f;
}

.eyebrow,
.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f879a;
}

.eyebrow::before,
.section-kicker::before,
.kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #d8eef9;
  box-shadow: none;
}

.tech-workbench-page .workbench-hero,
.tech-workbench-page .tech-hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.tech-workbench-page .workbench-hero::before,
.tech-workbench-page .tech-hero-panel::before {
  background:
    linear-gradient(135deg, rgba(85, 194, 232, 0.05), rgba(85, 194, 232, 0.01));
  width: 72px;
  height: 72px;
  right: 26px;
  top: 22px;
  border-radius: 28px;
  transform: rotate(16deg);
  opacity: 0.22;
}

.tech-workbench-page .workbench-hero::after,
.tech-workbench-page .tech-hero-panel::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(85, 194, 232, 0.04), rgba(85, 194, 232, 0.008));
  width: 24px;
  height: 24px;
  right: 108px;
  bottom: 20px;
  border-radius: 18px;
  opacity: 0.16;
}

.tech-workbench-page .hero-copy::before {
  content: none;
}

.tech-workbench-page .hero-copy {
  position: relative;
  max-width: 720px;
  padding-top: 18px;
}

.tech-workbench-page .hero-copy h3 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
  color: #16324f;
}

.tech-workbench-page .hero-copy .muted {
  max-width: 620px;
  color: #6f879a;
}

.metric-card {
  background: #ffffff;
  position: relative;
  box-shadow: 0 8px 18px rgba(126, 163, 188, 0.08);
  border-color: #d9eaf5;
}

.metric-card::before {
  content: none;
}

.metric-card .metric-icon {
  background: var(--accent-blue-soft);
  color: #3f88b2;
}

.metric-grid > *:nth-child(2) .metric-card .metric-icon {
  background: var(--accent-orange-soft);
  color: #c08742;
}

.metric-grid > *:nth-child(3) .metric-card .metric-icon {
  background: var(--accent-green-soft);
  color: #4d9b76;
}

.metric-grid > *:nth-child(4) .metric-card .metric-icon {
  background: var(--accent-purple-soft);
  color: #776ac6;
}

.metric-grid > *:nth-child(5) .metric-card .metric-icon {
  background: var(--accent-pink-soft);
  color: #c77885;
}

.metric-grid > *:nth-child(6) .metric-card .metric-icon {
  background: var(--accent-yellow-soft);
  color: #b3922f;
}

.metric-card strong {
  margin-top: 8px;
  color: #16324f;
  text-shadow: none;
  font-weight: 800;
}

.metric-copy span,
.metric-card span:last-child {
  color: #4e6a80;
  font-weight: 600;
}

.quick-link-card,
.tech-link-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.quick-link-card::before,
.tech-link-card::before {
  content: none;
}

.quick-link-card .quick-link-icon {
  background: var(--accent-blue-soft);
}

.quick-link-grid > *:nth-child(2n) .quick-link-card .quick-link-icon {
  background: var(--accent-orange-soft);
}

.quick-link-grid > *:nth-child(3n) .quick-link-card .quick-link-icon {
  background: var(--accent-green-soft);
}

.quick-link-grid > *:nth-child(4n) .quick-link-card .quick-link-icon {
  background: var(--accent-purple-soft);
}

.quick-link-grid > *:nth-child(5n) .quick-link-card .quick-link-icon {
  background: var(--accent-pink-soft);
}

.quick-link-grid > *:nth-child(6n) .quick-link-card .quick-link-icon {
  background: var(--accent-yellow-soft);
}

.quick-link-card:hover,
.tech-link-card:hover {
  box-shadow: 0 12px 26px rgba(114, 168, 196, 0.12);
}

.dashboard-section,
.compact-list-panel,
.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  position: relative;
}

.dashboard-section::after,
.compact-list-panel::after,
.filter-panel::after,
.collapsible-form-panel::after,
.management-toolbar-panel::after {
  content: none;
}

.filter-panel,
.collapsible-form-panel,
.management-toolbar-panel {
  background: #ffffff;
}

.field span,
.record-stat-label,
.record-meta span,
.table th,
.toolbar-actions .tag {
  color: #1f3f5b;
}

.field input,
.field select,
.field textarea {
  border-radius: 16px;
}

.primary-button {
  min-height: 46px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(77, 183, 229, 0.14);
}

.ghost-button,
.secondary-button {
  border-radius: 16px;
}

.tag,
.pill,
.score-chip,
.subtle-tag {
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
}

.tag {
  border-color: rgba(136, 180, 206, 0.2);
  color: #35556f;
}

.tag.success,
.pill.success {
  color: #478765;
  border-color: rgba(103, 197, 135, 0.18);
}

.tag.warning,
.pill.warning {
  color: #aa7c20;
  border-color: rgba(245, 197, 107, 0.22);
}

.tag.danger,
.pill.danger {
  color: #bd6e6e;
  border-color: rgba(240, 138, 138, 0.2);
}

.tag.info,
.pill.info {
  color: #467c9f;
  border-color: rgba(105, 188, 227, 0.22);
}

.score-chip.high {
  color: #ab7a27;
}

.score-chip.medium {
  color: #6d66bd;
}

.score-chip.low {
  color: #4b9472;
}

.progress-bar,
.inline-progress-bar {
  border-radius: 999px;
}

.progress-value,
.inline-progress-bar span {
  background: linear-gradient(90deg, #55c2e8, #7ed9b5);
}

.operations-card-list .inline-progress-bar span {
  background: linear-gradient(90deg, #55c2e8, #8fd4ff);
}

.leads-card-list .management-record,
.operations-card-list .management-record {
  padding-top: 28px;
}

.operations-card-list .record-status-stack .tag:nth-child(2) {
  background: linear-gradient(180deg, #fef6ea, #fff0dd);
  color: #9f7428;
}

.operations-card-list .record-status-stack .tag:nth-child(3) {
  background: linear-gradient(180deg, #eef7ff, #e7f3ff);
  color: #4a7fa5;
}

.leads-card-list .record-status-stack .tag:nth-child(2) {
  background: linear-gradient(180deg, #f2fbf7, #e7f8ee);
  color: #4c8e6d;
}

.leads-card-list .record-status-stack .tag:nth-child(3) {
  background: linear-gradient(180deg, #f7f3ff, #f1edff);
  color: #6f65c4;
}

.detail-drawer,
.drawer-panel,
.modal-panel {
  background: #ffffff;
  border-color: var(--accent-border-soft);
}

.detail-drawer-header,
.drawer-header,
.modal-header,
.detail-drawer-footer {
  background: rgba(248, 252, 255, 0.86);
}

.empty-panel {
  background: #f8fcff;
}

.stats-page .metric-card,
.tech-stats-page .metric-card {
  background: #ffffff;
}

.table tr:hover td {
  background: rgba(234, 248, 255, 0.38);
}

.settings-page .card,
.logs-page .card {
  background: #ffffff;
}

@media (max-width: 1100px) {
  .tech-workbench-page .workbench-hero::before,
  .tech-workbench-page .tech-hero-panel::before {
    width: 112px;
    height: 112px;
    right: 20px;
    top: 22px;
  }

  .tech-workbench-page .workbench-hero::after,
  .tech-workbench-page .tech-hero-panel::after {
    right: 82px;
    bottom: 18px;
    width: 60px;
    height: 60px;
  }
}
