trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/* ── APPEX360 Global Density System ── Release 19.1
 *
 * Controls spacing, padding, and sizing across the entire platform.
 * Applied via density-{compact,comfortable,spacious} class on <body>.
 *
 * Compact:   Smaller padding, tighter gaps, denser grids
 * Comfortable: Current default (24px card padding, 16px gaps)
 * Spacious:   Larger padding, bigger gaps, executive presentation mode
 */

/* ═══ Default (Comfortable) ═══ */
:root {
  --density-card-padding: 24px;
  --density-card-gap: 16px;
  --density-section-gap: 32px;
  --density-table-cell: 12px 16px;
  --density-table-cell-compact: 8px 12px;
  --density-kpi-min-width: 200px;
  --density-grid-gap: 16px;
  --density-sidebar-padding: 16px;
  --density-form-spacing: 16px;
  --density-section-padding: 24px;
}

/* ═══ Compact ═══ */
body.density-compact {
  --density-card-padding: 16px;
  --density-card-gap: 10px;
  --density-section-gap: 20px;
  --density-table-cell: 8px 12px;
  --density-table-cell-compact: 6px 8px;
  --density-kpi-min-width: 160px;
  --density-grid-gap: 10px;
  --density-sidebar-padding: 10px;
  --density-form-spacing: 10px;
  --density-section-padding: 16px;
}

/* ═══ Spacious ═══ */
body.density-spacious {
  --density-card-padding: 32px;
  --density-card-gap: 24px;
  --density-section-gap: 48px;
  --density-table-cell: 16px 24px;
  --density-table-cell-compact: 12px 16px;
  --density-kpi-min-width: 260px;
  --density-grid-gap: 24px;
  --density-sidebar-padding: 24px;
  --density-form-spacing: 24px;
  --density-section-padding: 32px;
}

/* ═══ Density-Aware Component Consumers ═══ */

/* Cards */
.exec-card, .apex-card, .ds-card, .kpi-card,
[class*="card"]:not(.no-density) {
  padding: var(--density-card-padding) !important;
}

/* Card grids */
.exec-grid, .card-grid, .kpi-grid,
[class*="grid"]:not(.no-density) {
  gap: var(--density-grid-gap) !important;
}

/* KPI cards minimum width */
.kpi-card, .ds-kpi-card, [class*="kpi-card"] {
  min-width: var(--density-kpi-min-width);
}

/* Tables */
table.data-table th,
table.data-table td,
.table-row, [class*="table"]:not(.no-density) td,
[class*="table"]:not(.no-density) th {
  padding: var(--density-table-cell) !important;
}

/* Sections */
.section-group, .boardroom-section, .dashboard-section,
[class*="section"]:not(.no-density) {
  gap: var(--density-section-gap);
  padding: var(--density-section-padding);
}

/* Sidebar */
.sidebar, [class*="sidebar"]:not(.no-density) {
  padding: var(--density-sidebar-padding) !important;
}

/* Forms */
.form-group, .form-field, [class*="form"]:not(.no-density) {
  gap: var(--density-form-spacing);
  margin-bottom: var(--density-form-spacing);
}

/* Boardroom specific */
.boardroom-section {
  padding: var(--density-card-padding) !important;
  margin-bottom: var(--density-card-gap);
}

/* Homepage sections */
.homepage-section {
  padding: var(--density-section-padding) !important;
  margin-bottom: var(--density-section-gap);
}
/* APEX360 Motion & Interaction Engine — Release 17.0 Commercial Launch Polish */
/* =================================================== */

/* ─── 1. MOTION TOKENS ─── */
:root {
  --motion-duration-short: 150ms;
  --motion-duration-medium: 300ms;
  --motion-duration-long: 500ms;
  --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --motion-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-spring-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --motion-stagger: 60ms;
  --motion-scale-hover: 1.03;
  --motion-scale-active: 0.97;
  --motion-lift: -3px;
}

/* ─── 2. STYLE-AWARE OVERRIDES ─── */
[data-style="apple_minimal"] {
  --motion-duration-short: 200ms;
  --motion-duration-medium: 400ms;
  --motion-duration-long: 700ms;
  --motion-ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-spring-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-stagger: 80ms;
  --motion-scale-hover: 1.02;
  --motion-lift: -2px;
}
[data-style="modern_saas"] {
  --motion-duration-short: 100ms;
  --motion-duration-medium: 200ms;
  --motion-duration-long: 350ms;
  --motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --motion-spring-soft: cubic-bezier(0, 0, 0.2, 1);
  --motion-stagger: 40ms;
  --motion-scale-hover: 1.02;
  --motion-lift: -2px;
}
[data-style="microsoft_fluent"] {
  --motion-duration-short: 150ms;
  --motion-duration-medium: 250ms;
  --motion-duration-long: 400ms;
  --motion-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-stagger: 50ms;
}
[data-style="bold_colourful"] {
  --motion-duration-short: 200ms;
  --motion-duration-medium: 350ms;
  --motion-duration-long: 600ms;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-spring-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --motion-stagger: 100ms;
  --motion-scale-hover: 1.05;
  --motion-lift: -6px;
}

/* ─── 3. DS BUTTON MICRO-INTERACTIONS ─── */
.ds-btn, .apex-btn, [class*="btn"] {
  transition: opacity var(--motion-duration-medium) var(--motion-ease-out),
              transform var(--motion-duration-short) var(--motion-ease-out),
              background-color var(--motion-duration-short) ease,
              box-shadow var(--motion-duration-short) ease,
              border-color var(--motion-duration-short) ease;
}
.apex-stagger-grid .ds-btn,
.apex-stagger-grid .apex-btn {
  opacity: 0;
  transform: scale(0.95);
}
.apex-stagger-grid.apex-visible .ds-btn,
.apex-stagger-grid.apex-visible .apex-btn {
  opacity: 1;
  transform: scale(1);
}
.ds-btn:hover, .apex-btn:hover {
  transform: translateY(-1px);
}
.ds-btn:active, .apex-btn:active {
  transform: scale(var(--motion-scale-active));
}

/* ─── 4. DS CARD MICRO-INTERACTIONS ─── */
.exec-card, .ds-kpi-card, .ds-glass, .apex-card {
  transition: opacity var(--motion-duration-long) var(--motion-ease-out),
              transform var(--motion-duration-long) var(--motion-ease-out),
              box-shadow var(--motion-duration-medium) ease,
              border-color var(--motion-duration-medium) ease;
}
.exec-card:hover, .ds-kpi-card:hover, .ds-glass:hover {
  transform: translateY(var(--motion-lift));
}
.exec-card:active, .ds-kpi-card:active {
  transform: translateY(-1px) scale(0.98);
}

/* ─── 5. ICON MICRO-INTERACTIONS ─── */
.ds-btn i, .exec-card i, .ds-kpi-card i, [class*="badge"] i, a i {
  transition: transform var(--motion-duration-short) var(--motion-ease-out);
}
.ds-btn:hover i {
  transform: scale(1.15);
}
.exec-card:hover i.fa-arrow-right,
.ds-btn:hover i.fa-arrow-right,
a:hover i.fa-arrow-right {
  transform: translateX(3px);
}
.exec-card:hover i.fa-external-link-alt,
a:hover i.fa-external-link {
  transform: translate(2px, -2px);
}

/* ─── 6. KPI COUNT-UP ─── */
.apex-count, .ds-kpi-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color var(--motion-duration-medium) ease;
}

/* ─── 7. PROGRESS BARS ─── */
.apex-progress-track {
  overflow: hidden;
}
.apex-progress-fill {
  width: 0%;
  transition: width 0.8s var(--motion-ease-out);
}

/* ─── 8. TOOLTIP ─── */
.apex-tooltip {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--motion-duration-short) var(--motion-ease-out),
              transform var(--motion-duration-short) var(--motion-ease-out);
  pointer-events: none;
}
.apex-tooltip.apex-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 9. MODAL ─── */
.apex-modal-overlay {
  opacity: 0;
  transition: opacity var(--motion-duration-medium) ease;
}
.apex-modal-overlay.apex-visible {
  opacity: 1;
}
.apex-modal-content {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity var(--motion-duration-medium) var(--motion-ease-out),
              transform var(--motion-duration-medium) var(--motion-spring-soft);
}
.apex-modal-overlay.apex-visible .apex-modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ─── 10. NOTIFICATION SLIDE ─── */
.apex-notification {
  transform: translateX(120%);
  transition: transform var(--motion-duration-medium) var(--motion-spring-soft),
              opacity var(--motion-duration-medium) ease;
  opacity: 0;
}
.apex-notification.apex-visible {
  transform: translateX(0);
  opacity: 1;
}
.apex-notification.apex-dismissing {
  transform: translateX(120%);
  opacity: 0;
}

/* ─── 11. DROPDOWN FADE + SCALE ─── */
.apex-dropdown {
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  transition: opacity var(--motion-duration-short) var(--motion-ease-out),
              transform var(--motion-duration-short) var(--motion-ease-out);
  pointer-events: none;
}
.apex-dropdown.apex-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* ─── 12. TABLE ROW HIGHLIGHT ─── */
tr[onmouseover] {
  transition: background-color var(--motion-duration-short) ease;
}

/* ─── 13. STAGGER ENTRY SYSTEM ─── */
.apex-stagger-fade > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--motion-duration-long) var(--motion-ease-out),
              transform var(--motion-duration-long) var(--motion-ease-out);
}
.apex-stagger-fade.apex-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 14. SKELETON LOADING ─── */
.apex-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm, 6px);
}
body.theme-ai-futuristic .apex-skeleton {
  background: linear-gradient(
    90deg,
    rgba(79,124,255,0.04) 25%,
    rgba(79,124,255,0.08) 50%,
    rgba(79,124,255,0.04) 75%
  );
  background-size: 200% 100%;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── 15. SUCCESS/ERROR FLASH ─── */
.apex-flash {
  animation: flash-slide-in 0.3s var(--motion-ease-out) forwards;
}
@keyframes flash-slide-in {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.apex-flash.apex-dismissing {
  animation: flash-slide-out 0.2s var(--motion-ease-in) forwards;
}
@keyframes flash-slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-10px); opacity: 0; }
}

/* ─── 16. EMPTY STATE ─── */
.apex-empty-state {
  opacity: 0;
  transform: translateY(20px);
  animation: empty-state-enter 0.4s var(--motion-ease-out) 0.1s forwards;
}
@keyframes empty-state-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── 17. SUCCESS INDICATOR ─── */
.apex-success-check {
  animation: success-pop 0.4s var(--motion-spring-soft) forwards;
}
@keyframes success-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ─── 18. FLOATING HELP ─── */
.apex-help-btn {
  animation: help-pulse 2.5s ease-in-out infinite;
}
@keyframes help-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}
.apex-help-panel {
  transform: translateY(100%);
  transition: transform var(--motion-duration-medium) var(--motion-ease-out);
}
.apex-help-panel.apex-visible {
  transform: translateY(0);
}

/* ─── 19. REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    --motion-duration-short: 0ms !important;
    --motion-duration-medium: 0ms !important;
    --motion-duration-long: 0ms !important;
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  .exec-card:hover,
  .ds-kpi-card:hover,
  .ds-glass:hover,
  .ds-btn:hover,
  .apex-btn:hover {
    transform: none !important;
  }
  .apex-skeleton {
    animation: none !important;
    background: rgba(255,255,255,0.04) !important;
  }
}
/* ═══════════════════════════════════════════════════
   APPEXi — Enterprise Intelligence Assistant Styles
   Enhanced Enterprise Core — Release 28B
   ═══════════════════════════════════════════════════ */

/* ── Panel Container ─────────────────────────────── */

.appexi-panel {
  max-height: 90vh;
  height: 720px;
  background: rgba(10, 14, 28, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: appexi-panel-enter 0.25s ease-out;
  position: relative;
  pointer-events: auto;
}

.appexi-panel.hidden {
  display: none !important;
}

/* ── Header ───────────────────────────────────────── */

.appexi-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 6px;
}

.appexi-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.appexi-header-icon {
  font-size: 20px;
  line-height: 1;
}

	.appexi-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.appexi-header-subtitle {
  font-size: 9px;
  color: rgba(129, 140, 248, 0.5);
  font-weight: 500;
  line-height: 1.2;
}

.appexi-drag-grip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.15);
  margin-right: 2px;
  flex-shrink: 0;
  cursor: grab;
  transition: color 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.appexi-drag-grip:hover {
  color: rgba(255, 255, 255, 0.35);
}

.appexi-header-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appexi-header-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* ── Toggle Group (Enterprise Mode & View Mode) ───── */

.appexi-toggle-group {
  display: inline-flex;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  flex-shrink: 0;
}

.appexi-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.appexi-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.appexi-toggle-btn.appexi-toggle-active {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
}

.appexi-toggle-left {
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.appexi-toggle-right {
  border-left: none;
}

/* ── Tone Selector ────────────────────────────────── */

.appexi-tone-select {
  padding: 3px 22px 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' fill='none'%3E%3Cpath d='M1 1l3 3 3-3' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  transition: all 0.15s;
  max-width: 80px;
}

.appexi-tone-select:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.appexi-tone-select:focus {
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.appexi-tone-select option {
  background: #0a0e1c;
  color: #fff;
}

/* ── Header Buttons ───────────────────────────────── */

.appexi-header-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.appexi-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Messages ─────────────────────────────────────── */

.appexi-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

/* Enterprise custom scrollbar — always visible */
.appexi-messages::-webkit-scrollbar {
  width: 10px;
}

.appexi-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
}

.appexi-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 5px;
  border: 2px solid rgba(10, 14, 28, 0.94);
  min-height: 60px;
}

.appexi-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8, #a78bfa);
}

/* Firefox scrollbar */
.appexi-messages {
  scrollbar-color: #6366f1 rgba(255, 255, 255, 0.03);
  scrollbar-width: auto;
}

/* ── Message Wrappers ─────────────────────────────── */

.appexi-message-wrapper {
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-user-message-wrapper {
  display: flex;
  justify-content: flex-end;
}

.appexi-assistant-message-wrapper {
  display: flex;
  flex-direction: column;
}

/* ── Messages ─────────────────────────────────────── */

.appexi-message {
  max-width: 92%;
}

.appexi-user-message {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
}

.appexi-assistant-message {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
}

.appexi-message-content {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 70ch;
  font-weight: 400;
}

.appexi-message-content p {
  margin: 0 0 20px;
}

.appexi-message-content p:last-child {
  margin-bottom: 0;
}

.appexi-message-content strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.appexi-message-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}

.appexi-message-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.appexi-message-content ul {
  margin: 8px 0 20px;
  padding-left: 20px;
  list-style: none;
}

.appexi-message-content li {
  margin-bottom: 6px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
}

.appexi-message-content li::before {
  content: "\2022";
  position: absolute;
  left: -14px;
  color: rgba(99, 102, 241, 0.4);
}

.appexi-message-content hr {
  margin: 24px 0;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Source Tier Indicator ─────────────────────────── */

.appexi-source-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.appexi-source-tier .appexi-tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.appexi-tier-live {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.appexi-tier-live .appexi-tier-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.appexi-tier-knowledge {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(96, 165, 250, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.appexi-tier-knowledge .appexi-tier-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.appexi-tier-ai {
  background: rgba(234, 179, 8, 0.12);
  color: rgba(250, 204, 21, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.18);
}

.appexi-tier-ai .appexi-tier-dot {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}

.appexi-tier-general {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.appexi-tier-general .appexi-tier-dot {
  background: rgba(255, 255, 255, 0.25);
}

.appexi-disclaimer {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.06);
  border-left: 2px solid rgba(234, 179, 8, 0.25);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

/* ── Thinking Steps ────────────────────────────────── */

.appexi-thinking-steps {
  padding: 6px 16px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.appexi-thinking-steps.hidden {
  display: none;
}

.appexi-thinking-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  animation: appexi-step-in 0.3s ease-out;
  transition: all 0.2s;
}

.appexi-thinking-step .appexi-step-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.appexi-thinking-step .appexi-step-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.appexi-thinking-step.appexi-step-active .appexi-step-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
  animation: appexi-step-pulse 1.2s ease-in-out infinite;
}

.appexi-thinking-step.appexi-step-active .appexi-step-text {
  color: rgba(255, 255, 255, 0.6);
}

.appexi-thinking-step.appexi-step-completed .appexi-step-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
  animation: none;
}

.appexi-thinking-step.appexi-step-completed .appexi-step-text {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Skill Badge ───────────────────────────────────── */

.appexi-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.appexi-skill-badge .appexi-skill-name {
  color: inherit;
}

.appexi-skill-badge .appexi-skill-version {
  opacity: 0.6;
  font-weight: 400;
}

.appexi-skill-badge .appexi-skill-confidence {
  opacity: 0.8;
  font-weight: 700;
}

.appexi-skill-risk_review {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.appexi-skill-maintenance {
  background: rgba(16, 185, 129, 0.08);
  color: rgba(16, 185, 129, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.appexi-skill-financial {
  background: rgba(245, 158, 11, 0.08);
  color: rgba(245, 158, 11, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.appexi-skill-compliance {
  background: rgba(99, 102, 241, 0.08);
  color: rgba(129, 140, 248, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.appexi-skill-strategic {
  background: rgba(168, 85, 247, 0.08);
  color: rgba(192, 132, 252, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.appexi-skill-operational {
  background: rgba(236, 72, 153, 0.08);
  color: rgba(244, 114, 182, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

/* ── Evidence Section ──────────────────────────────── */

.appexi-evidence-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-evidence-toggle {
  background: none;
  border: none;
  color: rgba(129, 140, 248, 0.35);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.appexi-evidence-toggle:hover {
  color: rgba(129, 140, 248, 0.65);
}

.appexi-evidence-toggle i {
  font-size: 9px;
  transition: transform 0.2s;
}

.appexi-evidence-toggle.appexi-evidence-expanded i {
  transform: rotate(90deg);
}

.appexi-evidence-cards {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-evidence-cards.hidden {
  display: none;
}

.appexi-evidence-card {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.appexi-evidence-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.appexi-evidence-card .appexi-evidence-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.appexi-evidence-card .appexi-evidence-module-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.08);
  color: rgba(129, 140, 248, 0.6);
}

.appexi-evidence-card .appexi-evidence-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  line-height: 1.3;
}

.appexi-evidence-card .appexi-evidence-date {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.appexi-evidence-card .appexi-evidence-conf {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.appexi-evidence-card .appexi-evidence-conf-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  flex-shrink: 0;
}

.appexi-evidence-card .appexi-evidence-conf-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  max-width: 60px;
}

.appexi-evidence-card .appexi-evidence-conf-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.appexi-evidence-card .appexi-evidence-conf-value {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  min-width: 24px;
  text-align: right;
}

.appexi-evidence-card .appexi-evidence-rationale {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
  margin-top: 3px;
}

.appexi-evidence-card .appexi-evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  text-decoration: none;
  transition: all 0.15s;
}

.appexi-evidence-card .appexi-evidence-link:hover {
  color: rgba(129, 140, 248, 0.8);
  background: rgba(99, 102, 241, 0.1);
}

/* ── Confidence Breakdown ──────────────────────────── */

.appexi-confidence-breakdown {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.appexi-conf-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-conf-overall-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.appexi-conf-overall-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.appexi-conf-factor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.appexi-conf-factor:last-child {
  margin-bottom: 0;
}

.appexi-conf-factor-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  min-width: 70px;
  flex-shrink: 0;
}

.appexi-conf-factor-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.appexi-conf-factor-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.appexi-conf-factor-value {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Reasoning Trace ───────────────────────────────── */

.appexi-reasoning-trace {
  margin-top: 8px;
}

.appexi-trace-toggle {
  background: none;
  border: none;
  color: rgba(129, 140, 248, 0.35);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.appexi-trace-toggle:hover {
  color: rgba(129, 140, 248, 0.65);
}

.appexi-trace-toggle i {
  font-size: 9px;
  transition: transform 0.2s;
}

.appexi-trace-toggle.appexi-trace-expanded i {
  transform: rotate(90deg);
}

.appexi-trace-steps {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-trace-steps.hidden {
  display: none;
}

.appexi-trace-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.appexi-trace-step:last-child {
  border-bottom: none;
}

.appexi-trace-step .appexi-trace-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  font-size: 9px;
  background: rgba(99, 102, 241, 0.06);
  color: rgba(129, 140, 248, 0.5);
}

.appexi-trace-step .appexi-trace-step-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  min-width: 80px;
  flex-shrink: 0;
}

.appexi-trace-step .appexi-trace-step-detail {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
}

/* ── Recommendations ──────────────────────────────── */

.appexi-recommendations {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-recommendations-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.appexi-recommendation-card {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: border-color 0.15s;
}

.appexi-recommendation-card:last-child {
  margin-bottom: 0;
}

.appexi-recommendation-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.appexi-recommendation-card .appexi-rec-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.appexi-recommendation-card .appexi-rec-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  flex: 1;
}

.appexi-recommendation-priority {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.appexi-rec-priority-critical {
  background: rgba(239, 68, 68, 0.12);
  color: rgba(239, 68, 68, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.appexi-rec-priority-high {
  background: rgba(245, 158, 11, 0.12);
  color: rgba(245, 158, 11, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.appexi-rec-priority-medium {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(96, 165, 250, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.appexi-rec-priority-low {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.appexi-recommendation-card .appexi-rec-impact {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
  margin-top: 3px;
}

.appexi-recommendation-card .appexi-rec-impact strong {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* ── Why This Matters ──────────────────────────────── */

.appexi-why-matters {
  margin-top: 4px;
  padding: 4px 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.4;
  font-style: italic;
}

/* ── Record Links ──────────────────────────────────── */

.appexi-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.appexi-record-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  text-decoration: none;
  transition: all 0.15s;
}

.appexi-record-link:hover {
  color: rgba(129, 140, 248, 0.8);
  background: rgba(99, 102, 241, 0.1);
}

.appexi-record-link i {
  font-size: 8px;
}

/* ── Follow-up Suggestions ─────────────────────────── */

.appexi-follow-up {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-follow-up-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.appexi-follow-up-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.appexi-follow-up-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.03);
  color: rgba(129, 140, 248, 0.5);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  line-height: 1.4;
}

.appexi-follow-up-btn:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
  color: rgba(129, 140, 248, 0.7);
}

.appexi-follow-up-btn:active {
  transform: scale(0.97);
}

/* ── Evidence Badges ──────────────────────────────── */

.appexi-evidence-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.appexi-evidence-live_company_data {
  background: rgba(16, 185, 129, 0.1);
  color: rgba(16, 185, 129, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.appexi-evidence-enterprise_knowledge {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(96, 165, 250, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.appexi-evidence-external_intelligence {
  background: rgba(168, 85, 247, 0.1);
  color: rgba(192, 132, 252, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.appexi-evidence-user_input {
  background: rgba(234, 179, 8, 0.1);
  color: rgba(250, 204, 21, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.15);
}

.appexi-evidence-inference {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Confidence Score ─────────────────────────────── */

.appexi-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-confidence-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.appexi-confidence-label {
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.appexi-confidence-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  max-width: 80px;
}

.appexi-confidence-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.appexi-confidence-score {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}

/* ── Explainability Panel ─────────────────────────── */

.appexi-explain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 0;
  flex-shrink: 0;
}

.appexi-explain-toggle {
  background: none;
  border: none;
  color: rgba(129, 140, 248, 0.4);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.appexi-explain-toggle:hover {
  color: rgba(129, 140, 248, 0.7);
}

.appexi-tone-indicator {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.appexi-explain-panel {
  margin: 0 16px 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-explain-panel.hidden {
  display: none !important;
}

.appexi-explain-section {
  margin-bottom: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.appexi-explain-section:last-child {
  margin-bottom: 0;
}

.appexi-explain-section strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.appexi-explain-section ul {
  margin: 0;
  padding-left: 14px;
  list-style: none;
}

.appexi-explain-section li {
  margin-bottom: 3px;
  position: relative;
  color: rgba(255, 255, 255, 0.35);
}

.appexi-explain-section li::before {
  content: "\2013";
  position: absolute;
  left: -12px;
  color: rgba(255, 255, 255, 0.15);
}

.appexi-explain-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
}

.appexi-evidence-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.appexi-explain-missing {
  border-left: 2px solid rgba(234, 179, 8, 0.3);
  padding-left: 10px;
}

.appexi-explain-limitations {
  border-left: 2px solid rgba(239, 68, 68, 0.3);
  padding-left: 10px;
}

/* ── Suggestions ──────────────────────────────────── */

.appexi-suggestions {
  padding: 5px 14px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.appexi-suggestions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.appexi-suggestion-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.04);
  color: rgba(129, 140, 248, 0.5);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appexi-suggestion-btn:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
  color: #818cf8;
}

.appexi-suggestion-btn:active {
  transform: scale(0.97);
}

/* ── Input Area ───────────────────────────────────── */

.appexi-input-area {
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.appexi-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.appexi-input {
  flex: 1;
  min-height: 38px;
  max-height: 200px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
}

.appexi-input:focus {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.appexi-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.appexi-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 13px;
}

.appexi-send-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.appexi-send-btn:active {
  transform: scale(0.95);
}

/* ── Floating Action Button ───────────────────────── */

.appexi-fab {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
  position: fixed;
  bottom: 24px;
  right: 32px;
  overflow: hidden;
  pointer-events: auto;
}

.appexi-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.appexi-fab:active {
  transform: scale(0.96);
}

.appexi-fab-icon {
  font-size: 24px;
  line-height: 1;
}

.appexi-fab.hidden {
  display: none !important;
}

/* ── Backdrop dimming overlay ─────────────────── */

.appexi-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: auto;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-backdrop.hidden {
  display: none;
}

/* ── Conversation History Panel ───────────────────── */

.appexi-history-panel {
  max-height: 180px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  animation: appexi-fade-in 0.15s ease-out;
}

.appexi-history-panel.hidden {
  display: none !important;
}

.appexi-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.appexi-history-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
  transition: color 0.15s;
}

.appexi-history-clear:hover {
  color: rgba(239, 68, 68, 0.6);
}

.appexi-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.appexi-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
}

.appexi-history-item i {
  font-size: 10px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.appexi-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appexi-history-empty {
  padding: 12px 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* ── Typing Indicator ─────────────────────────────── */

.appexi-typing {
  display: flex;
  gap: 10px;
  align-items: center;
  animation: appexi-fade-in 0.15s ease-out;
  padding: 4px 0;
}

.appexi-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: appexi-dot 1.2s ease-in-out infinite;
}

.appexi-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.appexi-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

/* ── Animations ───────────────────────────────────── */

@keyframes appexi-panel-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes appexi-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes appexi-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes appexi-step-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes appexi-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05); }
}

@keyframes appexi-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* ── AI Futuristic Theme Overrides ────────────────── */

body.theme-ai-futuristic .appexi-panel {
  background: rgba(5, 8, 22, 0.94) !important;
  border-color: rgba(79, 124, 255, 0.15) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 124, 255, 0.08) !important;
}

body.theme-ai-futuristic .appexi-fab {
  background: linear-gradient(135deg, #4F7CFF, #7C5CFF) !important;
  box-shadow: 0 4px 20px rgba(79, 124, 255, 0.35) !important;
}

body.theme-ai-futuristic .appexi-fab:hover {
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.5) !important;
}

body.theme-ai-futuristic .appexi-input:focus {
  border-color: rgba(79, 124, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(79, 124, 255, 0.08) !important;
}

body.theme-ai-futuristic .appexi-evidence-enterprise_knowledge {
  background: rgba(79, 124, 255, 0.1) !important;
  color: rgba(110, 168, 254, 0.9) !important;
  border-color: rgba(79, 124, 255, 0.2) !important;
}

/* ── Reduced Motion ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .appexi-panel { animation: none !important; }
  .appexi-typing span { animation: none !important; opacity: 0.5 !important; }
  .appexi-thinking-step { animation: none !important; }
  .appexi-step-active .appexi-step-icon { animation: none !important; }
}

/* ── Mobile Responsive ────────────────────────────── */

@media (max-width: 480px) {
  .appexi-panel {
    width: calc(100vw - 24px);
    max-height: 80vh;
    bottom: 80px;
    right: 12px;
    border-radius: 16px;
  }

  .appexi-header-title {
    font-size: 13px;
  }

  .appexi-tone-select {
    font-size: 9px;
    padding: 2px 18px 2px 5px;
    max-width: 60px;
  }

  .appexi-toggle-btn {
    width: 24px;
    height: 22px;
    font-size: 10px;
  }

  .appexi-fab {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .appexi-fab-icon {
    font-size: 20px;
  }
}

/* ═══ Executive Insight Box ══════════════════════════ */

.appexi-insight-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 4px 8px 10px;
}

.appexi-insight-field {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-insight-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.appexi-insight-field:first-child {
  padding-top: 0;
}

.appexi-insight-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.appexi-insight-label i {
  font-size: 9px;
}

.appexi-insight-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Priority badge */
.appexi-insight-priority-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Recommended actions list */
.appexi-insight-actions {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.appexi-insight-actions li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  position: relative;
  padding-left: 4px;
  margin-bottom: 4px;
}

.appexi-insight-actions li::before {
  content: "→";
  position: absolute;
  left: -14px;
  color: rgba(99, 102, 241, 0.5);
  font-size: 11px;
}

/* Confidence bar */
.appexi-insight-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appexi-insight-confidence-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.appexi-insight-confidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.appexi-insight-confidence-value {
  font-size: 13px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* ═══════════════════════════════════════════════
   Floating Dock — Light Background Modifier
   Release 28.1
   
   Applied by floating-contrast Stimulus controller
   when the dock overlaps a .light-section.
   ═══════════════════════════════════════════════ */

/* ── Dock buttons over light backgrounds ── */
.floating-dock--light .floating-dock-btn {
  background: rgba(35, 35, 40, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #111 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.floating-dock--light .floating-dock-btn i,
.floating-dock--light .floating-dock-btn svg {
  color: #111 !important;
}

.floating-dock--light .floating-dock-btn--fab {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4) !important;
}

.floating-dock--light .floating-dock-btn--fab i,
.floating-dock--light .floating-dock-btn--fab svg {
  color: #fff !important;
}

/* ── Did You Know Card ── */
.floating-dock--light ~ .did-you-know-card,
.floating-dock--light .did-you-know-card {
  background: rgba(35, 35, 40, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

/* ── APPEXi FAB over light backgrounds ── */
.appexi-fab--light.appexi-fab {
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

/* ── AI Futuristic theme override ── */
body.theme-ai-futuristic .floating-dock--light .floating-dock-btn {
  background: rgba(15, 20, 40, 0.92) !important;
  border-color: rgba(79, 124, 255, 0.2) !important;
}

body.theme-ai-futuristic .appexi-fab--light.appexi-fab {
  	box-shadow: 0 4px 24px rgba(79, 124, 255, 0.45), 0 0 0 1px rgba(79, 124, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Floating Dock — Enterprise AI Workspace Launcher
   Version 2.0 — Unified purple glass, hover expansion, tooltips
   ═══════════════════════════════════════════════════════════════════ */

/* ── Dock Container ──────────────────────────────── */

.floating-dock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: rgba(10, 14, 28, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0.65;
}

.floating-dock:hover {
  opacity: 1;
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.04);
}

/* ── Button Wrapper ──────────────────────────────── */

.dock-btn-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* ── Enterprise Glass Button ─────────────────────── */

.dock-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.08);
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  gap: 0;
  flex-shrink: 0;
}

.dock-btn:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.dock-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.22);
  color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.dock-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition-duration: 0.05s;
}

/* Active state — brighter glow when panel is open */
.dock-btn.dock-btn-active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25), inset 0 0 12px rgba(99, 102, 241, 0.06);
}

/* APPEXi primary button — slightly larger, gradient */
.dock-btn-appexi {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
  border-color: rgba(99, 102, 241, 0.2);
}

.dock-btn-appexi:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.25);
}

.dock-btn-appexi.dock-btn-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3), inset 0 0 12px rgba(99, 102, 241, 0.06);
}

/* ── Button Icon ─────────────────────────────────── */

.dock-btn-icon {
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
}

.dock-btn:hover .dock-btn-icon {
  transform: scale(1.1);
}

.dock-btn:active .dock-btn-icon {
  transform: scale(0.9);
}

/* ── Button Label (hidden by default, shown on hover expansion) ── */

.dock-btn-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.2s ease-out;
  margin-left: 0;
}

/* Expanded state — labels slide in */
.floating-dock-expanded .dock-btn {
  width: auto;
  padding: 0 10px 0 8px;
  gap: 6px;
}

.floating-dock-expanded .dock-btn-appexi {
  padding: 0 12px 0 10px;
  gap: 6px;
}

.floating-dock-expanded .dock-btn-label {
  opacity: 1;
  max-width: 160px;
  margin-left: 0;
}

.floating-dock-expanded .dock-btn-label-appexi {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Divider ─────────────────────────────────────── */

.dock-divider {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
  flex-shrink: 0;
}

/* ── Enterprise Tooltips ──────────────────────────── */

.dock-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.dock-tooltip-visible {
  opacity: 1;
}

/* Hide tooltips when dock is expanded (labels replace them) */
.floating-dock-expanded .dock-tooltip {
  display: none;
}

/* ── Mobile Responsive ────────────────────────────── */

@media (max-width: 640px) {
  .floating-dock {
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }

  .dock-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .dock-btn-appexi {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .floating-dock-expanded .dock-btn {
    padding: 0 12px 0 8px;
  }

  .dock-tooltip {
    display: none;
  }
}

/* ── Light Background Overrides ───────────────────── */

.floating-dock--light {
  border-color: rgba(99, 102, 241, 0.12) !important;
  background: rgba(20, 22, 40, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Panel Modes — Floating / Expanded / Fullscreen / Workspace
   ═══════════════════════════════════════════════════════════════ */

/* Floating — default, ~420px × 90vh height, flex fills */
.appexi-panel-floating {
  position: fixed;
  left: auto;
  right: 32px;
  top: auto;
  bottom: 24px;
  width: 420px;
  max-width: 92vw;
  height: 720px;
  max-height: 90vh;
  border-radius: 20px;
  transform-origin: bottom right;
}

/* Expanded — 900px × 90vh, centered */
.appexi-panel-expanded {
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 94vw;
  max-height: 90vh;
  height: 90vh;
  border-radius: 20px;
}

.appexi-panel-expanded .appexi-messages {
  max-height: calc(90vh - 140px);
}

/* Workspace — 55-60% width, right-anchored, full-height, for anonymous demo */
.appexi-panel-workspace {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(58%, 960px);
  height: 100vh;
  max-height: 100vh;
  border-radius: 20px 0 0 20px;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.appexi-panel-workspace .appexi-messages {
  max-height: calc(100vh - 130px);
}

/* Workspace on narrow screens — fill the full width so the chat input box
   is NEVER pushed off-screen. (Previously min-width:600px + width:58% could
   overflow small viewports and hide the typing box.) */
@media (max-width: 640px) {
  .appexi-panel-workspace {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
    border-radius: 0;
  }
}

/* Fullscreen — 100vw × 100vh, covers entire viewport */
.appexi-panel-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.appexi-panel-fullscreen .appexi-messages {
  max-height: calc(100vh - 120px);
}

/* Fullscreen fallback — used when browser Fullscreen API is unavailable */
.appexi-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  z-index: 2147483647 !important;
}

/* Smooth transition when switching modes */
.appexi-panel {
  transition: width 0.25s ease, height 0.25s ease, max-width 0.25s ease, 
              max-height 0.25s ease, top 0.25s ease, left 0.25s ease, 
              right 0.25s ease, bottom 0.25s ease, border-radius 0.25s ease,
              transform 0.25s ease;
}

/* ── Draggable Header ──────────────────────────────── */

.appexi-header {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.appexi-header:active {
  cursor: grabbing;
}

/* Prevent text selection during drag */
.appexi-panel.appexi-dragging,
.appexi-panel.appexi-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

.appexi-panel.appexi-dragging {
  transition: none !important;
}

/* ── Window Control Buttons ────────────────────────── */

.appexi-window-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.appexi-window-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.appexi-window-btn.appexi-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.appexi-window-btn:active {
  transform: scale(0.92);
}

/* Pin button active state — purple glow when pinned */
.appexi-pin-btn.appexi-pin-active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.appexi-pin-btn.appexi-pin-active:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* ── Resize Handle ─────────────────────────────────── */

.appexi-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: auto;
}

.appexi-resize-handle::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  margin: 2px;
}

.appexi-resize-handle:hover::after {
  border-color: rgba(99, 102, 241, 0.4);
}

/* ── Header Status Dot ─────────────────────────────── */

.appexi-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

/* ── FAB hidden state (when fully closed) ──────────── */

/* ═══════════════════════════════════════════════════════════════
   Demo Mode — Conversion Panel & Lock Prompt
   Anonymous User Experience — Release 27.6
   ═══════════════════════════════════════════════════════════════ */

/* ── Conversion Panel (after first demo response) ───── */

.appexi-conversion-panel {
  margin: 8px 0 4px;
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  text-align: center;
  animation: appexi-fade-in 0.3s ease-out;
}

.appexi-conversion-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.appexi-conversion-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.appexi-conversion-title {
  font-size: 14px;
  font-weight: 700;
  color: #E0E7FF;
  margin: 0;
  letter-spacing: -0.01em;
}

.appexi-conversion-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2px;
  line-height: 1.4;
}

.appexi-conversion-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.appexi-conversion-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: inline-block;
  text-align: left;
  columns: 2;
  column-gap: 20px;
}

.appexi-conversion-benefits li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 0;
  position: relative;
  padding-left: 20px;
  line-height: 1.3;
  break-inside: avoid;
}

.appexi-conversion-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 12px;
}

.appexi-conversion-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.appexi-conversion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  min-width: 140px;
}

.appexi-conversion-btn:hover {
  transform: translateY(-1px);
}

.appexi-conversion-btn:active {
  transform: scale(0.97);
}

.appexi-conversion-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.appexi-conversion-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.appexi-conversion-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.appexi-conversion-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.appexi-conversion-btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  padding: 8px 20px;
}

.appexi-conversion-btn-outline:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.appexi-conversion-footer {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Lock Prompt (second anonymous question) ────────── */

.appexi-lock-prompt {
  margin: 8px 0 4px;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  text-align: center;
  animation: appexi-fade-in 0.3s ease-out;
}

.appexi-lock-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.appexi-lock-title {
  font-size: 15px;
  font-weight: 700;
  color: #E0E7FF;
  margin: 0 0 8px;
  line-height: 1.4;
}

.appexi-lock-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  line-height: 1.5;
}

.appexi-lock-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.appexi-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  min-width: 200px;
}

.appexi-lock-btn:hover {
  transform: translateY(-1px);
}

.appexi-lock-btn:active {
  transform: scale(0.97);
}

.appexi-lock-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.appexi-lock-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.appexi-lock-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.appexi-lock-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.appexi-lock-btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  padding: 8px 20px;
}

.appexi-lock-btn-outline:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.appexi-lock-footer {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Expanded mode overrides for anonymous demo ─────── */

.appexi-panel-expanded .appexi-conversion-panel,
.appexi-panel-expanded .appexi-lock-prompt {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.appexi-exec-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.appexi-exec-title-text {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.appexi-exec-title-confidence {
  font-size: 12px;
  font-weight: 600;
  color: rgba(16, 185, 129, 0.8);
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.appexi-exec-section {
  margin-bottom: 14px;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-exec-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-exec-section-body {
  padding: 0;
}

.appexi-exec-summary .appexi-exec-section-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 10px;
}

/* Analysis cards — three-column responsive grid */
.appexi-exec-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

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

.appexi-exec-analysis-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.appexi-exec-analysis-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card variants — coloured top border */
.appexi-exec-analysis-card.appexi-card-availability {
  border-top: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.appexi-exec-analysis-card.appexi-card-performance {
  border-top: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.appexi-exec-analysis-card.appexi-card-quality {
  border-top: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.04);
}

.appexi-exec-analysis-card-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.appexi-exec-analysis-card-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.appexi-exec-analysis-card-body ul {
  margin: 4px 0;
  padding-left: 14px;
  list-style: none;
}

.appexi-exec-analysis-card-body li {
  margin-bottom: 5px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.appexi-exec-analysis-card-body li::before {
  content: "\2022";
  position: absolute;
  left: -12px;
  color: rgba(99, 102, 241, 0.4);
}

/* Priority badges */
.appexi-exec-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.appexi-exec-priority-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.appexi-exec-priority-high {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.appexi-exec-priority-medium {
  background: rgba(234, 179, 8, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.appexi-exec-priority-low {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Recommended Actions with priority */
.appexi-exec-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.appexi-exec-action-row:hover {
  border-color: rgba(16, 185, 129, 0.15);
}

.appexi-exec-checkmark {
  font-size: 14px;
  color: rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

.appexi-exec-action-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.appexi-exec-resource-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  transition: background 0.15s;
}

.appexi-exec-resource-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.appexi-exec-resource-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.appexi-exec-resource-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.appexi-exec-followup-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 2px;
}

.appexi-exec-followup-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.appexi-exec-followup-bullet {
  font-size: 16px;
  color: rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
  line-height: 1.5;
}

.appexi-exec-followup-text {
  font-size: 15px;
  color: rgba(129, 140, 248, 0.72);
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.15s;
}

.appexi-exec-followup-text:hover {
  color: rgba(129, 140, 248, 0.8);
}

.appexi-exec-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 4px;
}

/* ═══ Intelligence Context Panel ══════════════════════ */

.appexi-context-panel {
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-context-banner {
  animation: appexi-fade-in 0.15s ease-out;
}

.appexi-context-selectors select {
  appearance: auto;
  -webkit-appearance: auto;
}

.appexi-context-selectors select:hover {
  border-color: rgba(99, 102, 241, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.appexi-context-selectors select:focus {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1);
}

body.theme-ai-futuristic .appexi-fab--light.appexi-fab {
  box-shadow: 0 4px 24px rgba(79, 124, 255, 0.45), 0 0 0 1px rgba(79, 124, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Docking / Snapping visual feedback
   ═══════════════════════════════════════════════════════════════ */

.appexi-panel.appexi-docked-bottom-right,
.appexi-panel.appexi-docked-bottom-left,
.appexi-panel.appexi-docked-top-right,
.appexi-panel.appexi-docked-top-left,
.appexi-panel.appexi-docked-right,
.appexi-panel.appexi-docked-left {
  transition: left 0.18s ease, top 0.18s ease !important;
}

.appexi-panel.appexi-docked-bottom-right {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
}

.appexi-panel.appexi-docked-top-right {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
  border-radius: 0 0 20px 20px !important;
}

.appexi-panel.appexi-docked-top-left {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
  border-radius: 0 20px 20px 0 !important;
}

.appexi-panel.appexi-docked-bottom-left {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
  border-radius: 0 20px 0 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   Collapsible Executive Report Sections
   ═══════════════════════════════════════════════════════════════ */

.appexi-exec-section-heading:hover {
  color: rgba(255, 255, 255, 0.55) !important;
}

.appexi-exec-section-heading:hover .appexi-exec-chevron {
  opacity: 0.7 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Fullscreen CTA Banner
   ═══════════════════════════════════════════════════════════════ */

.appexi-fullscreen-cta {
  animation: appexi-fade-in 0.25s ease-out;
}

.appexi-fullscreen-cta button:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #C7D2FE !important;
}

.appexi-fullscreen-cta button:active {
  transform: scale(0.97);
}

/* ═══ Executive Report — Enhanced Header Badges ═══ */

.appexi-exec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.appexi-exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.appexi-exec-badge i {
  font-size: 9px;
}

/* Confidence badge */
.appexi-badge-confidence-high {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.appexi-badge-confidence-mid {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.appexi-badge-confidence-low {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Source tier badges */
.appexi-badge-tier-live {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.appexi-badge-tier-enterprise {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(96, 165, 250, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.appexi-badge-tier-ai {
  background: rgba(234, 179, 8, 0.12);
  color: rgba(250, 204, 21, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.18);
}

.appexi-badge-tier-general {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Type badge */
.appexi-badge-type {
  background: rgba(139, 92, 246, 0.12);
  color: rgba(192, 132, 252, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

/* Analysis basis badge — shows data source transparency */
.appexi-badge-basis {
  background: rgba(245, 158, 11, 0.10);
  color: rgba(250, 204, 21, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

/* Confidence info icon — tooltip hint in breakdown rows */
.appexi-conf-info-icon {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  margin-left: 3px;
  cursor: help;
  vertical-align: middle;
}

.appexi-conf-info-icon:hover {
  color: rgba(255, 255, 255, 0.4);
}

/* ═══ Executive Report — KPI Cards (Enhanced) ═══ */

.appexi-exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.appexi-exec-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.appexi-exec-kpi-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.appexi-exec-kpi-icon {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1;
}

.appexi-exec-kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.appexi-exec-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}

.appexi-exec-kpi-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  margin-top: 6px;
}

.appexi-kpi-tag-green {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.appexi-kpi-tag-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.appexi-kpi-tag-red {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.appexi-kpi-tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ═══ Executive Report — Financial KPI Summary ═══ */

.appexi-financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.appexi-financial-card {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.appexi-financial-card:hover {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.18);
  transform: translateY(-1px);
}

.appexi-financial-value {
  font-size: 20px;
  font-weight: 800;
  color: #86efac;
  letter-spacing: -0.02em;
}

.appexi-financial-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.appexi-financial-total {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.appexi-financial-total:hover {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.appexi-financial-total-value {
  font-size: 28px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.appexi-financial-total-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ═══ Executive Report — Severity Cards (Root Cause) ═══ */

.appexi-severity-card {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.appexi-severity-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.appexi-severity-card.appexi-severity-critical {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.05);
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  border-right: 1px solid rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.appexi-severity-card.appexi-severity-high {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
  border-top: 1px solid rgba(245, 158, 11, 0.08);
  border-right: 1px solid rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.08);
}

.appexi-severity-card.appexi-severity-medium {
  border-left: 4px solid #f97316;
  background: rgba(249, 115, 22, 0.03);
  border-top: 1px solid rgba(249, 115, 22, 0.06);
  border-right: 1px solid rgba(249, 115, 22, 0.06);
  border-bottom: 1px solid rgba(249, 115, 22, 0.06);
}

.appexi-severity-card.appexi-severity-low {
  border-left: 4px solid #22c55e;
  background: rgba(34, 197, 94, 0.03);
  border-top: 1px solid rgba(34, 197, 94, 0.06);
  border-right: 1px solid rgba(34, 197, 94, 0.06);
  border-bottom: 1px solid rgba(34, 197, 94, 0.06);
}

.appexi-severity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.appexi-severity-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.appexi-severity-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.appexi-severity-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.appexi-severity-critical .appexi-severity-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.appexi-severity-high .appexi-severity-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.appexi-severity-medium .appexi-severity-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.appexi-severity-low .appexi-severity-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.appexi-severity-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.appexi-severity-body ul {
  margin: 4px 0;
  padding-left: 14px;
  list-style: none;
}

.appexi-severity-body li {
  margin-bottom: 5px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.appexi-severity-body li::before {
  content: "\2022";
  position: absolute;
  left: -12px;
  color: rgba(99, 102, 241, 0.4);
}

/* ═══ Executive Report — Action Cards ═══ */

.appexi-action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.appexi-action-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.appexi-action-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.appexi-action-icon {
  font-size: 14px;
  color: rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.appexi-action-content {
  flex: 1;
  min-width: 0;
}

.appexi-action-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.appexi-action-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.appexi-action-priority-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.appexi-action-priority-high {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.appexi-action-priority-medium {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.appexi-action-priority-low {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.appexi-action-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-weight: 500;
}

.appexi-action-impact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-action-impact strong {
  color: rgba(255, 255, 255, 0.5);
}

.appexi-action-why {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.06);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  font-style: italic;
}

.appexi-action-why-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-style: normal;
}

/* ═══ Executive Report — Source Badge Grid ═══ */

.appexi-source-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.appexi-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.06);
  color: rgba(96, 165, 250, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.15s ease;
}

.appexi-source-badge:hover {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(96, 165, 250, 0.9);
  border-color: rgba(59, 130, 246, 0.18);
}

.appexi-source-badge i {
  font-size: 10px;
  color: rgba(96, 165, 250, 0.5);
}

/* ═══ Executive Report — Show More Button ═══ */

.appexi-show-more-wrapper {
  text-align: center;
  margin: 16px 0 8px;
}

.appexi-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.04);
  color: rgba(129, 140, 248, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.appexi-show-more-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: rgba(129, 140, 248, 0.8);
  transform: translateY(-1px);
}

.appexi-show-more-btn:active {
  transform: scale(0.97);
}

.appexi-show-more-btn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.appexi-show-more-btn.appexi-show-more-expanded i {
  transform: rotate(180deg);
}

/* ═══ Executive Report — Detailed Analysis Container ═══ */

.appexi-detailed-analysis {
  animation: appexi-fade-in 0.25s ease-out;
}

/* ═══ Executive Report — Section Chevron Rotation ═══ */

.appexi-exec-chevron {
  transition: transform 0.2s ease;
}

/* ═══ Executive Report — Summary Premium Card ═══ */

.appexi-exec-summary .appexi-exec-section-body {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(99, 102, 241, 0.01));
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
}

.appexi-exec-summary .appexi-exec-section-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.05));
  border-radius: 10px 10px 0 0;
}

/* ═══ Executive Report — Next Action Banner ═══ */

.appexi-exec-next-action {
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.appexi-exec-next-action-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   Thinking Animation (Premium Demo)
   ═══════════════════════════════════════════════ */

.appexi-thinking-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: appexi-fade-in 0.15s ease-out;
}

.appexi-thinking-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  animation: appexi-fade-in 0.2s ease-out;
  animation-fill-mode: both;
}

.appexi-thinking-step-fa {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  flex-shrink: 0;
}

.appexi-thinking-step-item span {
  flex: 1;
  color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════════
   Explainability Section (Demo)
   ═══════════════════════════════════════════════ */

.appexi-explain-section {
  margin: 8px 0 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-explain-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.appexi-explain-header-bar i {
  font-size: 12px;
  color: rgba(129, 140, 248, 0.4);
}

.appexi-explain-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appexi-explain-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.appexi-explain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* ═══════════════════════════════════════════════
   Workspace Mode Overrides
   ═══════════════════════════════════════════════ */

.appexi-panel-workspace .appexi-conversion-panel,
.appexi-panel-workspace .appexi-lock-prompt {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.appexi-panel-workspace .appexi-message-content {
  font-size: 15px;
  line-height: 1.65;
}

.appexi-panel-workspace .appexi-suggestion-btn {
  font-size: 13px;
  padding: 6px 14px;
}

.appexi-panel-workspace .appexi-input {
  font-size: 14px;
  padding: 10px 14px;
}

/* ═══════════════════════════════════════════════
   Interactive Confidence Breakdown Panel
   ═══════════════════════════════════════════════ */

.appexi-confidence-badge {
  transition: all 0.15s;
  position: relative;
}

.appexi-confidence-badge:hover {
  filter: brightness(1.2);
}

.appexi-confidence-chevron {
  transition: transform 0.2s ease;
  display: inline-block;
}

.appexi-confidence-panel {
  overflow: hidden;
  animation: appexi-fade-in 0.2s ease-out;
}

.appexi-confidence-panel.appexi-confidence-hidden {
  display: none;
}

.appexi-confidence-panel-inner {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.appexi-confidence-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 4px;
}

.appexi-confidence-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.appexi-confidence-panel-type {
  font-size: 10px;
  font-weight: 600;
  color: rgba(245, 158, 11, 0.8);
  background: rgba(245, 158, 11, 0.08);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.appexi-confidence-panel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appexi-conf-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.appexi-conf-breakdown-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 140px;
  flex-shrink: 0;
}

.appexi-conf-breakdown-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.appexi-conf-breakdown-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.appexi-conf-breakdown-weight {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  min-width: 28px;
  text-align: right;
}

.appexi-conf-breakdown-score {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  min-width: 40px;
  text-align: right;
}

.appexi-confidence-panel-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.appexi-confidence-panel-total-score {
  font-size: 16px;
  color: #22c55e;
}

.appexi-confidence-panel-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
}
/* ═══════════════════════════════════════════════════════════════
   Executive Intelligence Renderer (Release 35)
   Premium structured components: diagnosis, AI insight, evidence,
   financial opportunity, executive recommendations, premium CTA.
   ═══════════════════════════════════════════════════════════════ */

/* Intelligence level + framework + source badges */
.appexi-badge-domain {
  background: rgba(56, 189, 248, 0.14);
  color: #a5f3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.appexi-badge-level {
  background: rgba(129, 140, 248, 0.14);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.appexi-badge-framework {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.appexi-badge-source {
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

/* Executive Diagnosis cards */
.appexi-exec-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.appexi-exec-diag-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
}

.appexi-exec-diag-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.appexi-exec-diag-label i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}

.appexi-exec-diag-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

/* Executive Diagnosis — explicit loss findings strip */
.appexi-diagnosis-findings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.appexi-diagnosis-finding {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.appexi-diagnosis-finding-flag {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 10px;
}

.appexi-diagnosis-finding-primary {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.appexi-diagnosis-finding-secondary {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.appexi-diagnosis-finding-tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.appexi-diagnosis-finding-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.appexi-diagnosis-finding-basis {
  margin-left: auto;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

/* AI Insight callout */
.appexi-ai-insight {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-left: 3px solid #8b5cf6;
  border-radius: 10px;
  padding: 12px 14px 12px 30px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.appexi-ai-insight-quote {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 13px;
  color: #8b5cf6;
  opacity: 0.7;
}

/* Evidence & Reasoning chain */
.appexi-evidence-chain {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.appexi-evidence-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.appexi-evidence-step-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appexi-evidence-step:last-child .appexi-evidence-step-dot {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Evidence & Reasoning — visual explainability flow */
.appexi-evidence-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 12px;
}

.appexi-evidence-flow-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 8px;
}

.appexi-evidence-flow-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appexi-evidence-flow-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.appexi-evidence-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  color: rgba(59, 130, 246, 0.4);
  font-size: 10px;
}

.appexi-evidence-flow-node:last-child {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
}

.appexi-evidence-flow-node:last-child .appexi-evidence-flow-icon {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.appexi-evidence-drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Financial Opportunity */
.appexi-financial-opportunity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appexi-financial-recovery {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}

.appexi-financial-recovery-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.appexi-financial-recovery-value {
  font-size: 26px;
  font-weight: 800;
  color: #86efac;
  letter-spacing: -0.01em;
}

.appexi-financial-recovery-confidence {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Compact financial panel — confidence, benchmark coverage, basis, assumptions */
.appexi-financial-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.appexi-financial-metric {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 11px;
}

.appexi-financial-metric-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.appexi-financial-metric-label i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}

.appexi-financial-metric-value {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.appexi-financial-metric-value .appexi-financial-list {
  gap: 3px;
}

.appexi-financial-metric-value .appexi-financial-list li {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.appexi-financial-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.appexi-financial-block-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.appexi-financial-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.appexi-financial-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.appexi-financial-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #22c55e;
  font-size: 12px;
}

.appexi-financial-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.appexi-financial-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.appexi-financial-note i {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* Executive Recommendations (new format) */
.appexi-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.appexi-action-header {
  display: flex;
  gap: 12px;
}

.appexi-action-icon-priority {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appexi-action-content {
  flex: 1;
  min-width: 0;
}

.appexi-action-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.appexi-action-why {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(139, 92, 246, 0.06);
  border-left: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.appexi-action-why-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-bottom: 3px;
}

.appexi-action-why-label i {
  font-size: 9px;
  margin-right: 3px;
}

.appexi-action-impact {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.appexi-action-impact strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* Decision-support meta row: expected outcome, benefit, effort, owner */
.appexi-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.appexi-action-meta-item {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.appexi-action-meta-item strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* Knowledge source badge grid */
.appexi-source-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Premium Personalised Intelligence CTA */
.appexi-premium-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.appexi-premium-cta-title {
  font-size: 15px;
  font-weight: 800;
  color: #e0e7ff;
  margin-bottom: 4px;
}

.appexi-premium-cta-title i {
  color: #fbbf24;
  margin-right: 6px;
  font-size: 13px;
}

.appexi-premium-cta-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.appexi-premium-cta-sub strong {
  color: #c7d2fe;
}

.appexi-premium-cta-benefits {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}

.appexi-premium-cta-benefits li {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.appexi-premium-cta-benefits li i {
  font-size: 9px;
  color: #34d399;
}

.appexi-premium-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.appexi-premium-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.appexi-premium-cta-btn i {
  font-size: 11px;
}

.appexi-premium-cta-footer {
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Release 40.3 — Executive Hypothesis Engine (anonymous) ──────────── */

.appexi-hypothesis {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 6px;
}

.appexi-hypothesis-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appexi-hypothesis-likelihood {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #fbbf24;
}

.appexi-hypothesis-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.appexi-hypothesis-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.appexi-hypothesis-evidence {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2px 8px;
}

.appexi-hypothesis-note {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.appexi-inv-priority {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.appexi-inv-priority:last-child {
  border-bottom: none;
}

.appexi-inv-priority-rank {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  font-size: 10px;
  font-weight: 800;
}

.appexi-inv-priority-name {
  flex: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.appexi-inv-priority-opp {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 10px;
  padding: 2px 8px;
}

.appexi-plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 6px;
}

.appexi-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.appexi-plan-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.appexi-plan-actions {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.appexi-plan-actions li {
  margin-bottom: 2px;
}

.appexi-plan-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.appexi-kpi-chip {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 2px 8px;
}

/* ── Release 41.3 — Executive Trade-off Engine ───────────────────────── */

.appexi-tradeoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 10px;
  margin-bottom: 8px;
}

.appexi-tradeoff-side {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  flex: 1;
}

.appexi-tradeoff-vs {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.appexi-tradeoff-framing {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.appexi-tradeoff-objective {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.appexi-tradeoff-objective i {
  margin-top: 2px;
  color: #fbbf24;
}

.appexi-tradeoff-strategy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 8px;
}

.appexi-tradeoff-strategy i {
  margin-top: 2px;
  color: #34d399;
}

.appexi-tradeoff-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* Demo Modal — CSP-compliant enterprise demo overlay */
.demo-modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.demo-modal-overlay.active { display: flex; }
.demo-modal {
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(10,15,30,0.98), rgba(15,23,42,0.95));
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: demoFade 0.3s ease;
}
@keyframes demoFade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.demo-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.demo-header-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }
.demo-close-btn { width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); cursor: pointer; font-size: 16px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.demo-close-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.demo-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-scene {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  width: 100%;
  height: 100%;
  animation: sceneFade 0.4s ease;
}
.demo-scene.active { display: flex; }
@keyframes sceneFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-scene-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.demo-scene h3 { font-size: 22px; font-weight: 800; color: var(--text-primary, #fff); margin-bottom: 6px; letter-spacing: -0.02em; }
.demo-scene p { font-size: 13px; color: rgba(255,255,255,0.45); max-width: 440px; line-height: 1.6; margin-bottom: 12px; }
.demo-scene-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.demo-scene-badge { font-size: 10px; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.demo-controls {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.demo-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin: 0 16px;
  cursor: pointer;
  position: relative;
}
.demo-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #818cf8, #6366f1);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.demo-time { font-size: 10px; color: rgba(255,255,255,0.3); font-family: monospace; min-width: 70px; text-align: center; }
.demo-btn { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 14px; transition: all 0.15s; }
.demo-btn:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.demo-btn.primary { color: #818cf8; }
.floating-demo-btn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 32px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.2);
  color: #818cf8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}
.floating-demo-btn:hover { background: rgba(99,102,241,0.25); transform: translateY(-2px); }
/* ══════════════════════════════════════════════════════════════
   00_tokens.css — Design System Token Re-exports
   
   The --ds-* token values are defined in design_tokens.css (:root).
   This file re-exports them so individual DS modules resolve against
   a fallback that matches the real token values at rest in dev tools.
   
   Theme overrides (.style-apex-dark, .palette-*) live in
   design_tokens.css and cascade into all --ds-* aliases.
   ══════════════════════════════════════════════════════════════ */

/* ── Colors ── */
:root {
  --ds-color-primary: var(--color-primary, #6366f1);
  --ds-color-primary-hover: var(--color-primary-hover, #4f46e5);
  --ds-color-primary-light: var(--color-primary-light, rgba(99,102,241,0.15));
  --ds-color-primary-subtle: var(--color-primary-subtle, rgba(99,102,241,0.06));
  --ds-color-secondary: var(--color-secondary, #818cf8);
  --ds-color-success: var(--color-success, #059669);
  --ds-color-success-hover: var(--color-success-hover, #047857);
  --ds-color-success-light: var(--color-success-light, rgba(5,150,105,0.15));
  --ds-color-success-subtle: var(--color-success-subtle, rgba(5,150,105,0.06));
  --ds-color-warning: var(--color-warning, #d97706);
  --ds-color-warning-hover: var(--color-warning-hover, #b45309);
  --ds-color-warning-light: var(--color-warning-light, rgba(217,119,6,0.15));
  --ds-color-warning-subtle: var(--color-warning-subtle, rgba(217,119,6,0.06));
  --ds-color-danger: var(--color-danger, #e11d48);
  --ds-color-danger-hover: var(--color-danger-hover, #be123c);
  --ds-color-danger-light: var(--color-danger-light, rgba(225,29,72,0.15));
  --ds-color-danger-subtle: var(--color-danger-subtle, rgba(225,29,72,0.06));
  --ds-color-info: var(--color-info, #0891b2);
  --ds-color-info-light: var(--color-info-light, rgba(8,145,178,0.15));

  /* ── Surfaces ── */
  --ds-surface-page: var(--surface-page, #0b1120);
  --ds-surface-card: var(--surface-card, rgba(255,255,255,0.02));
  --ds-surface-card-hover: var(--surface-card-hover, rgba(255,255,255,0.06));
  --ds-surface-elevated: var(--surface-elevated, rgba(255,255,255,0.06));
  --ds-surface-overlay: var(--surface-overlay, rgba(255,255,255,0.04));
  --ds-surface-border: var(--surface-border, rgba(255,255,255,0.06));
  --ds-surface-border-hover: var(--surface-border-hover, rgba(255,255,255,0.1));

  /* ── Text ── */
  --ds-text-primary: var(--text-primary, #e2e8f0);
  --ds-text-secondary: var(--text-secondary, #94a3b8);
  --ds-text-muted: var(--text-muted, #64748b);
  --ds-text-inverse: var(--text-inverse, #ffffff);
  --ds-text-link: var(--text-link, #818cf8);

  /* ── Spacing ── */
  --ds-space-xs: var(--spacing-xs, 4px);
  --ds-space-sm: var(--spacing-sm, 8px);
  --ds-space-md: var(--spacing-md, 16px);
  --ds-space-lg: var(--spacing-lg, 24px);
  --ds-space-xl: var(--spacing-xl, 32px);
  --ds-space-2xl: var(--spacing-2xl, 48px);
  --ds-space-3xl: var(--spacing-3xl, 64px);
  --ds-space-4xl: var(--spacing-4xl, 96px);

  /* ── Border Radius ── */
  --ds-radius-sm: var(--radius-sm, 6px);
  --ds-radius-md: var(--radius-md, 12px);
  --ds-radius-lg: var(--radius-lg, 16px);
  --ds-radius-xl: var(--radius-xl, 20px);
  --ds-radius-full: var(--radius-full, 9999px);

  /* ── Shadows ── */
  --ds-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.2));
  --ds-shadow-md: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.3));
  --ds-shadow-lg: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.4));

  /* ── Typography Scale ── */
  --ds-font-display-kpi: var(--font-display-kpi, 48px);
  --ds-font-page-title: var(--font-page-title, 40px);
  --ds-font-section-title: var(--font-section-title, 32px);
  --ds-font-card-title: var(--font-card-title, 22px);
  --ds-font-subheading: var(--font-subheading, 18px);
  --ds-font-body: var(--font-body, 16px);
  --ds-font-supporting: var(--font-supporting, 15px);
  --ds-font-caption: var(--font-caption, 13px);
  --ds-font-micro: var(--font-micro, 11px);

  /* ── Font Weights ── */
  --ds-font-weight-normal: var(--font-weight-normal, 400);
  --ds-font-weight-medium: var(--font-weight-medium, 500);
  --ds-font-weight-semibold: var(--font-weight-semibold, 600);
  --ds-font-weight-bold: var(--font-weight-bold, 700);
  --ds-font-weight-extrabold: var(--font-weight-extrabold, 800);

  /* ── Letter Spacing ── */
  --ds-letter-spacing-tight: var(--letter-spacing-tight, -0.03em);
  --ds-letter-spacing-normal: var(--letter-spacing-normal, 0);
  --ds-letter-spacing-wide: var(--letter-spacing-wide, 0.08em);
  --ds-letter-spacing-wider: var(--letter-spacing-wider, 0.5px);

  /* ── Line Height ── */
  --ds-line-height-tight: var(--line-height-tight, 1.1);
  --ds-line-height-normal: var(--line-height-normal, 1.5);
  --ds-line-height-relaxed: var(--line-height-relaxed, 1.7);

  /* ── Transitions ── */
  --ds-transition-fast: var(--transition-fast, 0.15s);
  --ds-transition-normal: var(--transition-normal, 0.25s);
  --ds-transition-slow: var(--transition-slow, 0.35s);

  /* ── Component Sizing ── */
  --ds-btn-height: var(--btn-height, 44px);
  --ds-input-height: var(--input-height, 48px);
  --ds-card-padding: var(--card-padding, 28px);
  --ds-card-padding-lg: var(--card-padding-lg, 36px);
  --ds-section-spacing: var(--section-spacing, 64px);
  --ds-section-spacing-lg: var(--section-spacing-lg, 96px);
}
/* ══════════════════════════════════════════════════════════════
   01_typography.css — Design System Typography Scale
   ══════════════════════════════════════════════════════════════ */

/* ── Display KPI ── */
.ds-display-kpi {
  font-size: var(--ds-font-display-kpi, 48px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: var(--ds-line-height-tight, 1);
  letter-spacing: var(--ds-letter-spacing-tight, -0.03em);
}

/* ── Page Title ── */
.ds-page-title {
  font-size: var(--ds-font-page-title, 40px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: var(--ds-line-height-tight, 1.1);
  letter-spacing: var(--ds-letter-spacing-tight, -0.02em);
}

/* ── Section Title ── */
.ds-section-title {
  font-size: var(--ds-font-section-title, 32px);
  font-weight: var(--ds-font-weight-bold, 700);
  line-height: var(--ds-line-height-tight, 1.15);
  letter-spacing: var(--ds-letter-spacing-tight, -0.015em);
}

/* ── Card Title ── */
.ds-card-title {
  font-size: var(--ds-font-card-title, 22px);
  font-weight: var(--ds-font-weight-bold, 700);
}

/* ── Subheading ── */
.ds-subheading {
  font-size: var(--ds-font-subheading, 18px);
  font-weight: var(--ds-font-weight-semibold, 600);
}

/* ── Body ── */
.ds-body {
  font-size: var(--ds-font-body, 16px);
  line-height: var(--ds-line-height-relaxed, 1.7);
  color: var(--ds-text-secondary, rgba(255,255,255,0.55));
}

/* ── Supporting ── */
.ds-supporting {
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-muted, rgba(255,255,255,0.3));
}

/* ── Caption ── */
.ds-caption {
  font-size: var(--ds-font-caption, 13px);
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
}

/* ── Legacy .exec-* typography aliases ── */
.exec-kpi { font-size: var(--ds-font-display-kpi, 48px); font-weight: var(--ds-font-weight-extrabold, 800); line-height: var(--ds-line-height-tight, 1); letter-spacing: var(--ds-letter-spacing-tight, -0.03em); }
.exec-kpi-medium { font-size: var(--ds-font-page-title, 40px); }
.exec-kpi-small { font-size: var(--ds-font-section-title, 32px); }
.exec-label { font-size: var(--ds-font-supporting, 15px); font-weight: var(--ds-font-weight-medium, 500); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ds-text-muted, rgba(255,255,255,0.35)); }
.exec-title { font-size: var(--ds-font-card-title, 22px); font-weight: var(--ds-font-weight-bold, 700); color: var(--ds-text-primary, #ffffff); }
.exec-subtitle { font-size: var(--ds-font-body, 16px); color: var(--ds-text-muted, rgba(255,255,255,0.35)); }
.exec-body { font-size: var(--ds-font-body, 16px); color: var(--ds-text-secondary, rgba(255,255,255,0.55)); line-height: var(--ds-line-height-relaxed, 1.7); }
.exec-metric-label { font-size: var(--ds-font-supporting, 15px); color: var(--ds-text-muted, rgba(255,255,255,0.3)); margin-bottom: 4px; }
.exec-metric-value { font-size: var(--ds-font-body, 16px); font-weight: var(--ds-font-weight-bold, 700); color: var(--ds-text-primary, #ffffff); }

/* ── DS: KPI value / label / subtext ── */
.ds-kpi-value {
  font-size: var(--ds-font-display-kpi, 48px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ds-kpi-label {
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-medium, 500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ds-kpi-subtext {
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-display-kpi, .exec-kpi { font-size: 36px; }
  .ds-page-title { font-size: 28px; }
  .ds-section-title { font-size: 24px; }
  .ds-card-title { font-size: 18px; }
}
/* ══════════════════════════════════════════════════════════════
   02_layout.css — Design System Layout
   ══════════════════════════════════════════════════════════════ */

/* ── Grid Layouts ── */
.exec-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-space-lg, 24px);
}
.exec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ds-space-md, 16px);
}
@media (max-width: 768px) {
  .exec-grid-2, .exec-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .exec-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Section Spacing ── */
.ds-section {
  margin-bottom: var(--ds-section-spacing, 64px);
}
.ds-section-lg {
  margin-bottom: var(--ds-section-spacing-lg, 96px);
}

/* ── Cell (inside cards) ── */
.exec-cell {
  padding: var(--ds-space-md, 16px);
  border-radius: var(--ds-radius-md, 12px);
  background: var(--ds-surface-overlay, rgba(255,255,255,0.03));
}
/* ══════════════════════════════════════════════════════════════
   03_buttons.css — Design System Buttons
   ══════════════════════════════════════════════════════════════ */

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--ds-btn-height, 44px);
  padding: 8px 22px;
  border-radius: var(--ds-radius-md, 12px);
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-semibold, 600);
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-btn:hover {
  transform: translateY(-1px);
}
.ds-btn:active {
  transform: translateY(0);
}

.ds-btn-primary {
  background: var(--ds-color-primary, #6366f1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.ds-btn-primary:hover {
  background: var(--ds-color-primary-hover, #4f46e5);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.ds-btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  color: var(--ds-text-primary, #fff);
}
.ds-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.12));
}

.ds-btn-ghost {
  background: transparent;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5));
}
.ds-btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text-primary, #fff);
}

.ds-btn-success {
  background: var(--ds-color-success, #059669);
  color: #fff;
}
.ds-btn-success:hover {
  background: var(--ds-color-success-hover, #047857);
}

.ds-btn-danger {
  background: var(--ds-color-danger, #e11d48);
  color: #fff;
}
.ds-btn-danger:hover {
  background: var(--ds-color-danger-hover, #be123c);
}

/* ── Size Variants ── */
.ds-btn-sm {
  min-height: 36px;
  padding: 6px 16px;
  font-size: var(--ds-font-supporting, 15px);
}
.ds-btn-lg {
  min-height: 52px;
  padding: 12px 28px;
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-bold, 700);
}
/* ══════════════════════════════════════════════════════════════
   04_cards.css — Design System Cards
   ══════════════════════════════════════════════════════════════ */

/* ── Card Shell ── */
.exec-card {
  border-radius: var(--ds-radius-lg, 14px);
  padding: var(--ds-card-padding, 28px);
  transition: all var(--ds-transition-normal, 0.25s) ease;
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.08));
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.exec-card:hover {
  transform: translateY(-1px);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.15));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect text or icon opacity ── */
.exec-card:hover *,
.exec-card:hover i,
.exec-card:hover span,
.exec-card:hover h1, .exec-card:hover h2, .exec-card:hover h3,
.exec-card:hover h4, .exec-card:hover p {
  opacity: 1 !important;
  color: inherit;
}
body.style-colorblind .exec-card {
  border-width: 2px;
  border-radius: 8px;
}

/* ── Card Size Variants ── */
.exec-card-sm {
  padding: var(--ds-space-lg, 24px);
}
.exec-card-lg {
  padding: var(--ds-card-padding-lg, 36px);
}

/* ── KPI Card ── */
.ds-kpi-card {
  border-radius: var(--ds-radius-lg, 14px);
  padding: var(--ds-card-padding, 24px);
  text-align: center;
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.08));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  transition: all var(--ds-transition-normal, 0.25s) ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.ds-kpi-card:hover {
  transform: translateY(-1px);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.15));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect KPI text or icon opacity ── */
.ds-kpi-card:hover *,
.ds-kpi-card:hover .kpi-label,
.ds-kpi-card:hover .kpi-value,
.ds-kpi-card:hover i {
  opacity: 1 !important;
  color: inherit;
}

/* ── Glassmorphism Card ── */
.ds-glass {
  background: rgba(15, 20, 40, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: var(--ds-radius-lg, 16px) !important;
}
body.theme-ai-futuristic .ds-glass {
  background: rgba(10, 14, 30, 0.7) !important;
  border-color: rgba(79, 124, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(79, 124, 255, 0.06) !important;
}
body.theme-ai-futuristic .ds-glass:hover {
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.12), 0 0 20px rgba(79, 124, 255, 0.1) !important;
}

/* ── Selectable Card ── */
.selectable-card {
  cursor: pointer;
  border-radius: var(--ds-radius-lg, 16px);
  padding: var(--ds-card-padding, 12px);
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}
.selectable-card:focus-visible {
  outline: 2px solid var(--ds-color-primary, #6366f1);
  outline-offset: 2px;
}
.selectable-card[data-selected="true"] {
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}
.selectable-card[data-selected="true"] .selectable-check {
  opacity: 1;
  transform: scale(1);
}
.selectable-card[data-selected="false"] .selectable-check {
  opacity: 0;
  transform: scale(0.5);
}
.selectable-card[data-selected="false"] {
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: rgba(255, 255, 255, 0.02);
}
.selectable-card[data-selected="false"]:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.03);
}
body.style-colorblind .selectable-card[data-selected="true"] {
  border-width: 2px;
  border-style: solid;
}
body.theme-ai-futuristic .selectable-card[data-selected="true"] {
  border-color: rgba(79, 124, 255, 0.4);
  background: rgba(79, 124, 255, 0.08);
}
body.theme-high-contrast .selectable-card[data-selected="true"] {
  border: 2px solid #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

/* ── Card Icon Container ── */
.exec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
body.style-colorblind .exec-icon {
  border: 2px solid;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .exec-card { padding: var(--ds-space-lg, 24px); }
  .ds-kpi-card { padding: var(--ds-space-lg, 24px); }
}
/* ══════════════════════════════════════════════════════════════
   05_tables.css — Design System Table Styles
   ══════════════════════════════════════════════════════════════ */
/* Enterprise-grade table styles using Design Tokens */

.ds-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, #e8ecf4);
  background: var(--ds-surface-card, #ffffff);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-primary, #1a1a2e);
}

/* ── Header ── */
.ds-table__head {
  background: var(--ds-surface-page, #f8f9fc);
  border-bottom: 2px solid var(--ds-surface-border, #e8ecf4);
}

.ds-table__header-row {
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
}

.ds-table__header-cell {
  padding: var(--ds-space-md, 16px) var(--ds-space-md, 16px);
  font-weight: 600;
  font-size: var(--ds-font-caption, 13px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-secondary, #6b7280);
  text-align: left;
  white-space: nowrap;
}

.ds-table__sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-table__sort-link:hover {
  color: var(--ds-color-primary, #6c5ce7);
}

/* ── Body ── */
.ds-table__body .ds-table__row {
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
  transition: background var(--ds-transition-fast, 0.15s) ease;
}

.ds-table__body .ds-table__row:last-child {
  border-bottom: none;
}

.ds-table__body .ds-table__row:hover {
  background: var(--ds-color-primary-subtle, rgba(108,92,231,0.03));
}

.ds-table__body .ds-table__row--clickable {
  cursor: pointer;
}

.ds-table__body .ds-table__row--clickable:hover {
  background: var(--ds-color-primary-subtle, rgba(108,92,231,0.06));
}

.ds-table__cell {
  padding: var(--ds-space-sm, 8px) var(--ds-space-md, 16px);
  vertical-align: middle;
}

.ds-table__cell--sticky {
  position: sticky;
  left: 0;
  background: var(--ds-surface-card, #ffffff);
  z-index: 1;
}

/* ── Empty state ── */
.ds-table__empty {
  padding: var(--ds-space-2xl, 48px) var(--ds-space-md, 16px);
  text-align: center;
  color: var(--ds-text-muted, #9ca3af);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-table-wrapper {
    border-radius: var(--ds-radius-sm, 6px);
  }
  .ds-table__header-cell,
  .ds-table__cell {
    padding: var(--ds-space-sm, 8px);
  }
}
/* ══════════════════════════════════════════════════════════════
   06_forms.css — Design System Forms & Inputs
   ══════════════════════════════════════════════════════════════ */

.ds-input {
  min-height: var(--ds-input-height, 48px);
  padding: 10px 16px;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  color: var(--ds-text-primary, #fff);
  font-size: var(--ds-font-body, 16px);
  outline: none;
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-input:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.ds-input::placeholder {
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
}

.ds-select {
  min-height: var(--ds-input-height, 48px);
  padding: 10px 40px 10px 16px;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  color: var(--ds-text-primary, #fff);
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-semibold, 600);
  outline: none;
  cursor: pointer;
  transition: all var(--ds-transition-fast, 0.15s) ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ds-select:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
/* ══════════════════════════════════════════════════════════════
   07_navigation.css — Design System Navigation Styles
   ══════════════════════════════════════════════════════════════ */
/* Tab bar, section header, and breadcrumb styles using Design Tokens */

/* ── Section Header ── */
.ds-section-header {
  margin-bottom: var(--ds-space-lg, 24px);
}

.ds-section-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-md, 16px);
}

.ds-section-header__titles {
  flex: 1;
}

.ds-section-header__titles > div:first-child {
  display: flex;
  align-items: center;
  gap: var(--ds-space-sm, 8px);
}

.ds-section-header__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-text-muted, #94a3b8);
  padding: 0;
  font-size: var(--ds-font-body, 16px);
}

.ds-section-header__toggle:hover {
  color: var(--ds-text-primary, #1a1a2e);
}

.ds-section-header__actions {
  display: flex;
  gap: var(--ds-space-sm, 8px);
  flex-shrink: 0;
}

/* ── Tab Bar ── */
.ds-tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-tab-bar--sm .ds-tab {
  padding: 8px 14px;
  font-size: var(--ds-font-caption, 13px);
}

.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: var(--ds-font-supporting, 15px);
  font-weight: 500;
  color: var(--ds-text-secondary, #6b7280);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ds-transition-fast, 0.15s) ease;
  text-decoration: none;
}

.ds-tab:hover {
  color: var(--ds-text-primary, #1a1a2e);
  border-bottom-color: var(--ds-surface-border-hover, #d0d5e0);
}

.ds-tab--active {
  color: var(--ds-color-primary, #6c5ce7);
  border-bottom-color: var(--ds-color-primary, #6c5ce7);
  font-weight: 600;
}

.ds-tab--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ds-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: var(--ds-radius-full, 9999px);
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  background: var(--ds-color-primary-light, rgba(108,92,231,0.15));
  color: var(--ds-color-primary, #6c5ce7);
}

.ds-tab__badge--success {
  background: var(--ds-color-success-light, rgba(5,150,105,0.15));
  color: var(--ds-color-success, #059669);
}

.ds-tab__badge--warning {
  background: var(--ds-color-warning-light, rgba(217,119,6,0.15));
  color: var(--ds-color-warning, #d97706);
}

.ds-tab__badge--danger {
  background: var(--ds-color-danger-light, rgba(225,29,72,0.15));
  color: var(--ds-color-danger, #e11d48);
}

/* ── Page Header ── */
.ds-page-header {
  margin-bottom: var(--ds-space-xl, 32px);
}

.ds-page-header__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--ds-space-sm, 8px);
  font-size: var(--ds-font-caption, 13px);
}

.ds-page-header__crumb-link {
  color: var(--ds-text-secondary, #6b7280);
  text-decoration: none;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-page-header__crumb-link:hover {
  color: var(--ds-color-primary, #6c5ce7);
}

.ds-page-header__crumb-sep {
  color: var(--ds-text-muted, #9ca3af);
}

.ds-page-header__crumb-current {
  color: var(--ds-text-muted, #9ca3af);
}

.ds-page-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-md, 16px);
  flex-wrap: wrap;
}

.ds-page-header__titles {
  flex: 1;
}

.ds-page-header__workspace {
  display: inline-block;
  font-size: var(--ds-font-caption, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-color-primary, #6c5ce7);
  margin-bottom: 2px;
}

.ds-page-header__title {
  margin: 0;
}

.ds-page-header__subtitle {
  margin-top: 4px;
}

.ds-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-sm, 8px);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-tab {
    padding: 8px 12px;
    font-size: var(--ds-font-caption, 13px);
  }
  .ds-page-header__row {
    flex-direction: column;
  }
  .ds-page-header__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ══════════════════════════════════════════════════════════════
   08_badges.css — Design System Badges
   ══════════════════════════════════════════════════════════════ */

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: var(--ds-radius-sm, 6px);
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-semibold, 600);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.04);
  color: #818cf8;
  box-shadow: 0 0 12px rgba(99,102,241,0.08);
}
.ds-badge i {
  font-size: 14px;
}
body.theme-ai-futuristic .ds-badge {
  background: rgba(79, 124, 255, 0.06) !important;
  border-color: rgba(79, 124, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
}
body.theme-ai-futuristic .ds-badge:hover {
  background: rgba(79, 124, 255, 0.1) !important;
  border-color: rgba(79, 124, 255, 0.25) !important;
  box-shadow: 0 0 16px rgba(79, 124, 255, 0.15) !important;
}

/* ── Legacy .exec-* badge aliases ── */
.exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ds-radius-sm, 6px);
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-semibold, 600);
}
body.style-colorblind .exec-badge {
  border: 2px solid;
}

/* ── Priority Badges ── */
.exec-priority-p1 { background: rgba(248,113,113,0.15); color: #f87171; }
.exec-priority-p2 { background: rgba(251,191,36,0.15); color: #fbbf24; }
.exec-priority-p3 { background: rgba(96,165,250,0.15); color: #60a5fa; }

/* ── Trend Indicators ── */
.exec-trend-up { color: var(--ds-color-success, #34d399); }
.exec-trend-down { color: var(--ds-color-danger, #f87171); }
.exec-trend-flat { color: var(--ds-text-muted, #94a3b8); }
/* ══════════════════════════════════════════════════════════════
   09_alerts.css — Design System Alerts & Notifications
   ══════════════════════════════════════════════════════════════ */
/* Alert/notification component using Design Tokens */

.ds-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-sm, 8px);
  padding: var(--ds-space-md, 16px);
  border-radius: var(--ds-radius-sm, 6px);
  border: 1px solid;
  border-left-width: 4px;
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-primary, #1a1a2e);
  line-height: var(--ds-line-height-normal, 1.5);
  transition: opacity var(--ds-transition-fast, 0.15s) ease;
}

.ds-alert--success {
  background: var(--ds-color-success-subtle, rgba(5,150,105,0.06));
  border-color: var(--ds-color-success-light, rgba(5,150,105,0.15));
  border-left-color: var(--ds-color-success, #059669);
}

.ds-alert--error {
  background: var(--ds-color-danger-subtle, rgba(225,29,72,0.06));
  border-color: var(--ds-color-danger-light, rgba(225,29,72,0.15));
  border-left-color: var(--ds-color-danger, #e11d48);
}

.ds-alert--warning {
  background: var(--ds-color-warning-subtle, rgba(217,119,6,0.06));
  border-color: var(--ds-color-warning-light, rgba(217,119,6,0.15));
  border-left-color: var(--ds-color-warning, #d97706);
}

.ds-alert--info {
  background: var(--ds-color-info-light, rgba(8,145,178,0.15));
  border-color: var(--ds-color-info-light, rgba(8,145,178,0.15));
  border-left-color: var(--ds-color-info, #0891b2);
}

.ds-alert__icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.ds-alert--success .ds-alert__icon { color: var(--ds-color-success, #059669); }
.ds-alert--error .ds-alert__icon { color: var(--ds-color-danger, #e11d48); }
.ds-alert--warning .ds-alert__icon { color: var(--ds-color-warning, #d97706); }
.ds-alert--info .ds-alert__icon { color: var(--ds-color-info, #0891b2); }

.ds-alert__content { flex: 1; }

.ds-alert__title {
  font-weight: 600;
  margin-bottom: 2px;
}

.ds-alert__message {
  color: var(--ds-text-secondary, #6b7280);
}

.ds-alert__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-text-muted, #9ca3af);
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-alert__dismiss:hover {
  color: var(--ds-text-primary, #1a1a2e);
}

/* Notification toast / flash messages */
.ds-toast {
  position: fixed;
  top: var(--ds-space-lg, 24px);
  right: var(--ds-space-lg, 24px);
  z-index: 9999;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-sm, 8px);
  pointer-events: none;
}

.ds-toast__item {
  pointer-events: auto;
  animation: ds-toast-slide-in 0.3s ease;
}

@keyframes ds-toast-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
/* ══════════════════════════════════════════════════════════════
   10_empty_states.css — Design System Empty States
   ══════════════════════════════════════════════════════════════ */

.exec-decision-cost { background: rgba(248,113,113,0.04); border: 1px solid rgba(248,113,113,0.1); }
.exec-decision-benefit { background: rgba(52,211,153,0.04); border: 1px solid rgba(52,211,153,0.1); }
/* ══════════════════════════════════════════════════════════════
   11_loading.css — Design System Loading & Skeleton Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Skeleton Loading ── */
.ds-skeleton {
  background: linear-gradient(
    90deg,
    var(--ds-surface-overlay, rgba(0,0,0,0.04)) 25%,
    var(--ds-surface-border, #e8ecf4) 50%,
    var(--ds-surface-overlay, rgba(0,0,0,0.04)) 75%
  );
  background-size: 200% 100%;
  animation: ds-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--ds-radius-sm, 6px);
}

.ds-skeleton--text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.ds-skeleton--text-sm {
  height: 12px;
  width: 60%;
  margin-bottom: 6px;
}

.ds-skeleton--heading {
  height: 28px;
  width: 40%;
  margin-bottom: 16px;
}

.ds-skeleton--card {
  height: 120px;
  width: 100%;
  border-radius: var(--ds-radius-md, 12px);
}

.ds-skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-full, 9999px);
}

.ds-skeleton--button {
  height: 44px;
  width: 120px;
  border-radius: var(--ds-radius-sm, 6px);
}

.ds-skeleton--kpi {
  height: 80px;
  width: 100%;
  border-radius: var(--ds-radius-md, 12px);
}

@keyframes ds-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Loading Spinner ── */
.ds-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-sm, 8px);
  color: var(--ds-text-secondary, #6b7280);
  font-size: var(--ds-font-supporting, 15px);
}

.ds-spinner__icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ds-surface-border, #e8ecf4);
  border-top-color: var(--ds-color-primary, #6c5ce7);
  border-radius: var(--ds-radius-full, 9999px);
  animation: ds-spinner-rotate 0.8s linear infinite;
}

.ds-spinner--sm .ds-spinner__icon {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ds-spinner--lg .ds-spinner__icon {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

@keyframes ds-spinner-rotate {
  to { transform: rotate(360deg); }
}

/* ── Loading Overlay ── */
.ds-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-surface-overlay, rgba(0,0,0,0.3));
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 10;
}

/* ── Progress Bar ── */
.ds-progress {
  width: 100%;
  height: 6px;
  border-radius: var(--ds-radius-full, 9999px);
  background: var(--ds-surface-border, #e8ecf4);
  overflow: hidden;
}

.ds-progress__fill {
  height: 100%;
  border-radius: var(--ds-radius-full, 9999px);
  background: var(--ds-color-primary, #6c5ce7);
  transition: width var(--ds-transition-medium, 0.3s) ease;
}

.ds-progress__fill--success {
  background: var(--ds-color-success, #059669);
}

.ds-progress__fill--warning {
  background: var(--ds-color-warning, #d97706);
}

.ds-progress__fill--danger {
  background: var(--ds-color-danger, #e11d48);
}
/* ══════════════════════════════════════════════════════════════
   12_print.css — Design System Print Styles
   ══════════════════════════════════════════════════════════════ */
/* Print styles — to be populated in Phase 2 */
/* ══════════════════════════════════════════════════════════════
   13_workspace.css — Design System Workspace Layout
   ══════════════════════════════════════════════════════════════ */
/* Workspace layout — to be populated in Phase 2 */
/* ══════════════════════════════════════════════════════════════
   14_homepage.css — Design System Homepage Styles
   ══════════════════════════════════════════════════════════════
   Replaces the legacy inline <style> block in welcome.html.erb.
   All values use Design Tokens (--ds-*) — no hardcoded values.
   Uses the EXISTING HTML class names for compatibility.
   ══════════════════════════════════════════════════════════════ */

/* ── Homepage Base ── */
.homepage-wrapper {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ds-surface-page, #0b0d17);
  color: var(--ds-text-primary, #e2e8f0);
  min-height: 100vh;
}

/* ── Colorblind Overrides ── */
body.style-colorblind .section-card { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }
body.style-colorblind .value-card { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }
body.style-colorblind .contradiction-card { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }
body.style-colorblind .workflow-step { background: var(--ds-surface-card-hover); border-color: var(--ds-surface-border); }
body.style-colorblind .connector-badge { background: var(--ds-surface-card-hover); border-color: var(--ds-surface-border); color: var(--ds-text-secondary); }
body.style-colorblind .metric-stat { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }
body.style-colorblind .narrative-card { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }
body.style-colorblind .engine-badge { color: var(--ds-color-success, #059669); }
body.style-colorblind .segment-card { background: var(--ds-surface-card); border-color: var(--ds-surface-border); }

/* ── Typography Scale ── */
:root {
  --font-hero: clamp(42px, 5.5vw, 64px);
  --font-section-heading: clamp(24px, 3vw, 36px);
  --font-subheading: clamp(18px, 1.8vw, 22px);
  --font-body: clamp(15px, 1.2vw, 17px);
  --font-body-lg: clamp(16px, 1.3vw, 18px);
  --font-supporting: clamp(14px, 1.1vw, 16px);
  --font-caption: 14px;
  --font-small: 13px;
  --line-height-body: 1.7;
  --line-height-heading: 1.15;
  --letter-spacing-body: 0.01em;
}

/* ── Section Containers (homepage sections) ── */
.section-card {
  border-radius: var(--ds-radius-lg, 16px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  overflow: hidden;
  transition: border-color var(--ds-transition-medium, 0.2s) ease;
}
.section-card:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.15));
}

.contradiction-card {
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: rgba(0,0,0,0.25);
  padding: 20px 24px;
  transition: all var(--ds-transition-medium, 0.2s) ease;
}
.contradiction-card:hover {
  border-color: var(--ds-color-warning-light, rgba(245,158,11,0.25));
  background: var(--ds-color-warning-subtle, rgba(245,158,11,0.04));
  transform: translateY(-2px);
}

.value-card {
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: rgba(0,0,0,0.2);
  padding: var(--ds-space-lg, 24px);
  transition: all var(--ds-transition-medium, 0.2s) ease;
}
.value-card:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.15));
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-lg, 0 8px 30px rgba(0,0,0,0.3));
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--ds-radius-sm, 10px);
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  transition: all var(--ds-transition-medium, 0.2s) ease;
}
.workflow-step:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.2));
  background: var(--ds-color-primary-subtle, rgba(99,102,241,0.04));
  transform: translateY(-1px);
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--ds-radius-sm, 8px);
  background: var(--ds-color-success-subtle, rgba(52,211,153,0.06));
  border: 1px solid var(--ds-color-success-light, rgba(52,211,153,0.12));
  color: var(--ds-color-success, #34d399);
  font-size: var(--ds-font-supporting, 14px);
  font-weight: 600;
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.engine-badge:hover {
  background: var(--ds-color-success-light, rgba(52,211,153,0.1));
  border-color: rgba(52,211,153,0.2);
}

.segment-card {
  border-radius: var(--ds-radius-md, 12px);
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  cursor: pointer;
  transition: all var(--ds-transition-medium, 0.2s) ease;
  text-align: center;
}
.segment-card:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.25));
  background: var(--ds-color-primary-subtle, rgba(99,102,241,0.04));
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-lg, 0 8px 24px rgba(0,0,0,0.3));
}
.segment-card.active {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.08);
}

.connector-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--ds-radius-sm, 8px);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  font-size: var(--ds-font-supporting, 14px);
  font-weight: 600;
  color: var(--ds-text-secondary, rgba(255,255,255,0.7));
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.connector-badge:hover {
  background: var(--ds-color-primary-subtle, rgba(99,102,241,0.08));
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.15));
  color: var(--ds-color-primary, #818cf8);
}

.metric-stat {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--ds-radius-sm, 10px);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--ds-transition-medium, 0.2s) ease;
}
.metric-stat:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.12));
  background: var(--ds-color-primary-subtle, rgba(99,102,241,0.03));
  transform: translateY(-1px);
}

.narrative-card {
  border-radius: var(--ds-radius-sm, 10px);
  padding: 18px 20px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--ds-transition-medium, 0.2s) ease;
}
.narrative-card:hover {
  border-color: var(--ds-color-primary-light, rgba(99,102,241,0.12));
  transform: translateY(-1px);
}

/* ── Readability Overrides ── */
.homepage-body-text,
p, li, .text-readable {
  font-size: var(--font-body) !important;
  line-height: var(--line-height-body) !important;
  letter-spacing: var(--letter-spacing-body) !important;
}

/* Card descriptions minimum readability */
.value-card [style*="font-size:9px"],
.value-card [style*="font-size:10px"],
.value-card [style*="font-size:11px"],
.value-card [style*="font-size:12px"],
.contradiction-card [style*="font-size:9px"],
.contradiction-card [style*="font-size:10px"],
.contradiction-card [style*="font-size:11px"],
.contradiction-card [style*="font-size:12px"],
.narrative-card [style*="font-size:9px"],
.narrative-card [style*="font-size:10px"],
.narrative-card [style*="font-size:11px"],
.narrative-card [style*="font-size:12px"] {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5)) !important;
}

/* Card title minimum size */
.value-card [style*="font-size:13px"],
.value-card [style*="font-size:14px"],
.segment-card [style*="font-size:15px"] {
  font-size: 18px !important;
}

/* Metric stat values */
.metric-stat [style*="font-size:24px"] { font-size: 32px !important; }
.metric-stat [style*="font-size:9px"] { font-size: 14px !important; }

/* Workflow step descriptions */
.workflow-step [style*="font-size:9px"] { font-size: 14px !important; }
.workflow-step [style*="font-size:12px"] { font-size: 16px !important; }

/* Section heading overrides */
[style*="font-size:10px"][style*="text-transform:uppercase"] {
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
}

[style*="font-size:20px"][style*="font-weight:800"] {
  font-size: var(--font-section-heading) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

[style*="font-size:8px"] { font-size: 13px !important; }

/* ── Contrast Improvements ── */
[style*="color:rgba(255,255,255,0.3)"],
[style*="color:var(--text-muted,rgba(255,255,255,0.35))"],
[style*="color:var(--text-muted,rgba(255,255,255,0.4))"] {
  color: var(--ds-text-secondary, rgba(255,255,255,0.55)) !important;
}

[style*="color:var(--text-secondary,rgba(255,255,255,0.45))"] {
  color: var(--ds-text-secondary, rgba(255,255,255,0.6)) !important;
}

/* ── Button Standardization ── */
.apex-home-btn,
.welcome-page .btn,
[class*="btn"][style*="border-radius:8px"] {
  min-height: 44px !important;
  padding: 10px 22px !important;
  border-radius: var(--ds-radius-sm, 10px) !important;
  font-size: var(--ds-font-supporting, 14px) !important;
  font-weight: 700 !important;
  transition: all var(--ds-transition-medium, 0.2s) ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
}

.welcome-page .btn:hover,
[class*="btn"][style*="border-radius:8px"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--ds-shadow-md, 0 4px 16px rgba(99,102,241,0.2)) !important;
}

/* ── Homepage Lockdown Styles ── */
.max-w-7xl { max-width: 1440px !important; }
.section-card, .exec-card, [style*="max-width:1280px"] { max-width: 1440px !important; }
.section-card + .section-card { margin-top: 0 !important; }

/* Homepage Theme Compliance */
.homepage-wrapper .section-card [style*="font-weight:800"][style*="letter-spacing"] {
  color: var(--ds-text-primary, #e2e8f0) !important;
}
.homepage-wrapper .section-card [style*="font-size:20px"][style*="font-weight:800"] {
  color: var(--ds-text-primary, #e2e8f0) !important;
}

/* ── Mobile Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 32px !important; }
  [style*="font-size:clamp(32px"] { font-size: 28px !important; }
  [style*="font-size:28px"] { font-size: 24px !important; }
  [style*="font-size:20px"][style*="font-weight:800"] { font-size: 18px !important; }
}
@media (max-width: 768px) {
  .segment-card { padding: 14px !important; }
  .segment-card [style*="font-size:15px"] { font-size: 14px !important; }
}
@media (max-width: 640px) {
  .segment-card { min-width: 120px; }
}

/* ══════════════════════════════════════════════════════════════
   Enterprise Intelligence Journey — Flagship Section (Release 25)
   
   6-stage animated workflow: Assess → Diagnose → Validate →
   Challenge → Boardroom → Continuous Improvement
   
   Pure CSS animations. Zero JavaScript.
   ══════════════════════════════════════════════════════════════ */

/* ── Journey Container ── */
.ij-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  position: relative;
}

.ij-header {
  text-align: center;
  margin-bottom: 48px;
}

.ij-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--ds-text-primary, #e2e8f0);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ij-subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ds-text-secondary, rgba(255,255,255,0.55));
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Timeline Layout ── */
.ij-timeline {
  position: relative;
  padding: 0;
}

/* Central connector line */
.ij-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(99,102,241,0.6) 0%,
    rgba(99,102,241,0.3) 25%,
    rgba(99,102,241,0.6) 50%,
    rgba(99,102,241,0.3) 75%,
    rgba(99,102,241,0.6) 100%
  );
  z-index: 1;
}

/* Glowing pulse dot that travels the connector */
.ij-connector-pulse {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-color-primary, #818cf8);
  transform: translateX(-50%);
  z-index: 2;
  animation: ijPulseTravel 8s ease-in-out infinite;
  box-shadow: 0 0 12px 3px rgba(99,102,241,0.5);
}

@keyframes ijPulseTravel {
  0%, 100% { top: 2%; opacity: 0.3; }
  15% { top: 15%; opacity: 1; }
  30% { top: 30%; opacity: 0.6; }
  45% { top: 45%; opacity: 1; }
  60% { top: 58%; opacity: 0.6; }
  75% { top: 72%; opacity: 1; }
  90% { top: 86%; opacity: 0.6; }
  95% { top: 95%; opacity: 1; }
}

/* ── Journey Row (stage card + node) ── */
.ij-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

/* Alternating layout */
.ij-row:nth-child(odd) {
  flex-direction: row;
}
.ij-row:nth-child(even) {
  flex-direction: row-reverse;
}

.ij-card-wrapper {
  width: 45%;
  padding: 16px 0;
}

/* Timeline node circle */
.ij-node {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  margin: 24px auto;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  animation: ijNodePulse 3s ease-in-out infinite;
}

.ij-node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.15);
  animation: ijNodeRing 3s ease-in-out infinite;
}

@keyframes ijNodePulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(99,102,241,0.1); }
  50% { box-shadow: 0 0 16px 4px rgba(99,102,241,0.2); }
}

@keyframes ijNodeRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.2; }
}

.ij-node i {
  font-size: 18px;
  color: #fff;
}

/* ── Stage Card ── */
.ij-card {
  border-radius: var(--ds-radius-lg, 16px);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  transition: all var(--ds-transition-medium, 0.25s) ease;
  position: relative;
  overflow: hidden;
}

.ij-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  transition: height var(--ds-transition-medium, 0.25s) ease;
}

.ij-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12);
}

.ij-card:hover::before {
  height: 4px;
}

.ij-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.ij-card:hover .ij-card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99,102,241,0.15);
}

.ij-card-headline {
  font-size: 18px;
  font-weight: 800;
  color: var(--ds-text-primary, #e2e8f0);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ij-card-desc {
  font-size: 13px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5));
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.ij-card-badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.ij-card:hover .ij-card-badge {
  transform: translateY(-1px);
}

/* ── Stage Colors ── */
.ij-stage-1 .ij-card::before { background: var(--ds-color-info, #3B82F6); }
.ij-stage-1 .ij-node { background: rgba(59,130,246,0.85); }
.ij-stage-1 .ij-card-icon { background: rgba(59,130,246,0.12); color: var(--ds-color-info, #60A5FA); }
.ij-stage-1 .ij-card-badge { background: rgba(59,130,246,0.08); color: #60A5FA; border-color: rgba(59,130,246,0.15); }
.ij-stage-1:hover .ij-card-badge { background: rgba(59,130,246,0.15); }

.ij-stage-2 .ij-card::before { background: var(--ds-color-secondary, #818cf8); }
.ij-stage-2 .ij-node { background: rgba(129,140,248,0.85); }
.ij-stage-2 .ij-card-icon { background: rgba(129,140,248,0.12); color: var(--ds-color-secondary, #A78BFA); }
.ij-stage-2 .ij-card-badge { background: rgba(129,140,248,0.08); color: #A78BFA; border-color: rgba(129,140,248,0.15); }
.ij-stage-2:hover .ij-card-badge { background: rgba(129,140,248,0.15); }

.ij-stage-3 .ij-card::before { background: var(--ds-color-success, #34D399); }
.ij-stage-3 .ij-node { background: rgba(52,211,153,0.85); }
.ij-stage-3 .ij-card-icon { background: rgba(52,211,153,0.12); color: var(--ds-color-success, #34D399); }
.ij-stage-3 .ij-card-badge { background: rgba(52,211,153,0.08); color: #34D399; border-color: rgba(52,211,153,0.15); }
.ij-stage-3:hover .ij-card-badge { background: rgba(52,211,153,0.15); }

.ij-stage-4 .ij-card::before { background: var(--ds-color-warning, #F59E0B); }
.ij-stage-4 .ij-node { background: rgba(245,158,11,0.85); }
.ij-stage-4 .ij-card-icon { background: rgba(245,158,11,0.12); color: var(--ds-color-warning, #F59E0B); }
.ij-stage-4 .ij-card-badge { background: rgba(245,158,11,0.08); color: #F59E0B; border-color: rgba(245,158,11,0.15); }
.ij-stage-4:hover .ij-card-badge { background: rgba(245,158,11,0.15); }

.ij-stage-5 .ij-card::before { background: #D0A451; }
.ij-stage-5 .ij-node { background: rgba(208,164,81,0.85); }
.ij-stage-5 .ij-card-icon { background: rgba(208,164,81,0.12); color: #D0A451; }
.ij-stage-5 .ij-card-badge { background: rgba(208,164,81,0.08); color: #D0A451; border-color: rgba(208,164,81,0.15); }
.ij-stage-5:hover .ij-card-badge { background: rgba(208,164,81,0.15); }

.ij-stage-6 .ij-card::before { background: #14B8A6; }
.ij-stage-6 .ij-node { background: rgba(20,184,166,0.85); }
.ij-stage-6 .ij-card-icon { background: rgba(20,184,166,0.12); color: #14B8A6; }
.ij-stage-6 .ij-card-badge { background: rgba(20,184,166,0.08); color: #14B8A6; border-color: rgba(20,184,166,0.15); }
.ij-stage-6:hover .ij-card-badge { background: rgba(20,184,166,0.15); }

/* ── APPEXi Intelligence Orb ── */
.ij-appexi-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  padding: 12px 0;
}

.ij-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(129,140,248,0.9), rgba(99,102,241,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  animation: ijOrbBreathe 3s ease-in-out infinite;
}

.ij-orb::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(129,140,248,0.2);
  animation: ijOrbRing 3s ease-in-out infinite;
}

.ij-orb::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.08) 0%, transparent 70%);
  animation: ijOrbGlow 3s ease-in-out infinite;
}

@keyframes ijOrbBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px 4px rgba(99,102,241,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 24px 8px rgba(99,102,241,0.3); }
}

@keyframes ijOrbRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.15; }
}

@keyframes ijOrbGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

.ij-orb i {
  font-size: 22px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.ij-orb-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-color-secondary, #A78BFA);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ij-orb-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: var(--ds-radius-md, 12px);
  padding: 12px 16px;
  width: 240px;
  font-size: 12px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.6));
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10;
}

.ij-orb-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ij-orb-wrapper:hover .ij-orb-tooltip {
  display: block;
}

.ij-orb-wrapper:hover .ij-orb {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 0 0 32px 12px rgba(99,102,241,0.35);
}

/* ── CTA Panel ── */
.ij-cta {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 24px 60px;
}

.ij-cta-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--ds-radius-lg, 16px);
  border: 1px solid rgba(99,102,241,0.2);
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
}

.ij-cta-headline {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ds-text-primary, #fff);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.ij-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ij-section {
    padding: 40px 16px 20px;
  }

  .ij-timeline::before {
    left: 24px;
  }

  .ij-connector-pulse {
    display: none;
  }

  .ij-row,
  .ij-row:nth-child(odd),
  .ij-row:nth-child(even) {
    flex-direction: row;
    padding-left: 48px;
  }

  .ij-card-wrapper {
    width: 100%;
  }

  .ij-node {
    position: absolute;
    left: 0;
    top: 24px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin: 0;
  }

  .ij-node i {
    font-size: 14px;
  }

  .ij-card {
    padding: 18px;
  }

  .ij-appexi-node {
    padding-left: 48px;
    align-items: flex-start;
  }

  .ij-orb {
    width: 44px;
    height: 44px;
  }

  .ij-orb i {
    font-size: 18px;
  }

  .ij-cta {
    padding: 0 16px 40px;
  }

  .ij-cta-card {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .ij-card-headline {
    font-size: 16px;
  }

  .ij-card-desc {
    font-size: 12px;
  }

  .ij-card-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Component: Tiered Intelligence Flow (TIF)
   Version: 1.0.0
   Release: 26
   
   Canonical visual explanation of APPEX360.
   Tiered layout with APPEXi as central hub.
   
   Usage: render 'shared/homepage/tiered_intelligence_flow'
   
   All styling uses --ds-* tokens. No inline styles.
   ══════════════════════════════════════════════════════════════ */

/* ── Section Container ── */
.tif-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  position: relative;
  overflow: visible;
}

/* ── Header ── */
.tif-header {
  text-align: center;
  margin-bottom: 48px;
}

.tif-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
  color: #818cf8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.tif-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--ds-text-primary, #e2e8f0);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.tif-subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ds-text-secondary, rgba(255,255,255,0.55));
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Workflow Area ── */
.tif-workflow {
  position: relative;
  margin-bottom: 48px;
}

/* ── Tier Rows (top & bottom) ── */
.tif-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* ── Stage Card ── */
.tif-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--ds-radius-lg, 16px);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: default;
}

/* Top accent border using stage colour */
.tif-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stage-color, #6366f1);
  transition: height var(--ds-transition-medium, 0.25s) ease;
}

/* Subtle glass shine overlay */
.tif-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.tif-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 30px rgba(var(--stage-color-rgb, 99,102,241), 0.08);
  background: rgba(0,0,0,0.35);
}

.tif-card:hover::before {
  height: 4px;
}

.tif-card:hover::after {
  left: 100%;
}

/* Card top row: icon + number */
.tif-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tif-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--ds-radius-md, 12px);
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  flex-shrink: 0;
}

.tif-card-icon {
  width: 24px;
  height: 24px;
  color: var(--stage-color, #818cf8);
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.tif-card:hover .tif-card-icon-wrap {
  background: rgba(var(--stage-color-rgb, 99,102,241), 0.15);
  border-color: rgba(var(--stage-color-rgb, 99,102,241), 0.25);
  transform: scale(1.05);
}

.tif-card-number {
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.tif-card:hover .tif-card-number {
  color: rgba(255,255,255,0.08);
}

.tif-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--stage-color, #e2e8f0);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  transition: color var(--ds-transition-medium, 0.25s) ease;
}

.tif-card-desc {
  font-size: 13px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5));
  line-height: 1.7;
  margin: 0 0 14px;
  flex: 1;
}

.tif-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tif-card-badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(var(--stage-color-rgb, 99,102,241), 0.08);
  color: var(--stage-color, #818cf8);
  border: 1px solid rgba(var(--stage-color-rgb, 99,102,241), 0.12);
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.tif-card:hover .tif-card-badge {
  background: rgba(var(--stage-color-rgb, 99,102,241), 0.15);
  transform: translateY(-1px);
}

.tif-card-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 700;
  color: var(--stage-color, #818cf8);
}

.tif-card-metric-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--stage-color, #34D399);
}

/* ── Connector Lines (between tiers) ── */
.tif-connector {
  position: relative;
  height: 48px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Down connector (top → hub) */
.tif-connector-down {
  background: linear-gradient(180deg, 
    rgba(129,140,248,0.06) 0%, 
    rgba(129,140,248,0.02) 100%
  );
}

/* Up connector (hub → bottom) */
.tif-connector-up {
  background: linear-gradient(0deg, 
    rgba(129,140,248,0.06) 0%, 
    rgba(129,140,248,0.02) 100%
  );
}

/* Horizontal connector bar */
.tif-connector::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(129,140,248,0.2), 
    rgba(129,140,248,0.3), 
    rgba(129,140,248,0.2), 
    transparent
  );
  top: 50%;
}

/* ── Flowing Particles ── */
.tif-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px 2px rgba(129,140,248,0.4);
  z-index: 2;
}

/* Top connector particles (moving right) */
.tif-connector-down .tif-particle-1 {
  animation: tifParticleRight 3s ease-in-out infinite;
  top: 30%;
}
.tif-connector-down .tif-particle-2 {
  animation: tifParticleRight 3s ease-in-out infinite 1s;
  top: 50%;
}
.tif-connector-down .tif-particle-3 {
  animation: tifParticleRight 3s ease-in-out infinite 2s;
  top: 70%;
}

/* Bottom connector particles (moving left) */
.tif-connector-up .tif-particle-4 {
  animation: tifParticleLeft 3s ease-in-out infinite 0.5s;
  top: 30%;
}
.tif-connector-up .tif-particle-5 {
  animation: tifParticleLeft 3s ease-in-out infinite 1.5s;
  top: 50%;
}
.tif-connector-up .tif-particle-6 {
  animation: tifParticleLeft 3s ease-in-out infinite 2.5s;
  top: 70%;
}

@keyframes tifParticleRight {
  0% { left: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 90%; opacity: 0; }
}

@keyframes tifParticleLeft {
  0% { left: 90%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 10%; opacity: 0; }
}

/* ── Hover glow on connectors when card is hovered ── */
.tif-tier:hover ~ .tif-connector::before {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(129,140,248,0.4), 
    rgba(129,140,248,0.6), 
    rgba(129,140,248,0.4), 
    transparent
  ) !important;
  height: 2px;
}

.tif-tier:hover ~ .tif-connector .tif-particle {
  background: #a5b4fc;
  box-shadow: 0 0 12px 4px rgba(129,140,248,0.6);
  animation-duration: 2s;
}

/* ── APPEXi Hub Row ── */
.tif-hub-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 0 0;
}

/* ── APPEXi Hub ── */
.tif-hub {
  position: relative;
  width: 520px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Glow rings */
.tif-hub-glow-1,
.tif-hub-glow-2,
.tif-hub-glow-3 {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tif-hub-glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, transparent 70%);
  animation: tifHubBreathe 4s ease-in-out infinite;
}

.tif-hub-glow-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(129,140,248,0.08) 0%, transparent 60%);
  animation: tifHubBreathe 4s ease-in-out infinite 1s;
}

.tif-hub-glow-3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(129,140,248,0.1) 0%, transparent 50%);
  animation: tifHubBreathe 4s ease-in-out infinite 2s;
}

@keyframes tifHubBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Hub content card */
.tif-hub-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, 
    rgba(15,23,42,0.85) 0%, 
    rgba(15,23,42,0.92) 100%
  );
  border: 1px solid rgba(129,140,248,0.15);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(129,140,248,0.06), inset 0 1px 0 rgba(129,140,248,0.08);
}

.tif-hub-icon {
  margin: 0 auto 12px;
}

.tif-hub-name {
  font-size: 28px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.tif-hub-title {
  font-size: 14px;
  font-weight: 600;
  color: #818cf8;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

/* Hub capability badges */
.tif-hub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.tif-hub-badge {
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(129,140,248,0.08);
  color: #a5b4fc;
  border: 1px solid rgba(129,140,248,0.12);
}

/* Hub proof point metrics */
.tif-hub-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tif-hub-metric {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tif-hub-metric-value {
  font-size: 18px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tif-hub-metric-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Executive Outcomes ── */
.tif-outcomes {
  margin-bottom: 48px;
}

.tif-outcomes-eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #D0A451;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.tif-outcomes-title {
  text-align: center;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--ds-text-primary, #e2e8f0);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

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

.tif-outcome-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 20px 18px;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.tif-outcome-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.22);
}

.tif-outcome-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.tif-outcome-card:hover .tif-outcome-icon-wrap {
  background: rgba(0,0,0,0.25);
  border-color: var(--outcome-color, #818cf8);
}

.tif-outcome-icon {
  width: 20px;
  height: 20px;
  color: var(--outcome-color, #818cf8);
}

.tif-outcome-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-primary, #e2e8f0);
  letter-spacing: -0.01em;
}

.tif-outcome-desc {
  font-size: 11px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.45));
  line-height: 1.5;
}

/* ── Differentiator ── */
.tif-diff {
  margin-bottom: 48px;
}

.tif-diff-header {
  text-align: center;
  margin-bottom: 28px;
}

.tif-diff-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.tif-diff-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--ds-text-primary, #e2e8f0);
  letter-spacing: -0.02em;
  margin: 0;
}

.tif-diff-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tif-diff-col {
  flex: 1;
  max-width: 380px;
}

.tif-diff-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tif-diff-col-traditional .tif-diff-col-header {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.10);
  color: #fca5a5;
}

.tif-diff-col-appex .tif-diff-col-header {
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.12);
  color: #a5b4fc;
}

.tif-diff-col-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tif-diff-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tif-diff-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-text-secondary, rgba(255,255,255,0.6));
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.03);
  transition: all var(--ds-transition-medium, 0.25s) ease;
}

.tif-diff-item:hover {
  background: rgba(0,0,0,0.15);
  transform: translateX(4px);
}

.tif-diff-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tif-diff-item-neg .tif-diff-item-icon {
  opacity: 0.6;
}

.tif-diff-item-pos .tif-diff-item-icon {
  opacity: 0.8;
}

.tif-diff-item-neg:hover {
  border-color: rgba(239,68,68,0.1);
}

.tif-diff-item-pos:hover {
  border-color: rgba(52,211,153,0.1);
}

.tif-diff-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tif-diff-arrow svg {
  width: 40px;
  height: 40px;
  animation: tifDiffPulse 2s ease-in-out infinite;
}

@keyframes tifDiffPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ── CTA Section ── */
.tif-cta {
  padding: 0 0 60px;
}

.tif-cta-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--ds-radius-lg, 16px);
  border: 1px solid rgba(99,102,241,0.2);
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
}

.tif-cta-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #818cf8;
  opacity: 0.6;
}

.tif-cta-headline {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ds-text-primary, #fff);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.tif-cta-sub {
  font-size: 15px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5));
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.tif-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tif-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--ds-transition-medium, 0.25s) ease;
  cursor: pointer;
}

.tif-btn-icon {
  width: 18px;
  height: 18px;
}

.tif-cta-btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.tif-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

.tif-cta-btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text-primary, #fff);
  border: 1px solid rgba(255,255,255,0.1);
}

.tif-cta-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tif-cta-btn-tertiary {
  background: rgba(255,255,255,0.02);
  color: var(--ds-text-secondary, rgba(255,255,255,0.6));
  border: 1px solid rgba(255,255,255,0.06);
}

.tif-cta-btn-tertiary:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text-primary, #fff);
  transform: translateY(-2px);
}

.tif-cta-footer {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ds-text-secondary, rgba(255,255,255,0.4));
}

.tif-cta-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Responsive: Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .tif-hub {
    width: 480px;
  }

  .tif-hub-glow-1 { width: 280px; height: 280px; }
  .tif-hub-glow-2 { width: 210px; height: 210px; }
  .tif-hub-glow-3 { width: 140px; height: 140px; }

  .tif-diff-grid {
    flex-direction: column;
    gap: 12px;
  }

  .tif-diff-col {
    max-width: 100%;
    width: 100%;
  }

  .tif-diff-arrow {
    transform: rotate(90deg);
  }
}

/* ── Responsive: Tablet (≤860px) ── */
@media (max-width: 860px) {
  .tif-tier {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tif-outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tif-hub {
    width: 100%;
  }

  .tif-hub-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .tif-hub-glow-1 { width: 200px; height: 200px; }
  .tif-hub-glow-2 { width: 150px; height: 150px; }
  .tif-hub-glow-3 { width: 100px; height: 100px; }

  .tif-connector {
    height: 32px;
  }

  .tif-particle {
    display: none;
  }
}

/* ── Responsive: Mobile (≤640px) ── */
@media (max-width: 640px) {
  .tif-section {
    padding: 40px 16px 20px;
  }

  .tif-header {
    margin-bottom: 32px;
  }

  .tif-outcomes-grid {
    grid-template-columns: 1fr;
  }

  .tif-hub-content {
    padding: 24px 16px;
  }

  .tif-hub-name {
    font-size: 24px;
  }

  .tif-hub-metric-value {
    font-size: 16px;
  }

  .tif-card {
    padding: 18px;
  }

  .tif-card-title {
    font-size: 18px;
  }

  .tif-cta-card {
    padding: 32px 20px;
  }

  .tif-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tif-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .tif-diff-arrow {
    display: none;
  }
}
/* ══════════════════════════════════════════════════════════════
   DS: 16 — Coming Soon / Pre-Launch Marketing
   Enterprise Design System – Release 25
   ══════════════════════════════════════════════════════════════ */

/* ── Base Reset (Coming Soon layout only) ── */
.cs-gradient-bg * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.cs-gradient-bg {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #f1f5f9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background Gradient ── */
.cs-gradient-bg {
  background: linear-gradient(180deg, #0b0d17 0%, #0a0a0f 40%, #0f111a 100%);
}

/* ── Glow Effect ── */
.cs-glow {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(72, 157, 249, 0.05);
}

/* ── Duplicate Panel ── */
.cs-duplicate-panel {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 12px;
}

/* ── Error State ── */
.cs-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Section Structure ── */
.cs-section {
  padding: var(--ds-space-3xl) var(--ds-space-lg);
  position: relative;
}
.cs-section:nth-child(even) {
  background: rgba(11, 13, 23, 0.3);
}
.cs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Section Header Pill ── */
.cs-section-header {
  text-align: center;
  margin-bottom: var(--ds-space-2xl);
}
.cs-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-primary-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 11px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-color-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ds-letter-spacing-wide);
  margin-bottom: 12px;
}
.cs-label i {
  margin-right: 6px;
}
.cs-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--ds-font-weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 12px;
}
.cs-section-header p {
  font-size: 16px;
  color: var(--ds-text-secondary, #94a3b8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section Heading (h2 without wrapper) ── */
.cs-section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--ds-font-weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 12px;
}

/* ── Capability Cards (Platform Highlights) ── */
.cs-capability-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-lg);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-capability-card:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}
.cs-capability-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(72, 157, 249, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cs-capability-icon i {
  color: var(--ds-color-secondary, #818cf8);
  font-size: 16px;
}
.cs-capability-card h3 {
  font-size: 16px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 6px;
}
.cs-capability-card p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

/* ── Resource Cards (Discover) ── */
.cs-resource-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  transition: all var(--ds-transition-fast) ease;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.cs-resource-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}
.cs-resource-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(72, 157, 249, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.cs-resource-thumb-icon {
  text-align: center;
}
.cs-resource-thumb-icon i {
  font-size: 36px;
  color: var(--ds-color-secondary, #818cf8);
  display: block;
  margin-bottom: 8px;
}
.cs-resource-thumb-icon span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
}
.cs-resource-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-resource-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cs-resource-head h3 {
  font-size: 15px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0;
}
.cs-resource-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--ds-radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--ds-color-secondary, #818cf8);
  font-weight: var(--ds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-resource-body p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  margin: 0 0 auto;
  line-height: 1.5;
}
.cs-resource-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.06);
}
.cs-resource-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.06);
  color: var(--ds-color-secondary, #818cf8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ds-transition-fast);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}
.cs-resource-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--ds-color-secondary, #818cf8);
}
.cs-resource-btn-outline {
  composes: cs-resource-btn;
  background: transparent;
  color: var(--ds-text-muted, #94a3b8);
}
.cs-resource-btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--ds-color-secondary, #818cf8);
}

/* ── Value Cards (Why APPEX360) ── */
.cs-value-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  padding: 28px;
  transition: all var(--ds-transition-fast) ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cs-value-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}
.cs-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ds-color-primary, #6366f1), #489df9, var(--ds-color-secondary, #818cf8));
  opacity: 0;
  transition: opacity var(--ds-transition-normal) ease;
}
.cs-value-card:hover::before {
  opacity: 1;
}
.cs-value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(72, 157, 249, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cs-value-icon i {
  color: var(--ds-color-secondary, #818cf8);
  font-size: 20px;
}
.cs-value-card h3 {
  font-size: 18px;
  font-weight: var(--ds-font-weight-extrabold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 10px;
}
.cs-value-card p {
  font-size: 14px;
  color: var(--ds-text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 0;
}

/* ── Stat Card ── */
.cs-stat-card {
  text-align: center;
  padding: var(--ds-space-lg) var(--ds-space-md);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-stat-card:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
}
.cs-stat-value {
  font-size: 32px;
  font-weight: var(--ds-font-weight-extrabold);
  background: linear-gradient(135deg, var(--ds-color-secondary, #818cf8), #489df9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ── Glass Card ── */
.cs-glass {
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ── Gradient Text ── */
.cs-gradient-text {
  background: linear-gradient(135deg, var(--ds-text-primary, #f1f5f9) 0%, var(--ds-color-secondary, #818cf8) 50%, #489df9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA Buttons ── */
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--ds-color-primary, #6366f1), #489df9);
  color: #fff;
  font-size: 15px;
  font-weight: var(--ds-font-weight-bold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ds-transition-fast) ease;
  text-decoration: none;
  font-family: inherit;
}
.cs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ds-transition-fast) ease;
  text-decoration: none;
  font-family: inherit;
}
.cs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ── Links ── */
.cs-footer-link {
  color: var(--ds-text-muted, #64748b);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--ds-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-footer-link:hover {
  color: var(--ds-color-secondary, #818cf8);
}

/* ── Footer Social Links ── */
.cs-footer-social-link:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* ── Divider ── */
.cs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
  border: none;
}

/* ── Nav Link ── */
.cs-login-link:hover {
  color: var(--ds-color-secondary, #818cf8) !important;
}

/* ── Form Inputs ── */
.cs-form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--ds-transition-fast) ease;
  outline: none;
}
.cs-form-input:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.cs-form-input::placeholder {
  color: var(--ds-text-muted, rgba(148, 163, 184, 0.6));
}
.cs-form-input option {
  color: #1a1a2e;
  background: #ffffff;
}
.cs-form-input option:disabled {
  color: var(--ds-text-muted, #94a3b8);
}
.cs-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cs-form-input.cs-has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.cs-form-input.cs-has-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ── Timeline ── */
.cs-timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(72, 157, 249, 0.4), rgba(99, 102, 241, 0.1));
}
.cs-timeline-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  padding-left: 0;
}
.cs-timeline-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.cs-timeline-dot-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-timeline-card {
  flex: 1;
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--ds-radius-md);
  padding: 18px 20px;
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(15, 17, 26, 0.7);
}
.cs-timeline-card h3 {
  font-size: 16px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0;
}
.cs-timeline-card p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  margin: 4px 0 0;
  line-height: 1.5;
}
.cs-timeline-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--ds-radius-full);
  font-weight: var(--ds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-timeline-date {
  font-size: 12px;
  color: var(--ds-text-muted, #64748b);
}

/* ── Trust Badge ── */
.cs-trust-badge {
  text-align: center;
  padding: var(--ds-space-lg) var(--ds-space-md);
  border-radius: var(--ds-radius-md);
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.08);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-trust-badge:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(15, 17, 26, 0.7);
}
.cs-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.cs-trust-icon i {
  font-size: 18px;
  color: var(--ds-color-secondary, #818cf8);
}
.cs-trust-badge h3 {
  font-size: 13px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 6px;
}
.cs-trust-badge p {
  font-size: 11px;
  color: var(--ds-text-muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cs-section-header + [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #discover [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #why-appex360 [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .cs-section {
    padding: var(--ds-space-2xl) var(--ds-space-md);
  }
  .cs-section-header {
    margin-bottom: var(--ds-space-xl);
  }
  .cs-capability-card {
    padding: 20px;
  }
  .cs-stat-value {
    font-size: 24px;
  }
  .cs-stat-card {
    padding: var(--ds-space-md) 12px;
  }
  #enterprise-trust [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer [style*="grid-template-columns: 2fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--ds-space-xl) !important;
  }
  footer {
    padding: 40px 16px 24px !important;
  }
}
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  section { padding: 12px 16px 24px; }
}
@media (max-width: 600px) {
  .cs-section-header + [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #discover [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #why-appex360 [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .cs-timeline-row {
    gap: 12px !important;
  }
  .cs-timeline-dot-inner {
    width: 36px !important;
    height: 36px !important;
  }
  .cs-timeline-card h3 {
    font-size: 14px !important;
  }
}
@media (max-width: 480px) {
  .cs-btn-primary, .cs-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  #enterprise-trust [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }
}
/* ══════════════════════════════════════════════════════════════
   17_homepage_redesign.css — Release 26 Homepage Redesign
   
   Premium enterprise homepage with glassmorphism cards,
   staggered scroll animations, typewriter conversation,
   enterprise comparison matrix, and animated stat counters.
   
   All values use Design Tokens (--ds-*) or R26 custom tokens.
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --r26-bg-primary: #0a0a0f;
  --r26-bg-secondary: #0f0f1a;
  --r26-bg-tertiary: #14141f;
  --r26-bg-glass: rgba(255, 255, 255, 0.03);
  --r26-bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --r26-text-primary: #f0f0f5;
  --r26-text-secondary: #a0a0b0;
  --r26-text-muted: #606070;

  /* Accent Colors */
  --r26-accent-blue: #3b82f6;
  --r26-accent-purple: #8b5cf6;
  --r26-accent-green: #22c55e;
  --r26-accent-red: #ef4444;
  --r26-accent-amber: #f59e0b;
  --r26-accent-teal: #14b8a6;
  --r26-accent-indigo: #6366f1;

  /* Gradients */
  --r26-gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 50%, #0a0a0f 100%);
  --r26-gradient-section: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
  --r26-gradient-card: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(139,92,246,0.05));
  --r26-gradient-ai: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.1));
  --r26-gradient-cta: linear-gradient(135deg, #3b82f6, #8b5cf6);

  /* Glassmorphism Card */
  --r26-glass-bg: rgba(255, 255, 255, 0.03);
  --r26-glass-border: rgba(255, 255, 255, 0.06);
  --r26-glass-border-hover: rgba(255, 255, 255, 0.12);
  --r26-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --r26-space-xs: 4px;
  --r26-space-sm: 8px;
  --r26-space-md: 16px;
  --r26-space-lg: 24px;
  --r26-space-xl: 48px;
  --r26-space-2xl: 80px;

  /* Border Radius */
  --r26-radius-sm: 6px;
  --r26-radius-md: 12px;
  --r26-radius-lg: 16px;
  --r26-radius-xl: 20px;

  /* Animation Timing */
  --r26-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --r26-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --r26-duration-fast: 200ms;
  --r26-duration-base: 300ms;
  --r26-duration-slow: 500ms;
  --r26-duration-stat: 1500ms;
}

/* ══════════════════════════════════════════════════════════════
   GLASSMORPHISM CARD STANDARD
   ══════════════════════════════════════════════════════════════ */
.r26-glass-card {
  background: var(--r26-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--r26-glass-border);
  border-radius: var(--r26-radius-lg);
  transition: transform var(--r26-duration-base) var(--r26-ease-out),
              box-shadow var(--r26-duration-base) var(--r26-ease-out),
              border-color var(--r26-duration-fast) ease;
}

.r26-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r26-glass-shadow),
              0 0 20px rgba(59, 130, 246, 0.1);
  border-color: var(--r26-glass-border-hover);
}

/* ══════════════════════════════════════════════════════════════
   SECTION BASE
   ══════════════════════════════════════════════════════════════ */
.r26-section {
  padding: var(--r26-space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.r26-section:nth-child(odd) {
  background: var(--r26-bg-primary);
}

.r26-section:nth-child(even) {
  background: var(--r26-bg-secondary);
}

.r26-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--r26-space-lg);
}

.r26-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.r26-section-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--r26-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.r26-section-subtitle {
  font-size: 15px;
  color: var(--r26-text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 1 — HERO
   ══════════════════════════════════════════════════════════════ */
.r26-hero {
  min-height: 85vh;
  background: var(--r26-gradient-hero);
  display: flex;
  align-items: center;
  padding: var(--r26-space-xl) 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background particle overlay */
.r26-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.r26-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--r26-space-lg);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--r26-space-xl);
  width: 100%;
  position: relative;
  z-index: 1;
}

.r26-hero-text {
  flex: 0 0 38%;
  max-width: 500px;
}

.r26-hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--r26-accent-indigo);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.1s forwards;
}

.r26-hero-headline {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  color: var(--r26-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.3s forwards;
}

.r26-hero-subline {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--r26-accent-indigo);
  margin-bottom: 12px;
  opacity: 0.7;
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.2s forwards;
}

.r26-hero-description {
  font-size: 16px;
  color: var(--r26-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--r26-space-lg);
  max-width: 440px;
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.4s forwards;
}

.r26-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r26-space-sm);
  margin-bottom: var(--r26-space-md);
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.5s forwards;
}

.r26-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r26-radius-md);
  background: var(--r26-gradient-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--r26-duration-base) var(--r26-ease-out),
              box-shadow var(--r26-duration-base) var(--r26-ease-out);
}

.r26-hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.r26-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r26-radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--r26-accent-indigo);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--r26-duration-fast) ease,
              border-color var(--r26-duration-fast) ease;
}

.r26-hero-cta-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.r26-hero-cta-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r26-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--r26-text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--r26-duration-fast) ease,
              color var(--r26-duration-fast) ease;
}

.r26-hero-cta-tertiary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--r26-text-primary);
}

/* Trust badges in hero */
.r26-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r26-space-sm);
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.6s forwards;
}

.r26-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r26-radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.r26-hero-badge-green {
  background: rgba(52, 211, 153, 0.08);
  color: var(--r26-accent-green);
  border-color: rgba(52, 211, 153, 0.12);
}

.r26-hero-badge-indigo {
  background: rgba(99, 102, 241, 0.08);
  color: var(--r26-accent-indigo);
  border-color: rgba(99, 102, 241, 0.12);
}

.r26-hero-badge-pink {
  background: rgba(236, 72, 153, 0.08);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.12);
}

/* Wheel container in hero */
.r26-hero-visual {
  flex: 0 0 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: r26FadeSlideUp 0.8s var(--r26-ease-out) 0.7s forwards;
}

/* Wheel maturity legend */
.r26-wheel-legend {
  display: flex;
  gap: var(--r26-space-md);
  margin-top: var(--r26-space-md);
  opacity: 0;
  animation: r26FadeSlideUp 0.6s var(--r26-ease-out) 0.9s forwards;
}

.r26-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r26-radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--r26-text-secondary);
}

.r26-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.r26-legend-dot-red { background: var(--r26-accent-red); }
.r26-legend-dot-amber { background: var(--r26-accent-amber); }
.r26-legend-dot-green { background: var(--r26-accent-green); }

/* ══════════════════════════════════════════════════════════════
   SECTION 2 — INTELLIGENCE GAP
   ══════════════════════════════════════════════════════════════ */
.r26-gap {
  padding: var(--r26-space-2xl) 0;
}

.r26-gap-header {
  text-align: center;
  margin-bottom: var(--r26-space-xl);
}

.r26-gap-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-red);
  margin-bottom: 8px;
}

.r26-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--r26-space-lg);
}

.r26-gap-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--r26-radius-lg);
  background: var(--r26-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--r26-glass-border);
  transition: transform var(--r26-duration-base) var(--r26-ease-out),
              box-shadow var(--r26-duration-base) var(--r26-ease-out),
              border-color var(--r26-duration-fast) ease;
}

.r26-gap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r26-glass-shadow);
}

.r26-gap-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r26-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid;
}

.r26-gap-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--r26-text-primary);
  margin-bottom: 8px;
}

.r26-gap-card-desc {
  font-size: 13px;
  color: var(--r26-text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 3 — THE TRUTH
   ══════════════════════════════════════════════════════════════ */
.r26-truth {
  padding: var(--r26-space-2xl) 0;
}

.r26-truth-header {
  text-align: center;
  margin-bottom: var(--r26-space-xl);
}

.r26-truth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-purple);
  margin-bottom: 8px;
}

.r26-truth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--r26-radius-lg);
  overflow: hidden;
  border: 1px solid var(--r26-glass-border);
}

.r26-truth-col {
  padding: var(--r26-space-lg);
}

.r26-truth-col-traditional {
  background: rgba(239, 68, 68, 0.03);
  border-right: 1px solid rgba(239, 68, 68, 0.08);
}

.r26-truth-col-appex {
  background: rgba(34, 197, 94, 0.03);
}

.r26-truth-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--r26-space-lg);
  font-size: 18px;
  font-weight: 700;
}

.r26-truth-col-header-traditional {
  color: var(--r26-accent-red);
}

.r26-truth-col-header-appex {
  color: var(--r26-accent-green);
}

.r26-truth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--r26-text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--r26-ease-out), transform 0.4s var(--r26-ease-out);
}

.r26-truth-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.r26-truth-row:last-child {
  border-bottom: none;
}

.r26-truth-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 5 — ENTERPRISE COMPARISON MATRIX
   ══════════════════════════════════════════════════════════════ */
.r26-matrix {
  padding: var(--r26-space-2xl) 0;
  overflow: hidden;
}

.r26-matrix-header {
  text-align: center;
  margin-bottom: var(--r26-space-xl);
}

.r26-matrix-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-blue);
  margin-bottom: 8px;
}

.r26-matrix-subtitle {
  font-size: 15px;
  color: var(--r26-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--r26-space-lg);
  line-height: 1.6;
}

/* Matrix wrapper — horizontal scroll on mobile */
.r26-matrix-wrapper {
  overflow-x: auto;
  border-radius: var(--r26-radius-lg);
  border: 1px solid var(--r26-glass-border);
  background: var(--r26-bg-tertiary);
  -webkit-overflow-scrolling: touch;
}

.r26-matrix-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.r26-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--r26-bg-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--r26-text-secondary);
}

.r26-matrix-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--r26-bg-tertiary);
  min-width: 180px;
}

/* APPEX360 column header glow */
.r26-matrix-th-appex {
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08)) !important;
  color: var(--r26-accent-blue) !important;
  border-bottom: 2px solid var(--r26-accent-blue) !important;
  position: relative;
}

.r26-matrix-th-appex::after {
  content: '★';
  margin-left: 4px;
  font-size: 10px;
}

.r26-matrix-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--r26-text-secondary);
  transition: background var(--r26-duration-fast) ease;
}

.r26-matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--r26-text-primary);
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--r26-bg-tertiary);
  min-width: 180px;
  cursor: help;
}

/* Row hover */
.r26-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.r26-matrix-table tr:hover td:first-child {
  background: rgba(255, 255, 255, 0.04);
}

/* Cell types */
.r26-matrix-cell-full {
  color: var(--r26-accent-green);
  font-size: 18px;
}

.r26-matrix-cell-partial {
  color: var(--r26-accent-amber);
  font-size: 16px;
}

.r26-matrix-cell-none {
  color: var(--r26-accent-red);
  font-size: 16px;
}

/* APPEX360 column cells */
.r26-matrix-cell-appex {
  color: var(--r26-accent-green);
  font-size: 18px;
  font-weight: 700;
  position: relative;
}

.r26-matrix-cell-appex:hover {
  background: rgba(34, 197, 94, 0.06) !important;
}

/* Row highlighting (via matrix-highlight Stimulus controller) */
.r26-matrix-row-highlight td {
  background: rgba(59, 130, 246, 0.04) !important;
}

.r26-matrix-row-highlight td:first-child {
  background: rgba(59, 130, 246, 0.06) !important;
  color: var(--r26-accent-blue);
}

/* APPEX360 column cell highlight on hover */
.r26-matrix-cell-highlight {
  background: rgba(34, 197, 94, 0.08) !important;
  box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.06);
}

/* Legend pills */
.r26-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r26-space-md);
  justify-content: center;
  margin-top: var(--r26-space-lg);
}

.r26-matrix-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r26-radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--r26-text-secondary);
  background: var(--r26-glass-bg);
  border: 1px solid var(--r26-glass-border);
  cursor: help;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 5b — SYSTEM LAYER INFOGRAPHIC
   ══════════════════════════════════════════════════════════════ */
.r26-infographic {
  text-align: center;
  margin-top: var(--r26-space-xl);
  padding: var(--r26-space-xl) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.r26-infographic-header {
  margin-bottom: var(--r26-space-lg);
}

.r26-infographic-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-purple);
  margin-bottom: 6px;
}

.r26-infographic-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--r26-text-primary);
}

/* Layer diagram */
.r26-layer-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--r26-space-md);
  padding: var(--r26-space-xl) 0;
  position: relative;
}

.r26-layer-top {
  padding: 20px 40px;
  border-radius: var(--r26-radius-lg);
  background: var(--r26-gradient-ai);
  border: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  z-index: 2;
}

.r26-layer-top-label {
  font-size: 28px;
  font-weight: 800;
  color: var(--r26-accent-purple);
  letter-spacing: -0.02em;
}

.r26-layer-top-sub {
  font-size: 13px;
  color: var(--r26-accent-indigo);
  margin-top: 4px;
}

.r26-layer-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--r26-space-sm);
  position: relative;
  height: 40px;
}

.r26-layer-particle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--r26-accent-purple);
  opacity: 0;
  animation: r26ParticleFloat 2.5s linear infinite;
}

.r26-layer-particle:nth-child(1) { animation-delay: 0s; }
.r26-layer-particle:nth-child(2) { animation-delay: 0.8s; }
.r26-layer-particle:nth-child(3) { animation-delay: 1.6s; }
.r26-layer-particle:nth-child(4) { animation-delay: 0.4s; }
.r26-layer-particle:nth-child(5) { animation-delay: 1.2s; }

.r26-layer-systems {
  display: flex;
  gap: var(--r26-space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.r26-layer-system {
  padding: 12px 22px;
  border-radius: var(--r26-radius-md);
  background: var(--r26-glass-bg);
  border: 1px solid var(--r26-glass-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--r26-text-secondary);
  transition: all var(--r26-duration-fast) ease;
}

.r26-layer-system:hover {
  border-color: var(--r26-glass-border-hover);
  color: var(--r26-text-primary);
  transform: translateY(-2px);
}

/* Key message callout */
.r26-layer-callout {
  margin-top: var(--r26-space-lg);
  padding: 20px 28px;
  border-radius: var(--r26-radius-lg);
  background: var(--r26-glass-bg);
  border-left: 3px solid var(--r26-accent-purple);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.r26-layer-callout-text {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--r26-text-primary);
  line-height: 1.5;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 6 — MEET APPEXi
   ══════════════════════════════════════════════════════════════ */
.r26-appexi {
  padding: var(--r26-space-2xl) 0;
}

.r26-appexi-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--r26-space-xl);
  align-items: start;
}

.r26-appexi-left {
  text-align: center;
  padding: var(--r26-space-xl);
  border-radius: var(--r26-radius-lg);
  background: var(--r26-gradient-ai);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.r26-appexi-icon-wrap {
  margin-bottom: var(--r26-space-md);
}

.r26-appexi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r26-space-sm);
  justify-content: center;
  margin-top: var(--r26-space-md);
}

.r26-appexi-badge {
  padding: 6px 14px;
  border-radius: var(--r26-radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(129, 140, 248, 0.08);
  color: var(--r26-accent-indigo);
  border: 1px solid rgba(129, 140, 248, 0.15);
}

/* Conversation panel */
.r26-conversation {
  border-radius: var(--r26-radius-lg);
  border: 1px solid var(--r26-glass-border);
  background: var(--r26-bg-tertiary);
  overflow: hidden;
}

.r26-conversation-header {
  padding: 14px var(--r26-space-md);
  border-bottom: 1px solid var(--r26-glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--r26-accent-indigo);
}

.r26-conversation-body {
  padding: var(--r26-space-md);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--r26-space-md);
}

.r26-conversation-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  animation: r26FadeSlideUp 0.4s var(--r26-ease-out) forwards;
}

.r26-conversation-message-user {
  justify-content: flex-end;
}

.r26-conversation-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r26-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.r26-conversation-bubble {
  padding: 12px 16px;
  border-radius: var(--r26-radius-md);
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
}

.r26-conversation-bubble-user {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--r26-text-primary);
}

.r26-conversation-bubble-appex {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.1);
  color: var(--r26-text-secondary);
}

.r26-conversation-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.r26-conversation-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--r26-accent-purple);
  animation: r26TypingDot 1.4s ease-in-out infinite;
}

.r26-conversation-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.r26-conversation-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Confidence badge at end of response */
.r26-conversation-confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r26-radius-full);
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
}

.r26-conversation-confidence-high {
  background: rgba(34, 197, 94, 0.08);
  color: var(--r26-accent-green);
}

/* ══════════════════════════════════════════════════════════════
   SECTION 7 — PLATFORM NUMBERS
   ══════════════════════════════════════════════════════════════ */
.r26-stats {
  padding: var(--r26-space-2xl) 0;
  text-align: center;
}

.r26-stats-header {
  margin-bottom: var(--r26-space-xl);
}

.r26-stats-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-teal);
  margin-bottom: 8px;
}

.r26-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--r26-space-md);
  max-width: 960px;
  margin: 0 auto;
}

.r26-stat-card {
  padding: 28px 20px;
  border-radius: var(--r26-radius-lg);
  background: var(--r26-glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--r26-glass-border);
  transition: transform var(--r26-duration-base) var(--r26-ease-out),
              border-color var(--r26-duration-fast) ease;
}

.r26-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--r26-glass-border-hover);
}

.r26-stat-value {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--r26-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.r26-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--r26-text-secondary);
}

.r26-stat-description {
  font-size: 12px;
  color: var(--r26-text-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 8 — TRUST & PROOF
   ══════════════════════════════════════════════════════════════ */
.r26-trust {
  padding: var(--r26-space-2xl) 0;
}

.r26-trust-header {
  text-align: center;
  margin-bottom: var(--r26-space-xl);
}

.r26-trust-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r26-accent-green);
  margin-bottom: 8px;
}

.r26-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r26-space-sm);
  justify-content: center;
  margin-bottom: var(--r26-space-xl);
}

.r26-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r26-radius-md);
  border: 1px solid var(--r26-glass-border);
  background: var(--r26-glass-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--r26-text-secondary);
  cursor: help;
  transition: all var(--r26-duration-fast) ease;
  position: relative;
}

.r26-trust-badge:hover {
  border-color: var(--r26-glass-border-hover);
  color: var(--r26-text-primary);
  background: var(--r26-bg-glass-hover);
}

/* Badge tooltip */
.r26-trust-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: var(--r26-radius-sm);
  background: var(--r26-bg-tertiary);
  border: 1px solid var(--r26-glass-border);
  font-size: 11px;
  font-weight: 400;
  color: var(--r26-text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--r26-duration-fast) ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.r26-trust-badge:hover .r26-trust-tooltip {
  opacity: 1;
}

/* Trust stats */
.r26-trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--r26-space-md);
  max-width: 960px;
  margin: 0 auto;
}

.r26-trust-stat {
  text-align: center;
  padding: 20px;
  border-radius: var(--r26-radius-md);
  background: var(--r26-glass-bg);
  border: 1px solid var(--r26-glass-border);
}

.r26-trust-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--r26-text-primary);
  letter-spacing: -0.02em;
}

.r26-trust-stat-label {
  font-size: 12px;
  color: var(--r26-text-secondary);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 9 — FINAL CTA
   ══════════════════════════════════════════════════════════════ */
.r26-cta {
  padding: var(--r26-space-2xl) 0;
}

.r26-cta-card {
  text-align: center;
  padding: var(--r26-space-xl) var(--r26-space-lg);
  border-radius: var(--r26-radius-lg);
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.r26-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.03), transparent 60%);
  pointer-events: none;
}

.r26-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r26-radius-lg);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--r26-space-md);
}

.r26-cta-icon i {
  font-size: 22px;
  color: var(--r26-accent-indigo);
}

.r26-cta-headline {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--r26-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.r26-cta-description {
  font-size: 15px;
  color: var(--r26-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--r26-space-lg);
  line-height: 1.6;
}

.r26-cta-buttons {
  display: flex;
  gap: var(--r26-space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.r26-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r26-radius-md);
  background: var(--r26-gradient-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--r26-duration-base) var(--r26-ease-out),
              box-shadow var(--r26-duration-base) var(--r26-ease-out);
  animation: r26CtaGlow 2s ease-in-out 3;
}

.r26-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.r26-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r26-radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--r26-text-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--r26-duration-fast) ease;
}

.r26-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.r26-cta-trust {
  margin-top: var(--r26-space-md);
  padding: 10px 16px;
  border-radius: var(--r26-radius-sm);
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--r26-text-secondary);
}

/* ══════════════════════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ══════════════════════════════════════════════════════════════ */

@keyframes r26FadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes r26CtaGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  }
  50% {
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
  }
}

@keyframes r26TypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1.1); }
}

@keyframes r26ParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .r26-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .r26-hero-text {
    flex: none;
    max-width: 100%;
    order: 2;
  }

  .r26-hero-visual {
    flex: none;
    max-width: 500px;
    order: 1;
  }

  .r26-hero-description {
    margin: 0 auto var(--r26-space-lg);
  }

  .r26-hero-ctas {
    justify-content: center;
  }

  .r26-hero-badges {
    justify-content: center;
  }

  .r26-gap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .r26-appexi-grid {
    grid-template-columns: 1fr;
  }

  .r26-trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .r26-layer-systems {
    gap: var(--r26-space-sm);
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .r26-section {
    padding: var(--r26-space-xl) 0;
  }

  .r26-hero {
    min-height: auto;
    padding-top: var(--r26-space-lg);
  }

  .r26-gap-grid {
    grid-template-columns: 1fr;
  }

  .r26-truth-grid {
    grid-template-columns: 1fr;
  }

  .r26-truth-col-traditional {
    border-right: none;
    border-bottom: 1px solid rgba(239, 68, 68, 0.08);
  }

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

  .r26-trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .r26-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--r26-space-sm);
  }

  .r26-layer-systems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--r26-space-sm);
  }

  .r26-layer-top {
    padding: 16px 24px;
  }

  .r26-layer-top-label {
    font-size: 22px;
  }

  .r26-conversation-bubble {
    max-width: 100%;
  }

  .r26-matrix-wrapper {
    margin: 0 calc(-1 * var(--r26-space-lg));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .r26-wheel-legend {
    flex-direction: column;
    align-items: center;
    gap: var(--r26-space-sm);
  }

  .r26-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .r26-cta-primary,
  .r26-cta-secondary {
    justify-content: center;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .r26-stats-grid {
    grid-template-columns: 1fr;
  }

  .r26-trust-stats {
    grid-template-columns: 1fr;
  }

  .r26-trust-badges {
    grid-template-columns: 1fr;
  }

  .r26-layer-systems {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════════════════ */

/* Focus visible ring for keyboard navigation */
.r26-hero-cta-primary:focus-visible,
.r26-hero-cta-secondary:focus-visible,
.r26-hero-cta-tertiary:focus-visible,
.r26-cta-primary:focus-visible,
.r26-cta-secondary:focus-visible {
  outline: 2px solid var(--r26-accent-blue);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .r26-hero-eyebrow,
  .r26-hero-headline,
  .r26-hero-subline,
  .r26-hero-description,
  .r26-hero-ctas,
  .r26-hero-badges,
  .r26-hero-visual,
  .r26-wheel-legend {
    opacity: 1;
    animation: none;
  }

  .r26-conversation-typing-dot {
    animation: none;
  }

  .r26-layer-particle {
    animation: none;
    opacity: 0.5;
  }

  .r26-cta-primary {
    animation: none;
  }

  .r26-gap-card,
  .r26-stat-card,
  .r26-truth-row {
    transition: none;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Assessment Workspace — Compact Enterprise Layout
   ═══════════════════════════════════════════════════════════════════
   Reduces card height from ~700-900px to ~280-320px.
   3-4 questions visible per screen at 1440px.
   Uses --ds-* tokens throughout. No hardcoded colours.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Assessment Workspace — Compact Enterprise Layout
   ═══════════════════════════════════════════════════════════════════
   Reduces card height from ~700-900px to ~280-320px.
   3-4 questions visible per screen at 1440px.
   Uses --ds-* tokens throughout. No hardcoded colours.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Container ─────────────────────────────────────────────────── */
.aws-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--ds-bg-primary, #0f172a), var(--ds-bg-secondary, #1e293b));
}

/* ─── Staggered card entrance animation ─────────────────────────── */
@keyframes aws-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aws-card {
  animation: aws-card-in 0.25s ease-out both;
}

/* Stagger each card by index via inline style on the element */
/* style="--card-index: N" in the view generates this */
.aws-card:nth-child(1) { animation-delay: 0.00s; }
.aws-card:nth-child(2) { animation-delay: 0.04s; }
.aws-card:nth-child(3) { animation-delay: 0.08s; }
.aws-card:nth-child(4) { animation-delay: 0.12s; }
.aws-card:nth-child(5) { animation-delay: 0.16s; }
.aws-card:nth-child(6) { animation-delay: 0.20s; }
.aws-card:nth-child(7) { animation-delay: 0.24s; }
.aws-card:nth-child(8) { animation-delay: 0.28s; }
.aws-card:nth-child(9) { animation-delay: 0.32s; }
.aws-card:nth-child(10) { animation-delay: 0.36s; }

/* ─── Premium scrollbar ─────────────────────────────────────────── */
.aws-main::-webkit-scrollbar {
  width: 6px;
}
.aws-main::-webkit-scrollbar-track {
  background: transparent;
}
.aws-main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.aws-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

.aws-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 16px;
}

@media (max-width: 1024px) {
  .aws-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Compact Sidebar ──────────────────────────────────────────── */
.aws-sidebar {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aws-cat-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.aws-cat-header {
  margin-bottom: 8px;
}

.aws-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  margin-bottom: 4px;
  line-height: 1.3;
}

.aws-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(167,139,250,0.1);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.15);
}

.aws-domain-badge i {
  font-size: 9px;
}

.aws-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.aws-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.aws-ring-svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.aws-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
}

.aws-count-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  display: block;
  line-height: 1.2;
}

.aws-count-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.aws-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.aws-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #818cf8, #a78bfa);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle shimmer on progress fill */
.aws-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: aws-shimmer 2s ease-in-out infinite;
}

@keyframes aws-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Question Dot Grid ───────────────────────────────────────── */
.aws-q-grid {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.aws-q-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-primary, #ffffff);
  margin-bottom: 8px;
}

.aws-q-grid-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.aws-q-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.aws-q-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.aws-q-dot.current {
  color: #ffffff;
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.3);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(99,102,241,0.15);
}

.aws-q-dot.answered {
  color: #34d399;
}

.aws-q-dot.answered::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  transition: transform 0.15s ease;
}

.aws-q-dot:hover {
  background: rgba(255,255,255,0.06);
  color: var(--ds-text-primary, #ffffff);
  transform: scale(1.1);
}

.aws-q-dot:active {
  transform: scale(0.95);
}

/* ─── Questions Per Page ──────────────────────────────────────── */
.aws-ppp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.aws-ppp-select {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ds-text-primary, #ffffff);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.aws-ppp-select option {
  background: #1e293b;
  color: #ffffff;
}

/* ─── Main Workspace ──────────────────────────────────────────── */
.aws-main {
  min-width: 0;
}

.aws-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.aws-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  line-height: 1.2;
  margin-bottom: 2px;
}

.aws-subhead {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.aws-subhead strong {
  color: rgba(255,255,255,0.7);
}

/* ─── Compact Score Guide ─────────────────────────────────────── */
.aws-score-guide {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.aws-score-guide i {
  font-size: 11px;
  margin-right: 2px;
}

.aws-sg-pill {
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 10px;
}

.sg-1 { background: rgba(248,113,113,0.1); color: #f87171; }
.sg-2 { background: rgba(251,146,60,0.1); color: #fb923c; }
.sg-3 { background: rgba(251,191,36,0.1); color: #fbbf24; }
.sg-4 { background: rgba(52,211,153,0.1); color: #34d399; }
.sg-5 { background: rgba(52,211,153,0.15); color: #34d399; }
.sg-na { background: rgba(148,163,184,0.08); color: #94a3b8; }

/* ─── Compact Question Card ───────────────────────────────────── */
.aws-card {
  border-radius: 10px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(30,41,59,0.6), rgba(30,41,59,0.4));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aws-card.answered {
  border-color: rgba(52,211,153,0.15);
  background: linear-gradient(135deg, rgba(52,211,153,0.04), rgba(30,41,59,0.4));
}

.aws-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.aws-card:has(.aws-score-pill:focus-within) {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.1);
}

.aws-card-body {
  padding: 10px 12px;
}

/* ─── Question Row ────────────────────────────────────────────── */
.aws-q-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.aws-q-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  transition: all 0.15s;
}

.aws-q-num.done {
  background: rgba(52,211,153,0.1);
  color: #34d399;
}

.aws-q-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-text-primary, #ffffff);
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.aws-check {
  color: #34d399;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Score Pills — Compact, Touch-Friendly ───────────────────── */
.aws-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.aws-score-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.aws-score-pill:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.05);
  transform: translateY(-1px);
}

.aws-score-pill:active {
  transform: translateY(0px);
  transition-duration: 0.05s;
}

.aws-score-pill.selected-1,
.aws-score-pill.selected-2,
.aws-score-pill.selected-3,
.aws-score-pill.selected-4,
.aws-score-pill.selected-5,
.aws-score-pill.selected-na {
  transform: scale(1.02);
}

.aws-score-pill.selected-1 {
  border-color: rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.08);
  color: #f87171;
}

.aws-score-pill.selected-2 {
  border-color: rgba(251,146,60,0.35);
  background: rgba(251,146,60,0.08);
  color: #fb923c;
}

.aws-score-pill.selected-3 {
  border-color: rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
}

.aws-score-pill.selected-4 {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.08);
  color: #34d399;
}

.aws-score-pill.selected-5 {
  border-color: rgba(52,211,153,0.4);
  background: rgba(52,211,153,0.1);
  color: #34d399;
}

.aws-score-pill.selected-na {
  border-color: rgba(148,163,184,0.25);
  background: rgba(148,163,184,0.06);
  color: #94a3b8;
}

.aws-pill-value {
  font-weight: 700;
  font-size: 13px;
}

.aws-pill-label {
  font-size: 11px;
  opacity: 0.6;
}

/* ─── Evidence + Comments Row ─────────────────────────────────── */
.aws-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .aws-input-row {
    grid-template-columns: 1fr;
  }
}

.aws-input-group {
  position: relative;
}

.aws-input-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  pointer-events: none;
}

.aws-textarea {
  width: 100%;
  padding: 6px 8px 6px 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}

.aws-textarea:focus {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.03);
}

.aws-textarea::placeholder {
  color: rgba(255,255,255,0.15);
}

/* Auto-expand — grow height when user types */
.aws-textarea:not(:placeholder-shown) {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}

/* ─── Attachments Accordion ────────────────────────────────────── */
.aws-attach {
  margin-top: 0;
  border: none;
}

.aws-attach-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  list-style: none;
  user-select: none;
}

.aws-attach-summary::-webkit-details-marker {
  display: none;
}

.aws-attach-summary:hover {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
}

.aws-attach-summary i {
  font-size: 11px;
}

.aws-attach-hint {
  opacity: 0.5;
  font-size: 11px;
}

.aws-attach-body {
  padding: 8px 0 0 0;
}

/* ─── Compact Sticky Footer ────────────────────────────────────── */
.aws-footer {
  position: sticky;
  bottom: 0.5rem;
  margin-top: 8px;
}

.aws-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.aws-footer-left,
.aws-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.aws-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  border: 1px solid transparent;
  line-height: 1.3;
}

.aws-btn i {
  font-size: 11px;
}

.aws-btn-ghost {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.06);
}

.aws-btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

.aws-btn-draft {
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  border-color: rgba(99,102,241,0.2);
}

.aws-btn-draft:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
}

.aws-btn-primary {
  background: #818cf8;
  color: #ffffff;
  border-color: rgba(99,102,241,0.3);
}

.aws-btn-primary:hover {
  background: #6d78f4;
}

.aws-btn-complete {
  background: #34d399;
  color: #0f172a;
  border-color: rgba(52,211,153,0.25);
}

.aws-btn-complete:hover {
  background: #2ec98d;
}

.aws-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.aws-status {
  font-size: 12px;
  text-align: center;
  flex: 1;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aws-sidebar {
    position: static;
  }

  .aws-heading {
    font-size: 18px;
  }

  .aws-card-body {
    padding: 8px 10px;
  }

  .aws-score-row {
    gap: 3px;
  }

  .aws-score-pill {
    padding: 4px 8px;
    font-size: 12px;
  }

  .aws-footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}

/* ─── WCAG Focus Styles ───────────────────────────────────────── */
.aws-btn:focus-visible,
.aws-score-pill:focus-within,
.aws-q-dot:focus-visible,
.aws-ppp-select:focus-visible,
.aws-textarea:focus-visible,
.aws-attach-summary:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.aws-score-pill:focus-within {
  outline: 2px solid #818cf8;
  outline-offset: 1px;
}

/* ─── Take Page Button Classes (CSP-compliant, no inline handlers) ── */
.take-btn-ghost {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}
.take-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.take-btn-primary {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(96,165,250,0.1);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.2);
  cursor: pointer;
  transition: background 0.15s ease;
}
.take-btn-primary:hover {
  background: rgba(96,165,250,0.2);
}

.take-btn-clear {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  transition: color 0.15s ease;
}
.take-btn-clear:hover {
  color: rgba(255,255,255,0.7);
}

/* ─── Category Card Staggered Animation ────────────────────────── */
@keyframes cat-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#categoryGrid > a {
  animation: cat-card-in 0.35s ease-out both;
}

/* Stagger via inline style --cat-index set on each card */
/* nth-child fallback */
#categoryGrid > a:nth-child(1)  { animation-delay: 0.00s; }
#categoryGrid > a:nth-child(2)  { animation-delay: 0.04s; }
#categoryGrid > a:nth-child(3)  { animation-delay: 0.08s; }
#categoryGrid > a:nth-child(4)  { animation-delay: 0.12s; }
#categoryGrid > a:nth-child(5)  { animation-delay: 0.16s; }
#categoryGrid > a:nth-child(6)  { animation-delay: 0.20s; }
#categoryGrid > a:nth-child(7)  { animation-delay: 0.24s; }
#categoryGrid > a:nth-child(8)  { animation-delay: 0.28s; }
#categoryGrid > a:nth-child(9)  { animation-delay: 0.32s; }
#categoryGrid > a:nth-child(10) { animation-delay: 0.36s; }
#categoryGrid > a:nth-child(11) { animation-delay: 0.40s; }
#categoryGrid > a:nth-child(12) { animation-delay: 0.44s; }
#categoryGrid > a:nth-child(13) { animation-delay: 0.48s; }
#categoryGrid > a:nth-child(14) { animation-delay: 0.52s; }
#categoryGrid > a:nth-child(15) { animation-delay: 0.56s; }
#categoryGrid > a:nth-child(16) { animation-delay: 0.60s; }
#categoryGrid > a:nth-child(17) { animation-delay: 0.64s; }
#categoryGrid > a:nth-child(18) { animation-delay: 0.68s; }
#categoryGrid > a:nth-child(19) { animation-delay: 0.72s; }
#categoryGrid > a:nth-child(20) { animation-delay: 0.76s; }

.take-link-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s ease;
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.2);
  text-decoration: none;
}
.take-link-amber:hover {
  background: rgba(251,191,36,0.2);
}

.take-link-indigo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s ease;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
  text-decoration: none;
}
.take-link-indigo:hover {
  background: rgba(99,102,241,0.25);
}
/* ══════════════════════════════════════════════════════════════
   APPEX360 Homepage — Release 27 Enterprise Redesign
   Premium SaaS landing page — Stripe × Apple × Palantir quality
   
   Tokens:    --r27-* for all design decisions
   Sections:  r27-* BEM-style classes
   Anims:     @keyframes defined at bottom
   Responsive: 1280px / 1024px / 768px / 480px
   ══════════════════════════════════════════════════════════════ */

/* ═══ DESIGN TOKENS ═══ */
:root {
  /* ══════════════════════════════════════════════════════════════
     R27 DESIGN TOKENS — HARDCODED DARK VALUES
     
     The R27 homepage is an explicit DARK design. Every surface,
     text, and accent color is hardcoded so that theme changes
     (classic, light, corporate blue) NEVER cause:
     
       - dark text on dark backgrounds
       - light text on light backgrounds
       - contrast failures
     
     NEVER replace these with var(--text-primary) or other
     theme-relative variables — they resolve to dark values on
     light themes and will break contrast.
     ══════════════════════════════════════════════════════════════ */

  /* Surfaces */
  --r27-surface: #07070D;
  --r27-surface-alt: #0C0C14;
  --r27-surface-card: #111119;
  --r27-surface-glass: rgba(17, 17, 25, 0.7);

  /* Borders */
  --r27-border: rgba(255, 255, 255, 0.06);
  --r27-border-light: rgba(255, 255, 255, 0.1);
  --r27-glass-border: rgba(255, 255, 255, 0.08);

  /* Text — explicit light colors for WCAG AA on dark backgrounds */
  --r27-text-primary: #F1F1F6;
  --r27-text-secondary: #9C9CB0;
  --r27-text-muted: #6B6B82;

  /* Accents */
  --r27-accent: #6366F1;
  --r27-accent-hover: #818CF8;
  --r27-accent-subtle: rgba(99, 102, 241, 0.1);
  --r27-accent-warm: #F59E0B;
  --r27-accent-green: #22C55E;
  --r27-accent-red: #EF4444;
  --r27-accent-teal: #14B8A6;

  /* Gradients */
  --r27-gradient-hero: linear-gradient(135deg, #07070D 0%, #0F0F24 50%, #07070D 100%);
  --r27-gradient-cta: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --r27-gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* Glass */
  --r27-glass-bg: rgba(17, 17, 25, 0.6);

  /* Shadows */
  --r27-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --r27-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --r27-shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --r27-shadow-glow: 0 0 20px rgba(99,102,241,0.15);

  /* Typography */
  --r27-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r27-font-mono: "JetBrains Mono", "SF Mono", monospace;
}

/* ═══ RESET / BASE ═══ */
.r27-page {
  background: var(--r27-surface);
  color: var(--r27-text-primary);
  font-family: var(--r27-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Focus-visible for keyboard navigation */
.r27-page *:focus-visible {
  outline: 2px solid var(--r27-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevent iOS zoom on input focus */
.r27-page input, .r27-page select, .r27-page textarea, .r27-page button {
  font-size: 16px;
}

/* Selection styling */
.r27-page ::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ═══ ANIMATION KEYFRAMES ═══ */
@keyframes r27-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes r27-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes r27-scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes r27-slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes r27-glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
  50%      { box-shadow: 0 0 40px rgba(99,102,241,0.3); }
}
@keyframes r27-bgDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes r27-particleRise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.5); }
  50%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}
@keyframes r27-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
@keyframes r27-typewriterCursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes r27-counterPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Reduced motion — disable all animations */
@media (prefers-reduced-motion: reduce) {
  .r27-animate, .r27-animate * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .r27-cta-glow {
    animation: none !important;
    opacity: 0.55;
  }
}

/* ═══ NAVIGATION BAR ═══ */
.r27-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.r27-nav.scrolled {
  background: var(--r27-surface-glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--r27-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.r27-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--r27-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.r27-nav-logo img, .r27-nav-logo svg {
  height: 32px;
  width: auto;
}
.r27-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.r27-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--r27-text-secondary);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.r27-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--r27-accent);
  transition: width 0.2s ease;
  border-radius: 1px;
}
.r27-nav-link:hover {
  color: var(--r27-text-primary);
}
.r27-nav-link:hover::after {
  width: 100%;
}
.r27-nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--r27-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.r27-nav-cta:hover {
  transform: scale(1.02);
  box-shadow: var(--r27-shadow-glow);
}
.r27-nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--r27-text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 768px) {
  .r27-nav-links { display: none; }
  .r27-nav-hamburger { display: block; }
}

/* ═══ SECTION BASE — R37 Premium Polish: stronger type hierarchy,
       more vertical rhythm (+15%) while keeping consistent rhythm ═══ */
.r27-section {
  padding: 126px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1600px) {
  .r27-section { max-width: min(90vw, 1800px); }
}
.r27-section-full {
  padding: 120px 24px;
  width: 100%;
}
.r27-section-header {
  text-align: center;
  margin-bottom: 72px;
}
.r27-section-eyebrow {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--r27-accent-hover);
  margin-bottom: 18px;
}
.r27-section-title {
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--r27-text-primary);
  margin: 0 auto 22px;
  max-width: 800px;
}
.r27-section-subtitle {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--r27-text-secondary);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .r27-section { padding: 62px 16px; }
  .r27-section-full { padding: 60px 16px; }
  .r27-section-header { margin-bottom: 44px; }
}

/* ═══ HERO SECTION ═══ */
.r27-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r27-gradient-hero);
  background-size: 200% 200%;
  animation: r27-bgDrift 30s ease-in-out infinite;
  padding: 104px 24px 72px;
  position: relative;
  overflow: hidden;
}
.r27-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.03) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(20,184,166,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.r27-hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1280px;
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (min-width: 1600px) {
  .r27-hero-inner { max-width: min(90vw, 1800px); }
}
.r27-hero-text {
  flex: 0 0 55%;
  max-width: 55%;
}
.r27-hero-headline {
  font-size: clamp(50px, 6.8vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--r27-text-primary);
  margin: 0 0 18px;
}
.r27-hero-subline {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--r27-text-secondary);
  margin: 0 0 36px;
  max-width: 600px;
}
.r27-hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.r27-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #8B5CF6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.r27-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.r27-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--r27-border-light);
  color: var(--r27-text-primary);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.r27-btn-secondary:hover {
  border-color: var(--r27-accent);
  background: var(--r27-accent-subtle);
  transform: translateY(-2px);
}
.r27-btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--r27-text-secondary);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.r27-btn-tertiary:hover {
  color: var(--r27-text-primary);
}
.r27-hero-credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.r27-hero-cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.15);
  font-size: 12px;
  font-weight: 500;
  color: var(--r27-accent-hover);
}
.r27-hero-cred-badge i {
  font-size: 12px;
}
.r27-hero-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.r27-hero-social-label {
  font-size: 13px;
  color: var(--r27-text-muted);
  white-space: nowrap;
}
.r27-hero-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}
.r27-hero-logo {
  height: 28px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}
.r27-hero-logo:hover {
  opacity: 0.6;
}
.r27-hero-visual {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
  aspect-ratio: 4/3;
  width: 100%;
}
@media (max-width: 1024px) {
  .r27-hero-inner { flex-direction: column; gap: 40px; }
  .r27-hero-text, .r27-hero-visual { flex: 0 0 100%; max-width: 100%; }
  .r27-hero-text { text-align: center; }
  .r27-hero-subline { margin: 0 auto 32px; }
  .r27-hero-ctas { justify-content: center; }
}
@media (max-width: 768px) {
  .r27-hero { min-height: auto; padding: 88px 16px 56px; }
  .r27-hero-headline { font-size: clamp(34px, 10vw, 50px); }
  .r27-hero-ctas { flex-direction: column; width: 100%; }
  .r27-hero-ctas .r27-btn-primary,
  .r27-hero-ctas .r27-btn-secondary,
  .r27-hero-ctas .r27-btn-tertiary { width: 100%; justify-content: center; }
  .r27-hero-visual { display: none; }
  .r27-hero-credibility { justify-content: center; }
  .r27-hero-social { flex-direction: column; align-items: center; gap: 12px; }
  .r27-hero-logos { gap: 16px; }
  .r27-nav-links.r27-nav-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--r27-surface-glass); backdrop-filter: blur(16px); padding: 16px 24px; border-bottom: 1px solid var(--r27-border); gap: 16px; }
}

/* ═══ INTELLIGENCE GAP SECTION ═══ */
.r27-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.r27-gap-card {
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 300px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-gap-card:hover {
  transform: translateY(-1px);
  border-color: var(--r27-border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect card text or icons ── */
.r27-gap-card:hover .r27-gap-card-title,
.r27-gap-card:hover .r27-gap-card-desc,
.r27-gap-card:hover .r27-gap-card-impact,
.r27-gap-card:hover i {
  opacity: 1 !important;
}
.r27-gap-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 20px;
}
.r27-gap-card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 12px;
}
.r27-gap-card-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--r27-text-secondary);
  margin-bottom: 18px;
}
.r27-gap-card-impact {
  font-size: 15px;
  font-weight: 600;
  color: #fbbf24;
  padding: 9px 14px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 10px;
  display: inline-block;
}
@media (max-width: 1024px) {
  .r27-gap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .r27-gap-grid { grid-template-columns: 1fr; }
}

/* ═══ ARCHITECTURE SECTION ═══ */
.r27-arch {
  background: var(--r27-surface-alt);
  padding: 126px 24px;
  text-align: center;
}
.r27-arch-diagram {
  max-width: 960px;
  margin: 56px auto 0;
  position: relative;
}
.r27-arch-layer {
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 8px;
  position: relative;
  border: 1px solid var(--r27-border);
}
.r27-arch-layer-boardroom {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  border-color: rgba(99,102,241,0.15);
}
.r27-arch-layer-appex360 {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
  border-color: var(--r27-accent);
  box-shadow: 0 0 30px rgba(99,102,241,0.1);
}
.r27-arch-layer-systems {
  background: rgba(255,255,255,0.02);
  border-color: var(--r27-border);
}
.r27-arch-layer-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.r27-arch-layer-label i {
  margin-right: 8px;
}
.r27-arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.r27-arch-layer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--r27-text-secondary);
  font-weight: 500;
}
.r27-arch-layer-item i {
  font-size: 14px;
  color: var(--r27-accent-teal);
}
.r27-arch-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  color: var(--r27-accent);
  font-size: 14px;
  opacity: 0.5;
}
.r27-arch-caption {
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--r27-text-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
.r27-arch-dataflow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.r27-arch-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--r27-accent);
  opacity: 0;
  animation: r27-particleRise 3s ease-out infinite;
}
.r27-arch-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.r27-arch-particle:nth-child(2) { left: 40%; animation-delay: 0.8s; }
.r27-arch-particle:nth-child(3) { left: 60%; animation-delay: 1.6s; }
.r27-arch-particle:nth-child(4) { left: 80%; animation-delay: 2.4s; }
.r27-arch-particle:nth-child(5) { left: 50%; animation-delay: 0.4s; }

/* ═══ WORKFLOW SECTION ═══ */
.r27-workflow {
  text-align: center;
}
.r27-workflow-stages {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.r27-workflow-stage {
  flex: 0 0 200px;
  padding: 28px 20px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.r27-workflow-stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--r27-shadow-md);
  border-color: var(--r27-accent);
}
.r27-workflow-stage-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--r27-accent);
  margin: 0 auto 14px;
}
.r27-workflow-stage-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 8px;
}
.r27-workflow-stage-desc {
  font-size: 14px;
  color: var(--r27-text-muted);
  line-height: 1.6;
}
.r27-workflow-arrow {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r27-text-muted);
  font-size: 20px;
  position: relative;
}
.r27-workflow-arrow::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  border-top: 1px dashed var(--r27-border-light);
  position: absolute;
  top: 50%;
}
@media (max-width: 1024px) {
  .r27-workflow-stages { flex-wrap: wrap; gap: 16px; }
  .r27-workflow-stage { flex: 0 0 calc(33% - 16px); }
  .r27-workflow-arrow { display: none; }
}
@media (max-width: 768px) {
  .r27-workflow-stage { flex: 0 0 100%; }
}

/* ═══ APPEXi SECTION ═══ */
.r27-appexi {
  background: var(--r27-surface-alt);
  padding: 126px 24px;
}
/* ★ APPEXi chat panel keeps a consistent dark theme regardless of
   the page theme — it simulates a real AI chat interface where
   dark backgrounds and light text are expected. The hardcoded
   colours prevent theme bleed (stat-cards-style regression). */
.r27-appexi-chat {
  background: #0D0E1A;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 24px;
  min-height: 340px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Chat header — mirrors the real APPEXi floating assistant ── */
.r27-appexi-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.r27-appexi-chat-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.r27-appexi-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
  border: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5B4FC;
  font-size: 16px;
  flex-shrink: 0;
}
.r27-appexi-chat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F1F6;
  line-height: 1.2;
}
.r27-appexi-chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(148,163,184,0.7);
  line-height: 1.4;
}
.r27-appexi-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.r27-appexi-chat-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #34D399;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.r27-appexi-chat-header-tag i {
  font-size: 8px;
}
/* ── Typewriter message container (hidden until a question is asked) ── */
.r27-appexi-chat-message {
  display: none;
}
.r27-appexi-chat-message:not(:empty) {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.07);
}
.r27-appexi-inner {
  display: flex;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 1600px) {
  .r27-appexi-inner { max-width: min(90vw, 1800px); }
}
.r27-appexi-left {
  flex: 0 0 40%;
}
.r27-appexi-right {
  flex: 0 0 60%;
}
.r27-appexi-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.r27-appexi-q-btn {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.12);
  color: var(--r27-text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.r27-appexi-q-btn:hover {
  background: rgba(99,102,241,0.2);
  transform: scale(1.02);
}
.r27-appexi-q-btn i {
  color: var(--r27-accent);
  font-size: 14px;
}

.r27-appexi-chat-message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--r27-text-primary);
  white-space: pre-wrap;
}
.r27-appexi-chat-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--r27-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: r27-typewriterCursor 0.8s step-end infinite;
}
.r27-appexi-chat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--r27-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.r27-appexi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.r27-appexi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--r27-border);
  font-size: 12px;
  color: var(--r27-text-secondary);
  font-weight: 500;
}
.r27-appexi-badge i {
  color: var(--r27-accent-teal);
  font-size: 12px;
}
@media (max-width: 1024px) {
  .r27-appexi-inner { flex-direction: column; gap: 32px; }
  .r27-appexi-left, .r27-appexi-right { flex: 0 0 100%; }
}

/* ═══ COMPARISON MATRIX SECTION ═══ */
/* R37 polish: tighter header-to-table spacing for the dense matrix */
#comparison .r27-section-header { margin-bottom: 44px; }
.r27-matrix-wrapper {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid var(--r27-border);
}
.r27-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}
.r27-matrix th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  background: var(--r27-surface-alt);
  color: var(--r27-text-primary);
  border-bottom: 1px solid var(--r27-border);
  white-space: nowrap;
}
.r27-matrix th:first-child {
  position: sticky;
  left: 0;
  background: var(--r27-surface-alt);
  z-index: 2;
}
.r27-matrix th.r27-matrix-col-highlight {
  background: var(--r27-accent-subtle);
  color: var(--r27-accent-hover);
}
.r27-matrix td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--r27-border);
  color: var(--r27-text-secondary);
  text-align: center;
  position: relative;
}
.r27-matrix td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--r27-text-primary);
  position: sticky;
  left: 0;
  background: var(--r27-surface-card);
  z-index: 1;
}
.r27-matrix td.r27-matrix-col-highlight {
  background: var(--r27-accent-subtle);
}
.r27-matrix tr:hover td {
  background: rgba(255,255,255,0.02);
}
.r27-matrix tr:hover td.r27-matrix-col-highlight {
  background: rgba(99,102,241,0.12);
}
.r27-matrix-cell-yes {
  color: var(--r27-accent-green);
  font-weight: 600;
}
.r27-matrix-cell-partial {
  color: var(--r27-accent-warm);
  font-weight: 600;
}
.r27-matrix-cell-no {
  color: var(--r27-text-muted);
}
.r27-matrix-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--r27-text-secondary);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: var(--r27-shadow-lg);
}
.r27-matrix td:hover .r27-matrix-tooltip {
  display: block;
}
.r27-matrix-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.r27-matrix-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--r27-text-secondary);
}
.r27-matrix-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.r27-matrix-legend-dot-green { background: var(--r27-accent-green); }
.r27-matrix-legend-dot-amber { background: var(--r27-accent-warm); }
.r27-matrix-legend-dot-grey { background: var(--r27-text-muted); }
@media (max-width: 768px) {
  .r27-matrix { font-size: 12px; min-width: 600px; }
  .r27-matrix th, .r27-matrix td { padding: 10px 12px; }
}

/* ═══ STAT COUNTERS SECTION ═══ */
/* R37 polish: platform metrics become the visual anchor of the page */
.r27-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin: 56px auto 0;
  max-width: 1200px;
}
@media (min-width: 1600px) {
  .r27-stats-grid { max-width: min(80vw, 1600px); }
}
.r27-stat-card {
  text-align: center;
  padding: 30px 18px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #A78BFA);
  opacity: 0.65;
}
.r27-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}
.r27-stat-card:hover .r27-stat-number,
.r27-stat-card:hover .r27-stat-label,
.r27-stat-card:hover i {
  opacity: 1 !important;
}
.r27-stat-number {
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F1F1F6 30%, #C7D2FE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.r27-stat-label {
  font-size: 14px;
  color: var(--r27-text-secondary);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .r27-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .r27-stat-card { padding: 20px 14px; min-height: 150px; }
  .r27-stat-number { min-height: 56px; }
}

/* ═══ TRUST & CREDIBILITY SECTION ═══ */
.r27-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.r27-trust-badge {
  text-align: center;
  padding: 24px 12px;
  border-radius: 12px;
  border: 1px solid var(--r27-border);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-trust-badge:hover {
  border-color: var(--r27-border-light);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
.r27-trust-badge:hover .r27-trust-badge-title,
.r27-trust-badge:hover .r27-trust-badge-label,
.r27-trust-badge:hover .r27-trust-badge-icon {
  opacity: 1 !important;
}
.r27-trust-badge-icon {
  font-size: 24px;
  color: var(--r27-accent-teal);
  margin-bottom: 12px;
}
.r27-trust-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--r27-text-primary);
  margin-bottom: 4px;
}
.r27-trust-badge-label {
  font-size: 12px;
  color: var(--r27-text-muted);
}
.r27-trust-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--r27-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--r27-glass-border);
  font-size: 12px;
  line-height: 1.5;
  color: var(--r27-text-secondary);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: var(--r27-shadow-lg);
  min-width: 200px;
}
.r27-trust-badge:hover .r27-trust-tooltip {
  display: block;
}
@media (max-width: 1024px) {
  .r27-trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ═══ FINAL CTA SECTION — R37 Premium Conversion Panel ═══ */
/* Layered glass: ambient colour glows + grid texture + frosted panel */
.r27-cta {
  position: relative;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 18% 18%, rgba(99,102,241,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 82% 28%, rgba(139,92,246,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(20,184,166,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #0B0D1A 0%, #10122B 45%, #0B0D1A 100%);
}
.r27-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}
.r27-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: r27-cta-breathe 7s ease-in-out infinite;
}
.r27-cta-glow-a {
  width: 420px;
  height: 420px;
  top: -140px;
  left: 8%;
  background: rgba(99,102,241,0.28);
}
.r27-cta-glow-b {
  width: 360px;
  height: 360px;
  bottom: -120px;
  right: 6%;
  background: rgba(139,92,246,0.24);
  animation-delay: 2.5s;
}
.r27-cta-panel {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.r27-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(129,140,248,0.25);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A5B4FC;
  margin-bottom: 24px;
}
.r27-cta-headline {
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 auto 20px;
  max-width: 800px;
  text-shadow: 0 2px 24px rgba(99,102,241,0.25);
}
.r27-cta-subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.r27-cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.r27-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #8B5CF6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.r27-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.r27-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.r27-cta-btn-secondary:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.r27-cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.r27-cta-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.r27-cta-perk i {
  color: #34D399;
}
.r27-cta-trust {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.r27-cta-trust i {
  margin: 0 4px;
}
.r27-cta-trust span {
  margin: 0 8px;
}
@keyframes r27-cta-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 768px) {
  .r27-cta { padding: 72px 16px; }
  .r27-cta-panel { padding: 44px 20px; border-radius: 20px; }
  .r27-cta-buttons { flex-direction: column; align-items: center; }
  .r27-cta-btn-primary, .r27-cta-btn-secondary { width: 100%; justify-content: center; }
}

/* ═══ FOOTER ═══ */
.r27-footer {
  background: var(--r27-surface-alt);
  border-top: 1px solid var(--r27-border);
  padding: 72px 24px 36px;
}
.r27-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (min-width: 1600px) {
  .r27-footer-inner { max-width: min(90vw, 1800px); }
}
.r27-footer-brand p {
  font-size: 14px;
  color: var(--r27-text-secondary);
  line-height: 1.6;
  margin: 12px 0 20px;
}
.r27-footer-social {
  display: flex;
  gap: 12px;
}
.r27-footer-social a {
  color: var(--r27-text-muted);
  font-size: 18px;
  transition: color 0.2s ease;
}
.r27-footer-social a:hover {
  color: var(--r27-text-primary);
}
.r27-footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--r27-text-primary);
  margin-bottom: 16px;
}
.r27-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r27-footer-links a {
  font-size: 14px;
  color: var(--r27-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.r27-footer-links a:hover {
  color: var(--r27-text-primary);
}
.r27-footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--r27-border);
  font-size: 12px;
  color: var(--r27-text-muted);
}
.r27-footer-legal a {
  color: var(--r27-text-muted);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}
.r27-footer-legal a:hover {
  color: var(--r27-text-primary);
}
@media (max-width: 1024px) {
  .r27-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .r27-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .r27-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══ SCROLL ENTRANCE ANIMATIONS ═══ */
.r27-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.r27-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.r27-animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.r27-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══ ENTERPRISE CAPABILITY BADGES (replaces trusted-by logos) ═══ */
.r27-hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.r27-cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  font-size: 11px;
  font-weight: 500;
  color: var(--r27-text-secondary);
  transition: all 0.2s ease;
  cursor: default;
  white-space: nowrap;
}
.r27-cap-badge i {
  font-size: 10px;
  color: var(--r27-accent-hover);
}
.r27-cap-badge:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--r27-text-primary);
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .r27-hero-capabilities { justify-content: center; }
}

/* ═══ AMBIENT GLOW BEHIND INTELLIGENCE WHEEL ═══ */
.r27-hero-visual {
  position: relative;
}
.r27-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: r27-glowPulse 4s ease-in-out infinite;
}
.r27-hero-visual > * {
  position: relative;
  z-index: 1;
}

/* ═══ AMBIENT DATA PARTICLES (Hero background) ═══ */
.r27-hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.r27-hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  animation: r27-particleRise 8s ease-in-out infinite;
}
.r27-hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.r27-hero-particle:nth-child(2) { left: 25%; animation-delay: 1.2s; animation-duration: 9s; }
.r27-hero-particle:nth-child(3) { left: 40%; animation-delay: 2.5s; animation-duration: 8s; }
.r27-hero-particle:nth-child(4) { left: 55%; animation-delay: 0.8s; animation-duration: 10s; }
.r27-hero-particle:nth-child(5) { left: 70%; animation-delay: 3.2s; animation-duration: 7.5s; }
.r27-hero-particle:nth-child(6) { left: 85%; animation-delay: 1.8s; animation-duration: 8.5s; }
.r27-hero-particle:nth-child(7) { left: 15%; animation-delay: 4s; animation-duration: 9.5s; }
.r27-hero-particle:nth-child(8) { left: 60%; animation-delay: 2s; animation-duration: 7.2s; }


/* ═══ ASSESSMENT MARKETPLACE CARDS — Standalone products below hero ═══ */
.r27-assessment-marketplace {
  background: var(--r27-surface-alt, #0C0C14);
  padding: 126px 24px;
}
.r27-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1600px) {
  .r27-marketplace-grid { max-width: min(90vw, 1800px); }
}
.r27-marketplace-card {
  background: var(--r27-surface-card, #111119);
  border: 1px solid color-mix(in srgb, var(--mp-colour) 25%, transparent);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.r27-marketplace-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mp-colour);
}
.r27-marketplace-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mp-colour) 50%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--mp-colour) 15%, transparent);
}
.r27-mp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.r27-mp-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mp-colour) 15%, transparent);
  flex-shrink: 0;
}
.r27-mp-icon-wrap i {
  font-size: 20px;
  color: var(--mp-colour);
}
.r27-mp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--r27-text-primary, #F1F1F6);
  margin: 0;
}
.r27-mp-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--r27-text-secondary, #9C9CB0);
  margin: 0 0 14px;
  flex-grow: 0;
}
.r27-mp-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.r27-mp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--r27-text-muted, #6B6B82);
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
}
.r27-mp-meta-item i {
  color: var(--mp-colour);
  font-size: 11px;
}
.r27-mp-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  flex-grow: 1;
}
.r27-mp-feature {
  font-size: 13px;
  color: var(--r27-text-secondary, #9C9CB0);
  display: flex;
  align-items: center;
  gap: 7px;
}
.r27-mp-feature i {
  color: var(--mp-colour);
  font-size: 11px;
}
.r27-mp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--mp-colour) 40%, transparent);
  color: var(--r27-text-primary, #F1F1F6);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}
.r27-mp-cta:hover {
  background: color-mix(in srgb, var(--mp-colour) 15%, transparent);
  border-color: var(--mp-colour);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--mp-colour) 20%, transparent);
}
.r27-mp-upsell {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--r27-text-secondary, #9C9CB0);
}
.r27-mp-upsell-link {
  color: var(--r27-accent, #6366F1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.r27-mp-upsell-link:hover {
  color: var(--r27-accent-hover, #818CF8);
}
.r27-mp-upsell i {
  color: var(--r27-accent, #6366F1);
  margin-right: 4px;
}
@media (max-width: 1024px) {
  .r27-marketplace-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-marketplace-grid { grid-template-columns: repeat(2, 1fr); }
  .r27-marketplace-card { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .r27-marketplace-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RELEASE 33 — HERO FRAMEWORK NAVIGATOR (PREMIUM EXECUTIVE)              */
/*                                                                         */
/* Five modes of the Intelligence Wheel. Premium executive product showcase.      */
/*                                                                                 */
/* Structure:                                                                       */
/*   .fw-nav (container)                                                            */
/*   ├── .fw-nav-details (expanded panel area)                                      */
/*   │   └── .fw-nav-detail (one per, .fw-nav-detail-active visible)               */
/*   │       ├── .fw-nav-detail-accent (4px colour top bar)                        */
/*   │       └── .fw-nav-detail-inner                                               */
/*   │           ├── .fw-nav-detail-icon (56px colour badge with glow)             */
/*   │           └── .fw-nav-detail-body                                            */
/*   │               ├── .fw-nav-detail-title (32px — dominant)                    */
/*   │               ├── .fw-nav-detail-sub (12px — muted)                         */
/*   │               ├── .fw-nav-detail-outcome (19px — colour)                    */
/*   │               ├── .fw-nav-detail-highlights (3 × subtle text with dots)     */
/*   │               ├── .fw-nav-detail-ai (AI Insight label + sentence)           */
/*   │               ├── .fw-nav-detail-info (metadata + expected outcomes)        */
/*   │               └── .fw-nav-detail-cta-row (right-aligned CTA)                */
/*   └── .fw-nav-chips (segmented control selector row)                             */
/*       └── .fw-nav-chip (pill, .fw-nav-chip-active = filled+glow)                */
/*                                                                                 */
/* Hub: .hub-framework-ring — pulsed accent ring for active framework              */
/* ═════════════════════════════════════════════════════════════════════════════════ */

/* ── Container ── */
.fw-nav {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  padding: 0 16px;
}

/* ── Expanded Detail Panel Area ── */
.fw-nav-details {
  position: relative;
  min-height: 0;
  margin-bottom: 18px;
}

/* ── Individual Detail Panel — Premium Executive Product Card ── */
.fw-nav-detail {
  display: none;
  position: relative;
  border-radius: 16px;
  background: rgba(8, 12, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: opacity 0.3s ease;
}

.fw-nav-detail-active {
  display: block;
}

/* 4px colour accent bar */
.fw-nav-detail-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.8;
  z-index: 2;
}

/* ── Inner Layout: icon | body (stacked) ── */
.fw-nav-detail-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 36px 24px;
}

/* ── Framework Icon Badge — 64px, premium glass with halo glow ── */
.fw-nav-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--fw-clr) 12%, rgba(10, 16, 32, 0.5));
  border: 1px solid color-mix(in srgb, var(--fw-clr) 16%, transparent);
  flex-shrink: 0;
  box-shadow: 0 0 28px color-mix(in srgb, var(--fw-clr) 10%, transparent);
}

.fw-nav-detail-icon i {
  font-size: 30px;
  color: var(--fw-clr);
}

/* ── Body Column — title, subtitle, outcome, highlights, AI, info, CTA ── */
.fw-nav-detail-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Framework Name — dominant, 34px, readable at 2m ── */
.fw-nav-detail-title {
  font-size: 34px;
  font-weight: 800;
  color: #F1F1F6;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fw-nav-detail-sub {
  font-size: 13px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* ── Business Outcome — second in hierarchy, colour accent ── */
.fw-nav-detail-outcome {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}

/* ── Three Capability Highlights — subtle, no borders/fills ── */
.fw-nav-detail-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.fw-nav-detail-hl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(241, 241, 246, 0.7);
  white-space: nowrap;
}

.fw-nav-detail-hl-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

.fw-nav-detail-hl-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  margin: 0 6px;
}

/* ── AI Insight — compact, intelligent, domain-specific ── */
.fw-nav-detail-ai {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.06);
  margin: 4px 0 2px;
}

.fw-nav-detail-ai-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 1px;
}

.fw-nav-detail-ai-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.7);
  line-height: 1.5;
}

/* ── Metadata + Expected Business Outcomes — single clean row ── */
.fw-nav-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
}

.fw-nav-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.55);
}

.fw-nav-detail-meta-sep {
  color: rgba(148, 163, 184, 0.15);
  font-weight: 300;
}

.fw-nav-detail-outcomes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fw-nav-detail-outcomes-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.fw-nav-detail-outcome-item {
  font-size: 14px;
  font-weight: 600;
  color: rgba(241, 241, 246, 0.6);
  white-space: nowrap;
}

/* ── CTA — right-aligned, strong action ── */
.fw-nav-detail-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.fw-nav-detail-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(241, 241, 246, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
}

.fw-nav-detail-cta:hover {
  color: #F1F1F6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.fw-nav-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.fw-nav-detail-cta:hover .fw-nav-arrow {
  transform: translateX(4px);
}

/* ── Selector Chips Row — Segmented Control ── */
.fw-nav-chips {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

/* ── Individual Chip — Apple/Figma segmented control style ── */
.fw-nav-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(6, 10, 24, 0.3);
  color: rgba(241, 241, 246, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  user-select: none;
}

.fw-nav-chip i {
  font-size: 18px;
  color: rgba(148, 163, 184, 0.25);
  transition: color 0.3s ease;
}

.fw-nav-chip-label {
  white-space: nowrap;
}

/* ── Chip Hover ── */
.fw-nav-chip:hover {
  border-color: color-mix(in srgb, var(--fw-clr) 20%, transparent);
  background: color-mix(in srgb, var(--fw-clr) 4%, rgba(8, 12, 28, 0.5));
  color: rgba(241, 241, 246, 0.65);
  transform: translateY(-1px);
}

.fw-nav-chip:hover i {
  color: color-mix(in srgb, var(--fw-clr) 50%, rgba(148, 163, 184, 0.3));
}

/* ── Chip Active — Filled Segmented Control ── */
.fw-nav-chip-active {
  border-color: color-mix(in srgb, var(--fw-clr) 50%, transparent);
  background: color-mix(in srgb, var(--fw-clr) 14%, rgba(10, 16, 32, 0.8));
  color: #F1F1F6;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--fw-clr) 12%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--fw-clr) 8%, rgba(255,255,255,0.06));
  transform: scale(1.02);
}

.fw-nav-chip-active i {
  color: var(--fw-clr);
  font-size: 16px;
}

/* ── Chip Focus / Keyboard ── */
.fw-nav-chip:focus-visible {
  outline: 2px solid var(--fw-clr);
  outline-offset: 2px;
}

/* ── Chip Click ── */
.fw-nav-chip:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.fw-nav-chip-active:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* ── Hub Framework Accent Ring ── */
@keyframes framework-ring-pulse {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.02); }
}
.hub-framework-ring {
  animation: framework-ring-pulse 3s ease-in-out infinite;
  transform-origin: 375px 375px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .fw-nav { max-width: 100%; padding: 0 12px; }
  .fw-nav-detail-inner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px 16px;
  }
  .fw-nav-detail-icon { width: 54px; height: 54px; }
  .fw-nav-detail-icon i { font-size: 25px; }
  .fw-nav-detail-title { font-size: 30px; }
  .fw-nav-detail-outcome { font-size: 18px; }
  .fw-nav-detail-info { gap: 6px; }
  .fw-nav-detail-cta-row { justify-content: flex-start; }
  .fw-nav-chip { padding: 8px 18px; font-size: 14px; gap: 6px; }
  .fw-nav-chip i { font-size: 16px; }
  .fw-nav-chip-active { font-size: 14px; }
}

@media (max-width: 768px) {
  .fw-nav-detail-inner { padding: 16px 20px 14px; gap: 16px; }
  .fw-nav-detail-icon { width: 48px; height: 48px; }
  .fw-nav-detail-icon i { font-size: 22px; }
  .fw-nav-detail-title { font-size: 26px; }
  .fw-nav-detail-sub { font-size: 10px; }
  .fw-nav-detail-outcome { font-size: 17px; }
  .fw-nav-detail-hl { font-size: 12px; }
  .fw-nav-detail-ai { flex-direction: column; gap: 4px; }
  .fw-nav-detail-meta { font-size: 12px; flex-wrap: wrap; }
  .fw-nav-detail-outcome-item { font-size: 12px; }
  .fw-nav-detail-cta { font-size: 14px; padding: 7px 18px; }
  .fw-nav-chips { gap: 4px; flex-wrap: wrap; }
  .fw-nav-chip { padding: 7px 16px; font-size: 13px; gap: 5px; }
  .fw-nav-chip i { font-size: 14px; }
  .fw-nav-chip-active { font-size: 13px; transform: none; }
}

@media (max-width: 480px) {
  .fw-nav-detail-title { font-size: 20px; }
  .fw-nav-detail-sub { font-size: 9px; }
  .fw-nav-detail-outcome { font-size: 14px; }
  .fw-nav-detail-hl { font-size: 11px; }
  .fw-nav-detail-highlights { display: none; }
  .fw-nav-detail-ai { display: none; }
  .fw-nav-detail-info { display: none; }
  .fw-nav-detail-cta-row { display: none; }
  .fw-nav-chip-label { display: none; }
  .fw-nav-chip { padding: 6px 12px; }
  .fw-nav-chip i { font-size: 15px; }
  .fw-nav-chip-active { padding: 6px 14px; }
}


/* ══════════════════════════════════════════════════════════════
   Release 28A — Homepage Enhancement (Marketing & Storytelling)
   
   14 new sections completing the APPEX360 story.
   Naming convention: .r28a-*
   ══════════════════════════════════════════════════════════════ */

/* ── Section Base ── */

.r28a-section {
  position: relative;
  padding: 80px 24px;
  background: var(--r27-bg, #07070f);
  overflow: hidden;
}

.r28a-section-dark {
  background: #05050b;
}

.r28a-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.r28a-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary, #818cf8);
  margin-bottom: 12px;
}

.r28a-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.r28a-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 640px;
}

/* ── 1. Enterprise Capability Map ── */

.r28a-capmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.r28a-capmap-module {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.r28a-capmap-module:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.1);
}

.r28a-capmap-module-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.r28a-capmap-module-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.r28a-capmap-module-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.r28a-capmap-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.2);
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Cross-cutting and integration layers use smaller cards */
.r28a-capmap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.r28a-capmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s ease;
}

.r28a-capmap-pill:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
  color: rgba(255,255,255,0.9);
}

/* ── 2. Intelligence Flow ── */

.r28a-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}

.r28a-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  min-width: 100px;
  position: relative;
}

.r28a-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.r28a-flow-icon.i0 { background: rgba(99,102,241,0.12); color: #818cf8; }
.r28a-flow-icon.i1 { background: rgba(139,92,246,0.12); color: #a78bfa; }
.r28a-flow-icon.i2 { background: rgba(59,130,246,0.12); color: #60a5fa; }
.r28a-flow-icon.i3 { background: rgba(16,185,129,0.12); color: #34d399; }
.r28a-flow-icon.i4 { background: rgba(245,158,11,0.12); color: #fbbf24; }
.r28a-flow-icon.i5 { background: rgba(236,72,153,0.12); color: #f472b6; }
.r28a-flow-icon.i6 { background: rgba(99,102,241,0.12); color: #818cf8; }
.r28a-flow-icon.i7 { background: rgba(52,211,153,0.12); color: #34d399; }

.r28a-flow-step:hover .r28a-flow-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(99,102,241,0.2);
}

.r28a-flow-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.3;
}

.r28a-flow-arrow {
  color: rgba(99,102,241,0.25);
  font-size: 14px;
  padding: 0 4px;
  animation: r28a-flowPulse 2s ease-in-out infinite;
}

@keyframes r28a-flowPulse {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(3px); }
}

/* ── 3. Intelligence Layers ── */

.r28a-layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
  perspective: 1000px;
}

.r28a-layer {
  width: 100%;
  max-width: 700px;
  padding: 18px 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
}

.r28a-layer:hover {
  transform: translateX(8px) scale(1.02);
}

.r28a-layer-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.r28a-layer-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: right;
  max-width: 300px;
}

.r28a-layer:nth-child(1) { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02)); border: 1px solid rgba(59,130,246,0.12); }
.r28a-layer:nth-child(2) { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.02)); border: 1px solid rgba(99,102,241,0.12); }
.r28a-layer:nth-child(3) { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(139,92,246,0.02)); border: 1px solid rgba(139,92,246,0.12); }
.r28a-layer:nth-child(4) { background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(236,72,153,0.02)); border: 1px solid rgba(236,72,153,0.12); }
.r28a-layer:nth-child(5) { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02)); border: 1px solid rgba(245,158,11,0.12); }
.r28a-layer:nth-child(6) { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02)); border: 1px solid rgba(16,185,129,0.12); }

.r28a-layer-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
}

/* ── 4. The Truth ── */

.r28a-truth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.r28a-truth-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.r28a-truth-line1 { color: rgba(255,255,255,0.15); }
.r28a-truth-dot { color: var(--color-secondary, #818cf8); }
.r28a-truth-line2 { color: rgba(255,255,255,0.5); }
.r28a-truth-line3 { color: #fff; }
.r28a-truth-line4 { color: var(--color-secondary, #818cf8); }

.r28a-truth-text {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-top: 16px;
}

.r28a-truth-visual {
  position: relative;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.06) 0%, transparent 70%);
  border-radius: 20px;
  border: 1px solid rgba(99,102,241,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.r28a-truth-nodes {
  position: relative;
  width: 280px;
  height: 280px;
}

.r28a-truth-node {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  animation: r28a-nodeFloat 4s ease-in-out infinite;
}

.r28a-truth-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); animation-delay: 0s; }
.r28a-truth-node:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); animation-delay: 0.5s; }
.r28a-truth-node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); animation-delay: 1s; }
.r28a-truth-node:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); animation-delay: 1.5s; }

.r28a-truth-node-label {
  display: none;
  position: absolute;
  bottom: -24px;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

@keyframes r28a-nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── 5. Not Another System ── */

.r28a-not-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.r28a-not-system-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r28a-not-system-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.08);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.r28a-not-system-item-x {
  color: #ef4444;
  font-weight: 700;
  font-size: 16px;
}

.r28a-not-system-statement {
  padding: 20px 24px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  margin-top: 20px;
}

.r28a-not-system-statement-text {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.r28a-not-system-statement-accent {
  color: var(--color-secondary, #818cf8);
}

/* ── 6. Intelligence Outcomes ── */

.r28a-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.r28a-outcome-card {
  padding: 24px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  text-align: center;
  transition: all 0.25s ease;
}

.r28a-outcome-card:hover {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.2);
  transform: translateY(-3px);
}

.r28a-outcome-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 18px;
}

.r28a-outcome-card:nth-child(1) .r28a-outcome-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.r28a-outcome-card:nth-child(2) .r28a-outcome-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.r28a-outcome-card:nth-child(3) .r28a-outcome-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.r28a-outcome-card:nth-child(4) .r28a-outcome-icon { background: rgba(99,102,241,0.1); color: #818cf8; }
.r28a-outcome-card:nth-child(5) .r28a-outcome-icon { background: rgba(139,92,246,0.1); color: #a78bfa; }

.r28a-outcome-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* ── 7. Assessment Journey ── */

.r28a-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
}

.r28a-journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  min-width: 80px;
}

.r28a-journey-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.r28a-journey-step:nth-child(1) .r28a-journey-circle { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.r28a-journey-step:nth-child(2) .r28a-journey-circle { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.r28a-journey-step:nth-child(3) .r28a-journey-circle { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.r28a-journey-step:nth-child(4) .r28a-journey-circle { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.r28a-journey-step:nth-child(5) .r28a-journey-circle { background: rgba(236,72,153,0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }
.r28a-journey-step:nth-child(6) .r28a-journey-circle { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.r28a-journey-step:nth-child(7) .r28a-journey-circle { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }

.r28a-journey-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.r28a-journey-arrow {
  color: rgba(99,102,241,0.2);
  font-size: 12px;
}

/* ── 8. APPEXi Expanded ── */

.r28a-appexi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.r28a-appexi-cap {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.r28a-appexi-cap:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
}

.r28a-appexi-cap-icon {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--color-secondary, #818cf8);
}

.r28a-appexi-cap-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.r28a-appexi-cap-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ── 9. Explainable AI ── */

.r28a-xai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.r28a-xai-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.r28a-xai-layer {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 120px;
}

.r28a-xai-layer:hover {
  transform: scale(1.05);
}

.r28a-xai-layer.l5 { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.2); color: #818cf8; width: 200px; }
.r28a-xai-layer.l4 { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.16); color: #a78bfa; width: 240px; }
.r28a-xai-layer.l3 { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.16); color: #34d399; width: 280px; }
.r28a-xai-layer.l2 { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.16); color: #fbbf24; width: 320px; }
.r28a-xai-layer.l1 { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.16); color: #ef4444; width: 360px; }

.r28a-xai-layer-arrow {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
}

.r28a-xai-content {
  padding: 20px;
}

.r28a-xai-principle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.r28a-xai-principle:last-child { border-bottom: none; }

.r28a-xai-principle-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.r28a-xai-principle:nth-child(1) .r28a-xai-principle-icon { background: rgba(16,185,129,0.1); color: #34d399; }
.r28a-xai-principle:nth-child(2) .r28a-xai-principle-icon { background: rgba(99,102,241,0.1); color: #818cf8; }
.r28a-xai-principle:nth-child(3) .r28a-xai-principle-icon { background: rgba(245,158,11,0.1); color: #fbbf24; }

.r28a-xai-principle-text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.r28a-xai-principle-text strong {
  color: rgba(255,255,255,0.85);
}

/* ── 10. Security & Enterprise Readiness ── */

.r28a-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.r28a-security-item {
  padding: 18px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.r28a-security-item:hover {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.12);
}

.r28a-security-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(16,185,129,0.1);
  color: #34d399;
}

.r28a-security-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

/* ── 11. Who It's For ── */

.r28a-personas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.r28a-persona-card {
  padding: 18px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s ease;
}

.r28a-persona-card:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
}

.r28a-persona-icon {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--color-secondary, #818cf8);
}

.r28a-persona-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.r28a-persona-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
}

/* ── 12. Platform Outcomes ── */

.r28a-outcomes-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.r28a-kpi-card {
  padding: 28px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.r28a-kpi-card:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.15);
  transform: translateY(-3px);
}

.r28a-kpi-value {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.r28a-kpi-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

/* ── 13. Product Roadmap ── */

.r28a-roadmap {
  margin-top: 40px;
  position: relative;
}

.r28a-roadmap-line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(99,102,241,0.3), rgba(139,92,246,0.3), rgba(16,185,129,0.3));
  border-radius: 1px;
}

.r28a-roadmap-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.r28a-roadmap-phase {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.r28a-roadmap-phase:hover {
  transform: translateY(-4px);
  background: rgba(99,102,241,0.04);
}

.r28a-roadmap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.r28a-roadmap-phase:nth-child(1) .r28a-roadmap-dot { background: #34d399; box-shadow: 0 0 12px rgba(52,211,153,0.3); }
.r28a-roadmap-phase:nth-child(2) .r28a-roadmap-dot { background: #818cf8; box-shadow: 0 0 12px rgba(99,102,241,0.3); }
.r28a-roadmap-phase:nth-child(3) .r28a-roadmap-dot { background: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.3); }
.r28a-roadmap-phase:nth-child(4) .r28a-roadmap-dot { background: #a78bfa; box-shadow: 0 0 12px rgba(139,92,246,0.3); }

.r28a-roadmap-status {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.r28a-roadmap-phase:nth-child(1) .r28a-roadmap-status { background: rgba(52,211,153,0.15); color: #34d399; }
.r28a-roadmap-phase:nth-child(2) .r28a-roadmap-status { background: rgba(99,102,241,0.15); color: #818cf8; }
.r28a-roadmap-phase:nth-child(3) .r28a-roadmap-status { background: rgba(245,158,11,0.15); color: #f59e0b; }
.r28a-roadmap-phase:nth-child(4) .r28a-roadmap-status { background: rgba(139,92,246,0.15); color: #a78bfa; }

.r28a-roadmap-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.r28a-roadmap-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  margin-bottom: 10px;
}

.r28a-roadmap-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.r28a-roadmap-feature {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.r28a-roadmap-feature i {
  font-size: 8px;
  color: rgba(255,255,255,0.2);
}

/* ── 14. Enhanced Footer ── */

.r28a-footer {
  background: #05050b;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 60px 24px 24px;
}

.r28a-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.r28a-footer-brand-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.r28a-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.r28a-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r28a-footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.r28a-footer-link:hover {
  color: rgba(255,255,255,0.8);
}

.r28a-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.r28a-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: all 0.2s;
}

.r28a-footer-social a:hover {
  border-color: rgba(99,102,241,0.3);
  color: #818cf8;
  background: rgba(99,102,241,0.05);
}

.r28a-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
}

.r28a-footer-bottom-links {
  display: flex;
  gap: 16px;
}

.r28a-footer-bottom-links a {
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.15s;
}

.r28a-footer-bottom-links a:hover {
  color: rgba(255,255,255,0.5);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .r28a-capmap-grid { grid-template-columns: repeat(2, 1fr); }
  .r28a-outcomes-grid { grid-template-columns: repeat(3, 1fr); }
  .r28a-personas-grid { grid-template-columns: repeat(3, 1fr); }
  .r28a-outcomes-kpi { grid-template-columns: repeat(2, 1fr); }
  .r28a-roadmap-phases { grid-template-columns: repeat(2, 1fr); }
  .r28a-security-grid { grid-template-columns: repeat(2, 1fr); }
  .r28a-appexi-grid { grid-template-columns: repeat(2, 1fr); }
  .r28a-footer-grid { grid-template-columns: 1fr 1fr; }
  .r28a-truth { grid-template-columns: 1fr; }
  .r28a-not-system { grid-template-columns: 1fr; }
  .r28a-xai { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .r28a-section { padding: 48px 16px; }
  .r28a-capmap-grid { grid-template-columns: 1fr 1fr; }
  .r28a-outcomes-grid { grid-template-columns: 1fr 1fr; }
  .r28a-personas-grid { grid-template-columns: 1fr 1fr; }
  .r28a-outcomes-kpi { grid-template-columns: 1fr 1fr; }
  .r28a-roadmap-phases { grid-template-columns: 1fr; }
  .r28a-roadmap-line { display: none; }
  .r28a-security-grid { grid-template-columns: 1fr; }
  .r28a-appexi-grid { grid-template-columns: 1fr; }
  .r28a-footer-grid { grid-template-columns: 1fr; }
  .r28a-flow { gap: 8px; }
  .r28a-journey { gap: 8px; }
  .r28a-truth-visual { height: 280px; }
  .r28a-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .r28a-capmap-grid { grid-template-columns: 1fr; }
  .r28a-outcomes-grid { grid-template-columns: 1fr; }
  .r28a-personas-grid { grid-template-columns: 1fr; }
  .r28a-outcomes-kpi { grid-template-columns: 1fr; }
  .r28a-flow-step { min-width: 70px; padding: 10px 6px; }
  .r28a-journey-step { min-width: 60px; padding: 10px 6px; }
}
/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Executive Dashboard Design System — Release 29
   ═══════════════════════════════════════════════════════════════════
   
   Every dashboard is composed from the same visual language.
   
   Principles:
   - 5-second executive test: what, good/bad, do, impact, drill
   - One primary action per page
   - Every pixel earns its place
   - Colour means something (module tokens, not decoration)
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. DASHBOARD LAYOUT
   ───────────────────────────────────────────────────────────────── */

.db-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.db-header-title {
  font-size: var(--font-page-title);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.db-header-sub {
  font-size: var(--font-supporting);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.db-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* KPI Grid — responsive, consistent gap */
.db-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Dashboard section: heading + grid + card */
.db-section {
  margin-bottom: var(--spacing-xl);
}

.db-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.db-section-title {
  font-size: var(--font-card-title);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.db-section-title i {
  font-size: 0.85em;
  opacity: 0.6;
}

.db-section-link {
  font-size: var(--font-caption);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.db-section-link:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────
   2. KPI CARD
   ─────────────────────────────────────────────────────────────────
   Focus: one metric, one trend, no noise.
   
   Usage:
     <div class="db-kpi" data-module="financial">
       <div class="db-kpi-value">$2.4M</div>
       <div class="db-kpi-label">Verified Savings</div>
       <div class="db-kpi-trend up">↑ 12%</div>
     </div>
   ───────────────────────────────────────────────────────────────── */

.db-kpi {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  transition: all 0.15s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.db-kpi:hover {
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Module accent stripe at top */
.db-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--kpi-accent, var(--clr-executive-primary));
  opacity: 0.6;
}

.db-kpi[data-module="executive"]    { --kpi-accent: var(--clr-executive-primary); }
.db-kpi[data-module="operational"]  { --kpi-accent: var(--clr-operational-primary); }
.db-kpi[data-module="financial"]    { --kpi-accent: var(--clr-financial-primary); }
.db-kpi[data-module="governance"]   { --kpi-accent: var(--clr-governance-primary); }
.db-kpi[data-module="risk"]         { --kpi-accent: var(--clr-risk-primary); }
.db-kpi[data-module="asset"]        { --kpi-accent: var(--clr-asset-primary); }
.db-kpi[data-module="safety"]       { --kpi-accent: var(--clr-safety-primary); }
.db-kpi[data-module="quality"]      { --kpi-accent: var(--clr-quality-primary); }
.db-kpi[data-module="maintenance"]  { --kpi-accent: var(--clr-maintenance-primary); }
.db-kpi[data-module="people"]       { --kpi-accent: var(--clr-people-primary); }
.db-kpi[data-module="environment"]  { --kpi-accent: var(--clr-environment-primary); }

.db-kpi-value {
  font-size: var(--font-display-kpi);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-xs);
}

.db-kpi-label {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.db-kpi-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-micro);
}

.db-kpi-trend {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.db-kpi-trend.up    { color: var(--trend-up); }
.db-kpi-trend.down  { color: var(--trend-down); }
.db-kpi-trend.flat  { color: var(--trend-flat); }

.db-kpi-benchmark {
  color: var(--text-muted);
  font-weight: 400;
}

/* KPI: clickable */
.db-kpi-clickable {
  cursor: pointer;
}
.db-kpi-clickable:hover {
  border-color: var(--kpi-accent, var(--clr-executive-primary));
  box-shadow: 0 0 0 1px var(--kpi-accent, var(--clr-executive-primary)), var(--shadow-md);
}

/* ─────────────────────────────────────────────────────────────────
   3. INTELLIGENCE CARD
   ─────────────────────────────────────────────────────────────────
   Focus: recommendation, confidence, impact, risk.

   Usage:
     <div class="db-intel" data-module="risk">
       <div class="db-intel-header">
         <div class="db-intel-badge" data-confidence="high">94%</div>
       </div>
       <div class="db-intel-body">
         <div class="db-intel-rec">Replace compressor with VSD</div>
         <div class="db-intel-impact">$186K/yr | 14-month payback</div>
       </div>
     </div>
   ───────────────────────────────────────────────────────────────── */

.db-intel {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  transition: all 0.15s ease;
}

.db-intel:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--surface-border-hover);
}

.db-intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.db-intel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-micro);
  font-weight: 700;
}

.db-intel-badge[data-confidence="high"]   { background: rgba(52,211,153,0.1); color: #34d399; }
.db-intel-badge[data-confidence="medium"] { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.db-intel-badge[data-confidence="low"]    { background: rgba(239,68,68,0.1);  color: #ef4444; }

.db-intel-module {
  font-size: var(--font-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.db-intel-rec {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.db-intel-impact {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: 1.5;
}

.db-intel-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--surface-border);
}

.db-intel-evidence {
  font-size: var(--font-micro);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.db-intel-evidence i {
  font-size: 10px;
}

.db-intel-action {
  font-size: var(--font-micro);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}
.db-intel-action:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────
   4. INSIGHT PANEL
   ─────────────────────────────────────────────────────────────────
   Focus: icon, title, summary, expand-for-detail, linked evidence.

   Usage:
     <details class="db-insight" data-module="financial">
       <summary class="db-insight-summary">
         <i class="fas fa-coins db-insight-icon"></i>
         <div>
           <div class="db-insight-title">Energy Cost Reduction</div>
           <div class="db-insight-summary-text">$186K annual savings identified</div>
         </div>
         <i class="fas fa-chevron-down db-insight-chevron"></i>
       </summary>
       <div class="db-insight-detail">...</div>
     </details>
   ───────────────────────────────────────────────────────────────── */

.db-insight {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
  margin-bottom: var(--spacing-sm);
}

.db-insight[open] {
  border-color: var(--surface-border-hover);
}

.db-insight-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.12s ease;
}

.db-insight-summary::-webkit-details-marker {
  display: none;
}

.db-insight-summary:hover {
  background: rgba(255,255,255,0.02);
}

.db-insight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.db-insight[data-module="executive"]    .db-insight-icon { background: var(--clr-executive-surface); color: var(--clr-executive-primary); }
.db-insight[data-module="operational"]  .db-insight-icon { background: var(--clr-operational-surface); color: var(--clr-operational-primary); }
.db-insight[data-module="financial"]    .db-insight-icon { background: var(--clr-financial-surface); color: var(--clr-financial-primary); }
.db-insight[data-module="governance"]   .db-insight-icon { background: var(--clr-governance-surface); color: var(--clr-governance-primary); }
.db-insight[data-module="risk"]         .db-insight-icon { background: var(--clr-risk-surface); color: var(--clr-risk-primary); }
.db-insight[data-module="asset"]        .db-insight-icon { background: var(--clr-asset-surface); color: var(--clr-asset-primary); }
.db-insight[data-module="safety"]       .db-insight-icon { background: var(--clr-safety-surface); color: var(--clr-safety-primary); }
.db-insight[data-module="quality"]      .db-insight-icon { background: var(--clr-quality-surface); color: var(--clr-quality-primary); }
.db-insight[data-module="maintenance"]  .db-insight-icon { background: var(--clr-maintenance-surface); color: var(--clr-maintenance-primary); }
.db-insight[data-module="people"]       .db-insight-icon { background: var(--clr-people-surface); color: var(--clr-people-primary); }
.db-insight[data-module="environment"]  .db-insight-icon { background: var(--clr-environment-surface); color: var(--clr-environment-primary); }

.db-insight-title {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
}

.db-insight-summary-text {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-top: 2px;
}

.db-insight-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.db-insight[open] .db-insight-chevron {
  transform: rotate(180deg);
}

.db-insight-detail {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  font-size: var(--font-supporting);
  color: var(--text-secondary);
  line-height: 1.6;
}

.db-insight-detail p {
  margin: 0 0 var(--spacing-sm);
}

.db-insight-detail p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
   5. DASHBOARD TABLE
   ───────────────────────────────────────────────────────────────── */

.db-table-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  background: var(--surface-card);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-caption);
}

.db-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.db-table th {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-micro);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
}

.db-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

.db-table tbody tr {
  transition: background 0.1s ease;
}

.db-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.01);
}

.db-table tbody tr:hover {
  background: rgba(99,102,241,0.03);
}

.db-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table status badges */
.db-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}

.db-table-badge[data-status="good"]      { background: rgba(52,211,153,0.08); color: #34d399; }
.db-table-badge[data-status="warning"]   { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.db-table-badge[data-status="critical"]  { background: rgba(239,68,68,0.08);  color: #ef4444; }
.db-table-badge[data-status="inactive"]  { background: rgba(107,114,128,0.08); color: #6b7280; }

/* ─────────────────────────────────────────────────────────────────
   6. DECISION CARD
   ───────────────────────────────────────────────────────────────── */

.db-decision {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--kpi-accent, var(--clr-executive-primary));
  margin-bottom: var(--spacing-md);
  transition: all 0.15s ease;
}

.db-decision[data-module="executive"]    { border-left-color: var(--clr-executive-primary); }
.db-decision[data-module="operational"]  { border-left-color: var(--clr-operational-primary); }
.db-decision[data-module="financial"]    { border-left-color: var(--clr-financial-primary); }
.db-decision[data-module="governance"]   { border-left-color: var(--clr-governance-primary); }
.db-decision[data-module="risk"]         { border-left-color: var(--clr-risk-primary); }
.db-decision[data-module="asset"]        { border-left-color: var(--clr-asset-primary); }
.db-decision[data-module="safety"]       { border-left-color: var(--clr-safety-primary); }
.db-decision[data-module="quality"]      { border-left-color: var(--clr-quality-primary); }
.db-decision[data-module="maintenance"]  { border-left-color: var(--clr-maintenance-primary); }
.db-decision[data-module="people"]       { border-left-color: var(--clr-people-primary); }
.db-decision[data-module="environment"]  { border-left-color: var(--clr-environment-primary); }

.db-decision:hover {
  box-shadow: var(--shadow-md);
}

.db-decision-rec {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.db-decision-impact {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.db-decision-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-micro);
  color: var(--text-muted);
}

.db-decision-owner {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   7. CHART CONTAINER
   ───────────────────────────────────────────────────────────────── */

.db-chart {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.db-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.db-chart-title {
  font-size: var(--font-subheading);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.db-chart-body {
  min-height: 200px;
}

/* ─────────────────────────────────────────────────────────────────
   8. EMPTY STATE
   ───────────────────────────────────────────────────────────────── */

.db-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
}

.db-empty-icon {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.db-empty-title {
  font-size: var(--font-subheading);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.db-empty-text {
  font-size: var(--font-caption);
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────
   9. TWO-COLUMN LAYOUT
   ───────────────────────────────────────────────────────────────── */

.db-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1024px) {
  .db-two-col {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   10. STATUS DOT
   ───────────────────────────────────────────────────────────────── */

.db-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-status-dot[data-status="good"]     { background: var(--status-good); }
.db-status-dot[data-status="warning"]  { background: var(--status-warning); }
.db-status-dot[data-status="critical"] { background: var(--status-critical); }
.db-status-dot[data-status="inactive"] { background: var(--status-inactive); }
/* ============================================================
   APPEX360 Assessment Experience - Enterprise Premium
   ============================================================
   A visual refinement layer on top of the existing assessment UI.
   
   Design principles:
   - Neutral graphite palette - colour only for selection, progress, KPIs
   - True elevation system - shadow + surface tone, not heavy borders
   - Premium motion - cubic-bezier, <250ms, micro-interactions
   - Modern typography - clear hierarchy, tighter leading, better rhythm
   - Consistent spacing - 8px grid, generous card padding
   
   Uses --ds-* tokens and existing class names. No functionality changes.
   ============================================================ */

/* --- 1. ELEVATION SYSTEM ------------------------------------------- */
/* 5 levels: background, surface, raised, elevated, overlay            */
/* Uses surface tones + shadows instead of coloured borders            */
:root {
  --elevation-bg: var(--ds-bg-primary, #0f172a);
  --elevation-surface: var(--ds-surface-card, #1e293b);
  --elevation-raised: #263348;
  --elevation-elevated: #2d3a50;
  --elevation-overlay: rgba(0, 0, 0, 0.6);
  
  --shadow-raised: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --transition-premium: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- 2. TYPOGRAPHY SCALE ------------------------------------------ */
.assessment-launch-page h1,
.assessment-launch-page .launch-hero h1,
.aws-page-title {
  font-size: 1.5rem !important;  /* 24px — page title */
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ds-text-primary, #f8fafc);
}

.aws-section-title {
  font-size: 0.95rem !important;  /* 15px — section title */
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: var(--ds-text-primary, #f1f5f9);
}

.aws-cat-name,
.assessment-launch-page .exec-card div:first-child {
  font-size: 0.85rem !important;  /* 13.6px — card title */
  font-weight: 600 !important;
  letter-spacing: 0;
  color: var(--ds-text-primary, #f1f5f9);
}

.assessment-launch-page p,
.aws-count-label,
.aws-q-grid-header,
.aws-supporting-text {
  font-size: 0.8rem !important;  /* 12.8px — supporting text */
  line-height: 1.5;
  color: var(--ds-text-secondary, #94a3b8);
}

.aws-meta,
.aws-caption,
.aws-domain-badge,
.assessment-launch-page .exec-card div:last-child {
  font-size: 0.7rem !important;  /* 11.2px — captions */
  line-height: 1.4;
  color: var(--ds-text-muted, #64748b);
}

/* --- 3. SURFACE HIERARCHY ----------------------------------------- */
/* Differentiate background, container, section, card, selected       */

/* Assessment background */
.assessment-launch-page,
.aws-container {
  background: linear-gradient(160deg, #0a0f1e 0%, #0f172a 50%, #0d1225 100%) !important;
}

/* Section containers */
.assessment-launch-page .launch-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(99, 102, 241, 0.03) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Stats row cards */
.assessment-launch-page .exec-card,
.aws-cat-card,
.aws-q-grid {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  box-shadow: none;
  transition: var(--transition-premium) !important;
}

/* Hover state — subtle elevation */
.assessment-launch-page .exec-card:hover,
.aws-cat-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
}

/* Selected cards */
.aws-cat-card.selected,
.selectable-card[data-selected="true"] {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-glow) !important;
}

/* --- 4. QUESTION CARDS -------------------------------------------- */
.aws-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  transition: var(--transition-premium) !important;
  animation: aws-card-in 0.25s ease-out both;
}

.aws-card:hover {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
}

/* Question text */
.aws-question-text {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--ds-text-primary, #f1f5f9);
  margin-bottom: 0.75rem;
}

/* Score pills — compact, subtle, colour only for selection */
.aws-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ds-text-secondary, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-fast) !important;
}

.aws-score-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.aws-score-pill.selected {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #818cf8 !important;
  font-weight: 600;
}

/* --- 5. PROGRESS INDICATORS --------------------------------------- */
.aws-progress-bar {
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
}

.aws-progress-fill {
  height: 100% !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #6366f1, #818cf8) !important;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

/* Progress ring */
.aws-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.aws-ring-svg circle {
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aws-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
}

/* --- 6. QUESTION DOTS --------------------------------------------- */
.aws-q-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.aws-q-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid transparent;
  transition: var(--transition-fast) !important;
}

.aws-q-dot.current {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

.aws-q-dot.answered {
  color: #34d399;
}

.aws-q-dot.answered::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
}

.aws-q-dot:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary, #fff);
  transform: scale(1.12);
}

.aws-q-dot:active {
  transform: scale(0.95);
}

/* --- 7. BUTTONS & ACTIONS ---------------------------------------─ */
.assessment-launch-page a[style*="padding:0.65rem"],
.aws-btn {
  padding: 0.6rem 1.25rem !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: var(--transition-fast) !important;
}

.assessment-launch-page a[style*="background:var(--color-primary)"]:hover,
.aws-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.assessment-launch-page a[style*="background:var(--color-primary)"]:active,
.aws-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost buttons */
.assessment-launch-page a.exec-card {
  transition: var(--transition-premium) !important;
}

/* --- 8. CATEGORY PAGE --------------------------------------------- */
/* Category card grid */
.aws-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.aws-category-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  cursor: pointer;
  transition: var(--transition-premium) !important;
  text-decoration: none;
  display: block;
}

.aws-category-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.aws-category-card:active {
  transform: translateY(0);
}

.aws-category-card .aws-cat-name {
  font-size: 0.9rem !important;
  margin-bottom: 6px;
}

/* Category progress ring */
.aws-category-card .aws-ring {
  width: 36px;
  height: 36px;
}

.aws-category-card .aws-ring-svg {
  width: 36px;
  height: 36px;
}

.aws-category-card .aws-ring-text {
  font-size: 10px;
}

/* --- 9. SEARCH BAR ------------------------------------------------ */
.assessment-search {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-premium) !important;
}

/* Search bar container (take.html.erb uses this on the wrapper div) */
.assessment-search {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-premium) !important;
}

.assessment-search:focus-within {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.assessment-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 0.85rem;
}

.assessment-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* --- 10. FOOTER / STICKY BAR ------------------------------------ */
.aws-footer {
  position: sticky;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

/* --- 11. MICRO-INTERACTIONS --------------------------------------- */
/* Scale effect on score select */
.aws-score-pill.selected {
  transform: scale(1.05);
}

/* Card entrance stagger */
.aws-card:nth-child(1) { animation-delay: 0s; }
.aws-card:nth-child(2) { animation-delay: 0.04s; }
.aws-card:nth-child(3) { animation-delay: 0.08s; }
.aws-card:nth-child(4) { animation-delay: 0.12s; }
.aws-card:nth-child(5) { animation-delay: 0.16s; }
.aws-card:nth-child(6) { animation-delay: 0.20s; }
.aws-card:nth-child(7) { animation-delay: 0.24s; }
.aws-card:nth-child(8) { animation-delay: 0.28s; }
.aws-card:nth-child(9) { animation-delay: 0.32s; }
.aws-card:nth-child(10) { animation-delay: 0.36s; }

/* Category card stagger */
.aws-category-card:nth-child(1) { animation-delay: 0s; }
.aws-category-card:nth-child(2) { animation-delay: 0.03s; }
.aws-category-card:nth-child(3) { animation-delay: 0.06s; }
.aws-category-card:nth-child(4) { animation-delay: 0.09s; }
.aws-category-card:nth-child(5) { animation-delay: 0.12s; }
.aws-category-card:nth-child(6) { animation-delay: 0.15s; }
.aws-category-card:nth-child(7) { animation-delay: 0.18s; }
.aws-category-card:nth-child(8) { animation-delay: 0.21s; }
.aws-category-card:nth-child(9) { animation-delay: 0.24s; }
.aws-category-card:nth-child(10) { animation-delay: 0.27s; }
.aws-category-card:nth-child(11) { animation-delay: 0.30s; }
.aws-category-card:nth-child(12) { animation-delay: 0.33s; }
.aws-category-card:nth-child(13) { animation-delay: 0.36s; }
.aws-category-card:nth-child(14) { animation-delay: 0.39s; }
.aws-category-card:nth-child(15) { animation-delay: 0.42s; }
.aws-category-card:nth-child(16) { animation-delay: 0.45s; }
.aws-category-card:nth-child(17) { animation-delay: 0.48s; }
.aws-category-card:nth-child(18) { animation-delay: 0.51s; }
.aws-category-card:nth-child(19) { animation-delay: 0.54s; }
.aws-category-card:nth-child(20) { animation-delay: 0.57s; }

/* --- 12. RESPONSIVE ---------------------------------------------─ */
@media (max-width: 768px) {
  .aws-layout {
    grid-template-columns: 1fr !important;
  }
  
  .aws-category-grid {
    grid-template-columns: 1fr !important;
  }
  
  .assessment-launch-page .launch-hero > div {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* --- 13. EMPTY STATES --------------------------------------------- */
.aws-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.aws-empty-state i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.aws-empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ds-text-primary, #e2e8f0);
  margin-bottom: 0.5rem;
}

.aws-empty-state p {
  font-size: 0.85rem;
  color: var(--ds-text-muted, #64748b);
  max-width: 400px;
  margin: 0 auto;
}

/* --- 14. FOCUS STATES (accessibility) ---------------------------─ */
.aws-card:focus-within {
  outline: none;
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.aws-q-dot:focus-visible,
.aws-score-pill:focus-visible,
.assessment-search:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* --- 15. SELECTABLE CARDS (version selector) --------------------- */
.selectable-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  cursor: pointer;
  transition: var(--transition-premium) !important;
}

.selectable-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
}

.selectable-card[data-selected="true"] {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-glow) !important;
}

/* --- 16. WORKFLOW TIMELINE --------------------------------------- */
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.workflow-step.active {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
}

.workflow-step.completed {
  color: #34d399;
}

.workflow-step .step-icon {
  font-size: 0.6rem;
  opacity: 0.6;
}

.workflow-step.active .step-icon,
.workflow-step.completed .step-icon {
  opacity: 1;
}
/* ══════════════════════════════════════════════════════════════
   APEX360 Enterprise Design System
   Import order is deterministic via numbered prefixes.
   
   Usage: stylesheet_link_tag "design_system/design_system"
   
   Uses Sprockets //= require directives (NOT CSS @import) so
   all files are compiled into a SINGLE digest-bustered asset.
   CSS @import would trigger separate browser requests for each
   file that fail in production because Sprockets only serves
   digest-fingerprinted filenames.
   ══════════════════════════════════════════════════════════════ */




















/* ══════════════════════════════════════════════════════════════
   APEX360 DESIGN TOKENS
   Central source of truth for all visual properties.
   
   Usage: 
   background: var(--surface-1);
   color: var(--text-primary);
   padding: var(--spacing-md);
   border-radius: var(--radius-md);
   font-size: var(--font-size-sm);
   box-shadow: var(--shadow-sm);
   
   Theme: page body gets .style-apex-dark or .style-colorblind
   Palette: page body gets .palette-emerald / .palette-amber / etc.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ── Colours ── */
  --color-primary: #6c5ce7;
  --color-primary-hover: #5a4bd1;
  --color-primary-light: rgba(108, 92, 231, 0.15);
  --color-primary-subtle: rgba(108, 92, 231, 0.06);
  --color-secondary: #818cf8;
  --color-success: #059669;
  --color-success-hover: #047857;
  --color-success-light: rgba(5, 150, 105, 0.15);
  --color-success-subtle: rgba(5, 150, 105, 0.06);
  --color-warning: #d97706;
  --color-warning-hover: #b45309;
  --color-warning-light: rgba(217, 119, 6, 0.15);
  --color-warning-subtle: rgba(217, 119, 6, 0.06);
  --color-danger: #e11d48;
  --color-danger-hover: #be123c;
  --color-danger-light: rgba(225, 29, 72, 0.15);
  --color-danger-subtle: rgba(225, 29, 72, 0.06);
  --color-info: #0891b2;
  --color-info-light: rgba(8, 145, 178, 0.15);

  /* ── Surfaces ── */
  --surface-page: #f8f9fc;
  --surface-card: #ffffff;
  --surface-card-hover: #f8f9fc;
  --surface-elevated: #ffffff;
  --surface-overlay: rgba(0, 0, 0, 0.06);
  --surface-border: #e8ecf4;
  --surface-border-hover: #d0d5e0;

  /* ── Text ── */
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  --text-link: #6c5ce7;

  /* ── Spacing ── */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* ── Floating Component Positioning (Release 28) ── */
  --floating-bottom: 24px;
  --floating-appexi-right: 32px;
  --floating-dock-right: 104px;

  /* ── Z-Index Hierarchy (Release 28) ── */
  --z-floating-dock: 999;
  --z-appexi: 9999;
  --z-modal-backdrop: 100;
  --z-modal-content: 200;
  --z-command-palette: 99999;

  /* ── Design System Typography Scale (Release 16.6) ── */
  --font-display-kpi: 48px;
  --font-page-title: 40px;
  --font-section-title: 32px;
  --font-card-title: 22px;
  --font-subheading: 18px;
  --font-body: 16px;
  --font-supporting: 15px;
  --font-caption: 13px;
  --font-micro: 11px;

  /* Component Sizing */
  --btn-height: 44px;
  --input-height: 48px;
  --card-padding: 28px;
  --card-padding-lg: 36px;
  --section-spacing: 64px;
  --section-spacing-lg: 96px;

  /* ── Legacy Aliases ── */
  --font-size-micro: 11px;
  --font-size-caption: 13px;
  --font-size-body: var(--font-body);
  --font-size-supporting: var(--font-supporting);
  --font-size-h3: var(--font-card-title);
  --font-size-h2: var(--font-section-title);
  --font-size-h1: var(--font-page-title);
  --font-size-display: var(--font-display-kpi);

  --font-size-xs: var(--font-caption);
  --font-size-sm: var(--font-supporting);
  --font-size-md: var(--font-body);

  /* ══════════════════════════════════════════════════════════════
     RELEASE 29 — SEMANTIC DASHBOARD COLOUR TOKENS
     Every module has: primary, surface, border, hover, icon, chart
     ══════════════════════════════════════════════════════════════ */

  /* Executive */
  --clr-executive-primary: #818cf8;
  --clr-executive-surface: rgba(129,140,248,0.06);
  --clr-executive-border: rgba(129,140,248,0.15);
  --clr-executive-hover: rgba(129,140,248,0.12);
  --clr-executive-icon: #818cf8;
  --clr-executive-chart: #818cf8;

  /* Operational */
  --clr-operational-primary: #34d399;
  --clr-operational-surface: rgba(52,211,153,0.06);
  --clr-operational-border: rgba(52,211,153,0.15);
  --clr-operational-hover: rgba(52,211,153,0.12);
  --clr-operational-icon: #34d399;
  --clr-operational-chart: #34d399;

  /* Financial */
  --clr-financial-primary: #f59e0b;
  --clr-financial-surface: rgba(245,158,11,0.06);
  --clr-financial-border: rgba(245,158,11,0.15);
  --clr-financial-hover: rgba(245,158,11,0.12);
  --clr-financial-icon: #f59e0b;
  --clr-financial-chart: #f59e0b;

  /* Governance */
  --clr-governance-primary: #3b82f6;
  --clr-governance-surface: rgba(59,130,246,0.06);
  --clr-governance-border: rgba(59,130,246,0.15);
  --clr-governance-hover: rgba(59,130,246,0.12);
  --clr-governance-icon: #3b82f6;
  --clr-governance-chart: #3b82f6;

  /* Risk */
  --clr-risk-primary: #ef4444;
  --clr-risk-surface: rgba(239,68,68,0.06);
  --clr-risk-border: rgba(239,68,68,0.15);
  --clr-risk-hover: rgba(239,68,68,0.12);
  --clr-risk-icon: #ef4444;
  --clr-risk-chart: #ef4444;

  /* Asset */
  --clr-asset-primary: #8b5cf6;
  --clr-asset-surface: rgba(139,92,246,0.06);
  --clr-asset-border: rgba(139,92,246,0.15);
  --clr-asset-hover: rgba(139,92,246,0.12);
  --clr-asset-icon: #8b5cf6;
  --clr-asset-chart: #8b5cf6;

  /* Safety */
  --clr-safety-primary: #14b8a6;
  --clr-safety-surface: rgba(20,184,166,0.06);
  --clr-safety-border: rgba(20,184,166,0.15);
  --clr-safety-hover: rgba(20,184,166,0.12);
  --clr-safety-icon: #14b8a6;
  --clr-safety-chart: #14b8a6;

  /* Quality */
  --clr-quality-primary: #f97316;
  --clr-quality-surface: rgba(249,115,22,0.06);
  --clr-quality-border: rgba(249,115,22,0.15);
  --clr-quality-hover: rgba(249,115,22,0.12);
  --clr-quality-icon: #f97316;
  --clr-quality-chart: #f97316;

  /* Maintenance */
  --clr-maintenance-primary: #ec4899;
  --clr-maintenance-surface: rgba(236,72,153,0.06);
  --clr-maintenance-border: rgba(236,72,153,0.15);
  --clr-maintenance-hover: rgba(236,72,153,0.12);
  --clr-maintenance-icon: #ec4899;
  --clr-maintenance-chart: #ec4899;

  /* People */
  --clr-people-primary: #06b6d4;
  --clr-people-surface: rgba(6,182,212,0.06);
  --clr-people-border: rgba(6,182,212,0.15);
  --clr-people-hover: rgba(6,182,212,0.12);
  --clr-people-icon: #06b6d4;
  --clr-people-chart: #06b6d4;

  /* Environment */
  --clr-environment-primary: #22c55e;
  --clr-environment-surface: rgba(34,197,94,0.06);
  --clr-environment-border: rgba(34,197,94,0.15);
  --clr-environment-hover: rgba(34,197,94,0.12);
  --clr-environment-icon: #22c55e;
  --clr-environment-chart: #22c55e;

  /* ── Trend Colours ── */
  --trend-up: #34d399;
  --trend-down: #ef4444;
  --trend-flat: #9ca3af;

  /* ── Status Colours ── */
  --status-critical: #ef4444;
  --status-warning: #f59e0b;
  --status-good: #34d399;
  --status-inactive: #6b7280;

  /* ── Weights ── */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* ── Letter Spacing ── */
  --letter-spacing-tight: -0.03em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.08em;
  --letter-spacing-wider: 0.5px;

  /* ── Line Height ── */
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* ── Transitions ── */
  --transition-fast: 0.15s;
  --transition-normal: 0.25s;
  --transition-slow: 0.35s;

  /* ══════════════════════════════════════════════════════════════
     ENTERPRISE DESIGN SYSTEM TOKENS (--ds-*)
     Public interface — all new code uses these.
     Private implementation aliased from --color-* / --spacing-* above.
     ══════════════════════════════════════════════════════════════ */

  /* ── DS: Colours ── */
  --ds-color-primary: var(--color-primary);
  --ds-color-primary-hover: var(--color-primary-hover);
  --ds-color-primary-light: var(--color-primary-light);
  --ds-color-primary-subtle: var(--color-primary-subtle);
  --ds-color-secondary: var(--color-secondary);
  --ds-color-success: var(--color-success);
  --ds-color-success-hover: var(--color-success-hover);
  --ds-color-success-light: var(--color-success-light);
  --ds-color-success-subtle: var(--color-success-subtle);
  --ds-color-warning: var(--color-warning);
  --ds-color-warning-hover: var(--color-warning-hover);
  --ds-color-warning-light: var(--color-warning-light);
  --ds-color-warning-subtle: var(--color-warning-subtle);
  --ds-color-danger: var(--color-danger);
  --ds-color-danger-hover: var(--color-danger-hover);
  --ds-color-danger-light: var(--color-danger-light);
  --ds-color-danger-subtle: var(--color-danger-subtle);
  --ds-color-info: var(--color-info);
  --ds-color-info-light: var(--color-info-light);

  /* ── DS: Surfaces ── */
  --ds-surface-page: var(--surface-page);
  --ds-surface-card: var(--surface-card);
  --ds-surface-card-hover: var(--surface-card-hover);
  --ds-surface-elevated: var(--surface-elevated);
  --ds-surface-overlay: var(--surface-overlay);
  --ds-surface-border: var(--surface-border);
  --ds-surface-border-hover: var(--surface-border-hover);

  /* ── DS: Text ── */
  --ds-text-primary: var(--text-primary);
  --ds-text-secondary: var(--text-secondary);
  --ds-text-muted: var(--text-muted);
  --ds-text-inverse: var(--text-inverse);
  --ds-text-link: var(--text-link);

  /* ── DS: Spacing ── */
  --ds-space-xs: var(--spacing-xs);
  --ds-space-sm: var(--spacing-sm);
  --ds-space-md: var(--spacing-md);
  --ds-space-lg: var(--spacing-lg);
  --ds-space-xl: var(--spacing-xl);
  --ds-space-2xl: var(--spacing-2xl);
  --ds-space-3xl: var(--spacing-3xl);
  --ds-space-4xl: var(--spacing-4xl);

  /* ── DS: Border Radius ── */
  --ds-radius-sm: var(--radius-sm);
  --ds-radius-md: var(--radius-md);
  --ds-radius-lg: var(--radius-lg);
  --ds-radius-xl: var(--radius-xl);
  --ds-radius-full: var(--radius-full);

  /* ── DS: Shadows ── */
  --ds-shadow-sm: var(--shadow-sm);
  --ds-shadow-md: var(--shadow-md);
  --ds-shadow-lg: var(--shadow-lg);

  /* ── DS: Typography Scale ── */
  --ds-font-display-kpi: var(--font-display-kpi);
  --ds-font-page-title: var(--font-page-title);
  --ds-font-section-title: var(--font-section-title);
  --ds-font-card-title: var(--font-card-title);
  --ds-font-subheading: var(--font-subheading);
  --ds-font-body: var(--font-body);
  --ds-font-supporting: var(--font-supporting);
  --ds-font-caption: var(--font-caption);
  --ds-font-micro: var(--font-micro);

  /* ── DS: Font Weights ── */
  --ds-font-weight-normal: var(--font-weight-normal);
  --ds-font-weight-medium: var(--font-weight-medium);
  --ds-font-weight-semibold: var(--font-weight-semibold);
  --ds-font-weight-bold: var(--font-weight-bold);
  --ds-font-weight-extrabold: var(--font-weight-extrabold);

  /* ── DS: Letter Spacing ── */
  --ds-letter-spacing-tight: var(--letter-spacing-tight);
  --ds-letter-spacing-normal: var(--letter-spacing-normal);
  --ds-letter-spacing-wide: var(--letter-spacing-wide);
  --ds-letter-spacing-wider: var(--letter-spacing-wider);

  /* ── DS: Line Height ── */
  --ds-line-height-tight: var(--line-height-tight);
  --ds-line-height-normal: var(--line-height-normal);
  --ds-line-height-relaxed: var(--line-height-relaxed);

  /* ── DS: Transitions ── */
  --ds-transition-fast: var(--transition-fast);
  --ds-transition-normal: var(--transition-normal);
  --ds-transition-slow: var(--transition-slow);

  /* ── DS: Component Sizing ── */
  --ds-btn-height: var(--btn-height);
  --ds-input-height: var(--input-height);
  --ds-card-padding: var(--card-padding);
  --ds-card-padding-lg: var(--card-padding-lg);
  --ds-section-spacing: var(--section-spacing);
  --ds-section-spacing-lg: var(--section-spacing-lg);
}
  --line-height-relaxed: 1.7;

  /* ── Shadows (premium) ── */
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 28px;
  --font-size-display: 42px;
  --font-weight-normal: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --letter-spacing-tight: -0.03em;
  --letter-spacing-wide: 0.08em;
  --letter-spacing-wider: 0.5px;
  --line-height-tight: 1.1;
  --line-height-normal: 1.6;

  /* ── Transitions ── */
  --transition-fast: 0.15s;
  --transition-normal: 0.2s;
}

/* ══════════════════════════════════════════════════════════════
   APEX DARK THEME
   ══════════════════════════════════════════════════════════════ */
body.style-apex-dark {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: rgba(99, 102, 241, 0.15);
  --color-primary-subtle: rgba(99, 102, 241, 0.06);
  --color-secondary: #818cf8;
  --color-success-light: rgba(5, 150, 105, 0.15);
  --color-success-subtle: rgba(5, 150, 105, 0.06);
  --color-warning-light: rgba(217, 119, 6, 0.15);
  --color-danger-light: rgba(225, 29, 72, 0.15);
  --color-info-light: rgba(8, 145, 178, 0.15);

  --surface-page: #0b1120;
  --surface-card: rgba(255, 255, 255, 0.03);
  --surface-card-hover: rgba(255, 255, 255, 0.06);
  --surface-elevated: rgba(255, 255, 255, 0.06);
  --surface-overlay: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.06);
  --surface-border-hover: rgba(255, 255, 255, 0.1);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-link: #818cf8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   COLOR BLIND SAFE THEME
   ══════════════════════════════════════════════════════════════ */
body.style-colorblind {
  --color-primary: #004e98;
  --color-primary-hover: #003d7a;
  --color-primary-light: rgba(0, 78, 152, 0.1);
  --color-primary-subtle: rgba(0, 78, 152, 0.05);
  --color-secondary: #004e98;
  --color-success: #000000;
  --color-success-hover: #333333;
  --color-success-light: rgba(0, 0, 0, 0.1);
  --color-success-subtle: rgba(0, 0, 0, 0.05);
  --color-warning: #ff6b35;
  --color-warning-hover: #e55a2b;
  --color-warning-light: rgba(255, 107, 53, 0.15);
  --color-warning-subtle: rgba(255, 107, 53, 0.06);
  --color-danger: #000000;
  --color-danger-hover: #333333;
  --color-danger-light: rgba(0, 0, 0, 0.1);
  --color-danger-subtle: rgba(0, 0, 0, 0.05);
  --color-info: #004e98;

  --surface-page: #ffffff;
  --surface-card: #ffffff;
  --surface-card-hover: #f0f0f0;
  --surface-elevated: #ffffff;
  --surface-overlay: rgba(0, 0, 0, 0.08);
  --surface-border: #000000;
  --surface-border-hover: #ff6b35;

  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #555555;
  --text-link: #004e98;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --border-width: 2px;
}

/* ══════════════════════════════════════════════════════════════
   PALETTES — override --color-primary only
   (all other tokens cascade from the active theme)
   ══════════════════════════════════════════════════════════════ */
body.palette-green {
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-light: rgba(16, 185, 129, 0.15);
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --color-secondary: #34d399;
  --text-link: #10b981;
}

body.palette-amber {
  --color-primary: #d97706;
  --color-primary-hover: #b45309;
  --color-primary-light: rgba(217, 119, 6, 0.15);
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.1);
  --color-secondary: #fbbf24;
  --text-link: #d97706;
}

body.palette-red {
  --color-primary: #ef4444;
  --color-primary-hover: #dc2626;
  --color-primary-light: rgba(239, 68, 68, 0.15);
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-soft: rgba(239, 68, 68, 0.1);
  --color-secondary: #f87171;
  --text-link: #ef4444;
}

body.palette-cyan {
  --color-primary: #06b6d4;
  --color-primary-hover: #0891b2;
  --color-primary-light: rgba(6, 182, 212, 0.15);
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --accent-soft: rgba(6, 182, 212, 0.1);
  --color-secondary: #22d3ee;
  --text-link: #06b6d4;
}

body.palette-purple {
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-primary-light: rgba(139, 92, 246, 0.15);
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.1);
  --color-secondary: #a78bfa;
  --text-link: #8b5cf6;
}
/* ══════════════════════════════════════════════════════════════
   EXECUTIVE CARD SYSTEM — Forwarding File (Release 24.5)
   
   All classes have been migrated to app/assets/stylesheets/design_system/.
   This file is kept for backward compatibility and will be removed
   once all workspaces have been migrated to the Enterprise Design System.
   ══════════════════════════════════════════════════════════════ */

@import "design_system/design_system";
/* ── APPEX360 Form Validation Framework ──
   Reusable validation styles for all forms.
   Part of Release 22.4.2 — Enterprise Form Validation Framework.
   
   Usage: Include in any form with `data-controller="form-validation"`
   and `data-validate-required="true"` on required fields.
*/

/* ── Required Field Indicator ── */
.required-indicator {
  color: var(--color-danger, #ef4444);
  margin-left: 0.15rem;
  font-weight: 700;
}

/* ── Invalid Field State ── */
.field-invalid {
  border-color: var(--color-danger, #ef4444) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* ── Success Field State (brief flash after correction) ── */
.field-success {
  border-color: var(--color-success, #22c55e) !important;
  background: rgba(34, 197, 94, 0.05) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* ── Error Message (below field) ── */
.field-error-message {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-danger, #ef4444);
  font-size: 0.7rem;
  margin-top: 0.3rem;
  line-height: 1.4;
  animation: field-error-in 0.2s ease-out;
}

.field-error-message .field-error-icon {
  flex-shrink: 0;
  font-size: 0.6rem;
  width: 1rem;
  text-align: center;
}

@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Validation Summary (top of form) ── */
.validation-summary {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  animation: summary-slide-in 0.25s ease-out;
}

.validation-summary-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-danger, #ef4444);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.validation-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.validation-summary-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: rgba(239, 68, 68, 0.85);
  padding: 0.2rem 0;
  cursor: pointer;
  transition: color 0.1s;
}

.validation-summary-item:hover {
  color: var(--color-danger, #ef4444);
  text-decoration: underline;
}

@keyframes summary-slide-in {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 300px; }
}

/* ── Validation Toast ── */
.validation-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface-card, #1f2937);
  border: 1px solid var(--border-color, #374151);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-primary, #f9fafb);
  animation: toast-in 0.3s ease-out;
  max-width: 360px;
}

.validation-toast.toast-dismissing {
  animation: toast-out 0.2s ease-in forwards;
}

.validation-toast .toast-close {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  border: none;
  background: none;
  color: inherit;
  padding: 0.15rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.validation-toast .toast-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

/* ── Form Status Indicator (near submit button) ── */
.form-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  transition: all 0.2s ease;
}

.form-status-indicator.status-ready {
  color: var(--color-success, #22c55e);
  background: rgba(34, 197, 94, 0.1);
}

.form-status-indicator.status-errors {
  color: var(--color-danger, #ef4444);
  background: rgba(239, 68, 68, 0.1);
}

.form-status-indicator .status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.form-status-indicator.status-ready .status-dot {
  background: var(--color-success, #22c55e);
}

.form-status-indicator.status-errors .status-dot {
  background: var(--color-danger, #ef4444);
}

/* ── Theme: Colorblind (uses 2px border instead of colour-only) ── */
body.style-colorblind .field-invalid {
  border-width: 2px;
  border-style: solid;
}

body.style-colorblind .field-success {
  border-width: 2px;
  border-style: solid;
}

body.style-colorblind .field-error-message {
  font-weight: 600;
}

body.style-colorblind .validation-summary {
  border-width: 2px;
}

/* ── Theme: High Contrast (white border, gold accent) ── */
body.theme-high-contrast .field-invalid {
  border-color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.15) !important;
}

body.theme-high-contrast .field-success {
  border-color: #44ff44 !important;
  background: rgba(68, 255, 68, 0.1) !important;
}

body.theme-high-contrast .field-error-message {
  color: #ff6666;
}

body.theme-high-contrast .validation-summary {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.12);
}

body.theme-high-contrast .validation-toast {
  border: 2px solid #ffffff;
  background: #000000;
  color: #ffffff;
}

/* ── Theme: AI Futuristic ── */
body.theme-ai-futuristic .field-invalid {
  border-color: rgba(255, 77, 77, 0.6) !important;
  background: rgba(255, 77, 77, 0.04) !important;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.15);
}

body.theme-ai-futuristic .field-success {
  border-color: rgba(0, 255, 170, 0.5) !important;
  background: rgba(0, 255, 170, 0.03) !important;
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.1);
}

/* ── Mobile Responsive ── */
@media (max-width: 640px) {
  .validation-toast {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
  }

  .validation-summary {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 0.35rem;
  }
}
/* ══════════════════════════════════════════════════════════════
   PORTFOLIO — Shared Component Styles
   Now consumes DESIGN TOKENS (design_tokens.css)
   ══════════════════════════════════════════════════════════════ */

/* ── Portfolio Page Shell ── */
.portfolio-shell {
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-primary);
}

/* ── Portfolio Cards ── */
.portfolio-card {
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-md);
  transition: border-color var(--transition-normal);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
body.style-apex-dark .portfolio-card {
  backdrop-filter: blur(12px);
}
body.style-colorblind .portfolio-card {
  border-width: var(--border-width, 2px);
  border-radius: var(--radius-sm);
}

/* ── Portfolio KPI Values ── */
.portfolio-kpi {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
}
.portfolio-kpi-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

/* ── Portfolio Table ── */
.portfolio-table {
  width: 100%;
  border-collapse: collapse;
}
.portfolio-table th {
  padding: var(--spacing-sm) var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  text-align: left;
  border-bottom: 1px solid;
  color: var(--text-muted);
  border-color: var(--surface-border);
}
body.style-colorblind .portfolio-table th {
  border-width: 2px;
  border-color: var(--surface-border);
}
.portfolio-table td {
  padding: var(--spacing-sm);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid;
  color: var(--text-primary);
  border-color: var(--surface-overlay);
}
.portfolio-table tr:hover td {
  background: var(--surface-overlay);
}

/* ── Portfolio Badges ── */
.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 2px var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
.portfolio-badge-green { background: var(--color-success-light); color: var(--color-success); }
.portfolio-badge-amber { background: var(--color-warning-light); color: var(--color-warning); }
.portfolio-badge-red   { background: var(--color-danger-light); color: var(--color-danger); }
.portfolio-badge-blue  { background: var(--color-primary-light); color: var(--color-secondary); }
.portfolio-badge-gray  { background: var(--surface-overlay); color: var(--text-secondary); }
body.style-colorblind .portfolio-badge { border: var(--border-width, 2px) solid; }
body.style-colorblind .portfolio-badge-green,
body.style-colorblind .portfolio-badge-amber,
body.style-colorblind .portfolio-badge-red { background: var(--surface-card); color: var(--text-primary); border-color: var(--text-primary); }
body.style-colorblind .portfolio-badge-blue { background: var(--surface-card); color: var(--color-primary); border-color: var(--color-primary); }

/* ── Portfolio Progress Bars ── */
.portfolio-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-overlay);
}
body.style-colorblind .portfolio-bar {
  background: var(--surface-page);
  border: 1px solid var(--text-primary);
}
.portfolio-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s;
}

/* ── Portfolio Stat Cards ── */
.portfolio-stat {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
body.style-colorblind .portfolio-stat {
  border-width: var(--border-width, 2px);
}

/* ── Portfolio Section Title ── */
.portfolio-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}
body.style-colorblind .portfolio-section-title {
  letter-spacing: 0.12em;
}

/* ── Portfolio Empty State ── */
.portfolio-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  background: var(--color-primary-subtle);
}
body.style-colorblind .portfolio-empty-icon {
  background: var(--surface-card);
  border: var(--border-width, 2px) solid var(--text-primary);
}

/* ── Portfolio Form Inputs ── */
.portfolio-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}
.portfolio-input:focus {
  border-color: var(--color-primary);
}
body.style-colorblind .portfolio-input {
  border-width: var(--border-width, 2px);
}

.portfolio-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--spacing-xs);
  display: block;
  color: var(--text-secondary);
}

/* ── Portfolio KPI Grid ── */
.portfolio-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-sm);
}

/* ── Rank Badge ── */
.portfolio-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}
.portfolio-rank-gold   { background: rgba(205,127,50,0.2); color: #cd7f32; }
.portfolio-rank-silver { background: rgba(148,163,184,0.2); color: #94a3b8; }
.portfolio-rank-bronze { background: rgba(205,127,50,0.1); color: #cd7f32; }
/* ═══════════════════════════════════════════════════════════════════
   APPEX360 UNIVERSAL PRINT STYLESHEET — Platform Standard v1.0
   ═══════════════════════════════════════════════════════════════════
   Single reusable print stylesheet for every APPEX360 workspace.
   No page-specific print CSS. All workspaces consume this file.
   
   Consumption: included via require_tree . in application.css manifest.
   Every layout automatically gets print support.
   ═══════════════════════════════════════════════════════════════════ */

@media print {
  /* ═════════════════════════════════════════════════════════════════
     PAGE SETUP — @page rules for margins and running headers
     ═════════════════════════════════════════════════════════════════ */
  @page {
    margin: 20mm 16mm 22mm 16mm;
    size: A4 portrait;

    @top-left {
      content: "";
      font-size: 9pt;
      color: #666;
    }

    @top-center {
      content: "";
      font-size: 9pt;
      color: #666;
    }

    @top-right {
      content: "";
      font-size: 9pt;
      color: #666;
    }

    @bottom-left {
      content: "APPEX360";
      font-size: 8pt;
      color: #999;
    }

    @bottom-center {
      content: "Page " counter(page) " of " counter(pages);
      font-size: 9pt;
      color: #666;
    }

    @bottom-right {
      content: "";
      font-size: 8pt;
      color: #999;
    }
  }

  @page :first {
    @top-left { content: ""; }
    @top-center { content: ""; }
    @top-right { content: ""; }
  }

  /* ═════════════════════════════════════════════════════════════════
     BASE — print-specific defaults
     ═════════════════════════════════════════════════════════════════ */
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html {
    font-size: 11pt;
  }

  body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #1a1a1a !important;
    background: white !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     HIDE — UI chrome that should never appear in print
     ═════════════════════════════════════════════════════════════════ */
  nav, .navbar, nav *, .navbar *,
  .sidebar, .side-nav, .side-bar,
  footer, .footer-nav, .site-footer,
  button, .btn, .ds-btn, .ds-btn-primary, .ds-btn-secondary, .ds-btn-ghost,
  input, select, textarea,
  .fixed, .sticky, [style*="position: fixed"], [style*="position: sticky"],
  .dropdown, .dropdown-content, [class*="dropdown"],
  .modal, .dialog, [class*="modal"],
  .toast, .notification-toast, .flash-message,
  .search-bar, [class*="search"], [class*="filter"],
  .pagination, [class*="pagination"],
  .action-bar, .toolbar, [class*="action-bar"],
  #pageLoader, #helpDrawer, #help-overlay,
  .screenshot-deterrent, .scroll-to-top,
  .global-nav, .top-nav, .bottom-nav,
  .badge-count, .notification-badge,
  .no-print,
  .export-dropdown, [data-controller="export"],
  [class*="sidebar"], [class*="navbar"],
  iframe, .llamapress-chat, [id*="llama"] {
    display: none !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     SHOW — print-only content (metadata header & footer)
     ═════════════════════════════════════════════════════════════════ */
  .print-only {
    display: block !important;
  }

  .print-header {
    display: block !important;
    text-align: left;
    padding-bottom: 8pt;
    margin-bottom: 12pt;
    border-bottom: 2pt solid #1a1a1a;
  }

  .print-header .print-logo {
    font-size: 14pt;
    font-weight: 800;
    color: #1a1a1a !important;
    margin: 0 0 4pt 0;
  }

  .print-header .print-meta {
    font-size: 8pt;
    color: #666 !important;
    margin: 0;
    line-height: 1.6;
  }

  .print-footer {
    display: block !important;
    text-align: center;
    padding-top: 8pt;
    margin-top: 12pt;
    border-top: 1pt solid #ccc;
    font-size: 8pt;
    color: #999 !important;
  }

  .print-footer .print-classification {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ═════════════════════════════════════════════════════════════════
     TYPOGRAPHY — print-optimised heading sizes
     ═════════════════════════════════════════════════════════════════ */
  h1 { font-size: 18pt; margin: 0 0 8pt; page-break-after: avoid; }
  h2 { font-size: 14pt; margin: 12pt 0 6pt; page-break-after: avoid; }
  h3 { font-size: 12pt; margin: 10pt 0 4pt; page-break-after: avoid; }
  h4 { font-size: 11pt; margin: 8pt 0 4pt; }
  p { margin: 0 0 6pt; orphans: 3; widows: 3; }
  a { color: #1a1a1a !important; text-decoration: underline; }
  strong, b { font-weight: 700; }

  /* ═════════════════════════════════════════════════════════════════
     CARDS — collapse to simple bordered containers
     ═════════════════════════════════════════════════════════════════ */
  .exec-card, .ds-kpi-card, .ds-glass, .card, .apex-card,
  [class*="card"], [class*="kpi-card"], [class*="exec-card"],
  [class*="glass-card"], [class*="ds-kpi"] {
    border: 1pt solid #ccc !important;
    border-radius: 4pt !important;
    padding: 10pt !important;
    margin: 0 0 8pt !important;
    background: white !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* ═════════════════════════════════════════════════════════════════
     KPIs — keep colored values, flatten backgrounds
     ═════════════════════════════════════════════════════════════════ */
  .ds-kpi-value, .exec-kpi, .exec-kpi-medium, .exec-kpi-small,
  .kpi-value, .stat-value,
  [class*="kpi-value"], [class*="stat-value"] {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .ds-kpi-label, .exec-label, [class*="kpi-label"], [class*="metric-label"] {
    color: #666 !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     GRIDS — collapse to single column on narrow paper
     ═════════════════════════════════════════════════════════════════ */
  .exec-grid-2, .exec-grid-4, [class*="grid"],
  [style*="display: grid"], [style*="display:grid"] {
    display: block !important;
  }

  .exec-grid-2 > *, .exec-grid-4 > *,
  [class*="grid"] > *,
  [style*="display: grid"] > *, [style*="display:grid"] > * {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 8pt;
  }

  /* Allow 2-column layout for wide-enough cards */
  .print-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10pt !important;
  }
  .print-grid-2 > * {
    margin-bottom: 0 !important;
  }

  .print-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8pt !important;
  }
  .print-grid-4 > * {
    margin-bottom: 0 !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     TABLES — full width with visible borders
     ═════════════════════════════════════════════════════════════════ */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 8pt 0;
    font-size: 9pt;
  }

  th, td {
    padding: 4pt 6pt !important;
    border: 1pt solid #ccc !important;
    text-align: left;
  }

  th {
    background: #f5f5f5 !important;
    font-weight: 700;
  }

  tr {
    page-break-inside: avoid;
  }

  /* ═════════════════════════════════════════════════════════════════
     CHARTS & VISUALS — preserve with safeguards
     ═════════════════════════════════════════════════════════════════ */
  canvas, svg, img, .chart, [class*="chart"], [class*="graph"] {
    max-width: 100% !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  canvas {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     PAGE BREAKS — manual control classes
     ═════════════════════════════════════════════════════════════════ */
  .page-break, .print-page-break {
    page-break-before: always !important;
    break-before: page !important;
  }

  .page-break-after {
    page-break-after: always !important;
    break-after: page !important;
  }

  .avoid-break {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     OVERFLOW — ensure nothing is clipped
     ═════════════════════════════════════════════════════════════════ */
  * { overflow: visible !important; }

  /* ═════════════════════════════════════════════════════════════════
     UTILITY — preserve colored badges and status indicators
     ═════════════════════════════════════════════════════════════════ */
  [class*="badge"], [class*="tag"], [class*="status"],
  [class*="score"], [class*="ring"], [class*="gauge"],
  [class*="trend"], .trend-up, .trend-down, .trend-flat {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .trend-up { color: #10b981 !important; }
  .trend-down { color: #ef4444 !important; }
  .trend-flat { color: #6b7280 !important; }

  /* ═════════════════════════════════════════════════════════════════
     PROGRESS BARS — flatten to visible widths
     ═════════════════════════════════════════════════════════════════ */
  .exec-bar, .progress-bar, [class*="progress"] {
    border: 1pt solid #ccc !important;
    border-radius: 3pt !important;
    background: #f5f5f5 !important;
  }

  .exec-bar-fill, .progress-fill, [class*="bar-fill"] {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     FORMS — hide form controls that aren't printable
     ═════════════════════════════════════════════════════════════════ */
  form, .form-group, [class*="form-"] {
    display: none !important;
  }

  /* Exception: show .print-show-form for printable forms */
  .print-show-form form,
  .print-show-form .form-group {
    display: block !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     PRINT PREVIEW — watermark for draft/preview state
     ═════════════════════════════════════════════════════════════════ */
  .print-draft-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 48pt;
    font-weight: 900;
    color: rgba(200, 200, 200, 0.3) !important;
    pointer-events: none;
    z-index: 9999;
  }
}
/* APEX360 UI Style Engine — 4 Themes */
/* Override Tailwind utility classes per theme */
/* ============================================ */

/* ===== APPLE MINIMAL ===== */
[data-style="apple_minimal"] {
  --bg: #1c1c1e;
  --bg-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #aeaeb2;
  --accent: #0071e3;
  --border: rgba(255,255,255,0.08);
}

[data-style="apple_minimal"] .bg-gray-900,
[data-style="apple_minimal"] .bg-gray-950 { background-color: #1c1c1e !important; }
[data-style="apple_minimal"] .bg-gray-800 { background-color: #2c2c2e !important; }
[data-style="apple_minimal"] .bg-gray-700 { background-color: #3a3a3c !important; }
[data-style="apple_minimal"] .text-gray-100,
[data-style="apple_minimal"] .text-white { color: #f5f5f7 !important; }
[data-style="apple_minimal"] .text-gray-400,
[data-style="apple_minimal"] .text-gray-500 { color: #aeaeb2 !important; }
[data-style="apple_minimal"] .text-indigo-400 { color: #0071e3 !important; }
[data-style="apple_minimal"] .border-gray-700 { border-color: rgba(255,255,255,0.08) !important; }
[data-style="apple_minimal"] .card,
[data-style="apple_minimal"] [class*="bg-gray-8"] { background-color: #2c2c2e !important; }
[data-style="apple_minimal"] .navbar { background-color: #1c1c1e !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
[data-style="apple_minimal"] .btn-ghost:hover { background-color: rgba(255,255,255,0.05) !important; }

/* ===== MODERN SAAS ===== */
[data-style="modern_saas"] {
  --bg: #f8f9fa;
  --bg-2: #ffffff;
  --text: #212529;
  --text-2: #6c757d;
  --accent: #4361ee;
  --border: #dee2e6;
}

[data-style="modern_saas"] .bg-gray-900,
[data-style="modern_saas"] .bg-gray-950 { background-color: #f8f9fa !important; }
[data-style="modern_saas"] .bg-gray-800 { background-color: #ffffff !important; }
[data-style="modern_saas"] .bg-gray-700 { background-color: #e9ecef !important; }
[data-style="modern_saas"] .text-gray-100,
[data-style="modern_saas"] .text-white { color: #212529 !important; }
[data-style="modern_saas"] .text-gray-400,
[data-style="modern_saas"] .text-gray-500 { color: #6c757d !important; }
[data-style="modern_saas"] .text-indigo-400 { color: #4361ee !important; }
[data-style="modern_saas"] .border-gray-700,
[data-style="modern_saas"] .border-gray-800 { border-color: #dee2e6 !important; }
[data-style="modern_saas"] .card,
[data-style="modern_saas"] [class*="bg-gray-8"] { background-color: #ffffff !important; }
[data-style="modern_saas"] .navbar { background-color: #212529 !important; }
[data-style="modern_saas"] .navbar .text-white,
[data-style="modern_saas"] .navbar .text-gray-100 { color: #ffffff !important; }
[data-style="modern_saas"] .navbar .text-gray-400 { color: #adb5bd !important; }
[data-style="modern_saas"] .navbar .btn-ghost:hover { background-color: rgba(255,255,255,0.1) !important; }
[data-style="modern_saas"] .rounded-xl { border-radius: 0px !important; }
[data-style="modern_saas"] .rounded-lg { border-radius: 0px !important; }

/* ===== MICROSOFT FLUENT ===== */
[data-style="microsoft_fluent"] {
  --bg: #f0f0f0;
  --bg-2: #ffffff;
  --text: #1a1a1a;
  --text-2: #555555;
  --accent: #0078d4;
  --border: #d1d1d1;
}

[data-style="microsoft_fluent"] .bg-gray-900,
[data-style="microsoft_fluent"] .bg-gray-950 { background-color: #f0f0f0 !important; }
[data-style="microsoft_fluent"] .bg-gray-800 { background-color: #ffffff !important; }
[data-style="microsoft_fluent"] .bg-gray-700 { background-color: #e1e1e1 !important; }
[data-style="microsoft_fluent"] .text-gray-100,
[data-style="microsoft_fluent"] .text-white { color: #1a1a1a !important; }
[data-style="microsoft_fluent"] .text-gray-400,
[data-style="microsoft_fluent"] .text-gray-500 { color: #555555 !important; }
[data-style="microsoft_fluent"] .text-indigo-400 { color: #0078d4 !important; }
[data-style="microsoft_fluent"] .border-gray-700,
[data-style="microsoft_fluent"] .border-gray-800 { border-color: #d1d1d1 !important; }
[data-style="microsoft_fluent"] .card,
[data-style="microsoft_fluent"] [class*="bg-gray-8"] { background-color: #ffffff !important; }
[data-style="microsoft_fluent"] .navbar { background-color: #0078d4 !important; }
[data-style="microsoft_fluent"] .navbar .text-white,
[data-style="microsoft_fluent"] .navbar .text-gray-100 { color: #ffffff !important; }
[data-style="microsoft_fluent"] .navbar .text-indigo-400 { color: #ffffff !important; }
[data-style="microsoft_fluent"] .rounded-xl { border-radius: 4px !important; }
[data-style="microsoft_fluent"] .rounded-lg { border-radius: 4px !important; }
[data-style="microsoft_fluent"] [class*="shadow"] { box-shadow: 0 4px 8px rgba(0,0,0,0.12) !important; }

/* ===== BOLD COLOURFUL ===== */
[data-style="bold_colourful"] {
  --bg: #0f0f1a;
  --bg-2: #1a1a2e;
  --text: #ffffff;
  --text-2: #c4c4d4;
  --accent: #f72585;
  --border: rgba(255,255,255,0.1);
}

[data-style="bold_colourful"] .bg-gray-900 { background-color: #0f0f1a !important; }
[data-style="bold_colourful"] .bg-gray-950 { background-color: #0a0a14 !important; }
[data-style="bold_colourful"] .bg-gray-800 { background-color: #1a1a2e !important; }
[data-style="bold_colourful"] .bg-gray-700 { background-color: #16213e !important; }
[data-style="bold_colourful"] .bg-indigo-900\/40,
[data-style="bold_colourful"] .bg-indigo-900\/30,
[data-style="bold_colourful"] .bg-indigo-900\/20 { 
  background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2)) !important; 
}
[data-style="bold_colourful"] .bg-emerald-600\/20 { 
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(52,211,153,0.15)) !important; 
}
[data-style="bold_colourful"] .text-indigo-400 { color: #667eea !important; }
[data-style="bold_colourful"] .text-emerald-400 { color: #34d399 !important; }
[data-style="bold_colourful"] .text-amber-400 { color: #fbbf24 !important; }
[data-style="bold_colourful"] .text-red-400 { color: #f72585 !important; }
[data-style="bold_colourful"] .border-gray-700,
[data-style="bold_colourful"] .border-gray-800 { border-color: rgba(255,255,255,0.1) !important; }
[data-style="bold_colourful"] .border-indigo-800\/30 { border-color: rgba(102,126,234,0.3) !important; }
[data-style="bold_colourful"] .border-emerald-700\/50 { border-color: rgba(16,185,129,0.3) !important; }
[data-style="bold_colourful"] .card,
[data-style="bold_colourful"] [class*="bg-gray-8"] { background-color: #1a1a2e !important; }
[data-style="bold_colourful"] .navbar { 
  background: linear-gradient(135deg, #667eea, #764ba2) !important; 
  border-bottom: none !important;
}
[data-style="bold_colourful"] .navbar .text-indigo-400 { color: #ffffff !important; }
[data-style="bold_colourful"] [class*="shadow"] { 
  box-shadow: 0 4px 16px rgba(247,37,133,0.2) !important; 
}
[data-style="bold_colourful"] .rounded-xl { border-radius: 16px !important; }
[data-style="bold_colourful"] .rounded-lg { border-radius: 16px !important; }
[data-style="bold_colourful"] .rounded-2xl { border-radius: 24px !important; }
/* ══════════════════════════════════════════════════════════════
   Theme Utility Classes (Release 17.5)
   
   Drop-in replacements for common inline style patterns.
   Every class uses CSS variables — works in ALL themes.
   
   Usage: class="theme-text-primary theme-bg-card theme-border"
   ══════════════════════════════════════════════════════════════ */

/* ── Theme-aware Text Colors ── */
.theme-text-primary { color: var(--text-primary, #e2e8f0) !important; }
.theme-text-secondary { color: var(--text-secondary, #94a3b8) !important; }
.theme-text-muted { color: var(--text-muted, #64748b) !important; }
.theme-text-inverse { color: var(--text-inverse, #0b1120) !important; }
.theme-text-link { color: var(--text-link, #818cf8) !important; }
.theme-text-success { color: var(--color-success, #059669) !important; }
.theme-text-warning { color: var(--color-warning, #d97706) !important; }
.theme-text-danger { color: var(--color-danger, #e11d48) !important; }
.theme-text-info { color: var(--color-info, #0891b2) !important; }

/* ── Theme-aware Backgrounds ── */
.theme-bg-page { background: var(--surface-page, #0b1120) !important; }
.theme-bg-card { background: var(--surface-card, rgba(255,255,255,0.03)) !important; }
.theme-bg-elevated { background: var(--surface-elevated, rgba(255,255,255,0.06)) !important; }
.theme-bg-overlay { background: var(--surface-overlay, rgba(255,255,255,0.04)) !important; }

/* ── Theme-aware Borders ── */
.theme-border { border: 1px solid var(--surface-border, rgba(255,255,255,0.06)) !important; }
.theme-border-bottom { border-bottom: 1px solid var(--surface-border, rgba(255,255,255,0.06)) !important; }
.theme-border-top { border-top: 1px solid var(--surface-border, rgba(255,255,255,0.06)) !important; }

/* ── Theme-aware Cards ── */
.theme-card {
  border-radius: var(--radius-md, 12px) !important;
  border: 1px solid var(--surface-border, rgba(255,255,255,0.06)) !important;
  background: var(--surface-card, rgba(255,255,255,0.03)) !important;
  transition: all 0.2s ease !important;
}

/* ── Theme-aware Buttons ── */
.theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: var(--btn-height, 44px) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm, 6px) !important;
  font-size: var(--font-supporting, 15px) !important;
  font-weight: var(--font-weight-semibold, 600) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast, 0.15s) ease !important;
  text-decoration: none !important;
}
.theme-btn-primary {
  background: var(--color-primary, #6366f1) !important;
  color: #fff !important;
  border: none !important;
}
.theme-btn-primary:hover {
  background: var(--color-primary-hover, #4f46e5) !important;
  box-shadow: var(--shadow-glow-primary, none) !important;
  transform: translateY(-1px) !important;
}
.theme-btn-secondary {
  background: var(--color-primary-subtle, rgba(99,102,241,0.06)) !important;
  color: var(--color-secondary, #818cf8) !important;
  border: 1px solid var(--color-primary-light, rgba(99,102,241,0.15)) !important;
}
.theme-btn-ghost {
  background: transparent !important;
  color: var(--text-secondary, #94a3b8) !important;
  border: 1px solid var(--surface-border, rgba(255,255,255,0.06)) !important;
}

/* ── Theme-aware Badges ── */
.theme-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-sm, 6px) !important;
  font-size: var(--font-caption, 13px) !important;
  font-weight: var(--font-weight-semibold, 600) !important;
  border: 1px solid !important;
}
.theme-badge-success {
  background: var(--color-success-subtle, rgba(5,150,105,0.06)) !important;
  color: var(--color-success, #059669) !important;
  border-color: var(--color-success-light, rgba(5,150,105,0.15)) !important;
}
.theme-badge-warning {
  background: var(--color-warning-subtle, rgba(217,119,6,0.06)) !important;
  color: var(--color-warning, #d97706) !important;
  border-color: var(--color-warning-light, rgba(217,119,6,0.15)) !important;
}
.theme-badge-danger {
  background: var(--color-danger-subtle, rgba(225,29,72,0.06)) !important;
  color: var(--color-danger, #e11d48) !important;
  border-color: var(--color-danger-light, rgba(225,29,72,0.15)) !important;
}
.theme-badge-info {
  background: var(--color-info-light, rgba(8,145,178,0.15)) !important;
  color: var(--color-info, #0891b2) !important;
  border-color: var(--color-info-light, rgba(8,145,178,0.15)) !important;
}

/* ── Theme-aware Typography Scale ── */
.theme-font-kpi { font-size: var(--font-display-kpi, 48px) !important; font-weight: var(--font-weight-extrabold, 800) !important; line-height: 1 !important; letter-spacing: var(--letter-spacing-tight, -0.03em) !important; }
.theme-font-page-title { font-size: var(--font-page-title, 40px) !important; font-weight: var(--font-weight-extrabold, 800) !important; letter-spacing: var(--letter-spacing-tight, -0.03em) !important; }
.theme-font-section-title { font-size: var(--font-section-title, 32px) !important; font-weight: var(--font-weight-extrabold, 800) !important; letter-spacing: -0.02em !important; }
.theme-font-card-title { font-size: var(--font-card-title, 22px) !important; font-weight: var(--font-weight-bold, 700) !important; }
.theme-font-subheading { font-size: var(--font-subheading, 18px) !important; font-weight: var(--font-weight-semibold, 600) !important; }
.theme-font-body { font-size: var(--font-body, 16px) !important; font-weight: var(--font-weight-normal, 400) !important; line-height: var(--line-height-relaxed, 1.7) !important; }
.theme-font-supporting { font-size: var(--font-supporting, 15px) !important; }
.theme-font-caption { font-size: var(--font-caption, 13px) !important; }
.theme-font-micro { font-size: var(--font-micro, 11px) !important; }

/* ── Layout Utilities ── */
.theme-flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.theme-flex-between { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.theme-flex-gap-sm { gap: 8px !important; }
.theme-flex-gap-md { gap: 16px !important; }
.theme-flex-gap-lg { gap: 24px !important; }
.theme-container { max-width: 1280px !important; margin: 0 auto !important; padding: 0 24px !important; }
.theme-section-padding { padding: 24px 28px !important; }
.theme-section-spacing { margin-bottom: 40px !important; }
/* ══════════════════════════════════════════════════════════════
   APPEX360 — AI Futuristic Theme
   Premium dark AI platform with cyan/violet neon, glassmorphism
   and subtle animated background effects.
   
   All colours reference --var() tokens from tokens/ai_futuristic.css.
   No hardcoded hex values — the token file is the single source of truth.
   
   Apply: <body class="theme-ai-futuristic">
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variable Overrides ── */
body.theme-ai-futuristic {
  /* ── Core Colors (Derived from token file — single source of truth) ── */
  --color-primary: #06b6d4;
  --color-primary-hover: #0891b2;
  --color-primary-light: rgba(6, 182, 212, 0.15);
  --color-primary-subtle: rgba(6, 182, 212, 0.06);
  --color-secondary: #8b5cf6;
  --color-secondary-light: rgba(139, 92, 246, 0.15);
  --color-accent: #06b6d4;
  --color-accent-light: rgba(6, 182, 212, 0.15);
  --color-highlight: #8b5cf6;
  --color-highlight-light: rgba(139, 92, 246, 0.15);
  
  --color-success: #2dd4bf;
  --color-success-hover: #28C076;
  --color-success-light: rgba(45, 212, 191, 0.15);
  --color-success-subtle: rgba(45, 212, 191, 0.06);
  --color-warning: #fbbf24;
  --color-warning-hover: #F59E0B;
  --color-warning-light: rgba(251, 191, 36, 0.15);
  --color-warning-subtle: rgba(251, 191, 36, 0.06);
  --color-danger: #fb7185;
  --color-danger-hover: #D92D20;
  --color-danger-light: rgba(251, 113, 133, 0.15);
  --color-danger-subtle: rgba(251, 113, 133, 0.06);
  --color-info: #38bdf8;
  --color-info-light: rgba(56, 189, 248, 0.15);

  /* ── Surfaces ── */
  --surface-page: #050a18;
  --surface-card: rgba(13, 26, 51, 0.85);
  --surface-card-hover: rgba(20, 36, 74, 0.9);
  --surface-elevated: rgba(20, 36, 74, 0.92);
  --surface-overlay: rgba(0, 0, 0, 0.5);
  --surface-border: rgba(6, 182, 212, 0.15);
  --surface-border-hover: rgba(6, 182, 212, 0.3);

  /* ── Text ── */
  --text-primary: #e8f0fe;
  --text-secondary: #8ba3d4;
  --text-muted: #4a6a9a;
  --text-inverse: #050816;
  --text-link: #06b6d4;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(6, 182, 212, 0.08);
  --shadow-md: 0 4px 12px rgba(6, 182, 212, 0.12);
  --shadow-lg: 0 10px 30px rgba(6, 182, 212, 0.15);
  --shadow-glow-primary: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-glow-secondary: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(33, 212, 253, 0.3);
}

/* ── Body Background with Animated Effects ── */
body.theme-ai-futuristic {
  background: var(--surface-page);
  position: relative;
}

body.theme-ai-futuristic::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(6, 182, 212, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 400px 300px at 60% 70%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: theme-bg-drift 30s ease-in-out infinite alternate;
}

@keyframes theme-bg-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(1%, 1%) rotate(0.5deg); }
  100% { transform: translate(-1%, -0.5%) rotate(-0.5deg); }
}

/* ── Glassmorphism Base ── */
body.theme-ai-futuristic .glass,
body.theme-ai-futuristic [class*="apex-card"],
body.theme-ai-futuristic .card {
  background: var(--surface-card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--surface-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(6, 182, 212, 0.06) !important;
  transition: all 0.2s ease !important;
}

body.theme-ai-futuristic [class*="apex-card"]:hover,
body.theme-ai-futuristic .card:hover {
  border-color: var(--surface-border-hover) !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12), var(--shadow-glow-primary) !important;
  transform: translateY(-1px);
}

/* ── Global Navigation ── */
body.theme-ai-futuristic .apex-global-nav {
  background: rgba(5, 8, 22, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.12) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(6, 182, 212, 0.06) !important;
}

body.theme-ai-futuristic .apex-nav-link:hover {
  background: rgba(6, 182, 212, 0.08) !important;
  color: var(--color-primary) !important;
}

body.theme-ai-futuristic .apex-nav-active {
  color: var(--color-primary) !important;
  background: rgba(6, 182, 212, 0.1) !important;
  box-shadow: inset 0 -2px 0 var(--color-primary) !important;
}

body.theme-ai-futuristic .apex-nav-avatar:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
  background: rgba(6, 182, 212, 0.06) !important;
}

body.theme-ai-futuristic #apex-search-wrapper:focus-within {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15) !important;
}

body.theme-ai-futuristic #apex-notif-bell:hover {
  color: var(--color-primary) !important;
  background: rgba(6, 182, 212, 0.08) !important;
}

body.theme-ai-futuristic #apex-notif-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--accent)) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5) !important;
}

body.theme-ai-futuristic #apex-status-indicator span:first-child {
  box-shadow: 0 0 8px currentColor !important;
}

/* ── Dropdowns & Modals ── */
body.theme-ai-futuristic .dropdown-content,
body.theme-ai-futuristic [class*="dropdown-content"],
body.theme-ai-futuristic #apex-search-dropdown,
body.theme-ai-futuristic #apex-quick-actions-menu,
body.theme-ai-futuristic #apex-feedback-panel,
body.theme-ai-futuristic #apex-command-palette > div {
  background: rgba(10, 14, 30, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(6, 182, 212, 0.12) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow-primary) !important;
}

body.theme-ai-futuristic .dropdown-content li a:hover {
  background: rgba(6, 182, 212, 0.08) !important;
  color: var(--color-primary) !important;
}

/* ── Buttons ── */
body.theme-ai-futuristic .btn-primary,
body.theme-ai-futuristic [class*="btn-primary"],
body.theme-ai-futuristic .apex-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--accent)) !important;
  border: none !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25) !important;
  transition: all 0.2s ease !important;
}

body.theme-ai-futuristic .btn-primary:hover,
body.theme-ai-futuristic .apex-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35), var(--shadow-glow-primary) !important;
}

body.theme-ai-futuristic .btn-secondary,
body.theme-ai-futuristic .apex-btn-secondary {
  background: rgba(139, 92, 246, 0.08) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  color: var(--highlight, #B597FF) !important;
}

body.theme-ai-futuristic .btn-secondary:hover,
body.theme-ai-futuristic .apex-btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
}

body.theme-ai-futuristic .btn-ghost,
body.theme-ai-futuristic .apex-btn-outline {
  background: rgba(15, 20, 40, 0.5) !important;
  border: 1px solid rgba(6, 182, 212, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--text-secondary) !important;
}

body.theme-ai-futuristic .btn-ghost:hover,
body.theme-ai-futuristic .apex-btn-outline:hover {
  border-color: rgba(6, 182, 212, 0.35) !important;
  color: var(--color-primary) !important;
  background: rgba(6, 182, 212, 0.06) !important;
}

body.theme-ai-futuristic .btn-danger,
body.theme-ai-futuristic .apex-btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--color-danger-hover)) !important;
  box-shadow: 0 4px 15px rgba(240, 68, 56, 0.25) !important;
}

body.theme-ai-futuristic .btn-danger:hover {
  box-shadow: 0 8px 25px rgba(240, 68, 56, 0.35) !important;
  transform: translateY(-1px) !important;
}

body.theme-ai-futuristic .btn-success,
body.theme-ai-futuristic .apex-btn-success {
  background: linear-gradient(135deg, var(--success), var(--color-success-hover)) !important;
  box-shadow: 0 4px 15px rgba(50, 213, 131, 0.25) !important;
}

body.theme-ai-futuristic .btn-success:hover {
  box-shadow: 0 8px 25px rgba(50, 213, 131, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* ── Forms ── */
body.theme-ai-futuristic input[type="text"],
body.theme-ai-futuristic input[type="email"],
body.theme-ai-futuristic input[type="password"],
body.theme-ai-futuristic input[type="search"],
body.theme-ai-futuristic input[type="number"],
body.theme-ai-futuristic input[type="tel"],
body.theme-ai-futuristic textarea,
body.theme-ai-futuristic select {
  background: rgba(15, 20, 40, 0.6) !important;
  border: 1px solid rgba(6, 182, 212, 0.12) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  transition: all 0.2s ease !important;
}

body.theme-ai-futuristic input:focus,
body.theme-ai-futuristic textarea:focus,
body.theme-ai-futuristic select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), 0 0 15px rgba(6, 182, 212, 0.1) !important;
  outline: none !important;
}

body.theme-ai-futuristic label {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

body.theme-ai-futuristic input::placeholder,
body.theme-ai-futuristic textarea::placeholder {
  color: var(--text-muted) !important;
}

body.theme-ai-futuristic select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899CC' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* ── Tables ── */
body.theme-ai-futuristic table,
body.theme-ai-futuristic .table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.theme-ai-futuristic table th,
body.theme-ai-futuristic .table th {
  background: rgba(6, 182, 212, 0.06) !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
}

body.theme-ai-futuristic table td,
body.theme-ai-futuristic .table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.06) !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
}

body.theme-ai-futuristic table tr:nth-child(even) td,
body.theme-ai-futuristic .table tr:nth-child(even) td {
  background: rgba(6, 182, 212, 0.02) !important;
}

body.theme-ai-futuristic table tr:hover td,
body.theme-ai-futuristic .table tr:hover td {
  background: rgba(6, 182, 212, 0.04) !important;
}

body.theme-ai-futuristic table tr.selected td,
body.theme-ai-futuristic .table tr.selected td {
  background: rgba(6, 182, 212, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--color-primary) !important;
}

/* ── Badges & Tags ── */
body.theme-ai-futuristic .badge,
body.theme-ai-futuristic .apex-tag {
  background: rgba(6, 182, 212, 0.08) !important;
  border: 1px solid rgba(6, 182, 212, 0.15) !important;
  color: var(--color-primary) !important;
  border-radius: 6px !important;
}

body.theme-ai-futuristic .badge-success {
  background: rgba(50, 213, 131, 0.1) !important;
  border-color: rgba(50, 213, 131, 0.2) !important;
  color: var(--success) !important;
}

body.theme-ai-futuristic .badge-warning {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
  color: var(--warning) !important;
}

body.theme-ai-futuristic .badge-error,
body.theme-ai-futuristic .badge-danger {
  background: rgba(240, 68, 56, 0.1) !important;
  border-color: rgba(240, 68, 56, 0.2) !important;
  color: var(--danger) !important;
}

/* ── Progress Bars ── */
body.theme-ai-futuristic progress,
body.theme-ai-futuristic .progress-bar,
body.theme-ai-futuristic .apex-progress-fill {
  background: rgba(6, 182, 212, 0.08) !important;
  border-radius: 4px !important;
}

body.theme-ai-futuristic .apex-progress-fill,
body.theme-ai-futuristic .progress-bar-fill {
  background: linear-gradient(90deg, var(--color-primary), var(--accent)) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3) !important;
}

/* ── Data Source Labels ── */
body.theme-ai-futuristic [class*="source-label"] {
  font-size: 9px !important;
  border-radius: 4px !important;
}

body.theme-ai-futuristic .source-live {
  background: rgba(50, 213, 131, 0.12) !important;
  color: var(--success) !important;
}

body.theme-ai-futuristic .source-calculated {
  background: rgba(6, 182, 212, 0.12) !important;
  color: var(--color-primary) !important;
}

body.theme-ai-futuristic .source-benchmark {
  background: rgba(251, 191, 36, 0.12) !important;
  color: var(--warning) !important;
}

body.theme-ai-futuristic .source-demo {
  background: rgba(139, 92, 246, 0.12) !important;
  color: var(--highlight, #B597FF) !important;
}

/* ── Alerts & Notifications ── */
body.theme-ai-futuristic .alert,
body.theme-ai-futuristic [class*="alert-"] {
  border-radius: 10px !important;
  border-width: 1px !important;
}

body.theme-ai-futuristic .alert-success {
  background: rgba(50, 213, 131, 0.08) !important;
  border-color: rgba(50, 213, 131, 0.2) !important;
  color: var(--success) !important;
}

body.theme-ai-futuristic .alert-warning {
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
  color: var(--warning) !important;
}

body.theme-ai-futuristic .alert-error,
body.theme-ai-futuristic .alert-danger {
  background: rgba(240, 68, 56, 0.08) !important;
  border-color: rgba(240, 68, 56, 0.2) !important;
  color: var(--danger) !important;
}

body.theme-ai-futuristic .alert-info {
  background: rgba(33, 212, 253, 0.08) !important;
  border-color: rgba(33, 212, 253, 0.2) !important;
  color: var(--accent-secondary) !important;
}

/* ── KPI Cards ── */
body.theme-ai-futuristic [class*="kpi-"],
body.theme-ai-futuristic .stat-card {
  background: rgba(15, 20, 40, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.1) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

body.theme-ai-futuristic [class*="kpi-"]:hover,
body.theme-ai-futuristic .stat-card:hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: var(--shadow-glow-primary) !important;
  transform: translateY(-1px) !important;
}

/* ── Charts ── */
body.theme-ai-futuristic .apex-chart-grid line,
body.theme-ai-futuristic [class*="chart-grid"] line {
  stroke: rgba(6, 182, 212, 0.06) !important;
}

body.theme-ai-futuristic .apex-chart-line {
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.3)) !important;
}

body.theme-ai-futuristic .apex-chart-point {
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5)) !important;
}

/* ── Intelligence Wheel ── */
body.theme-ai-futuristic .donut-segment:hover {
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3)) !important;
}

body.theme-ai-futuristic .donut-center-text {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.2)) !important;
}

/* ── Quick Actions FAB ── */
body.theme-ai-futuristic #apex-quick-actions-fab {
  background: linear-gradient(135deg, var(--color-primary), var(--accent)) !important;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35) !important;
}

body.theme-ai-futuristic #apex-quick-actions-fab:hover {
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5) !important;
}

/* ── Design System Components (Release 16.6) ── */
body.theme-ai-futuristic .ds-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--accent)) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25) !important;
}
body.theme-ai-futuristic .ds-btn-primary:hover {
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35), 0 0 20px rgba(6, 182, 212, 0.15) !important;
  transform: translateY(-1px) !important;
}

body.theme-ai-futuristic .ds-btn-secondary {
  background: rgba(15, 20, 40, 0.6) !important;
  border-color: rgba(6, 182, 212, 0.15) !important;
  backdrop-filter: blur(8px) !important;
}
body.theme-ai-futuristic .ds-btn-secondary:hover {
  border-color: rgba(6, 182, 212, 0.35) !important;
  background: rgba(6, 182, 212, 0.08) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1) !important;
}

body.theme-ai-futuristic .ds-kpi-card {
  background: rgba(15, 20, 40, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-color: rgba(6, 182, 212, 0.1) !important;
}
body.theme-ai-futuristic .ds-kpi-card:hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12), 0 0 20px rgba(6, 182, 212, 0.08) !important;
}

body.theme-ai-futuristic .exec-card {
  background: rgba(15, 20, 40, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-color: rgba(6, 182, 212, 0.1) !important;
}
body.theme-ai-futuristic .exec-card:hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12) !important;
}

body.theme-ai-futuristic .ds-select,
body.theme-ai-futuristic .ds-input {
  background: rgba(15, 20, 40, 0.6) !important;
  border-color: rgba(6, 182, 212, 0.12) !important;
}
body.theme-ai-futuristic .ds-select:focus,
body.theme-ai-futuristic .ds-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), 0 0 15px rgba(6, 182, 212, 0.1) !important;
}

body.theme-ai-futuristic .ds-section-title,
body.theme-ai-futuristic .ds-page-title {
  color: var(--text-primary) !important;
}

/* ── Footer ── */
body.theme-ai-futuristic .apex-footer,
body.theme-ai-futuristic .apex-global-footer,
body.theme-ai-futuristic [class*="footer"] {
  background: rgba(5, 8, 22, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(6, 182, 212, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.04) !important;
}

body.theme-ai-futuristic .apex-global-footer a.footer-link {
  transition: all 0.2s ease !important;
  position: relative !important;
}

body.theme-ai-futuristic .apex-global-footer a.footer-link:hover {
  color: var(--color-primary) !important;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3) !important;
}

body.theme-ai-futuristic .apex-global-footer h4 {
  color: rgba(6, 182, 212, 0.5) !important;
  letter-spacing: 0.12em !important;
}

body.theme-ai-futuristic .apex-global-footer [style*="border-top"] {
  border-top-color: rgba(6, 182, 212, 0.06) !important;
}

/* ── Pagination ── */
body.theme-ai-futuristic .pagination a,
body.theme-ai-futuristic .pagination span {
  background: rgba(15, 20, 40, 0.5) !important;
  border: 1px solid rgba(6, 182, 212, 0.1) !important;
  color: var(--text-secondary) !important;
  border-radius: 6px !important;
}

body.theme-ai-futuristic .pagination .current {
  background: linear-gradient(135deg, var(--color-primary), var(--accent)) !important;
  border-color: transparent !important;
  color: var(--text-on-primary) !important;
}

/* ── Tooltips ── */
body.theme-ai-futuristic [class*="tooltip"] {
  background: rgba(10, 14, 30, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.15) !important;
  color: var(--text-primary) !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
}

/* ── Role Cards (Onboarding) ── */
body.theme-ai-futuristic .role-card {
  background: rgba(15, 20, 40, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.1) !important;
  border-radius: 12px !important;
}

body.theme-ai-futuristic .role-card:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15), var(--shadow-glow-primary) !important;
}

body.theme-ai-futuristic .role-card input:checked + *,
body.theme-ai-futuristic .role-card:has(input:checked) {
  border-color: var(--color-primary) !important;
  background: rgba(6, 182, 212, 0.08) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.04) !important;
}

/* ── Floating Dock ── */
body.theme-ai-futuristic .floating-dock-btn {
  background: rgba(15, 20, 40, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(6, 182, 212, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.theme-ai-futuristic .floating-dock-btn:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2), var(--shadow-glow-primary) !important;
}

body.theme-ai-futuristic .did-you-know-card {
  background: rgba(15, 20, 40, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* ── Motion & Animation Reduction ── */
@media (prefers-reduced-motion: reduce) {
  body.theme-ai-futuristic,
  body.theme-ai-futuristic *,
  body.theme-ai-futuristic *::before,
  body.theme-ai-futuristic *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  body.theme-ai-futuristic::before {
    animation: none !important;
  }
}
/* ════════════════════════════════════════════
   base.css — Shared Component Stylesheet
   APPEX360 Global Theme Engine — Release 18.0
   
   Every component consumes ONLY semantic tokens.
   No hardcoded colours anywhere.
   
   Token files define the variables.
   This file defines the components.
   ════════════════════════════════════════════ */

/* ── Base Document ── */
body {
  background: var(--surface-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}
p, li, .text-secondary {
  color: var(--text-secondary);
}
.text-muted, small, .caption {
  color: var(--text-muted);
}
a, .link {
  color: var(--text-link);
}

/* ── Cards ── */
.card, .vis-card, .exec-card, .ds-card, [class*="card"]:not(.no-theme):not([class*="r27-"]):not([class*="r28"]):not([class*="r29-"]):not([class*="r30-"]):not([class*="appexi-"]) {
  background: var(--surface-card);
  border: var(--border-width) solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.card:hover, .vis-card:hover, .exec-card:hover {
  border-color: var(--surface-border-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── KPI Cards ── */
.kpi-card, .ds-kpi-card, .stat-card {
  background: var(--surface-card);
  border: var(--border-width) solid var(--surface-border);
  border-radius: var(--radius-md);
}
.kpi-card .kpi-label, .ds-kpi-label {
  color: var(--text-secondary);
}
.kpi-card .kpi-value, .ds-kpi-value {
  color: var(--text-primary);
}

/* ── Buttons ── */
.btn-primary, .ds-btn-primary, button.primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--btn-radius);
  height: var(--btn-height);
  border: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary, .ds-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: var(--border-width) solid var(--surface-border);
  border-radius: var(--btn-radius);
  height: var(--btn-height);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── Navigation Bar ── */
.nav, .apex-global-nav, .top-nav, [class*="navbar"] {
  background: var(--nav-bg);
  border-bottom: var(--border-width) solid var(--nav-border);
}
.nav a, .nav-link, .apex-nav-link {
  color: var(--nav-text);
}
.nav a:hover, .nav-link:hover, .apex-nav-link:hover {
  color: var(--nav-text-hover);
}
.nav a.active, .nav-link.active, .apex-nav-link.active, .apex-nav-active {
  background: var(--nav-active-bg);
  color: var(--nav-text-hover);
}

/* ── Sidebar ── */
.sidebar, [class*="sidebar"] {
  background: var(--sidebar-bg);
  border-right: var(--border-width) solid var(--sidebar-border);
}
.sidebar a, .sidebar-link {
  color: var(--sidebar-text);
}
.sidebar a:hover, .sidebar-link:hover {
  color: var(--text-primary);
}
.sidebar a.active, .sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--text-primary);
}

/* ── Tables ── */
table, .table, [class*="table"] {
  border-collapse: separate;
  border-spacing: 0;
}
table th, .table th, [class*="table"] th {
  background: var(--table-header-bg, var(--surface-inset));
  color: var(--text-secondary);
  border-bottom: var(--border-width) solid var(--table-border, var(--surface-border));
}
table td, .table td, [class*="table"] td {
  border-bottom: var(--border-width) solid var(--table-border, var(--surface-border));
  color: var(--text-primary);
}
table tr:hover, .table tr:hover, [class*="table"] tr:hover {
  background: var(--table-row-hover, var(--surface-card-hover));
}

/* ── Inputs ── */
input, textarea, select, .input, .ds-input {
  background: var(--input-bg);
  border: var(--border-width) solid var(--input-border);
  border-radius: var(--input-radius, var(--radius-md));
  color: var(--text-primary);
  height: var(--input-height);
}
input:focus, textarea:focus, select:focus, .input:focus, .ds-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px var(--accent-soft);
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* ── Badges ── */
.badge, .ds-badge, [class*="badge"] {
  border-radius: var(--badge-radius);
  font-size: var(--badge-font-size, 11px);
  padding: var(--badge-padding, 2px 10px);
  font-weight: var(--badge-font-weight, 600);
}
.badge-success {
  background: var(--success-light);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}
.badge-info {
  background: var(--info-light);
  color: var(--info);
}

/* ── Dividers ── */
hr, .divider, .section-divider {
  border: none;
  height: var(--border-width);
  background: var(--surface-border);
}

/* ── Modals / Dialogs ── */
.modal-overlay, [class*="overlay"] {
  background: var(--modal-overlay, var(--surface-overlay));
}
.modal, .modal-content, [class*="dialog"] {
  background: var(--modal-bg, var(--surface-elevated));
  border: var(--border-width) solid var(--modal-border, var(--surface-border));
  border-radius: var(--modal-radius, var(--radius-xl));
  box-shadow: var(--shadow-xl);
}

/* ── Tooltips ── */
.tooltip, [class*="tooltip"], .tip-popup, .gloss-popup {
  background: var(--surface-elevated);
  border: var(--border-width) solid var(--surface-border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ── Charts ── */
.chart-grid, [class*="chart-grid"] {
  stroke: var(--chart-grid);
  color: var(--chart-grid);
}
.chart-axis, [class*="chart-axis"] {
  color: var(--chart-axis);
  fill: var(--chart-axis);
}

/* ── Selection ── */
::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

/* ── Progress Bars ── */
.progress, [class*="progress"] {
  background: var(--surface-inset);
  border-radius: var(--radius-full);
}
.progress-fill, [class*="progress-fill"] {
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* ── Category Accents ── */
.category-financial { color: var(--category-financial); }
.category-risk { color: var(--category-risk); }
.category-governance { color: var(--category-governance); }
.category-intelligence { color: var(--category-intelligence); }
.category-operations { color: var(--category-operations); }
.category-executive { color: var(--category-executive); }
/* ════════════════════════════════════════════
   AI Futuristic — Token File (R30 RC1)
   🔵 Navy-Black · Cyan · Violet · Neon Glass
   Feeling: Cursor AI · Vercel · OpenAI Playground
   
   DISTINCTIVE: Glassmorphism cards, cyan glow
   shadows, gradient buttons, pill badges.
   Only theme with neon borders and
   backdrop-filter glass surfaces.
   ════════════════════════════════════════════ */

body.theme-ai-futuristic {
  /* ── Surfaces (Deep navy-black, glass-ready) ── */
  --surface-page: #030712;
  --surface-raised: #0B1A2E;
  --surface-elevated: #0F2440;
  --background: #030712;
  --card: rgba(11, 26, 46, 0.7);
  --card-hover: rgba(15, 36, 64, 0.8);

  --surface-card: rgba(11, 26, 46, 0.7);
  --surface-card-hover: rgba(15, 36, 64, 0.8);
  --surface-inset: #060E1C;
  --surface-overlay: rgba(0, 0, 0, 0.8);

  /* ── Borders (Cyan-tinted neon, glow on hover) ── */
  --border-width: 1px;
  --border: rgba(6, 182, 212, 0.20);
  --surface-border: rgba(6, 182, 212, 0.20);
  --surface-border-hover: #00E5FF;

  /* ── Typography (Blue-white, cyan links) ── */
  --text: #E0F0FF;
  --text-primary: #E0F0FF;
  --text-secondary: #7BA3CC;
  --text-muted: #3A5A7A;
  --text-link: #00E5FF;
  --text-on-primary: #030712;
  --heading: #F0F8FF;

  /* ── Colours (Electric Cyan + Violet) ── */
  --primary: #00E5FF;
  --color-primary: #00E5FF;
  --color-primary-hover: #00C8E0;
  --color-primary-light: rgba(0, 229, 255, 0.15);

  --secondary: #8B5CF6;
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --accent-secondary: #00E5FF;

  /* ── Feedback (Vibrant neon) ── */
  --success: #00FFA3;
  --success-light: rgba(0, 255, 163, 0.15);
  --warning: #FBBF24;
  --warning-light: rgba(251, 191, 36, 0.15);
  --danger: #FB7185;
  --danger-light: rgba(251, 113, 133, 0.15);
  --info: #38BDF8;
  --info-light: rgba(56, 189, 248, 0.15);
  --focus: #00E5FF;

  /* ── Shadows (Cyan glow — distinctive) ── */
  --shadow-sm: 0 1px 3px rgba(0, 229, 255, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 229, 255, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 229, 255, 0.18);
  --shadow-xl: 0 24px 56px rgba(0, 229, 255, 0.25);
  --shadow-hover: 0 0 28px rgba(0, 229, 255, 0.30);

  /* ── Radii (Extremely generous — pill-like) ── */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --btn-radius: 12px;
  --input-radius: 12px;
  --badge-radius: 20px;
  --modal-radius: 24px;

  /* ── Navigation (Glass with cyan glow) ── */
  --nav-bg: rgba(3, 7, 18, 0.88);
  --nav-border: rgba(0, 229, 255, 0.12);
  --nav-text: rgba(255, 255, 255, 0.5);
  --nav-text-hover: #E0F0FF;
  --nav-active-bg: rgba(139, 92, 246, 0.15);

  /* ── Sidebar (Darker glass, cyan border) ── */
  --sidebar-bg: rgba(3, 7, 18, 0.94);
  --sidebar-border: rgba(0, 229, 255, 0.10);
  --sidebar-text: rgba(255, 255, 255, 0.5);
  --sidebar-active-bg: rgba(139, 92, 246, 0.15);

  /* ── Buttons (Gradient — cyan to violet) ── */
  --btn-bg: linear-gradient(135deg, #00E5FF, #8B5CF6);
  --btn-text: #FFFFFF;
  --btn-height: 44px;

  /* ── Inputs (Dark glass) ── */
  --input-bg: rgba(11, 26, 46, 0.6);
  --input-border: rgba(0, 229, 255, 0.20);
  --input-focus: #00E5FF;

  /* ── Charts (Neon palette) ── */
  --chart-grid: rgba(0, 229, 255, 0.10);
  --chart-axis: #7BA3CC;
  --chart-1: #00E5FF;
  --chart-2: #8B5CF6;
  --chart-3: #00FFA3;
  --chart-4: #FBBF24;
  --chart-5: #FB7185;

  /* ── Category Colours ── */
  --category-financial: #FBBF24;
  --category-risk: #FB7185;
  --category-governance: #38BDF8;
  --category-intelligence: #A78BFA;
  --category-operations: #00E5FF;
  --category-executive: #818CF8;
}
/* ════════════════════════════════════════════
   Classic Enterprise — Token File (R30 RC1)
   🔵 White · Light Grey · Corporate Blue · Clean
   Feeling: Microsoft · SAP · Oracle ERP
   
   DISTINCTIVE: White cards, light page, blue
   accents, moderate radii, minimal shadows.
   The only truly light, conservative enterprise
   theme. Standard enterprise software feel.
   ════════════════════════════════════════════ */

body.theme-classic {
  /* ── Surfaces (Light grey page, white cards) ── */
  --surface-page: #F0F2F5;
  --surface-raised: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --background: #F0F2F5;
  --card: #FFFFFF;
  --card-hover: #F8FAFC;

  --surface-card: #FFFFFF;
  --surface-card-hover: #F8FAFC;
  --surface-inset: #E5E7EB;
  --surface-overlay: rgba(0, 0, 0, 0.35);

  /* ── Borders (Subtle grey) ── */
  --border-width: 1px;
  --border: #D1D5DB;
  --surface-border: #D1D5DB;
  --surface-border-hover: #9CA3AF;

  /* ── Typography (Dark grey, high contrast) ── */
  --text: #1F2937;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-link: #2563EB;
  --text-on-primary: #FFFFFF;
  --heading: #111827;

  /* ── Colours (Standard blue) ── */
  --primary: #2563EB;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: rgba(37, 99, 235, 0.10);

  --secondary: #64748B;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-secondary: #3B82F6;

  /* ── Feedback ── */
  --success: #16A34A;
  --success-light: rgba(22, 163, 74, 0.10);
  --warning: #D97706;
  --warning-light: rgba(217, 119, 6, 0.10);
  --danger: #DC2626;
  --danger-light: rgba(220, 38, 38, 0.10);
  --info: #2563EB;
  --info-light: rgba(37, 99, 235, 0.10);
  --focus: #2563EB;

  /* ── Shadows (Minimal — clean) ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.08);

  /* ── Radii (Moderate — professional) ── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --btn-radius: 6px;
  --input-radius: 6px;
  --badge-radius: 12px;
  --modal-radius: 12px;

  /* ── Navigation (White, clean) ── */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-border: rgba(0, 0, 0, 0.06);
  --nav-text: #4B5563;
  --nav-text-hover: #1F2937;
  --nav-active-bg: rgba(37, 99, 235, 0.08);

  /* ── Sidebar (White, subtle border) ── */
  --sidebar-bg: #FFFFFF;
  --sidebar-border: #E5E7EB;
  --sidebar-text: #4B5563;
  --sidebar-active-bg: rgba(37, 99, 235, 0.08);

  /* ── Buttons (Blue filled) ── */
  --btn-bg: var(--accent);
  --btn-text: #FFFFFF;
  --btn-height: 44px;

  /* ── Inputs ── */
  --input-bg: #FFFFFF;
  --input-border: #D1D5DB;
  --input-focus: var(--accent);

  /* ── Charts ── */
  --chart-grid: #E5E7EB;
  --chart-axis: #6B7280;
  --chart-1: #2563EB;
  --chart-2: #16A34A;
  --chart-3: #D97706;
  --chart-4: #8B5CF6;
  --chart-5: #06B6D4;

  /* ── Category Colours ── */
  --category-financial: #F59E0B;
  --category-risk: #DC2626;
  --category-governance: #2563EB;
  --category-intelligence: #8B5CF6;
  --category-operations: #0891B2;
  --category-executive: #4F46E5;
}
/* ════════════════════════════════════════════
   Corporate Blue — Token File (R30 RC1)
   🔷 Deep Navy · Steel · Structured · Fortune 500
   Feeling: IBM · Deloitte · Goldman Sachs Dashboard
   
   DISTINCTIVE: Sharp radii, navy sidebar with
   white cards, structured hierarchy. Only theme
   with navy surface, sharp corners, and
   corporate steel-grey accents. Deep navy
   header + white content area.
   ════════════════════════════════════════════ */

body.theme-corporate-blue {
  /* ── Surfaces (Deep navy page, white cards) ── */
  --surface-page: #0A1628;
  --surface-raised: #FFFFFF;
  --surface-elevated: #F8FAFC;
  --background: #0A1628;
  --card: #FFFFFF;
  --card-hover: #F0F4FF;

  --surface-card: #FFFFFF;
  --surface-card-hover: #F0F4FF;
  --surface-inset: #E2E8F0;
  --surface-overlay: rgba(0, 0, 0, 0.45);

  /* ── Borders (Steel grey, blue accent on hover) ── */
  --border-width: 1px;
  --border: #CBD5E1;
  --surface-border: #CBD5E1;
  --surface-border-hover: #0A84FF;

  /* ── Typography (Navy on white, blue links) ── */
  --text: #1E293B;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-link: #0A84FF;
  --text-on-primary: #FFFFFF;
  --heading: #0F172A;

  /* ── Colours (Vivid enterprise blue) ── */
  --primary: #0A84FF;
  --color-primary: #0A84FF;
  --color-primary-hover: #0070E0;
  --color-primary-light: rgba(10, 132, 255, 0.10);

  --secondary: #475569;
  --accent: #0A84FF;
  --accent-hover: #0070E0;
  --accent-soft: rgba(10, 132, 255, 0.08);
  --accent-secondary: #60A5FA;

  /* ── Feedback ── */
  --success: #059669;
  --success-light: rgba(5, 150, 105, 0.10);
  --warning: #D97706;
  --warning-light: rgba(217, 119, 6, 0.10);
  --danger: #DC2626;
  --danger-light: rgba(220, 38, 38, 0.10);
  --info: #0A84FF;
  --info-light: rgba(10, 132, 255, 0.10);
  --focus: #0A84FF;

  /* ── Shadows (Clean, structured) ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-xl: 0 16px 44px rgba(0, 0, 0, 0.11);
  --shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.10);

  /* ── Radii (Sharp — conservative enterprise) ── */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --btn-radius: 4px;
  --input-radius: 4px;
  --badge-radius: 3px;
  --modal-radius: 8px;

  /* ── Navigation (Navy) ── */
  --nav-bg: #0F2A4A;
  --nav-border: rgba(255, 255, 255, 0.06);
  --nav-text: rgba(255, 255, 255, 0.6);
  --nav-text-hover: #FFFFFF;
  --nav-active-bg: rgba(10, 132, 255, 0.15);

  /* ── Sidebar (Darker navy) ── */
  --sidebar-bg: #0C1F38;
  --sidebar-border: rgba(255, 255, 255, 0.05);
  --sidebar-text: rgba(255, 255, 255, 0.55);
  --sidebar-active-bg: rgba(10, 132, 255, 0.15);

  /* ── Buttons (Blue filled, sharp) ── */
  --btn-bg: var(--accent);
  --btn-text: #FFFFFF;
  --btn-height: 46px;

  /* ── Inputs ── */
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
  --input-focus: #0A84FF;

  /* ── Charts (Corporate palette) ── */
  --chart-grid: #D0D8E5;
  --chart-axis: #475569;
  --chart-1: #0A84FF;
  --chart-2: #059669;
  --chart-3: #D97706;
  --chart-4: #7C3AED;
  --chart-5: #0891B2;

  /* ── Category Colours ── */
  --category-financial: #D97706;
  --category-risk: #DC2626;
  --category-governance: #0A84FF;
  --category-intelligence: #7C3AED;
  --category-operations: #0891B2;
  --category-executive: #4F46E5;
}
/* ════════════════════════════════════════════
   Custom Brand — Token File (R30 RC1)
   🎨 Neutral Dark · Brand-Derived · Adaptable
   Feeling: White-label · Brand-agnostic
   
   DISTINCTIVE: Dark neutral base, all colours
   derive from --brand-* variables. Only theme
   designed for full white-label customisation.
   More compressed radii and shadows than
   other darks to avoid brand clash.
   ════════════════════════════════════════════ */

body.theme-custom-brand {
  /* ── Surfaces (Neutral dark — minimal personality) ── */
  --surface-page: #0B1120;
  --surface-raised: #141D32;
  --surface-elevated: #1A2540;
  --background: #0B1120;
  --card: #141D32;
  --card-hover: #1A2540;

  --surface-card: #141D32;
  --surface-card-hover: #1A2540;
  --surface-inset: #0A1322;
  --surface-overlay: rgba(0, 0, 0, 0.65);

  /* ── Borders (Subtle, brand-tinted on hover) ── */
  --border-width: 1px;
  --border: rgba(255, 255, 255, 0.08);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: var(--accent);

  /* ── Typography (Dark bg defaults — neutral) ── */
  --text: #E2E8F0;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-link: var(--accent);
  --text-on-primary: #FFFFFF;
  --heading: #F1F5F9;

  /* ── Colours (Entirely brand-derived) ── */
  --primary: var(--brand-primary, #7C5CFF);
  --color-primary: var(--brand-primary, #7C5CFF);
  --color-primary-hover: var(--brand-primary-hover, #6B4DE8);
  --color-primary-light: var(--brand-primary-light, rgba(124, 92, 255, 0.12));

  --secondary: var(--brand-secondary, #94A3B8);
  --accent: var(--brand-accent, #7C5CFF);
  --accent-hover: var(--brand-accent-hover, #6B4DE8);
  --accent-soft: var(--brand-accent-soft, rgba(124, 92, 255, 0.12));
  --accent-secondary: var(--brand-accent-secondary, #A78BFA);

  /* ── Feedback ── */
  --success: var(--brand-success, #10B981);
  --success-light: rgba(16, 185, 129, 0.12);
  --warning: var(--brand-warning, #F59E0B);
  --warning-light: rgba(245, 158, 11, 0.12);
  --danger: var(--brand-danger, #EF4444);
  --danger-light: rgba(239, 68, 68, 0.12);
  --info: var(--brand-info, #60A5FA);
  --info-light: rgba(96, 165, 250, 0.12);
  --focus: var(--accent);

  /* ── Shadows (Medium depth — neutral) ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.55);

  /* ── Radii (Moderate — brand-safe) ── */
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --btn-radius: 7px;
  --input-radius: 7px;
  --badge-radius: 14px;
  --modal-radius: 14px;

  /* ── Navigation (Dark glass) ── */
  --nav-bg: rgba(11, 17, 32, 0.95);
  --nav-border: rgba(255, 255, 255, 0.06);
  --nav-text: rgba(255, 255, 255, 0.5);
  --nav-text-hover: #E2E8F0;
  --nav-active-bg: var(--accent-soft);

  /* ── Sidebar (Dark glass) ── */
  --sidebar-bg: rgba(11, 17, 32, 0.98);
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-text: rgba(255, 255, 255, 0.5);
  --sidebar-active-bg: var(--accent-soft);

  /* ── Buttons (Brand-filled) ── */
  --btn-bg: var(--accent);
  --btn-text: #FFFFFF;
  --btn-height: 44px;

  /* ── Inputs ── */
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus: var(--accent);

  /* ── Charts ── */
  --chart-grid: rgba(255, 255, 255, 0.08);
  --chart-axis: #94A3B8;
  --chart-1: var(--brand-chart-1, var(--accent));
  --chart-2: var(--brand-chart-2, #10B981);
  --chart-3: var(--brand-chart-3, #F59E0B);
  --chart-4: var(--brand-chart-4, #8B5CF6);
  --chart-5: var(--brand-chart-5, #06B6D4);

  /* ── Category Colours ── */
  --category-financial: #F59E0B;
  --category-risk: #EF4444;
  --category-governance: #3B82F6;
  --category-intelligence: #8B5CF6;
  --category-operations: #14B8A6;
  --category-executive: #818CF8;
}
/* ════════════════════════════════════════════
   Executive Dark — Token File (R30 RC1)
   🟤 Charcoal · Gold · Premium Boardroom
   Feeling: McKinsey report · Bloomberg Terminal
   
   DISTINCTIVE: Gold accents, warm shadows,
   large radii, premium depth. Only theme
   with gold-tinted hover states and warm
   card surfaces.
   ════════════════════════════════════════════ */

body.theme-executive-dark {
  /* ── Surfaces (Warm charcoal, premium depth) ── */
  --surface-page: #0A0E17;
  --surface-raised: #131A26;
  --surface-elevated: #1B2433;
  --background: #0A0E17;
  --card: #131A26;
  --card-hover: #1C2638;

  --surface-card: #131A26;
  --surface-card-hover: #1C2638;
  --surface-inset: #070A12;
  --surface-overlay: rgba(0, 0, 0, 0.88);

  /* ── Borders (Gold-tinted, warm) ── */
  --border-width: 1px;
  --border: #2A3348;
  --surface-border: #2A3348;
  --surface-border-hover: #D4AF37;

  /* ── Typography (Warm off-white, gold links) ── */
  --text: #EDE8DC;
  --text-primary: #EDE8DC;
  --text-secondary: #8A8578;
  --text-muted: #5C584F;
  --text-link: #D4AF37;
  --text-on-primary: #0A0E17;
  --heading: #F5F0E4;

  /* ── Primary Colours (Warm Gold) ── */
  --primary: #D4AF37;
  --color-primary: #D4AF37;
  --color-primary-hover: #C49A2E;
  --color-primary-light: rgba(212, 175, 55, 0.12);

  --secondary: #8A8578;
  --accent: #D4AF37;
  --accent-hover: #C49A2E;
  --accent-soft: rgba(212, 175, 55, 0.10);
  --accent-secondary: #E8C66A;

  /* ── Feedback ── */
  --success: #34D399;
  --success-light: rgba(52, 211, 153, 0.12);
  --warning: #D4AF37;
  --warning-light: rgba(212, 175, 55, 0.12);
  --danger: #F87171;
  --danger-light: rgba(248, 113, 113, 0.12);
  --info: #60A5FA;
  --info-light: rgba(96, 165, 250, 0.12);
  --focus: #D4AF37;

  /* ── Shadows (Deep, warm-toned) ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.75);
  --shadow-xl: 0 24px 52px rgba(0, 0, 0, 0.85);
  --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.8);

  /* ── Radii (Generous — premium feel) ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --btn-radius: 8px;
  --input-radius: 8px;
  --badge-radius: 6px;
  --modal-radius: 20px;

  /* ── Navigation (Dark glass, gold active) ── */
  --nav-bg: rgba(10, 14, 23, 0.96);
  --nav-border: rgba(212, 175, 55, 0.08);
  --nav-text: rgba(255, 255, 255, 0.45);
  --nav-text-hover: #EDE8DC;
  --nav-active-bg: rgba(212, 175, 55, 0.10);

  /* ── Sidebar (Deep charcoal, gold tint) ── */
  --sidebar-bg: rgba(10, 14, 23, 0.98);
  --sidebar-border: rgba(212, 175, 55, 0.06);
  --sidebar-text: rgba(255, 255, 255, 0.45);
  --sidebar-active-bg: rgba(212, 175, 55, 0.10);

  /* ── Buttons (Gold filled) ── */
  --btn-bg: var(--accent);
  --btn-text: #0A0E17;
  --btn-height: 44px;

  /* ── Inputs ── */
  --input-bg: rgba(19, 26, 38, 0.7);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-focus: #D4AF37;

  /* ── Charts (Warm palette) ── */
  --chart-grid: rgba(255, 255, 255, 0.06);
  --chart-axis: #8A8578;
  --chart-1: #D4AF37;
  --chart-2: #34D399;
  --chart-3: #F87171;
  --chart-4: #818CF8;
  --chart-5: #60A5FA;

  /* ── Category Colours ── */
  --category-financial: #D4AF37;
  --category-risk: #F87171;
  --category-governance: #60A5FA;
  --category-intelligence: #A78BFA;
  --category-operations: #34D399;
  --category-executive: #D4AF37;
}
/* ════════════════════════════════════════════
   High Contrast — Token File (R30 RC1)
   ⬛ Black · White · Yellow Focus · WCAG AAA
   Feeling: Maximum accessibility · No decoration
   
   DISTINCTIVE: Pure black/white, yellow primary,
   2px solid borders, NO shadows, NO gradients,
   NO transparency. Only theme with thick
   borders, cyan focus rings, and flat buttons.
   ════════════════════════════════════════════ */

body.theme-high-contrast {
  /* ── Surfaces (Pure black, pure white text) ── */
  --surface-page: #000000;
  --surface-raised: #1A1A1A;
  --surface-elevated: #2A2A2A;
  --background: #000000;
  --card: #1A1A1A;
  --card-hover: #2A2A2A;

  --surface-card: #1A1A1A;
  --surface-card-hover: #2A2A2A;
  --surface-inset: #0D0D0D;
  --surface-overlay: rgba(0, 0, 0, 0.95);

  /* ── Borders (Thick — 2px, always visible) ── */
  --border: #FFFFFF;
  --border-width: 2px;
  --surface-border: #FFFFFF;
  --surface-border-hover: #FFD700;

  /* ── Typography (Pure white, maximum contrast) ── */
  --text: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #B0B0B0;
  --text-link: #FFD700;
  --text-on-primary: #000000;
  --heading: #FFFFFF;

  /* ── Colours (Yellow primary, cyan focus) ── */
  --primary: #FFD700;
  --color-primary: #FFD700;
  --color-primary-hover: #FFED4A;
  --color-primary-light: rgba(255, 215, 0, 0.25);

  --secondary: #60A5FA;
  --accent: #FFD700;
  --accent-hover: #FFED4A;
  --accent-soft: rgba(255, 215, 0, 0.20);
  --accent-secondary: #60A5FA;

  /* ── Feedback (WCAG AAA guaranteed) ── */
  --success: #34D399;
  --success-light: rgba(52, 211, 153, 0.25);
  --warning: #FFD700;
  --warning-light: rgba(255, 215, 0, 0.25);
  --danger: #F87171;
  --danger-light: rgba(248, 113, 113, 0.25);
  --info: #60A5FA;
  --info-light: rgba(96, 165, 250, 0.25);
  --focus: #00FFFF;

  /* ── Shadows (NONE — pure flat) ── */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-hover: none;

  /* ── Radii (Minimal — function over form) ── */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --btn-radius: 4px;
  --input-radius: 4px;
  --badge-radius: 3px;
  --modal-radius: 8px;

  /* ── Navigation (Solid black, white borders) ── */
  --nav-bg: #000000;
  --nav-border: #FFFFFF;
  --nav-text: #FFFFFF;
  --nav-text-hover: #FFFFFF;
  --nav-active-bg: rgba(255, 215, 0, 0.25);

  /* ── Sidebar (Solid black) ── */
  --sidebar-bg: #000000;
  --sidebar-border: #FFFFFF;
  --sidebar-text: #FFFFFF;
  --sidebar-active-bg: rgba(255, 215, 0, 0.25);

  /* ── Buttons (Flat, solid) ── */
  --btn-bg: #FFD700;
  --btn-text: #000000;
  --btn-height: 48px;

  /* ── Inputs (Black bg, white border) ── */
  --input-bg: #000000;
  --input-border: #FFFFFF;
  --input-focus: #00FFFF;

  /* ── Charts ── */
  --chart-grid: #FFFFFF;
  --chart-axis: #FFFFFF;
  --chart-1: #FFD700;
  --chart-2: #34D399;
  --chart-3: #F87171;
  --chart-4: #60A5FA;
  --chart-5: #C084FC;

  /* ── Category Colours ── */
  --category-financial: #FFD700;
  --category-risk: #F87171;
  --category-governance: #60A5FA;
  --category-intelligence: #C084FC;
  --category-operations: #34D399;
  --category-executive: #818CF8;
}
/* ════════════════════════════════════════════
   Factory Light — Token File (R30 RC1)
   ⚪ Pure White · Indigo · Spacious · Readable
   Feeling: Factory floor tablet · High visibility
   
   DISTINCTIVE: Pure white bg, large spacing,
   generous radii (touch-friendly), very light
   shadows, high contrast text. Only theme
   designed for bright environments and
   touch interaction. Maximum readability.
   ════════════════════════════════════════════ */

body.theme-light {
  /* ── Surfaces (Pure white, ultra-bright) ── */
  --surface-page: #FAFAFA;
  --surface-raised: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --background: #FAFAFA;
  --card: #FFFFFF;
  --card-hover: #F3F4F6;

  --surface-card: #FFFFFF;
  --surface-card-hover: #F3F4F6;
  --surface-inset: #E5E7EB;
  --surface-overlay: rgba(0, 0, 0, 0.20);

  /* ── Borders (Very light, almost invisible) ── */
  --border-width: 1px;
  --border: #E5E7EB;
  --surface-border: #E5E7EB;
  --surface-border-hover: #9CA3AF;

  /* ── Typography (Maximum contrast) ── */
  --text: #111827;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #ADB5BD;
  --text-link: #4F46E5;
  --text-on-primary: #FFFFFF;
  --heading: #0F172A;

  /* ── Colours (Warm Indigo — bright) ── */
  --primary: #4F46E5;
  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: rgba(79, 70, 229, 0.08);

  --secondary: #78716C;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: rgba(79, 70, 229, 0.06);
  --accent-secondary: #818CF8;

  /* ── Feedback (Clear, bold) ── */
  --success: #16A34A;
  --success-light: rgba(22, 163, 74, 0.08);
  --warning: #D97706;
  --warning-light: rgba(217, 119, 6, 0.08);
  --danger: #DC2626;
  --danger-light: rgba(220, 38, 38, 0.08);
  --info: #4F46E5;
  --info-light: rgba(79, 70, 229, 0.08);
  --focus: #4F46E5;

  /* ── Shadows (Near-none — daylight readability) ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.06);

  /* ── Radii (Generous — touch-friendly) ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --btn-radius: 12px;
  --input-radius: 10px;
  --badge-radius: 20px;
  --modal-radius: 20px;

  /* ── Navigation (Bright white) ── */
  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-border: rgba(0, 0, 0, 0.05);
  --nav-text: #64748B;
  --nav-text-hover: #0F172A;
  --nav-active-bg: rgba(79, 70, 229, 0.06);

  /* ── Sidebar (White) ── */
  --sidebar-bg: #FFFFFF;
  --sidebar-border: #E5E7EB;
  --sidebar-text: #64748B;
  --sidebar-active-bg: rgba(79, 70, 229, 0.06);

  /* ── Buttons (Larger — touch-friendly) ── */
  --btn-bg: var(--accent);
  --btn-text: #FFFFFF;
  --btn-height: 48px;

  /* ── Inputs (Larger — touch-friendly) ── */
  --input-bg: #FFFFFF;
  --input-border: #D1D5DB;
  --input-focus: #4F46E5;

  /* ── Charts ── */
  --chart-grid: #E5E7EB;
  --chart-axis: #6B7280;
  --chart-1: #4F46E5;
  --chart-2: #16A34A;
  --chart-3: #D97706;
  --chart-4: #8B5CF6;
  --chart-5: #06B6D4;

  /* ── Category Colours ── */
  --category-financial: #D97706;
  --category-risk: #DC2626;
  --category-governance: #4F46E5;
  --category-intelligence: #8B5CF6;
  --category-operations: #0891B2;
  --category-executive: #6366F1;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

/* Custom styles */
#mobile-menu {
  display: none;
}

#mobile-menu.show {
  display: block;
}

/* Form styles - only keeping non-conflicting custom styles */
.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
