:root {
  --front-bg: #f7f3ec;
  --front-bg-soft: #fcfaf6;
  --front-surface: rgba(255, 255, 255, 0.92);
  --front-surface-strong: #ffffff;
  --front-surface-warm: #fff8ee;
  --front-line: #eadfce;
  --front-line-strong: #dbcab2;
  --front-text: #223041;
  --front-muted: #6f7686;
  --front-accent: #e36d4d;
  --front-accent-strong: #cf5b3f;
  --front-gold: #d4a65a;
  --front-gold-soft: #f7ead0;
  --front-blue: #6d87d8;
  --front-blue-soft: #eef3ff;
  --front-green: #4ca882;
  --front-shadow: 0 22px 56px rgba(95, 74, 45, 0.12);
  --front-shadow-soft: 0 14px 32px rgba(95, 74, 45, 0.08);
}

body {
  color: var(--front-text);
  background:
    radial-gradient(circle at top left, rgba(244, 218, 177, 0.55), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(225, 204, 174, 0.24), transparent 16%),
    linear-gradient(180deg, #fffdf9 0%, #f7f3ec 38%, #f4efe7 100%);
}

.topbar {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 202, 178, 0.55);
  box-shadow: 0 10px 26px rgba(96, 76, 46, 0.06);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a3543;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5e1bc, #f0c98c);
  color: #8c5922;
  box-shadow: inset 0 0 0 1px rgba(170, 115, 44, 0.12);
}

.nav-link {
  color: var(--front-muted);
  border-color: rgba(219, 202, 178, 0.8);
  background: rgba(255, 255, 255, 0.65);
}

.nav-link.active {
  color: #fff8ef;
  background: linear-gradient(135deg, #e68060, #cf5b3f);
  border-color: transparent;
}

.container.actor-home {
  max-width: 1380px;
  padding: 28px 20px 44px;
  gap: 22px;
}

.panel {
  background: var(--front-surface);
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-radius: 24px;
  box-shadow: var(--front-shadow);
  color: var(--front-text);
}

.panel p,
.muted,
p.muted,
.field span,
.metric-name,
.score-name,
.basis-label,
.basis-hint,
.role-meta,
.info-chip,
.table-empty,
th,
.section-subtitle,
.hero-muted,
.showcase-kicker,
.poster-sub {
  color: var(--front-muted);
}

button {
  border-radius: 14px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--front-accent), var(--front-accent-strong));
  color: #fffaf4;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(211, 91, 63, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(211, 91, 63, 0.2);
}

button.secondary {
  background: #fffdf9;
  color: #434e5f;
  border: 1px solid var(--front-line);
  box-shadow: none;
}

input,
select,
textarea {
  color: var(--front-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e4d8c8;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: #a2a8b3;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(227, 109, 77, 0.75);
  box-shadow: 0 0 0 4px rgba(227, 109, 77, 0.12);
}

.codebox {
  background: #fffdfa;
  color: #4f5b6c;
  border: 1px solid var(--front-line);
}

th,
td {
  border-bottom: 1px solid rgba(234, 223, 206, 0.85);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(246, 226, 191, 0.92), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(241, 220, 189, 0.55), transparent 26%),
    linear-gradient(145deg, #fffdf8 0%, #f9f4eb 55%, #f7efe2 100%);
  border: 1px solid rgba(223, 207, 186, 0.95);
  box-shadow: 0 30px 70px rgba(109, 88, 59, 0.12);
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto;
}

.hero-stage::before {
  left: 36px;
  right: 36px;
  bottom: 22px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,
      rgba(53, 53, 53, 0.88) 0 20px,
      rgba(255, 255, 255, 0) 20px 32px);
  opacity: 0.12;
}

.hero-stage::after {
  right: -48px;
  top: 34px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 166, 90, 0.18), rgba(212, 166, 90, 0));
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #222c38;
}

.hero-copy>p {
  max-width: 640px;
  line-height: 1.8;
  font-size: 15px;
}

.hero-mark {
  margin: 0;
  color: #b07c3d;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-workflow {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(223, 207, 186, 0.95);
  color: #6d5d4f;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(90, 72, 47, 0.05);
}

.hero-highlights {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 218, 200, 0.95);
  box-shadow: var(--front-shadow-soft);
}

.highlight-item strong {
  display: block;
  color: #2b3440;
  font-size: 15px;
}

.highlight-item span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--front-muted);
}

.highlight-icon,
.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5e4c6, #f1d5a3);
  color: #956128;
  box-shadow: inset 0 0 0 1px rgba(176, 124, 61, 0.16);
}

.highlight-icon svg,
.title-icon svg,
.highlight-icon i,
.title-icon i {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions button {
  width: auto;
  min-width: 170px;
}

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

.hero-showcase,
.hero-profile {
  border-radius: 22px;
  border: 1px solid rgba(232, 218, 200, 0.95);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--front-shadow-soft);
}

.hero-showcase {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 135, 216, 0.16), rgba(109, 135, 216, 0));
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.showcase-head h2 {
  margin: 6px 0 0;
  font-size: 20px;
  color: #26303d;
}

.showcase-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a87b41;
}

.showcase-badge {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #7d5a2f;
  background: #fff5de;
  border: 1px solid #efddbd;
}

.poster-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.poster-card {
  position: relative;
  overflow: hidden;
  height: 180px;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fffaf3;
  box-shadow: 0 18px 30px rgba(42, 44, 51, 0.12);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0 12px,
      rgba(255, 255, 255, 0) 12px 24px);
  opacity: 0.35;
}

.poster-card>* {
  position: relative;
  z-index: 1;
}

.poster-card-main {
  min-height: 280px;
  background: linear-gradient(180deg, rgba(205, 128, 103, 0.18), rgba(28, 44, 58, 0.85)), linear-gradient(135deg, #f0c89b, #c9714d 45%, #3e5168);
}

.poster-card-side {
  min-height: 132px;
}

.poster-card-gold {
  background: linear-gradient(135deg, #b78c4f, #5e4637 66%, #2b313c);
}

.poster-card-blue {
  background: linear-gradient(135deg, #6f8bd9, #51627a 64%, #2e3340);
}

.poster-glow {
  position: absolute;
  inset: auto -18px -18px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 212, 159, 0.52), rgba(244, 212, 159, 0));
}

.poster-top {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.84;
}

.poster-title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.poster-card-side .poster-title {
  font-size: 22px;
}

.poster-sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 250, 243, 0.76);
}

.showcase-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.showcase-strip span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #232323 0 28%, #faf6ef 28% 72%, #232323 72% 100%);
  opacity: 0.12;
}

.showcase-note-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.showcase-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7383;
  font-size: 13px;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7a257, #cc6541);
}

.hero-profile {
  padding: 18px;
}

.actor-summary {
  margin-top: 12px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fffefb, #faf5ec);
  border: 1px solid rgba(235, 224, 209, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.compact-headline {
  align-items: flex-start;
}

.actor-picker-row {
  margin-top: 14px;
  grid-template-columns: minmax(0, 1.6fr) 120px 120px;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-neutral {
  background: #fff4e6;
  border-color: #f0dcc0;
  color: #875f2f;
}

.status-success {
  background: #edf8f3;
  border-color: #cce7db;
  color: #2f7d5f;
}

.status-warn {
  background: #fff5ea;
  border-color: #f3debe;
  color: #986734;
}

.profile-meter {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(214, 196, 172, 0.9);
  padding-top: 12px;
}

.profile-meter-label {
  font-size: 12px;
}

.profile-meter-value {
  font-size: 28px;
  font-weight: 800;
  color: #253140;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-light h2,
.title-light {
  color: #24303d;
}

.title-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1d7, #f6dca8);
  color: #946126;
  box-shadow: inset 0 0 0 1px rgba(176, 124, 61, 0.14);
}

.title-icon.small-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.small-gap {
  gap: 8px;
}

.panel-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.panel-headline h2 {
  margin: 0;
  font-size: 24px;
  color: #24303d;
}

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

.toolbar-actions button {
  width: auto;
}

.profile-workbench,
.filters-panel,
.overview-panel,
.records-panel,
.details-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 244, 0.92));
}

.form-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  letter-spacing: 0.03em;
}

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

.field-full {
  grid-column: 1 / -1;
}

.match-basis-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 224, 208, 0.95);
}

.section-subtitle {
  font-size: 13px;
  font-weight: 700;
}

.basis-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.basis-card {
  border: 1px solid rgba(235, 224, 209, 0.95);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fffdf9, #fdf8f0);
  box-shadow: 0 10px 22px rgba(95, 74, 45, 0.05);
}

.basis-value {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #283443;
}

.basis-hint {
  margin-top: 8px;
  line-height: 1.5;
}

.row-query {
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 1fr)) repeat(2, minmax(100px, 1fr)) minmax(140px, 1fr) minmax(160px, 1fr);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5d8c6;
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--front-text);
}

.toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--front-accent);
}

.actions-row {
  grid-template-columns: 170px 170px;
  justify-content: start;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 222, 207, 0.95);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fffefa, #faf4ea);
  box-shadow: 0 10px 22px rgba(95, 74, 45, 0.05);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e47b58, #d4a65a, #738cd9);
}

.metric-value {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 800;
  color: #26313e;
}

.cards-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

.role-card {
  border: 1px solid rgba(233, 222, 207, 0.95);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fdf8f0);
  box-shadow: 0 16px 30px rgba(93, 72, 43, 0.08);
}

.cinematic-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}

.role-cover {
  width: 140px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* 适配暗色的微弱边框 */
  background: var(--front-surface-warm);
}

.project-poster,
.actor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(26, 35, 47, 0.04)),
    linear-gradient(135deg, #2b2319, #1c1f26);
  color: #fff7ee;
  padding: 12px;
  text-align: center;
}

.project-poster-fallback i {
  font-size: 32px;
  opacity: 0.6;
}

.project-poster-fallback span {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.role-content {
  display: grid;
  gap: 12px;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.role-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  color: #253140;
}

.role-project-type {
  color: #ba8850;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #eadcc7;
  background: #fffaf3;
  color: #6c5e50;
}

.badge.warn {
  border-color: #f0d8b4;
  background: #fff2de;
  color: #9a6b30;
}

.badge.ok {
  border-color: #cde5d8;
  background: #edf8f3;
  color: #2e7f5f;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.score-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-box.highlight {
  color: var(--front-accent);
}

.score-name {
  font-size: 13px;
  color: var(--front-muted);
}

.score-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--front-text);
}

.score-box.highlight .score-value {
  color: var(--front-accent);
}

.role-meta {
  line-height: 1.8;
  font-size: 14px;
}

.role-meta b {
  color: #fff;
}

.role-meta div {
  margin-bottom: 6px;
}

.reason-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  color: #a3b3cc;
  font-size: 13.5px;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.role-actions button {
  width: auto;
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--front-text);
  font-weight: 500;
  transition: all 0.2s ease;
}

.role-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.role-actions button[data-action='applied'] {
  border-color: rgba(109, 135, 216, 0.4);
  color: #8da6ec;
}

.role-actions button[data-action='saved'] {
  border-color: rgba(212, 166, 90, 0.4);
  color: #d4a65a;
}

.dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chip-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-chip {
  border: 1px solid rgba(233, 222, 207, 0.95);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #fffefa, #fbf5ec);
  line-height: 1.7;
  box-shadow: 0 10px 20px rgba(95, 74, 45, 0.05);
}

.info-chip b {
  color: #283341;
}

.compact-actions {
  margin-top: 8px;
}

.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #ddcdb7;
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  color: var(--front-muted);
  background: linear-gradient(180deg, #fffefb, #fbf6ef);
}

.empty-card i {
  font-size: 48px;
  color: #cdad83;
  opacity: 0.65;
}

.empty-card p {
  margin: 0;
  font-size: 14px;
}

.actor-card-lite {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
}

.actor-avatar-wrap {
  width: 96px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(221, 208, 191, 0.95);
  box-shadow: 0 12px 24px rgba(93, 72, 43, 0.08);
}

.actor-info-wrap {
  display: grid;
  gap: 10px;
}

.actor-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actor-name-row b {
  color: #26313e;
  font-size: 18px;
}

.actor-basic-line {
  line-height: 1.65;
  color: #667082;
}

.summary-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.summary-label {
  min-width: 56px;
  color: #b07c3d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff9ef;
  border: 1px solid #eddfc9;
  color: #62584e;
  font-size: 12px;
}

.summary-chip.primary {
  background: #fff1dd;
  color: #9a6b30;
}

.summary-chip.skill {
  background: #eef3ff;
  border-color: #dce5ff;
  color: #556aac;
}

.summary-chip.tag {
  background: #f7f0ff;
  border-color: #e7dbfb;
  color: #7959a5;
}

.summary-chip.region {
  background: #eef9f4;
  border-color: #d7ecdf;
  color: #357d5e;
}

.summary-chip.muted-chip {
  opacity: 0.78;
}

/* --- CINEMATIC DARK MODE OVERRIDES --- */
:root {
  --front-bg: #0a0b0d;
  --front-bg-soft: #121418;
  --front-surface: rgba(18, 20, 24, 0.85);
  --front-surface-strong: #16191d;
  --front-surface-warm: #1a1b1e;
  --front-line: #2d3139;
  --front-line-strong: #3d4450;
  --front-text: #e5e7eb;
  --front-muted: #8b949e;
  --front-accent: #d4a65a;
  --front-accent-strong: #b38641;
  --front-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
  --front-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.3);
}

body {
  background: #060708;
  background-image: radial-gradient(circle at 15% 50%, rgba(212, 166, 90, 0.04), transparent 25%), radial-gradient(circle at 85% 30%, rgba(212, 166, 90, 0.04), transparent 25%);
}

.topbar {
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--front-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.brand-wrap {
  color: #e5e7eb;
}

.brand-mark {
  background: linear-gradient(135deg, #44341b, #2b2112);
  color: #d4a65a;
  box-shadow: inset 0 0 0 1px rgba(212, 166, 90, 0.3);
}

.nav-link {
  color: var(--front-muted);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: #060708;
  background: linear-gradient(135deg, #e6b980, #cf913f);
}

.panel,
.profile-workbench,
.filters-panel,
.overview-panel,
.records-panel,
.details-panel {
  background: var(--front-surface);
  border-color: var(--front-line);
}

input,
select,
textarea {
  background: #121418;
  border-color: var(--front-line);
  color: var(--front-text);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

button.secondary {
  background: #1c1f26;
  color: var(--front-text);
  border-color: var(--front-line-strong);
}

.hero-stage {
  background: linear-gradient(145deg, #101216 0%, #0d0f12 55%, #0a0b0d 100%);
  border-color: var(--front-line);
}

.hero-stage::before {
  opacity: 0.05;
}

.hero-stage::after {
  background: radial-gradient(circle, rgba(212, 166, 90, 0.08), rgba(212, 166, 90, 0));
}

.hero-copy h1 {
  color: #f0f2f5;
}

.hero-mark {
  color: #d4a65a;
}

.workflow-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--front-line);
  color: var(--front-muted);
}

.highlight-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--front-line);
}

.highlight-item strong {
  color: #e5e7eb;
}

.highlight-icon,
.title-icon {
  background: linear-gradient(135deg, #3d3020, #241b11);
  color: #d4a65a;
  box-shadow: inset 0 0 0 1px rgba(212, 166, 90, 0.2);
}

.hero-showcase,
.hero-profile {
  background: rgba(18, 20, 24, 0.6);
  border-color: var(--front-line);
}

.showcase-head h2 {
  color: #e5e7eb;
}

.showcase-badge {
  background: rgba(212, 166, 90, 0.15);
  border-color: rgba(212, 166, 90, 0.3);
  color: #d4a65a;
}

.showcase-strip span {
  background: linear-gradient(90deg, #1a1a1a 0 28%, #444 28% 72%, #1a1a1a 72% 100%);
  opacity: 0.3;
}

.actor-summary {
  background: #121418;
  border-color: var(--front-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--front-line);
  color: var(--front-muted);
}

.status-success {
  background: rgba(76, 168, 130, 0.1);
  border-color: rgba(76, 168, 130, 0.3);
  color: #4ca882;
}

.status-warn {
  background: rgba(212, 166, 90, 0.1);
  border-color: rgba(212, 166, 90, 0.3);
  color: #d4a65a;
}

.profile-meter-value {
  color: #e5e7eb;
}

.title-light h2,
.title-light {
  color: #e5e7eb;
}

.panel-headline h2 {
  color: #e5e7eb;
}

.basis-card {
  background: #121418;
  border-color: var(--front-line);
}

.basis-value {
  color: #e5e7eb;
}

.toggle {
  background: #121418;
  border-color: var(--front-line);
}

.metric-card {
  background: #121418;
  border-color: var(--front-line);
}

.metric-value {
  color: #e5e7eb;
}

.role-card {
  background: #16191d;
  border-color: var(--front-line);
}

.role-cover {
  border-color: var(--front-line);
  background: #0a0b0d;
}

.project-poster-fallback {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2)), linear-gradient(135deg, #44341b, #2b2112 50%, #1c2333 100%);
}

.role-title {
  color: #e5e7eb;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--front-line);
  color: var(--front-muted);
}

.badge.warn {
  background: rgba(212, 166, 90, 0.15);
  border-color: rgba(212, 166, 90, 0.3);
  color: #d4a65a;
}

.badge.ok {
  background: rgba(76, 168, 130, 0.15);
  border-color: rgba(76, 168, 130, 0.3);
  color: #4ca882;
}

.score-box {
  background: transparent;
  border-color: transparent;
}

.score-box.highlight {
  background: transparent;
  border-color: transparent;
}

.score-value {
  color: #e5e7eb;
}

.info-chip {
  background: #121418;
  border-color: var(--front-line);
}

.info-chip b {
  color: #e5e7eb;
}

.empty-card {
  background: #121418;
  border-color: var(--front-line);
}

.actor-name-row b {
  color: #e5e7eb;
}

.actor-avatar-wrap {
  border-color: var(--front-line);
}

.summary-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--front-line);
  color: var(--front-muted);
}

.summary-chip.primary {
  background: rgba(212, 166, 90, 0.15);
  border-color: rgba(212, 166, 90, 0.3);
  color: #d4a65a;
}

.summary-chip.skill {
  background: rgba(109, 135, 216, 0.15);
  border-color: rgba(109, 135, 216, 0.3);
  color: #6d87d8;
}

.summary-chip.tag {
  background: rgba(168, 115, 230, 0.15);
  border-color: rgba(168, 115, 230, 0.3);
  color: #a873e6;
}

.summary-chip.region {
  background: rgba(76, 168, 130, 0.15);
  border-color: rgba(76, 168, 130, 0.3);
  color: #4ca882;
}

/* --- TABS & ADVANCED FILTERS STYLES --- */
.tabs-nav {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  border-bottom: 1px solid var(--front-line);
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--front-muted);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transform: none;
}

.tab-btn.active {
  background: rgba(212, 166, 90, 0.15);
  color: #d4a65a;
  border-color: rgba(212, 166, 90, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tab-content.active {
  display: grid;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.advanced-filters {
  display: none;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed var(--front-line);
}

.advanced-filters.open {
  display: grid;
}

@media (max-width: 1180px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }

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

  .row-query {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

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

@media (max-width: 920px) {

  .dual-panel,
  .cinematic-card,
  .actor-card-lite,
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .role-cover {
    width: 100%;
    min-height: 220px;
  }

  .score-row,
  .basis-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-avatar-wrap {
    width: 104px;
    height: 132px;
  }

  .actor-picker-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .panel-headline,
  .panel-headline-stack-mobile {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-actions,
  .hero-actions {
    width: 100%;
  }

  .toolbar-actions button,
  .hero-actions button {
    width: 100%;
  }

  .score-row,
  .form-grid,
  .basis-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .field-full {
    grid-column: auto;
  }

  .container.actor-home {
    padding-inline: 14px;
  }

  .hero-stage,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }
}