:root {
  --bg: #f3f5f7;
  --paper: #fff;
  --ink: #192c3d;
  --muted: #657586;
  --line: #dbe2e8;
  --blue: #2b597e;
  --aside: #172a3a;
  --page-accent: #2877a5;
  --page-tint: #eaf5fb;
  --teal: #16766f;
  --violet: #6656ad;
  --amber: #a86f12;
  --green: #267052;
  --red: #a34747;
}
body[data-page="cases"] {
  --page-accent: #2679a6;
  --page-tint: #eaf5fb;
}
body[data-page="research"] {
  --page-accent: #6b57a5;
  --page-tint: #f1eefb;
}
body[data-page="analytics"] {
  --page-accent: #25715c;
  --page-tint: #e9f5f0;
}
body[data-page="guidance"] {
  --page-accent: #a36a12;
  --page-tint: #fbf2e3;
}
body[data-page="feeds"] {
  --page-accent: #16766f;
  --page-tint: #e8f5f4;
}
body[data-page="assist"] {
  --page-accent: #9a4e76;
  --page-tint: #f9edf3;
}
body[data-page="users"] {
  --page-accent: #416a9a;
  --page-tint: #edf3fa;
}
body[data-page="export"],
body[data-page="audit"] {
  --page-accent: #596b79;
  --page-tint: #eef2f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #bdcbd6;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 13px;
  box-shadow: inset 0 1px #ffffff66;
  font-weight: 600;
}
button:hover {
  background: #eaf0f5;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #234765;
}
.danger {
  color: #714939;
}
input,
select,
textarea {
  border: 1px solid #cbd5df;
  border-radius: 7px;
  background: white;
  padding: 9px 11px;
  color: var(--ink);
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid #6693b8;
  outline-offset: 2px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-bottom: 0;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 14px;
}
.hidden {
  display: none !important;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: var(--aside);
  padding: 32px 22px;
  color: #e7edf1;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 21px;
  letter-spacing: 3px;
  font-weight: 750;
}
.brand span {
  display: block;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 2px;
  margin-top: 6px;
  color: #98afc0;
}
nav {
  margin-top: 48px;
  display: grid;
  gap: 8px;
}
nav button {
  --nav-accent: #7fb5d5;
  border: 0;
  background: none;
  color: #adc0cf;
  text-align: left;
  padding: 11px 11px 11px 29px;
  box-shadow: none;
  font-weight: 500;
  position: relative;
}
nav button::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nav-accent);
  transform: translateY(-50%);
  opacity: 0.72;
}
nav button[data-tab="research"] {
  --nav-accent: #b19bea;
}
nav button[data-tab="analytics"] {
  --nav-accent: #63c7a1;
}
nav button[data-tab="guidance"] {
  --nav-accent: #efb85d;
}
nav button[data-tab="feeds"] {
  --nav-accent: #65c8c1;
}
nav button[data-tab="assist"] {
  --nav-accent: #dc8fb5;
}
nav button[data-tab="users"] {
  --nav-accent: #8eb8e8;
}
nav button[data-tab="export"],
nav button[data-tab="audit"] {
  --nav-accent: #a7b5c0;
}
nav button span {
  float: right;
  font-size: 10px;
  color: #6e8ca3;
}
nav button:hover,
nav button.active {
  background: #2a4153;
  color: white;
}
nav button.active::before {
  opacity: 1;
  box-shadow: 0 0 0 4px #ffffff18;
}
.aside-bottom {
  margin-top: auto;
  font-size: 11px;
  word-break: break-all;
  display: grid;
  gap: 15px;
}
.aside-bottom button {
  background: transparent;
  color: #d7e1e9;
  border-color: #3e586b;
}
main {
  margin-left: 216px;
  padding: 32px 40px;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--page-accent);
}
header h1 {
  color: var(--page-accent);
}
.eyebrow {
  letter-spacing: 1.7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.badge {
  font-size: 11px;
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  background: #e8eef3;
  color: #48637b;
  border: 1px solid #d9e2e9;
}
.notice {
  padding: 12px 16px;
  border: 1px solid #d4dfe7;
  background: #eaf0f5;
  border-radius: 8px;
  font-size: 12px;
  color: #4a6378;
  margin-bottom: 22px;
}
.notice-info {
  border-color: #b9d8e9;
  border-left: 4px solid #3586b2;
  background: #edf7fc;
  color: #315d74;
}
.notice-warning {
  border-color: #ead3a5;
  border-left: 4px solid #c28a2c;
  background: #fff8e9;
  color: #765515;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar input {
  min-width: 110px;
  flex: 1;
}
.toolbar input[type="number"] {
  max-width: 105px;
}
.filter-panel {
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--page-accent);
  border-radius: 10px;
  background: white;
}
.filter-panel-head,
.research-actions,
.workflow-title,
.drop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.filter-panel-head {
  margin-bottom: 15px;
}
.filter-panel-head strong,
.filter-panel-head span,
.workflow-title strong,
.workflow-title span {
  display: block;
}
.filter-panel-head strong,
.workflow-title strong {
  font-size: 16px;
}
.filter-panel-head span,
.workflow-title span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.case-filter-grid,
.research-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.case-filter-grid label,
.research-search-row label,
.research-filter-grid label,
.research-display-controls label,
.drop-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.case-filter-grid .wide {
  grid-column: span 2;
}
.case-filter-grid input,
.case-filter-grid select,
.research-filter-grid input,
.research-filter-grid select {
  width: 100%;
}
.sort-control select {
  border-color: var(--page-accent);
  background: var(--page-tint);
  font-weight: 700;
}
.portfolio-workflow {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, var(--page-tint));
}
.portfolio-workflow ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.portfolio-workflow li {
  min-height: 78px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.portfolio-workflow li.active {
  border-color: var(--page-accent);
  box-shadow: inset 0 3px var(--page-accent);
}
.portfolio-workflow li strong,
.portfolio-workflow li span {
  display: block;
}
.portfolio-workflow li strong {
  font-size: 12px;
}
.portfolio-workflow li span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px #1026380a;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 22px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.fields label {
  min-width: 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  border-top: 3px solid var(--page-accent);
}
.stat strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--page-tint);
  color: var(--page-accent);
}
td {
  padding: 13px;
  border-bottom: 1px solid #e8edf1;
  vertical-align: middle;
}
tbody tr:hover td {
  background: #f8fbfd;
}
td button {
  padding: 5px 9px;
  font-size: 11px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto;
}
small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  background: white;
  border: 1px dashed #c1ccd5;
  border-radius: 10px;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  font-size: 19px;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.metric {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #6d8ca4;
  border-radius: 8px;
  background: #f7fafc;
}
.metric-blue {
  border-left-color: #347da7;
  background: #edf6fb;
}
.metric-blue strong {
  color: #286e98;
}
.metric-teal {
  border-left-color: var(--teal);
  background: #ebf7f4;
}
.metric-teal strong {
  color: var(--teal);
}
.metric-violet {
  border-left-color: var(--violet);
  background: #f2effa;
}
.metric-violet strong {
  color: var(--violet);
}
.metric-amber {
  border-left-color: var(--amber);
  background: #fff6e7;
}
.metric-amber strong {
  color: #95600c;
}
.metric strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: #375f80;
}
.metric span {
  color: var(--muted);
  font-size: 11px;
}
.issue {
  padding: 7px 10px;
  background: #f6efdf;
  color: #765d2f;
  font-size: 11px;
  margin-top: 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.valid {
  color: var(--green);
  font-size: 12px;
  background: #eaf6ef;
  border: 1px solid #c3e3d1;
  border-radius: 7px;
  padding: 9px 11px;
}
.status-pill,
.experience-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf1f4;
  color: #526574;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-in_review {
  background: #fff1d8;
  color: #815712;
}
.status-released {
  background: #e4f4eb;
  color: #276a4a;
}
.status-retired {
  background: #f5e8e8;
  color: #914545;
}
.experience-high_variance {
  background: #f1eafb;
  color: #62469a;
}
.experience-standard {
  background: #e8f4f3;
  color: #246c66;
}
.art-preview {
  background: #edf1f4;
  border-radius: 8px;
  min-height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}
.art-preview img {
  max-width: 100%;
  max-height: 240px;
}
.skin-picker-callout {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #b9d3e3;
  border-radius: 8px;
  background: #eef7fc;
}
.skin-picker-callout p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.marketing-brief {
  border-top: 4px solid #9a4e76;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.section-heading h2,
.section-heading p {
  margin-bottom: 5px;
}
.section-kicker {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f7e8f0;
  color: #8b3f67;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.brief-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 20px;
}
.brief-guide div {
  min-height: 90px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f4f7;
  border: 1px solid #ead8e2;
}
.brief-guide strong,
.brief-guide span {
  display: block;
}
.brief-guide strong {
  color: #8b3f67;
  margin-bottom: 5px;
}
.brief-guide span,
.field-help {
  color: #6f6870;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.45;
}
.interpretation-card:not(:empty),
.interpretation-note {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #c7dce8;
  border-left: 4px solid #397fa6;
  border-radius: 8px;
  background: #f0f7fb;
}
.interpretation-card p,
.interpretation-note p {
  margin: 5px 0;
}
.data-label {
  display: inline-block;
  margin-right: 5px;
  color: #356b89;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.economics-intro {
  margin-top: -6px;
}
#skin-catalogue-dialog {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(15, 34, 48, 0.3);
}
#skin-catalogue-dialog::backdrop {
  background: rgba(16, 35, 50, 0.62);
}
.catalogue-dialog-head,
.catalogue-dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.catalogue-dialog-head h2,
.catalogue-dialog-head p {
  margin: 2px 0;
}
.catalogue-dialog-head > button {
  padding: 4px 12px;
  font-size: 24px;
}
.catalogue-search {
  padding: 16px 22px 8px;
  background: white;
}
.catalogue-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 22px 12px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.catalogue-filters label {
  margin: 0;
  font-size: 11px;
}
.catalogue-filters select,
.catalogue-filters button {
  width: 100%;
  margin-top: 4px;
}
.catalogue-filters button {
  align-self: end;
}
.catalogue-context {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px 0;
  background: #f4f7f9;
  font-size: 12px;
}
.catalogue-context .muted {
  max-width: 700px;
  text-align: right;
}
.catalogue-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding: 10px 22px 18px;
  background: #f4f7f9;
}
.catalogue-skin {
  display: grid;
  grid-template-columns: 135px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
}
.catalogue-skin img,
.skin-image-missing {
  width: 135px;
  height: 135px;
  object-fit: contain;
  border-radius: 6px;
  background: #edf1f4;
}
.skin-image-missing {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}
.catalogue-skin-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalogue-skin-copy strong,
.catalogue-skin-copy small {
  display: block;
}
.proposal-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.proposal-item {
  display: grid;
  grid-template-columns: 22px 90px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px;
}
.proposal-item > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--page-accent);
}
.proposal-item img,
.proposal-item .skin-image-missing {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.proposal-item small {
  display: block;
  margin-top: 5px;
}
.catalogue-skin-copy strong {
  font-size: 13px;
  line-height: 1.25;
}
.skin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.skin-tags span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e4edf4;
  color: #31556e;
  font-size: 10px;
  line-height: 1.35;
}
.catalogue-dialog-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.selected-items,
#selected-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.item-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) 82px 34px;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.item-row img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 135px;
  height: 135px;
  object-fit: contain;
  background: #eef2f5;
  border-radius: 6px;
}
.item-info {
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.item-row input {
  grid-column: 3;
  grid-row: 2;
  width: 82px;
  font-size: 12px;
}
.item-row select {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  font-size: 11px;
}
.item-row button {
  grid-column: 4;
  grid-row: 2;
  padding: 6px 9px;
}
.drop-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.drop-table-head h2,
.drop-table-head p {
  margin: 0;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 430px;
  overflow: auto;
  background: #edf2f6;
  padding: 14px;
  border-radius: 6px;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #172a3a;
}
.auth-card {
  background: white;
  width: min(420px, 90vw);
  padding: 38px;
  border-radius: 14px;
}
.auth-card .brand {
  margin-bottom: 35px;
}
.auth-card .brand span {
  color: var(--muted);
}
.auth-card h1 {
  margin-bottom: 10px;
}
.auth-card button {
  width: 100%;
  margin-top: 10px;
}
footer {
  margin-top: 35px;
  color: #8796a3;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  max-width: 440px;
  background: #20384b;
  color: white;
  border-radius: 9px;
  box-shadow: 0 5px 25px #0002;
  z-index: 20;
}
a {
  color: #326b96;
}
@media (max-width: 1000px) {
  aside {
    width: 180px;
    padding: 28px 15px;
  }
  main {
    margin-left: 180px;
    padding: 25px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  aside .brand span,
  .aside-bottom {
    display: none;
  }
  nav {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  nav button {
    padding: 7px;
    font-size: 11px;
  }
  nav button span {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  header .badge {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .fields,
  .diff {
    grid-template-columns: 1fr;
  }
  article {
    padding: 16px;
  }
  .item-row {
    grid-template-columns: 110px minmax(0, 1fr) 72px 34px;
  }
  .item-row img {
    width: 110px;
    height: 110px;
  }
  .item-info {
    min-width: 150px;
  }
}

@media (max-width: 900px) {
  .selected-items,
  #selected-items {
    grid-template-columns: 1fr;
  }
  .catalogue-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalogue-context {
    flex-direction: column;
  }
  .catalogue-context .muted {
    text-align: left;
  }
  .catalogue-results {
    grid-template-columns: 1fr;
  }
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}
main {
  min-width: 0;
}
.editor-grid > div {
  min-width: 0;
}
.notice {
  overflow-wrap: anywhere;
}
input[type="file"] {
  width: 100%;
}
@media (max-width: 1250px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Reference browsing */
[hidden] {
  display: none !important;
}
nav button.active {
  box-shadow: inset 4px 0 var(--nav-accent);
}
nav button {
  line-height: 1.4;
}
aside {
  overflow-y: auto;
}
.research-filters {
  flex-wrap: wrap;
  align-items: center;
}
.research-search-row {
  margin-bottom: 12px;
}
.research-search-row input {
  width: 100%;
  font-size: 15px;
  padding: 11px 13px;
}
.research-actions {
  padding-top: 14px;
}
.research-display-controls,
.research-action-buttons {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.research-display-controls label {
  min-width: 220px;
}
.research-action-buttons button {
  min-width: 120px;
}
.active-filter-summary {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.active-filter-summary span,
.coverage-badges span,
.item-guidance > * {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f6;
  color: #40586b;
  font-size: 10px;
  font-weight: 700;
}
.active-filter-summary span {
  margin-left: 5px;
}
.research-summary {
  margin: 12px 0 18px;
}
.coverage-badges,
.item-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.coverage-badges .available {
  background: #e5f3eb;
  color: #256143;
}
.coverage-badges .missing {
  background: #f2f2f2;
  color: #6f7780;
}
.item-guidance {
  margin: 7px 0;
}
.item-guidance .priority-hero {
  background: #f8e3ae;
  color: #724d08;
}
.item-guidance .priority-featured {
  background: #e7e2fa;
  color: #4d3c8a;
}
.item-guidance .priority-supporting {
  background: #e8f1f5;
  color: #315a6e;
}
.filter-intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 12px;
  color: var(--muted);
}
.filter-intro strong {
  color: var(--page-accent);
}
.filter-intro span {
  font-size: 12px;
}
.research-filters input {
  flex: 1 1 220px;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.research-card {
  padding: 0;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.reference-image {
  background: #eaf0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}
.reference-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.research-card > .reference-image {
  height: 170px;
  border-radius: 0;
  padding: 12px;
}
.research-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 9px;
}
.research-card-body h2,
.research-card-body p {
  margin: 0;
}
.research-card-body button {
  margin-top: auto;
  width: 100%;
}
.popularity {
  display: inline-block;
  background: #edf2e7;
  color: #3e582c;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
}
.image-unavailable {
  font-size: 11px;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}
.case-cell,
.skin-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}
.case-cell .reference-image {
  width: 80px;
  height: 70px;
}
.skin-image {
  width: 112px;
  height: 84px;
  padding: 6px;
}
.drop-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.drop-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 15px;
  border-left: 4px solid var(--page-accent);
}
.drop-card.priority-card-hero {
  border-left-color: #c89022;
  background: linear-gradient(135deg, #fff, #fffaf0);
}
.drop-card.priority-card-featured {
  border-left-color: #6b57a5;
}
.drop-group-title {
  margin: 22px 0 10px;
  color: var(--page-accent);
}
.research-detail-overview {
  padding: 18px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.research-detail-overview .research-hero {
  margin: 0 0 15px;
}
.case-economics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.case-economics > div {
  padding: 12px;
  border: 1px solid #ddd7ee;
  border-radius: 8px;
  background: var(--page-tint);
}
.case-economics strong,
.case-economics span {
  display: block;
}
.case-economics strong {
  font-size: 18px;
}
.case-economics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.evidence-detail {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.evidence-detail .notice {
  margin: 10px 0;
}
.drop-section {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--page-accent);
  border-radius: 10px;
  background: white;
}
.drop-section-head {
  align-items: flex-end;
  margin-bottom: 16px;
}
.drop-section-head h2,
.drop-section-head p {
  margin: 3px 0;
}
.drop-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(150px, 1fr));
  gap: 8px;
  min-width: min(620px, 55vw);
}
.drop-controls input,
.drop-controls select {
  width: 100%;
}
.drop-card .skin-image {
  width: 150px;
  height: 112px;
  background: var(--page-tint);
}
.drop-card strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 10px;
}
.drop-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 11px;
}
.drop-card dt {
  color: var(--muted);
}
.drop-card dd {
  margin: 0;
  font-weight: 600;
}
.evidence-interpretation {
  border-top: 4px solid var(--analytics);
  background: linear-gradient(135deg, #ffffff, var(--analytics-tint));
}
.interpretation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.signal-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.signal-guide > div {
  padding: 13px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #bde4d7;
}
.signal-guide strong {
  color: #126655;
}
.signal-guide p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.interpretation-stats div {
  padding: 12px;
  border: 1px solid #bde4d7;
  border-radius: 8px;
  background: #fff;
}
.interpretation-stats strong,
.interpretation-stats span {
  display: block;
}
.interpretation-stats strong {
  color: var(--analytics);
  font-size: 22px;
}
.interpretation-stats span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.research-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0;
}
.research-hero > .reference-image {
  width: 230px;
  height: 210px;
  padding: 15px;
}
.research-hero h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.research-hero p {
  margin: 10px 0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
}
#research-detail {
  scroll-margin-top: 20px;
}
#research-detail > button:first-child {
  position: sticky;
  top: 12px;
  z-index: 2;
}
th {
  position: sticky;
  top: 0;
  background: var(--paper);
}
@media (max-width: 700px) {
  .brief-guide {
    grid-template-columns: 1fr;
  }
  .drop-table-head {
    align-items: stretch;
    flex-direction: column;
  }
  .research-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .research-hero > .reference-image {
    width: 100%;
  }
  .research-filters select {
    width: 100%;
  }
  .drop-card-grid,
  .interpretation-stats,
  .signal-guide {
    grid-template-columns: 1fr;
  }
  .drop-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .drop-card .skin-image {
    width: 110px;
    height: 90px;
  }
  .filter-intro {
    display: block;
  }
  .skin-image {
    width: 76px;
    height: 64px;
  }
  .research-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.theme-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #e7eef6;
  color: #355873;
  font-size: 12px;
}
#research-study details {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
}
.research-filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(150px, 1fr));
  gap: 10px;
  align-items: center;
}
.research-filters input,
.research-filters select,
.research-filters button {
  width: 100%;
  min-width: 0;
}
.research-card-body small,
td small {
  display: block;
  margin-top: 4px;
}
.role-glyph {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  vertical-align: middle;
}
.role-entry {
  background: #2d8d7d;
}
.role-core {
  background: #3979a8;
}
.role-balance {
  background: #6d62ac;
}
.role-chase {
  background: #bd5a82;
}
.role-showcase {
  background: #b48222;
}
.evidence-availability {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #bde4d7;
  border-radius: 10px;
  background: #f5fbf9;
}
.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.availability-grid article {
  margin: 0;
  padding: 12px;
}
.measure-chip {
  display: inline-block;
  margin: 6px 5px 0 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff2ec;
  color: #126655;
  font-size: 11px;
}
.role-definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.role-definition-grid article {
  margin: 0;
  border-top: 4px solid #6d62ac;
}
.role-definition-grid h3 {
  display: inline;
  vertical-align: middle;
}
.role-definition-grid p {
  margin: 10px 0 0;
}
.strategy-hero,
.evidence-purpose {
  border: 1px solid #d8d2ec;
  border-top: 5px solid var(--guidance);
  background: linear-gradient(135deg, #fff, #f5f2fb);
}
.strategy-hero h2,
.evidence-purpose h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}
.strategy-decisions,
.decision-flow,
.management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.strategy-decisions div,
.decision-flow div {
  padding: 13px;
  border: 1px solid #ddd8eb;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
}
.strategy-decisions strong,
.strategy-decisions span,
.decision-flow strong,
.decision-flow span {
  display: block;
}
.strategy-decisions strong,
.decision-flow strong {
  margin-bottom: 5px;
  color: #554692;
}
.strategy-decisions span,
.decision-flow span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.strategy-section {
  margin: 28px 0;
}
.strategy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.strategy-steps li {
  counter-increment: step;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.strategy-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6d62ac;
  color: white;
  font-weight: 800;
}
.strategy-steps strong {
  color: #30275b;
}
.strategy-steps span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.management-grid article {
  margin: 0;
  border-top: 4px solid #6d62ac;
}
.evidence-purpose {
  border-color: #bde4d7;
  border-top-color: var(--analytics);
  background: linear-gradient(135deg, #fff, var(--analytics-tint));
}
.evidence-purpose .section-kicker {
  background: #dff2ec;
  color: #126655;
}
.evidence-rule {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #bde4d7;
  color: #254f47;
}
@media (max-width: 900px) {
  .strategy-decisions,
  .decision-flow,
  .management-grid,
  .strategy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .strategy-decisions,
  .decision-flow,
  .management-grid,
  .strategy-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) {
  .research-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-workflow ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case-filter-grid,
  .research-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drop-section-head,
  .research-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .drop-controls {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 1150px) {
  .drop-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .portfolio-workflow ol,
  .case-filter-grid,
  .research-filter-grid,
  .case-economics,
  .drop-controls {
    grid-template-columns: 1fr;
  }
  .case-filter-grid .wide {
    grid-column: auto;
  }
  .research-display-controls,
  .research-action-buttons,
  .filter-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .research-display-controls label,
  .research-action-buttons button {
    width: 100%;
    min-width: 0;
  }
}
