@import "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap";
/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .fixed {
    position: fixed;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .w-full {
    width: 100%;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
}

:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --canvas: #f0f4f2;
  --surface: #fff;
  --surface-soft: #f8faf8;
  --line: #dbe4df;
  --text: #18231d;
  --muted: #647b6e;
  --green: #007348;
  --green-deep: #005635;
  --green-tint: #e6f2ec;
  --amber: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 4px 20px #0000000a, 0 1px 3px #00000005;
}

:root[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --canvas: #101814;
  --surface: #19221d;
  --surface-soft: #202c25;
  --line: #34443a;
  --text: #edf4ef;
  --muted: #a0b1a6;
  --green: #52bd89;
  --green-deep: #81d4a8;
  --green-tint: #1f382b;
  --amber: #e6b052;
  --danger: #ff8a80;
  --shadow: 0 12px 34px #0000002e;
}

:root[data-theme="system"] {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --canvas: #101814;
    --surface: #19221d;
    --surface-soft: #202c25;
    --line: #34443a;
    --text: #edf4ef;
    --muted: #a0b1a6;
    --green: #52bd89;
    --green-deep: #81d4a8;
    --green-tint: #1f382b;
    --amber: #e6b052;
    --danger: #ff8a80;
    --shadow: 0 12px 34px #0000002e;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--canvas);
  min-height: 100%;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
}

.marketplace-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.marketplace-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  display: flex;
}

.marketplace-heading h1 {
  letter-spacing: -.035em;
  margin: 4px 0 8px;
  font-size: 26px;
}

.marketplace-heading p {
  max-width: 680px;
  color: var(--muted);
  margin: 0;
}

.marketplace-eyebrow {
  color: var(--green-deep);
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 800;
}

.marketplace-wallet {
  border-left: 1px solid var(--line);
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  padding-left: 20px;
  display: flex;
}

.marketplace-wallet span, .marketplace-wallet small {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-wallet strong {
  letter-spacing: -.02em;
  font-size: 21px;
}

.marketplace-content > .notice {
  margin: 12px 0;
}

.marketplace-search, .marketplace-field {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  display: flex;
}

.marketplace-search {
  max-width: 460px;
  margin: 0 0 17px;
}

.marketplace-filters {
  align-items: end;
  gap: 14px;
  display: flex;
}

.marketplace-period-filter {
  min-width: 190px;
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  display: flex;
}

.marketplace-period-filter select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
}

.marketplace-search input, .marketplace-field input, .marketplace-field select, .marketplace-mode-form input, .marketplace-mode-form select {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
}

.marketplace-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.marketplace-stack {
  gap: 16px;
  display: grid;
}

.marketplace-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 0;
  margin-bottom: 18px;
  padding: 17px 18px;
}

.marketplace-panel h2 {
  letter-spacing: -.01em;
  margin: 0 0 14px;
  font-size: 15px;
}

.marketplace-offer header {
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.marketplace-offer header span {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
  display: block;
}

.marketplace-offer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 9px;
  display: grid;
}

.marketplace-offer-stats span {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.marketplace-offer-stats small, .marketplace-offer p, .marketplace-panel > p {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-offer p {
  margin: 10px 0;
}

.marketplace-offer button {
  min-height: 34px;
}

.marketplace-form {
  gap: 11px;
  display: grid;
}

.marketplace-mode-form {
  grid-template-columns: 1fr 1fr 1.4fr auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.marketplace-mode-form button {
  white-space: nowrap;
  min-height: 38px;
}

.marketplace-cart-line {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  display: flex;
}

.marketplace-cart-line > div {
  grid-template-columns: minmax(100px, 1fr) 82px;
  align-items: center;
  gap: 6px 9px;
  width: 100%;
  display: grid;
}

.marketplace-cart-line input, .marketplace-inline-form input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 32px;
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
}

.marketplace-cart-line small {
  color: var(--muted);
  grid-column: 1 / -1;
  font-size: 10px;
}

.marketplace-checkout-preview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 7px;
  margin: 12px 0;
  padding: 11px 0;
  display: grid;
}

.marketplace-checkout-preview span {
  color: var(--muted);
  justify-content: space-between;
  font-size: 11px;
  display: flex;
}

.marketplace-checkout-preview span:last-of-type {
  color: var(--text);
  font-weight: 700;
}

.marketplace-checkout-preview small {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-inline-form {
  gap: 8px;
  display: flex;
}

.marketplace-inline-form input {
  flex: 1;
}

.marketplace-cart-line button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-width: 32px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}

.marketplace-panel .primary-button, .marketplace-panel .secondary-button {
  border-radius: 7px;
  min-height: 35px;
}

.marketplace-table-wrap {
  overflow: auto;
}

.marketplace-table-wrap table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
}

.marketplace-table-wrap th, .marketplace-table-wrap td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 9px;
  font-size: 11px;
}

.marketplace-table-wrap th {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  display: grid;
}

.marketplace-summary div {
  border-top: 1px solid var(--line);
  gap: 5px;
  padding: 12px 0;
  display: grid;
}

.marketplace-summary small, .marketplace-summary span {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-summary b {
  font-size: 20px;
}

.marketplace-portal .primary-button:focus-visible, .marketplace-portal .secondary-button:focus-visible, .marketplace-portal input:focus-visible, .marketplace-portal select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.marketplace-portal button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.quota-dashboard-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 30px 48px;
}

.quota-dashboard-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin: 0 0 22px;
  display: flex;
}

.quota-dashboard-heading h1 {
  letter-spacing: -.04em;
  margin: 6px 0 7px;
  font-size: 26px;
}

.quota-dashboard-heading p {
  color: var(--muted);
  margin: 0;
}

.quota-dashboard-kicker {
  color: var(--green-deep);
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 800;
}

.quota-dashboard-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  display: flex;
}

.quota-dashboard-filters label {
  min-width: 145px;
  color: var(--muted);
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.quota-dashboard-filters select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 145px;
  height: 37px;
  color: var(--text);
  border-radius: 7px;
  padding: 0 10px;
}

.quota-dashboard-filters .searchable-select {
  width: 100%;
  min-width: 145px;
}

.quota-dashboard-filters .searchable-select-trigger {
  border-color: var(--line);
  border-radius: 7px;
  min-height: 37px;
  padding: 7px 9px;
  font-size: 11px;
}

.quota-dashboard-filters .searchable-select-menu {
  font-size: 11px;
}

.quota-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.quota-kpi {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 16px 18px;
  transition: transform .18s, border-color .18s;
}

.quota-kpi:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

@supports (color: color-mix(in lab, red, red)) {
  .quota-kpi:hover {
    border-color: color-mix(in srgb,var(--green) 38%,var(--line));
  }
}

.quota-kpi span, .quota-kpi small {
  color: var(--muted);
  font-size: 10px;
  display: block;
}

.quota-kpi strong {
  letter-spacing: -.05em;
  margin: 11px 0 7px;
  font-family: JetBrains Mono, monospace;
  font-size: 24px;
  font-weight: 600;
  display: block;
}

.quota-overview-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 14px;
  margin-bottom: 14px;
  display: grid;
}

.quota-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 17px 19px;
}

.quota-panel > header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.quota-panel h2 {
  letter-spacing: -.02em;
  margin: 5px 0 0;
  font-size: 15px;
}

.quota-panel .text-link {
  color: var(--green-deep);
  white-space: nowrap;
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 700;
}

.quota-balance-list {
  display: grid;
}

.quota-balance-row {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 8px 0;
  display: flex;
}

.quota-balance-row > span, .quota-balance-row b {
  gap: 4px;
  display: grid;
}

.quota-balance-row strong {
  font-size: 11px;
}

.quota-balance-row small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.quota-balance-row b {
  text-align: right;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  display: block;
}

.quota-retirement-states {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 17px;
  display: grid;
}

.quota-retirement-states > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 7px;
  padding: 10px 7px;
  display: grid;
}

.quota-retirement-states i {
  background: #d49b34;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.quota-retirement-states i.approved {
  background: #168558;
}

.quota-retirement-states i.rejected {
  background: #c24c48;
}

.quota-retirement-states span {
  color: var(--muted);
  font-size: 9px;
}

.quota-retirement-states b {
  grid-column: 2;
  font-size: 17px;
}

.quota-shortage {
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.quota-shortage > span, .quota-shortage p {
  color: var(--muted);
  font-size: 10px;
}

.quota-shortage strong {
  margin: 7px 0;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  display: block;
}

.quota-shortage strong small, .quota-activity-row > b small {
  color: var(--muted);
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.quota-shortage p {
  margin: 0;
}

.quota-facility-panel, .quota-activity {
  margin-bottom: 14px;
}

.quota-table-wrap {
  overflow: auto;
}

.quota-table-wrap table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
}

.quota-table-wrap th, .quota-table-wrap td {
  border-top: 1px solid var(--line);
  text-align: right;
  padding: 10px 9px;
  font-size: 10px;
}

.quota-table-wrap th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.quota-table-wrap th:first-child, .quota-table-wrap td:first-child, .quota-table-wrap th:nth-child(2), .quota-table-wrap td:nth-child(2) {
  text-align: left;
}

.quota-table-wrap td:first-child strong, .quota-table-wrap td:first-child small {
  display: block;
}

.quota-table-wrap td:first-child small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
}

.quota-activity-list {
  display: grid;
}

.quota-activity-row {
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 0;
  display: flex;
}

.quota-activity-mark {
  background: var(--green-tint);
  width: 27px;
  height: 27px;
  color: var(--green-deep);
  border-radius: 7px;
  flex: 0 0 27px;
  place-items: center;
  display: grid;
}

.quota-activity-description {
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.quota-activity-description strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.quota-activity-description small {
  color: var(--muted);
  font-size: 9px;
}

.quota-activity-row > b {
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.quota-activity-row > b small {
  font-family: Plus Jakarta Sans, sans-serif;
}

.quota-empty, .quota-dashboard-loading {
  color: var(--muted);
  text-align: center;
  padding: 24px 10px;
  font-size: 11px;
}

.quota-dashboard-loading {
  margin: 24px;
}

.quota-dashboard-v2 .error-notice {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.company-primary-nav {
  display: none !important;
}

.facility-dashboard-heading {
  gap: 18px;
}

.facility-dashboard-period {
  color: var(--muted);
  align-items: center;
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.facility-dashboard-period strong {
  color: var(--text);
}

.facility-dashboard-period .outline-button {
  min-height: 34px;
  padding: 0 15px;
}

.facility-dashboard-filter-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  align-items: flex-end;
  gap: 12px;
  margin: -3px 0 16px;
  padding: 13px;
  display: flex;
}

.facility-dashboard-filter-panel label {
  min-width: 170px;
  color: var(--muted);
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.facility-dashboard-filter-panel select {
  border: 1px solid var(--line);
  background: var(--surface);
  height: 35px;
  color: var(--text);
  border-radius: 6px;
  padding: 0 9px;
}

.facility-dashboard-filter-panel .searchable-select {
  width: 100%;
  min-width: 170px;
}

.facility-dashboard-filter-panel .searchable-select-trigger {
  border-color: var(--line);
  border-radius: 7px;
  min-height: 36px;
  padding: 7px 9px;
  font-size: 10px;
}

.facility-dashboard-filter-panel .searchable-select-menu {
  font-size: 11px;
}

.facility-dashboard-balances {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.facility-balance {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 15px;
  min-height: 78px;
  padding: 12px 17px;
  display: grid;
}

.facility-balance:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.facility-balance:nth-last-child(-n+2) {
  border-bottom: 0;
}

.facility-balance > span {
  color: var(--muted);
  letter-spacing: .055em;
  font-size: 10px;
  font-weight: 750;
}

.facility-balance > strong {
  letter-spacing: -.04em;
  grid-area: 1 / 2 / 3;
  font-family: JetBrains Mono, monospace;
  font-size: 22px;
  font-weight: 600;
}

.facility-balance > small {
  color: var(--muted);
  font-size: 9px;
}

.facility-balance-owned > strong {
  color: var(--green-deep);
}

.facility-balance-market > strong, .facility-balance-compliance > strong {
  font-size: 18px;
}

.facility-period-summary, .facility-compliance-panel, .facility-activity-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 15px 17px;
}

.facility-period-summary {
  margin-top: 14px;
}

.facility-period-summary > header, .facility-compliance-panel > header, .facility-activity-panel > header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.facility-period-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 11px;
  display: grid;
}

.facility-period-summary-grid > div {
  border-left: 1px solid var(--line);
  gap: 6px;
  padding: 8px 12px;
  display: grid;
}

.facility-period-summary-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facility-period-summary-grid span {
  color: var(--muted);
  font-size: 10px;
}

.facility-period-summary-grid strong {
  font-family: JetBrains Mono, monospace;
  font-size: 14px;
  font-weight: 600;
}

.facility-period-summary-grid strong small, .facility-emissions-value strong small, .facility-unmet-value strong small {
  color: var(--muted);
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.facility-dashboard-lower {
  grid-template-columns: minmax(245px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-top: 14px;
  display: grid;
}

.facility-emissions-value, .facility-unmet-value {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  display: grid;
}

.facility-unmet-value {
  border-bottom: 0;
}

.facility-emissions-value span, .facility-unmet-value span {
  color: var(--muted);
  font-size: 10px;
}

.facility-emissions-value strong, .facility-unmet-value strong {
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 18px;
  font-weight: 600;
}

.facility-unmet-value strong {
  color: var(--green-deep);
}

.facility-activity-panel .text-link {
  color: var(--green-deep);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 700;
}

.facility-activity-list {
  margin-top: 5px;
  display: grid;
}

.facility-activity-row {
  border-top: 1px solid var(--line);
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  display: grid;
}

.facility-activity-dot {
  background: #86958b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.facility-activity-dot.sale {
  background: #b17922;
}

.facility-activity-dot.retirement, .facility-activity-dot.retirement_request {
  background: #168558;
}

.facility-activity-dot.order {
  background: #5275a4;
}

.facility-activity-dot.issuance {
  background: var(--green);
}

.facility-activity-row > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.facility-activity-row strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.facility-activity-row small {
  color: var(--muted);
  font-size: 9px;
}

.facility-activity-quantity {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.facility-dashboard-actions {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  display: flex;
}

.facility-dashboard-actions button {
  min-height: 35px;
  padding: 0 13px;
  font-size: 10px;
}

.facility-dashboard-heading {
  margin: 0 0 17px;
}

.facility-dashboard-heading h1 {
  letter-spacing: -.035em;
  margin: 5px 0 6px;
  font-size: 24px;
}

.facility-dashboard-heading p {
  max-width: 680px;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.facility-dashboard-filter-panel {
  border-color: var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 16px;
  padding: 12px 15px;
}

@supports (color: color-mix(in lab, red, red)) {
  .facility-dashboard-filter-panel {
    border-color: color-mix(in srgb,var(--line) 78%,var(--green) 22%);
  }
}

.facility-dashboard-filter-panel {
  background: linear-gradient(110deg,var(--surface),var(--green-tint));
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .facility-dashboard-filter-panel {
    background: linear-gradient(110deg,var(--surface),color-mix(in srgb,var(--green-tint) 42%,var(--surface)));
  }
}

.facility-dashboard-filter-panel {
  box-shadow: 0 1px 2px #0f172a06;
}

.facility-filter-heading {
  align-items: center;
  gap: 9px;
  min-width: 185px;
  margin-right: auto;
  display: flex;
}

.facility-filter-icon {
  border: 1px solid var(--green);
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .facility-filter-icon {
    border: 1px solid color-mix(in srgb,var(--green) 18%,var(--line));
  }
}

.facility-filter-icon {
  background: var(--surface);
  color: var(--green-deep);
  border-radius: 8px;
}

.facility-filter-icon svg {
  width: 16px;
  height: 16px;
}

.facility-filter-heading > div {
  gap: 3px;
  display: grid;
}

.facility-filter-heading strong {
  color: var(--text);
  font-size: 11px;
}

.facility-filter-heading small {
  color: var(--muted);
  font-size: 9px;
}

.facility-dashboard-filter-panel label {
  min-width: 180px;
  color: var(--text);
  letter-spacing: .02em;
  font-size: 9px;
}

.facility-dashboard-filter-panel select, .facility-dashboard-filter-panel .searchable-select {
  min-width: 180px;
}

.facility-dashboard-filter-panel select {
  border-color: var(--line);
  border-radius: 7px;
  height: 36px;
  font-size: 10px;
}

.facility-filter-period-note {
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
  padding-left: 14px;
  font-size: 9px;
}

.facility-filter-period-note strong {
  color: var(--text);
  margin-left: 3px;
  font-weight: 700;
}

.facility-dashboard-actions-section {
  border-top: 1px solid var(--line);
  margin: 17px 0 0;
  padding-top: 13px;
}

.facility-actions-heading {
  color: var(--muted);
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 800;
}

.facility-dashboard-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
  display: grid;
}

.facility-dashboard-actions .facility-action-link {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 46px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  transition: background .16s, border-color .16s, transform .16s;
  display: flex;
}

.facility-dashboard-actions .facility-action-link:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

@supports (color: color-mix(in lab, red, red)) {
  .facility-dashboard-actions .facility-action-link:hover {
    border-color: color-mix(in srgb,var(--green) 45%,var(--line));
  }
}

.facility-dashboard-actions .facility-action-link:hover {
  background: var(--green-tint);
}

@supports (color: color-mix(in lab, red, red)) {
  .facility-dashboard-actions .facility-action-link:hover {
    background: color-mix(in srgb,var(--green-tint) 48%,var(--surface));
  }
}

.facility-dashboard-actions .facility-action-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.facility-dashboard-actions .facility-action-link b {
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 500;
}

.facility-dashboard-actions .facility-action-primary {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

.facility-dashboard-actions .facility-action-primary:hover {
  border-color: var(--green);
  background: var(--green);
}

.facility-dashboard-actions .facility-action-primary b {
  color: #fff;
}

.company-profile-help-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 30px 48px;
}

.facility-profile-card, .facility-help-grid > article {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 19px;
}

.facility-profile-card h2, .facility-help-grid h2 {
  margin: 7px 0 0;
  font-size: 17px;
}

.facility-profile-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  display: grid;
}

.facility-profile-details > div {
  border-top: 1px solid var(--line);
  gap: 5px;
  padding-top: 10px;
  display: grid;
}

.facility-profile-details small, .facility-profile-list small {
  color: var(--muted);
  font-size: 10px;
}

.facility-profile-details strong {
  font-size: 11px;
}

.facility-profile-list {
  display: grid;
}

.facility-profile-list > div {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  display: flex;
}

.facility-profile-list span {
  gap: 4px;
  display: grid;
}

.facility-profile-list strong {
  font-size: 11px;
}

.facility-help-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  display: grid;
}

.facility-help-grid ol {
  color: var(--muted);
  gap: 10px;
  padding-left: 19px;
  font-size: 11px;
  line-height: 1.55;
  display: grid;
}

.facility-help-links {
  margin-top: 13px;
  display: grid;
}

.facility-help-links button {
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--green-deep);
  text-align: left;
  background: none;
  padding: 11px 0;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .quota-dashboard-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .quota-dashboard-filters {
    justify-content: flex-start;
  }

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

@media (min-width: 761px) and (max-width: 1050px) {
  .facility-period-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facility-period-summary-grid > div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .quota-dashboard-content {
    padding: 18px 14px 34px;
  }

  .quota-overview-grid {
    grid-template-columns: 1fr;
  }

  .quota-dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    display: grid;
  }

  .quota-dashboard-filters label, .quota-dashboard-filters select, .quota-dashboard-filters .searchable-select {
    min-width: 0;
  }

  .quota-panel {
    padding: 14px 12px;
  }
}

@media (max-width: 480px) {
  .quota-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quota-kpi {
    padding: 12px;
  }

  .quota-kpi strong {
    font-size: 18px;
  }

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

  .quota-retirement-states {
    gap: 4px;
  }

  .quota-retirement-states > div {
    padding: 8px 5px;
  }
}

@media (max-width: 760px) {
  .facility-dashboard-balances {
    grid-template-columns: 1fr;
  }

  .facility-balance:nth-child(odd) {
    border-right: 0;
  }

  .facility-balance:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .facility-period-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-period-summary-grid > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facility-dashboard-lower, .facility-help-grid {
    grid-template-columns: 1fr;
  }

  .facility-dashboard-filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .facility-dashboard-filter-panel label, .facility-dashboard-filter-panel .searchable-select {
    width: 100%;
    min-width: 0;
  }

  .facility-filter-heading {
    margin-right: 0;
  }

  .facility-filter-period-note {
    border: 0;
    padding: 0;
  }

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

  .company-profile-help-content {
    padding: 18px 14px 34px;
  }
}

@media (max-width: 480px) {
  .facility-balance {
    min-height: 70px;
    padding: 10px 12px;
  }

  .facility-balance > strong {
    font-size: 19px;
  }

  .facility-period-summary, .facility-compliance-panel, .facility-activity-panel, .facility-profile-card, .facility-help-grid > article {
    padding: 13px;
  }

  .facility-profile-details {
    grid-template-columns: 1fr;
  }

  .facility-dashboard-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .facility-dashboard-actions button {
    width: 100%;
  }
}

.company-bookkeeping-content {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-content .page-heading {
  margin-bottom: 17px;
}

.company-bookkeeping-filters {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 15px;
  padding: 11px 12px;
  display: flex;
}

.company-bookkeeping-filters label, .company-bookkeeping-inline-filters label {
  color: #64748b;
  gap: 5px;
  min-width: 170px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.company-bookkeeping-filters select, .company-bookkeeping-filters input, .company-bookkeeping-inline-filters select {
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 0 10px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-filters .searchable-select, .company-bookkeeping-inline-filters .searchable-select {
  width: 100%;
  min-width: 170px;
}

.company-bookkeeping-filters .searchable-select-trigger, .company-bookkeeping-inline-filters .searchable-select-trigger {
  border-color: #dbe3eb;
  border-radius: 7px;
  min-height: 36px;
  padding: 6px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-filters .searchable-select-menu, .company-bookkeeping-inline-filters .searchable-select-menu {
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-filters .outline-button {
  min-height: 36px;
  font-size: 11px;
}

.company-bookkeeping-tabs {
  margin-bottom: 14px;
}

.company-bookkeeping-tab-index {
  color: inherit;
  opacity: .72;
  font: 700 10px JetBrains Mono, monospace;
}

.company-bookkeeping-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 0 0 14px;
  display: grid;
}

.company-bookkeeping-metrics > article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 9px;
  min-width: 0;
  padding: 14px 15px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-bookkeeping-metrics > article > span {
  color: #64748b;
  letter-spacing: .055em;
  font-size: 9px;
  font-weight: 750;
}

.company-bookkeeping-metrics > article > strong {
  color: #0f172a;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  font: 700 19px JetBrains Mono, monospace;
}

.company-bookkeeping-metrics > article > strong small {
  color: #64748b;
  letter-spacing: 0;
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-card {
  margin-bottom: 14px;
  padding: 16px;
}

.company-bookkeeping-card > header {
  margin-bottom: 11px;
}

.company-bookkeeping-card > header h2 {
  margin: 0;
  font: 700 14px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-card > header p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.company-bookkeeping-account-list {
  display: grid;
}

.company-bookkeeping-account-list > div {
  border-top: 1px solid #e8eeeb;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 53px;
  padding: 8px 3px;
  display: flex;
}

.company-bookkeeping-account-list > div > span {
  gap: 4px;
  display: grid;
}

.company-bookkeeping-account-list strong {
  color: #334155;
  font-size: 11px;
}

.company-bookkeeping-account-list small {
  color: #64748b;
  font-size: 9px;
}

.company-bookkeeping-account-list b {
  white-space: nowrap;
  font: 700 12px JetBrains Mono, monospace;
}

.company-bookkeeping-account-list b small {
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-inline-filters {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  display: flex;
}

.company-bookkeeping-detail {
  width: min(900px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.company-bookkeeping-detail .record-modal-header h2 {
  margin: 4px 0 0;
  font: 700 16px Plus Jakarta Sans, sans-serif;
}

.company-bookkeeping-detail .record-modal-body {
  gap: 10px;
}

.company-bookkeeping-detail .record-modal-body > p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.company-bookkeeping-detail-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 5px 0;
  display: grid;
}

.company-bookkeeping-detail-totals > span {
  color: var(--muted);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 5px;
  padding: 10px;
  font-size: 10px;
  display: grid;
}

.company-bookkeeping-detail-totals strong {
  color: var(--text);
  font-size: 12px;
}

.company-bookkeeping-detail-table {
  overflow: auto;
}

.company-bookkeeping-detail-table table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
}

.company-bookkeeping-detail-table th, .company-bookkeeping-detail-table td {
  border-top: 1px solid var(--line);
  text-align: left;
  padding: 9px 8px;
  font-size: 10px;
}

.company-bookkeeping-detail-table th {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 760px) {
  .company-bookkeeping-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .company-bookkeeping-filters label, .company-bookkeeping-filters select, .company-bookkeeping-filters input, .company-bookkeeping-filters .searchable-select {
    width: 100%;
    min-width: 0;
  }

  .company-bookkeeping-filters > .outline-button {
    width: 100%;
  }

  .company-bookkeeping-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .company-bookkeeping-metrics > article {
    padding: 11px;
  }

  .company-bookkeeping-metrics > article > strong {
    font-size: 15px;
  }

  .company-bookkeeping-detail-totals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .marketplace-content {
    padding: 18px 15px 36px;
  }

  .marketplace-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-mode-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .marketplace-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketplace-wallet {
    border: 0;
    padding: 0;
  }

  .marketplace-heading h1 {
    font-size: 22px;
  }

  .marketplace-mode-form {
    grid-template-columns: 1fr;
  }

  .marketplace-offer-stats {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-panel {
    padding: 14px 12px;
  }

  .marketplace-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-search, .marketplace-period-filter {
    min-width: 0;
    max-width: none;
  }
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

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

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #51a87d;
}

.portal-frame {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  color: #fff;
  z-index: 5;
  background: linear-gradient(#01452a 0%, #003621 100%);
  border-right: 0;
  flex-direction: column;
  width: 258px;
  padding: 27px 18px 20px;
  font-family: Plus Jakarta Sans, sans-serif;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  box-shadow: 2px 0 12px #0000001a;
}

.brand-row {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.brand-row .brand {
  flex: 1;
  min-width: 0;
}

.collapse-button {
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: 5px 0 0 4px;
  font-size: 20px;
  line-height: 1;
  display: grid;
}

.collapse-button:hover {
  background: #ffffff29;
}

.brand {
  color: #fff;
  align-items: center;
  gap: 11px;
  padding: 0 8px 27px;
  display: flex;
}

.brand-mark {
  background: var(--green);
  color: #fff;
  letter-spacing: .03em;
  border-radius: 8px;
  place-items: center;
  width: 43px;
  height: 43px;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  box-shadow: 0 2px 5px #0003;
}

.brand-mark-icon {
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  background: none !important;
}

.brand-mark-icon img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar .brand-mark {
  color: #fff;
  box-shadow: none;
  background: #ffffff24;
}

.brand strong, .brand small {
  display: block;
}

.brand strong {
  letter-spacing: -.02em;
  font-size: 13px;
}

.brand small {
  color: var(--muted);
  letter-spacing: .18em;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
}

.sidebar .brand small, .side-label {
  color: #fff9;
}

.side-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 6px 10px 12px;
  font-size: 10px;
  font-weight: 700;
}

.side-label-active {
  color: #a7f3d0 !important;
}

.side-label-spaced {
  margin-top: 22px;
}

.sidebar-menu-scroll {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff59 transparent;
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
}

.sidebar-menu-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu-scroll::-webkit-scrollbar-track {
  background: none;
}

.sidebar-menu-scroll::-webkit-scrollbar-thumb {
  background: #ffffff47;
  border-radius: 8px;
}

.side-nav {
  gap: 5px;
  display: grid;
}

.side-link {
  color: #ffffffbf;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.nav-icon {
  color: #ffffffd1;
  border: 1px solid #fff3;
  border-radius: 6px;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 14px;
  line-height: 1;
  display: grid;
}

.nav-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.side-link:hover {
  color: #fff;
  background: #ffffff14;
}

.side-link.selected {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 5px #0003;
}

.selected .nav-icon {
  color: #fff;
  border-color: #ffffff4d;
}

.side-bottom-nav {
  margin-top: auto;
}

.sidebar-bottom {
  color: #fff;
  border-top: 1px solid #ffffff14;
  grid-template-columns: 9px 1fr;
  align-items: center;
  column-gap: 9px;
  margin-top: auto;
  padding: 15px 10px 0;
  font-size: 11px;
  font-weight: 600;
  display: grid;
}

.sidebar-bottom small {
  color: #fff9;
  grid-column: 2;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 400;
}

.online-dot {
  background: #25a56b;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
  box-shadow: 0 0 0 3px #25a56b21;
}

.sidebar-user {
  background: #0000001f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0 2px 15px;
  padding: 9px;
  display: flex;
}

.sidebar-user-avatar {
  color: #fff;
  background: #ffffff29;
  border-radius: 50%;
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong, .sidebar-user-copy small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.sidebar-user-copy strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
}

.sidebar-user-copy small {
  color: #a7f3d0;
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.3;
}

.sidebar-primary-nav {
  scrollbar-width: thin;
  scrollbar-color: #ffffff47 transparent;
  flex: auto;
  align-content: start;
  gap: 5px;
  min-height: 0;
  margin: 0;
  display: grid;
  overflow: hidden auto;
}

.sidebar-menu-group {
  min-width: 0;
}

.sidebar-primary-link {
  color: #ffffffb8;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.sidebar-primary-link:hover {
  color: #fff;
  background: #ffffff14;
}

.sidebar-primary-link.selected {
  color: #6ee7b7;
  background: #0003;
  border-color: #a7f3d047;
}

.sidebar-primary-link.selected .primary-text {
  color: #6ee7b7;
}

.sidebar-primary-link .primary-text {
  flex: auto;
}

.sidebar-chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.sidebar-primary-link[aria-expanded="true"] .sidebar-chevron {
  opacity: 1;
}

.primary-icon {
  color: #ffffffbf;
  background: #ffffff1a;
  border-radius: 6px;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}

.sidebar-primary-link.selected .primary-icon {
  background: var(--green);
  color: #fff;
}

.primary-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.sidebar-submenu {
  border-left: 1px solid #a7f3d042;
  min-width: 0;
  margin: 2px 0 7px 13px;
  padding: 2px 0 2px 8px;
}

.sidebar-submenu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-submenu::-webkit-scrollbar-track {
  background: none;
}

.sidebar-submenu::-webkit-scrollbar-thumb {
  background: #ffffff40;
  border-radius: 8px;
}

.sidebar-submenu .side-nav {
  gap: 3px;
}

.sidebar-submenu .side-link {
  min-height: 36px;
  padding: 0 8px;
  font-size: 10px;
}

.sidebar-submenu .side-link .nav-icon {
  flex-basis: 21px;
  width: 21px;
  height: 21px;
  font-size: 12px;
}

.sidebar-bottom {
  border-top: 1px solid #ffffff1f;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: auto;
  padding: 13px 8px 0;
  display: grid;
}

.sidebar-status {
  color: #ffffffa8;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  display: flex;
}

.sidebar-status > span:first-child {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.sidebar-status-tech {
  color: #a7f3d0;
  font-family: SFMono-Regular, Consolas, monospace;
}

.sidebar-logout {
  color: #ffffffc7;
  background: #0000002e;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.sidebar-logout:hover:not(:disabled) {
  color: #fecaca;
  background: #7f1d1d47;
  border-color: #f8717173;
}

.sidebar-logout > span:first-child {
  color: #fca5a5;
  font-size: 16px;
  line-height: 1;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.sidebar.collapsed .sidebar-user-copy, .sidebar.collapsed .sidebar-submenu, .sidebar.collapsed .primary-text, .sidebar.collapsed .sidebar-chevron {
  display: none;
}

.sidebar.collapsed .sidebar-primary-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-primary-nav {
  margin-top: 3px;
}

.sidebar.collapsed .sidebar-bottom {
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-status {
  justify-content: center;
}

.sidebar.collapsed .sidebar-status > span:first-child {
  font-size: 0;
}

.sidebar.collapsed .sidebar-status .online-dot {
  width: 8px;
  height: 8px;
}

.sidebar.collapsed .sidebar-status-tech {
  display: none;
}

.sidebar.collapsed .sidebar-logout {
  min-height: 38px;
  padding: 0;
}

.workspace {
  width: calc(100% - 258px);
  min-width: 0;
  margin-left: 258px;
}

.topbar {
  z-index: 4;
  color: #fff;
  background: #01452a;
  border-bottom: 1px solid #ffffff0d;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 38px;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px #0000000d;
}

.breadcrumb {
  color: #ffffffb3;
  font-size: 12px;
}

.topbar {
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
}

.breadcrumb span {
  color: #ffffff52;
  padding: 0 9px;
}

.breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

.top-actions {
  align-items: center;
  gap: 15px;
  display: flex;
}

.preference-buttons {
  align-items: center;
  gap: 5px;
  display: flex;
}

.preference-icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 38px;
  height: 36px;
  color: var(--text);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  display: inline-flex;
}

.preference-icon-button:hover {
  background: var(--surface-soft);
}

.preference-icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 18px;
  height: 18px;
}

.preference-code {
  font-size: 9px;
  font-weight: 700;
}

.topbar .preference-icon-button {
  color: #fff;
  background: #00000029;
  border-color: #fff3;
}

.topbar-tutorial-link {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
  display: inline-flex;
}

.topbar-tutorial-link:hover {
  background: var(--surface-soft);
  color: var(--green);
  transform: translateY(-1px);
}

.topbar-tutorial-link svg {
  color: #059669;
  flex-shrink: 0;
}

.topbar .topbar-tutorial-link {
  color: #01452a;
  background: #fff;
  border: 1px solid #d1fae5;
  font-weight: 750;
  box-shadow: 0 2px 8px #0000002e;
}

.topbar .topbar-tutorial-link:hover {
  color: #005635;
  background: #ecfdf5;
  border-color: #a7f3d0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #0000003d;
}

.topbar .topbar-tutorial-link.active {
  color: #064e3b;
  background: #d1fae5;
  border-color: #34d399;
  box-shadow: 0 0 0 2px #34d39966;
}

.topbar .topbar-tutorial-link svg {
  color: #059669;
}

.topbar .topbar-tutorial-link.active svg {
  color: #047857;
}

@media (max-width: 680px) {
  .topbar-tutorial-link span {
    display: none;
  }

  .topbar-tutorial-link {
    padding: 0 10px;
  }
}

.pref-label, .login-pref label {
  color: var(--muted);
  align-items: center;
  gap: 7px;
  font-size: 10px;
  display: flex;
}

.pref-label select, .login-pref select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: auto;
  min-width: 48px;
  color: var(--text);
  border-radius: 6px;
  padding: 6px 22px 6px 8px;
  font-size: 11px;
}

.topbar .pref-label select {
  color: #fff;
  box-shadow: none;
  background: #0003;
  border-color: #ffffff26;
}

.user-chip {
  border-left: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  display: flex;
}

.topbar .avatar {
  color: #fff;
  background: #ffffff1f;
}

.user-chip b, .user-chip small {
  white-space: nowrap;
  display: block;
}

.user-chip b {
  font-size: 11px;
}

.user-chip small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}

.avatar {
  background: var(--green-tint);
  width: 31px;
  height: 31px;
  color: var(--green);
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.quiet-button, .text-button {
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 600;
}

.quiet-button:hover, .text-button:hover {
  color: var(--green);
}

.content-wrap {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 38px 38px 45px;
}

.page-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 25px;
  display: flex;
}

.eyebrow {
  color: var(--green);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.page-heading h1 {
  letter-spacing: -.025em;
  margin: 9px 0 7px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  min-height: 39px;
  box-shadow: 0 4px 12px var(--green);
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .primary-button {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--green) 18%, transparent);
  }
}

.primary-button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.stat-strip {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 84px;
  box-shadow: var(--shadow);
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  padding: 15px 20px;
  display: flex;
}

.stat-strip > div:first-child {
  align-items: center;
  gap: 13px;
  display: flex;
}

.stat-icon {
  background: var(--green-tint);
  width: 39px;
  height: 39px;
  color: var(--green);
  border-radius: 9px;
  place-items: center;
  font-size: 18px;
  display: grid;
}

.stat-strip small, .stat-strip strong {
  display: block;
}

.stat-strip small {
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 10px;
}

.stat-strip strong {
  font-size: 17px;
}

.stat-strip em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.source-badge {
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: .08em;
  border-radius: 20px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
}

.source-badge .online-dot {
  width: 6px;
  height: 6px;
}

.data-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 9px;
  overflow: hidden;
}

.toolbar {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 16px;
  display: flex;
}

.search-box {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  width: min(370px, 40vw);
  height: 37px;
  color: var(--muted);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  display: flex;
}

.search-box > span {
  font-size: 20px;
}

.search-box input {
  min-width: 0;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 13px;
}

.search-box button {
  background: var(--surface);
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  width: 23px;
  height: 23px;
}

.filter-control {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.filter-control select, .pagination select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 114px;
  color: var(--text);
  border-radius: 6px;
  padding: 8px 22px 8px 9px;
  font-size: 12px;
}

.filter-control .searchable-select {
  min-width: 150px;
}

.filter-control .searchable-select-trigger {
  border-radius: 6px;
  min-height: 35px;
  padding: 7px 9px;
  font-size: 12px;
}

.sort-control select {
  min-width: 98px;
}

.direction-button, .icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 34px;
  height: 34px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 16px;
}

.direction-button:hover, .icon-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.icon-button {
  margin-left: auto;
  font-size: 20px;
}

.table-wrap {
  min-height: 300px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  width: 100%;
}

thead {
  background: var(--surface-soft);
}

th {
  border-bottom: 1px solid var(--line);
  height: 46px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
}

td {
  border-bottom: 1px solid var(--line);
  height: 58px;
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--green-tint);
}

@supports (color: color-mix(in lab, red, red)) {
  tbody tr:hover {
    background: color-mix(in srgb, var(--green-tint) 35%, var(--surface));
  }
}

td.row-number {
  width: 44px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

td.primary-cell {
  color: var(--text);
  font-weight: 700;
}

.th-sort {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
}

.allocation-sort-header {
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.th-sort span {
  color: var(--green);
}

.datatable-heading-cell {
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  display: flex;
}

.datatable-heading-cell > .th-sort {
  text-align: left;
  min-width: 0;
  padding: 0;
}

.column-info-trigger {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 19px;
  height: 19px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  flex: 0 0 19px;
  place-items: center;
  padding: 0;
  font: 700 11px / 1 Arial, sans-serif;
  display: inline-grid;
}

.column-info-trigger:hover, .column-info-trigger:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.column-info-backdrop {
  z-index: 90;
}

.column-info-dialog {
  width: min(520px, 100%);
}

.column-info-dialog .record-modal-header {
  align-items: flex-start;
}

.column-info-dialog .record-modal-header .eyebrow {
  color: var(--muted);
  letter-spacing: .12em;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 750;
}

.column-info-close {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 36px;
  height: 36px;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 36px;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  display: grid;
}

.column-info-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.column-info-section {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  padding: 13px 14px;
}

.column-info-section h3 {
  color: var(--text);
  margin: 0 0 6px;
  font-size: 13px;
}

.column-info-section p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.column-info-dialog .record-modal-body > small {
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  background: var(--green-tint);
  color: var(--green);
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.status-pill:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.status-pending, .status-closed {
  background: var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .status-pending, .status-closed {
    background: color-mix(in srgb, var(--amber) 15%, var(--surface));
  }
}

.status-pending, .status-closed {
  color: var(--amber);
}

.status-disabled, .status-rejected, .status-failure, .status-denied {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .status-disabled, .status-rejected, .status-failure, .status-denied {
    background: color-mix(in srgb, var(--danger) 13%, var(--surface));
  }
}

.status-disabled, .status-rejected, .status-failure, .status-denied {
  color: var(--danger);
}

.table-footer {
  border-top: 1px solid var(--line);
  min-height: 62px;
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 12px;
  display: flex;
}

.table-footer b {
  color: var(--text);
}

.pagination {
  align-items: center;
  gap: 8px;
  display: flex;
}

.pagination label {
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  display: flex;
}

.pagination select {
  min-width: 60px;
  padding: 7px 18px 7px 8px;
}

.outline-button {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 34px;
  color: var(--muted);
  border-radius: 5px;
  padding: 0 10px;
  font-size: 12px;
}

.outline-button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.page-number {
  text-align: center;
  min-width: 76px;
}

.inline-loading {
  height: 200px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex;
}

.state-panel {
  min-height: 210px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  display: flex;
}

.error-panel {
  color: var(--danger);
}

.state-icon {
  background: var(--danger);
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .state-icon {
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  }
}

.state-icon {
  font-weight: 700;
}

.spinner {
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .7s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar.collapsed {
  width: 76px;
  padding-left: 12px;
  padding-right: 12px;
}

.sidebar.collapsed .brand {
  padding: 0 4px 27px;
}

.sidebar.collapsed .brand-copy, .sidebar.collapsed .side-label, .sidebar.collapsed .nav-text, .sidebar.collapsed .bottom-copy {
  display: none;
}

.sidebar.collapsed .brand-row {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sidebar.collapsed .brand-row .brand {
  flex: initial;
}

.sidebar.collapsed .collapse-button {
  margin: -17px 0 16px;
}

.sidebar.collapsed .side-link {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .sidebar-bottom {
  justify-content: center;
  padding: 15px 0 0;
  display: flex;
}

.menu-settings-card {
  padding: 0 18px;
}

.menu-settings-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  display: flex;
}

.menu-settings-heading strong {
  font-size: 12px;
}

.menu-settings-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.menu-setting-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  display: flex;
}

.menu-setting-row:last-child {
  border-bottom: 0;
}

.menu-setting-icon {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  color: var(--green);
  border-radius: 7px;
  place-items: center;
  font-size: 15px;
  display: grid;
}

.menu-setting-name {
  flex: 1;
  font-weight: 600;
}

.menu-setting-name small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  display: block;
}

.menu-setting-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.heading-actions, .row-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.allocation-rule-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}

.icon-action {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 31px;
  height: 31px;
  color: var(--muted);
  border-radius: 6px;
  place-items: center;
  padding: 0;
  display: grid;
}

.icon-action:hover {
  border-color: var(--green);
  color: var(--green);
}

.icon-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  width: 15px;
  height: 15px;
}

.icon-action.danger-outline:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.danger-outline {
  color: var(--danger);
}

.modal-backdrop {
  z-index: 20;
  background: #05160e94;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.record-modal {
  border: 1px solid var(--line);
  background: var(--surface);
  width: min(560px, 100%);
  max-height: min(90vh, 820px);
  color: var(--text);
  border-radius: 12px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 80px #00000047;
}

.record-modal.ledger-modal {
  width: min(96vw, 1680px);
  max-height: min(94vh, 920px);
}

.record-modal.bulk-manual-modal {
  width: min(96vw, 1100px);
}

.bulk-manual-body {
  min-height: 0;
}

.bulk-manual-list {
  gap: 12px;
  min-width: 0;
  display: grid;
}

.bulk-manual-row {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  align-items: start;
  gap: 16px;
  padding: 14px;
  display: grid;
}

.bulk-manual-identity {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.bulk-manual-identity strong {
  overflow-wrap: anywhere;
}

.bulk-manual-identity small, .bulk-manual-identity span {
  color: var(--muted);
  font-size: 12px;
}

.bulk-manual-fields, .bulk-response-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  display: grid;
}

.bulk-response-fields {
  grid-template-columns: minmax(120px, .55fr) minmax(180px, 1fr);
}

.bulk-manual-fields label, .bulk-response-fields label {
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.bulk-manual-fields input, .bulk-manual-fields select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
}

.ledger-modal .record-modal-body {
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

.ledger-modal .record-modal-body > .toolbar {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  padding: 0;
  display: grid;
}

.ledger-modal .record-modal-body > .toolbar label {
  color: var(--text);
  align-content: start;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.ledger-modal .record-modal-body > .toolbar select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 44px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  margin-top: 1px;
  padding: 9px 34px 9px 12px;
  font-size: 14px;
  font-weight: 400;
}

.ledger-modal .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.ledger-modal .metric-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px;
  display: grid;
}

.ledger-modal .metric-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.ledger-modal .metric-card > strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  line-height: 1.25;
}

.ledger-modal .metric-card > small {
  color: var(--muted);
  font-size: 11px;
}

.ledger-launch-button {
  min-height: 40px;
  box-shadow: 0 3px 10px var(--green);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
}

@supports (color: color-mix(in lab, red, red)) {
  .ledger-launch-button {
    box-shadow: 0 3px 10px color-mix(in srgb,var(--green) 18%,transparent);
  }
}

.record-modal-header, .record-modal-footer {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  display: flex;
}

.record-modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.record-modal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.record-modal-body {
  gap: 13px;
  padding: 20px;
  display: grid;
  overflow: auto;
}

.view-modal .record-modal-header p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 11px;
}

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

.detail-field {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 7px;
  min-width: 0;
  padding: 11px 12px;
}

.detail-field small, .detail-field strong {
  display: block;
}

.detail-field small {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 10px;
}

.detail-field strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.record-modal-body > label {
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.record-modal-body input:not([type="checkbox"]), .record-modal-body select, .record-modal-body textarea {
  font-size: 14px;
  font-weight: 400;
}

.choice-fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  display: grid;
}

.choice-fieldset legend {
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
}

.choice-row {
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  display: flex;
}

.choice-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
  margin: 1px 0 0;
}

.choice-row span, .choice-row small {
  display: block;
}

.choice-row small, .form-help {
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
}

.login-page {
  background: var(--canvas);
  place-items: center;
  min-height: 100vh;
  padding: 36px;
  display: grid;
  position: relative;
}

.login-pref {
  gap: 15px;
  display: flex;
  position: absolute;
  top: 22px;
  right: 26px;
}

.login-pref .preference-icon-button {
  background: var(--surface);
  color: var(--text);
}

.login-layout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  grid-template-columns: minmax(350px, 1fr) minmax(400px, .86fr);
  width: min(1050px, 100%);
  min-height: 620px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 24px 70px #1738261f;
}

.login-art {
  color: #fff;
  background: linear-gradient(90deg, #071b15d6, #071b15a8 48%, #071b1547), linear-gradient(#071b1514, #071b1557), url("/images/login-industrial-hero.webp") 50% / cover no-repeat;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 35px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.art-grid {
  opacity: .12;
  background-image: linear-gradient(#fff6 1px, #0000 1px), linear-gradient(90deg, #fff6 1px, #0000 1px);
  background-size: 38px 38px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(145deg, #000, #0000 80%);
  mask-image: linear-gradient(145deg, #000, #0000 80%);
}

.art-badge, .art-copy, .art-footer {
  z-index: 1;
  position: relative;
}

.art-badge {
  letter-spacing: .16em;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  font-weight: 700;
  display: flex;
}

.art-badge .brand-mark {
  color: var(--green-deep);
  background: #fff;
}

.art-copy {
  max-width: 370px;
  margin-top: 38px;
  margin-bottom: auto;
  padding: 20px 0 0;
}

.art-copy h1 {
  letter-spacing: -.05em;
  margin: 16px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.09;
}

.art-copy p {
  color: #ffffffa8;
  letter-spacing: .2em;
  font-size: 9px;
  font-weight: 700;
}

.art-footer {
  color: #ffffff85;
  letter-spacing: .16em;
  font-size: 8px;
}

.art-illustration {
  display: none;
}

.login-card {
  flex-direction: column;
  padding: 42px clamp(30px, 5vw, 58px) 25px;
  display: flex;
}

.login-brand {
  margin-bottom: 20px;
  padding: 0;
}

.login-heading h2 {
  letter-spacing: -.04em;
  margin: 13px 0 8px;
  font-size: 29px;
}

.login-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

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

.login-form > label {
  color: var(--text);
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.login-form input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  border-radius: 6px;
  padding: 0 11px;
  font-size: 12px;
}

.login-form input:focus {
  border-color: var(--green);
}

.captcha-label {
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  margin-bottom: -10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.captcha-row {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: grid;
}

.captcha-image {
  border: 1px solid var(--line);
  background: #f6faf7;
  border-radius: 6px;
  place-items: center;
  min-height: 62px;
  display: grid;
  overflow: hidden;
}

.captcha-image img {
  object-fit: cover;
  width: 100%;
  height: 62px;
  display: block;
}

.form-error {
  border: 1px solid var(--danger);
  padding: 9px 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-error {
    border: 1px solid color-mix(in srgb, var(--danger) 27%, transparent);
  }
}

.form-error {
  background: var(--danger);
  border-radius: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .form-error {
    background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  }
}

.form-error {
  color: var(--danger);
  font-size: 10px;
}

.login-submit {
  justify-content: space-between;
  min-height: 44px;
  margin-top: 3px;
  padding: 0 14px;
  font-size: 12px;
  display: flex;
}

.login-submit span {
  font-size: 18px;
}

.login-security {
  color: var(--muted);
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 9px;
  display: flex;
}

.login-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: .1em;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 8px;
  display: flex;
}

.login-demo-accounts {
  border: 1px solid var(--line);
  background: var(--green);
  border-radius: 7px;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
  margin-top: 9px;
  padding: 8px 10px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .login-demo-accounts {
    background: color-mix(in srgb, var(--green) 4%, var(--surface));
  }
}

.login-demo-accounts > strong {
  color: var(--green-deep);
  letter-spacing: .08em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  font-size: 8px;
}

.login-demo-accounts > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.login-demo-accounts span {
  color: var(--muted);
  font-size: 8px;
}

.login-demo-accounts code {
  color: var(--text);
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 8px;
  font-weight: 650;
}

.bae-period-filter {
  align-items: center;
  gap: 9px;
  margin: -8px 0 15px;
  display: flex;
}

.bae-period-filter label {
  color: var(--muted);
  font-size: 11px;
}

.bae-period-filter select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 115px;
  min-height: 36px;
  color: var(--text);
  font: inherit;
  border-radius: 5px;
  padding: 0 26px 0 9px;
  font-size: 12px;
}

.allocation-filters {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px;
}

.allocation-filters select {
  min-width: 150px;
}

.allocation-filters > .searchable-select {
  width: 100%;
  min-width: 150px;
}

.facility-allocation-table .inline-allocation-input, .facility-allocation-table .inline-allocation-select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 105px;
  height: 38px;
  color: var(--text);
  border-radius: 5px;
  padding: 0 8px;
  font-size: 13px;
}

.facility-allocation-table .inline-allocation-input {
  text-align: right;
  width: 132px;
}

.facility-allocation-table .inline-allocation-select {
  width: 148px;
}

.facility-allocation-table .row-actions {
  flex-wrap: nowrap;
  gap: 4px;
}

.company-facility-cell {
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  display: flex;
}

.company-facility-cell strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.company-facility-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.table-wrap td.datatable-company-name {
  font-size: 13px;
  font-weight: 700;
}

.table-wrap td.datatable-facility-name, .master-data-workspace td.primary-cell.datatable-facility-name {
  font-size: 12px;
  font-weight: 500;
}

.facility-allocation-table .row-actions .icon-button {
  width: 30px;
  height: 30px;
  margin-left: 0;
  font-size: 16px;
}

.facility-allocation-table .inline-save-button {
  white-space: nowrap;
  min-height: 30px;
  padding: 0 9px;
}

.allocation-summary-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 15px;
}

.allocation-summary-cards > .dashboard-metric > span {
  min-height: 27px;
  font-size: 10px;
  line-height: 1.35;
}

.allocation-bae-breakdown {
  gap: 7px;
  display: grid;
}

.allocation-bae-breakdown > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 5px;
  display: flex;
}

.allocation-bae-breakdown > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.allocation-bae-breakdown small {
  color: var(--muted);
  font-size: 9px;
}

.allocation-bae-breakdown strong {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-size: clamp(13px, 1.2vw, 17px);
}

.allocation-bae-breakdown em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
}

.allocation-remaining-summary {
  gap: 6px !important;
}

.allocation-remaining-summary > span {
  font-size: 9px !important;
}

.allocation-remaining-summary .allocation-bae-breakdown {
  gap: 4px;
}

.allocation-remaining-summary .allocation-bae-breakdown > div {
  padding-bottom: 3px;
}

.allocation-remaining-summary .allocation-bae-breakdown small {
  font-size: 8px;
}

.allocation-summary .allocation-remaining-summary .allocation-bae-breakdown strong {
  font-size: 13px;
}

.allocation-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 16px;
  display: grid;
}

.allocation-summary article {
  gap: 8px;
  padding: 14px 16px;
  display: grid;
}

.allocation-summary article + article {
  border-left: 1px solid var(--line);
}

.allocation-summary span {
  color: var(--muted);
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 700;
}

.allocation-summary strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.1;
}

.allocation-summary strong small {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.allocation-status-bar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
  display: flex;
}

.allocation-status-bar .status-draft {
  background: var(--amber-tint, #fff4df);
  color: var(--amber, #946200);
}

.part1-tabs {
  border-bottom: 1px solid var(--line);
  gap: 8px;
  margin: 0 0 17px;
  display: flex;
}

.part1-tabs button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  display: flex;
}

.part1-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--text);
  font-weight: 700;
}

.part1-tabs b {
  background: var(--surface-soft);
  border-radius: 12px;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-size: 10px;
  display: grid;
}

.part1-tabs ~ .data-card .row-actions {
  flex-wrap: wrap;
}

.part1-tabs ~ .data-card .row-actions .outline-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.dashboard-view {
  gap: 18px;
  display: grid;
}

.dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  display: grid;
}

.dashboard-metric {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px #1432230a;
}

.dashboard-metric > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-metric > strong {
  color: var(--text);
  letter-spacing: -.04em;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.dashboard-metric > small {
  color: var(--muted);
  margin-top: auto;
  font-size: 10px;
}

.dashboard-metric > em {
  color: var(--green);
  margin-top: -5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-metric > .dashboard-metric-detail {
  color: var(--green-deep);
  margin-top: -7px;
  font-size: 12px;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.2;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong small {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}

.installation-count-card {
  gap: 8px;
}

.installation-count-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: auto 0;
  display: grid;
}

.installation-count-breakdown > div {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.installation-count-breakdown small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
}

.installation-count-breakdown strong {
  color: var(--text);
  letter-spacing: -.03em;
  font-size: 16px;
  line-height: 1;
}

.installation-count-card > small {
  margin-top: 0;
  font-size: 8px;
}

.dashboard-progress {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 14px #1432230a;
}

.dashboard-progress .section-title {
  margin-bottom: 17px;
}

.dashboard-trend-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  display: grid;
}

.dashboard-trend-card {
  min-width: 0;
  padding: 17px;
}

.dashboard-trend-card .section-title {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-trend-card .section-title h2 {
  font-size: 13px;
  line-height: 1.4;
}

.annual-trend-panel {
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}

.annual-trend-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 15px 22px;
  display: flex;
}

.annual-trend-title {
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: flex;
}

.annual-trend-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

.annual-trend-actions {
  flex: none;
  align-items: center;
  gap: 13px;
  display: flex;
}

.annual-trend-badge {
  color: #69a9e8;
  letter-spacing: .08em;
  white-space: nowrap;
  background: #f0f7ff;
  border: 1px solid #d9eaff;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
}

.annual-trend-actions button {
  width: 25px;
  height: 25px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  place-items: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  transition: background-color .16s, color .16s;
  display: grid;
}

.annual-trend-actions button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.annual-trend-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 9px;
  display: grid;
}

.annual-trend-metric {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  min-width: 0;
  min-height: 87px;
  padding: 14px 15px 12px;
  transition: transform .18s, box-shadow .18s;
}

.annual-trend-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px #14322312;
}

.annual-trend-metric-label {
  min-height: 18px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
}

.annual-trend-metric-label svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.annual-trend-metric strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 9px;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.15;
  display: block;
  overflow: hidden;
}

.annual-trend-metric strong small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.annual-trend-metric strong .annual-trend-metric-detail {
  color: inherit;
}

.annual-trend-plot {
  padding: 4px 15px 0 8px;
}

.annual-trend-tooltip {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 215px;
  color: var(--text);
  border-radius: 8px;
  gap: 9px;
  padding: 12px 14px;
  font-size: 10px;
  display: grid;
  box-shadow: 0 8px 24px #14322324;
}

.annual-trend-tooltip > strong {
  margin-bottom: 1px;
  font-size: 12px;
}

.annual-trend-tooltip > span {
  color: var(--muted);
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 7px;
  display: grid;
}

.annual-trend-tooltip > span b {
  color: var(--text);
  grid-column: 2;
  font-size: 10px;
}

.annual-trend-dot {
  border-radius: 50%;
  grid-row: span 2;
  width: 8px;
  height: 8px;
}

.annual-trend-dot.bae {
  background: #11b985;
}

.annual-trend-dot.quota {
  background: #f59e0b;
}

.annual-trend-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 57px;
  padding: 12px 22px;
  display: flex;
}

.annual-trend-footer > div {
  flex-wrap: wrap;
  gap: 20px;
  display: flex;
}

.annual-trend-footer > div span {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
}

.annual-trend-line {
  display: inline-block;
}

.annual-trend-line.bae {
  background: #11b985;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.annual-trend-line.quota {
  border-top: 3px dashed #f59e0b;
  width: 20px;
}

.annual-trend-footer em {
  color: var(--muted);
  text-align: right;
  font-size: 9px;
  font-style: italic;
}

.annual-trend-fullscreen {
  z-index: 1100;
  background: var(--surface);
  position: fixed;
  inset: 14px;
  overflow: auto;
  box-shadow: 0 20px 70px #00000047;
}

.annual-trend-fullscreen .annual-trend-plot .recharts-responsive-container {
  height: min(62vh, 700px) !important;
}

.trend-unit {
  color: var(--muted);
  flex: none;
  font-size: 9px;
  font-weight: 700;
}

.trend-legend {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  display: flex;
}

.trend-legend span {
  color: var(--muted);
  align-items: center;
  gap: 5px;
  font-size: 9px;
  display: inline-flex;
}

.trend-legend i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.trend-metric-switch {
  background: var(--surface-soft);
  border-radius: 7px;
  gap: 4px;
  margin: 0 0 9px;
  padding: 3px;
  display: inline-flex;
}

.trend-metric-switch button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 9px;
}

.trend-metric-switch button.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 4px #1432231a;
}

.trend-legend-bae {
  background: #13834b;
}

.trend-legend-quota {
  background: #2585b8;
}

.trend-legend-allocation {
  opacity: .42;
  background: #13834b;
}

.trend-combined-legend {
  gap: 7px 11px;
}

.trend-chart-scroll {
  width: 100%;
  overflow: auto hidden;
}

.trend-chart {
  min-width: 620px;
  max-width: none;
  height: 230px;
  display: block;
}

.trend-grid-line {
  stroke: var(--line);
  stroke-width: 1px;
  stroke-dasharray: 3 5;
}

.trend-axis-label {
  fill: var(--muted);
  font-size: 9px;
}

.trend-empty {
  min-height: 210px;
  color: var(--muted);
  place-items: center;
  margin: 0;
  font-size: 11px;
  display: grid;
}

.documentation-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.documentation-list, .documentation-viewer {
  min-width: 0;
  padding: 16px;
}

.documentation-toolbar {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}

.documentation-toolbar input {
  flex: 1;
  min-width: 0;
}

.documentation-toolbar span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 10px;
}

.documentation-group + .documentation-group {
  margin-top: 18px;
}

.documentation-group h2 {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
}

.documentation-file {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 8px;
  display: flex;
}

.documentation-file-row {
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  display: flex;
}

.documentation-file-row .documentation-file {
  flex: 1;
  min-width: 0;
}

.documentation-download-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 5px;
  margin-right: 7px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.documentation-download-button:hover {
  background: var(--surface-soft);
}

.documentation-viewer-actions {
  flex: none;
  align-items: center;
  gap: 8px;
  display: flex;
}

.documentation-file:hover, .documentation-file.selected {
  background: var(--surface-soft);
}

.documentation-file-icon {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 29px;
  height: 25px;
  color: var(--accent);
  border-radius: 5px;
  flex: 0 0 29px;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  display: grid;
}

.documentation-file span:nth-child(2) {
  min-width: 0;
}

.documentation-file strong, .documentation-file small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.documentation-file strong {
  font-size: 11px;
}

.documentation-file small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
}

.documentation-viewer {
  min-height: 610px;
  position: sticky;
  top: 16px;
}

.documentation-viewer:has(.documentation-markdown) {
  z-index: 80;
  min-height: 0;
  max-height: 90vh;
  position: fixed;
  inset: 5vh 5vw;
  overflow: hidden;
  box-shadow: 0 22px 70px #00000047;
}

.documentation-viewer-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  display: flex;
}

.documentation-viewer-header h2 {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 15px;
}

.documentation-viewer-header small {
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.documentation-markdown {
  height: calc(90vh - 105px);
  max-height: 700px;
  color: var(--text);
  margin-top: 14px;
  overflow: auto;
}

.documentation-content {
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
}

.documentation-md-heading {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 20px 0 9px;
  font-weight: 750;
  line-height: 1.3;
}

.documentation-md-heading-1 {
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
  padding-bottom: 9px;
  font-size: 25px;
}

.documentation-md-heading-2 {
  font-size: 21px;
}

.documentation-md-heading-3 {
  font-size: 18px;
}

.documentation-md-heading-4 {
  font-size: 16px;
}

.documentation-md-heading-5 {
  font-size: 14px;
}

.documentation-md-heading-6 {
  font-size: 13px;
}

.documentation-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 100%;
  margin: 14px 0 22px;
  overflow-x: auto;
}

.documentation-table {
  border-collapse: collapse;
  width: 100%;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.documentation-table th, .documentation-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 110px;
  padding: 10px 12px;
}

.documentation-table th {
  z-index: 1;
  background: var(--surface-soft, #f4f7f5);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.documentation-table tr:last-child td {
  border-bottom: 0;
}

.documentation-table th:last-child, .documentation-table td:last-child {
  border-right: 0;
}

.documentation-table tbody tr:hover {
  background: var(--accent, #16834b);
}

@supports (color: color-mix(in lab, red, red)) {
  .documentation-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent, #16834b) 5%, transparent);
  }
}

.documentation-modal-close {
  z-index: 100;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 34px;
  color: var(--text);
  border-radius: 7px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  position: fixed;
  top: calc(5vh + 13px);
  right: calc(5vw + 14px);
  box-shadow: 0 3px 12px #00000026;
}

.documentation-modal-close:hover {
  background: var(--surface-soft);
}

.documentation-empty {
  color: var(--muted);
  margin: 15px 0;
  font-size: 11px;
}

.documentation-empty.large {
  text-align: center;
  place-items: center;
  min-height: 540px;
  margin: 0;
  display: grid;
}

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

.part3-chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 0;
  padding: 15px;
  box-shadow: 0 3px 12px #1432230a;
}

.part3-chart-card h2 {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
}

.part3-chart {
  width: 100%;
  height: 220px;
}

.part3-pie {
  height: 225px;
}

.part3-chart-empty {
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 11px;
}

.sector-analysis-card {
  background: var(--surface-soft);
  padding: 18px;
  overflow: visible;
}

.sector-analysis-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  display: flex;
}

.sector-analysis-title {
  flex: 1;
  align-items: center;
  gap: 9px;
  display: flex;
}

.sector-analysis-title h2 {
  color: var(--text);
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.sector-analysis-icon {
  color: var(--green);
  display: inline-flex;
}

.sector-analysis-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 19px;
  height: 19px;
}

.sector-year-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  display: flex;
}

.sector-year-buttons button {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 57px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  transition: color .18s, background-color .18s, border-color .18s, transform .18s;
}

.sector-year-buttons button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.sector-year-buttons button.active {
  color: #fff;
  background: #007b4e;
  border-color: #007b4e;
}

.sector-chart-wrap {
  width: 100%;
  min-width: 0;
  height: 360px;
}

.sector-chart-tooltip {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 210px;
  color: var(--text);
  border-radius: 8px;
  gap: 8px;
  padding: 12px 14px;
  font-size: 10px;
  display: grid;
  box-shadow: 0 8px 24px #14322324;
}

.sector-chart-tooltip > strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.sector-chart-tooltip > span {
  color: var(--muted);
  justify-content: space-between;
  gap: 14px;
  display: flex;
}

.sector-chart-tooltip b {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.sector-value-label {
  font-size: 10px;
  font-weight: 700;
  animation: .25s .82s both sector-label-in;
}

.sector-chart-wrap .recharts-bar-rectangle {
  transition: filter .18s;
}

.sector-chart-wrap .recharts-bar-rectangle:hover {
  filter: brightness(.88);
}

.sector-summary-grid {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  display: grid;
}

.sector-summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  min-width: 0;
  padding: 13px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 3px 12px #14322309;
}

.sector-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #14322317;
}

.sector-summary-card h3 {
  min-height: 30px;
  color: var(--sector-color);
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
}

.sector-summary-card h3 i {
  border-radius: 50%;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 2px;
}

.sector-summary-card > div {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  display: flex;
}

.sector-summary-card > div span {
  color: var(--muted);
  font-size: 11px;
}

.sector-summary-card > div strong {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
}

.sector-summary-card > div:last-child strong {
  color: var(--green);
}

.sector-summary-card > div small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

@keyframes sector-label-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .sector-year-buttons button, .sector-summary-card, .sector-chart-wrap .recharts-bar-rectangle {
    transition: none;
  }

  .sector-value-label {
    animation: none;
  }
}

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

.dashboard-stage {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-height: 225px;
  padding: 17px;
  display: flex;
}

.dashboard-stage-number {
  color: var(--green);
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-stage h3 {
  color: var(--text);
  margin: 0;
  font-size: 15px;
}

.dashboard-stage p {
  min-height: 34px;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.dashboard-stage-progress {
  min-height: 30px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.dashboard-stage .primary-button {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 0 14px;
  font-size: 12px;
  display: flex;
  box-shadow: 0 3px 9px #00452a2e;
}

.dashboard-stage .primary-button span {
  font-size: 17px;
  line-height: 1;
  transition: transform .15s;
}

.dashboard-stage .primary-button:hover span {
  transform: translateX(3px);
}

.record-modal-body textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 90px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  border-radius: 6px;
  padding: 10px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 9px;
  padding-top: 8px;
  display: flex;
}

.floating-notice {
  z-index: 1000;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  align-items: flex-start;
  gap: 11px;
  width: min(420px, 100vw - 28px);
  padding: 14px 15px;
  animation: .18s ease-out floating-notice-in;
  display: flex;
  position: fixed;
  top: 22px;
  right: 22px;
  box-shadow: 0 12px 36px #00231433;
}

.floating-notice-success {
  border-left: 4px solid #188754;
}

.floating-notice-error {
  border-left: 4px solid #c33e45;
}

.floating-notice-warning {
  border-left: 4px solid #c78318;
}

.floating-notice-info {
  border-left: 4px solid #3478b8;
}

.floating-notice-icon {
  color: #147345;
  background: #e9f6ee;
  border-radius: 50%;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}

.floating-notice-error .floating-notice-icon {
  color: #b4232d;
  background: #fff0ef;
}

.floating-notice-warning .floating-notice-icon {
  color: #925e09;
  background: #fff6df;
}

.floating-notice-info .floating-notice-icon {
  color: #245f98;
  background: #edf5ff;
}

.floating-notice p {
  color: var(--text);
  flex: 1;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.floating-notice button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  flex: none;
  padding: 0 2px;
  font-size: 20px;
  line-height: 1;
}

.company-period-filter {
  color: var(--muted);
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  display: flex;
}

.part2-admin-filters {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  display: grid;
}

.part2-admin-filters label {
  min-width: 0;
  color: var(--muted);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  display: grid;
}

.part2-admin-filters select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12px;
}

.part2-filter-scope-note {
  color: var(--muted);
  grid-column: 2 / -1;
  margin: 0;
  padding: 9px 0;
  font-size: 11px;
}

@media (max-width: 900px) {
  .part2-admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .part2-filter-scope-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .part2-admin-filters {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

.company-period-filter select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 190px;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
}

.account-report-tabs {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 11px;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 6px;
  display: flex;
}

.account-report-tabs button {
  min-height: 42px;
  color: var(--muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 650;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  display: inline-flex;
}

.account-report-tabs button:hover:not(.selected) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.account-report-tabs button.selected {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 2px 6px #00462a2e;
}

.account-tab-icon {
  background: var(--green);
  border-radius: 6px;
  place-items: center;
  width: 22px;
  height: 22px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .account-tab-icon {
    background: color-mix(in srgb,var(--green) 12%,transparent);
  }
}

.account-tab-icon {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.account-report-tabs button.selected .account-tab-icon {
  color: #fff;
  background: #ffffff29;
}

@media (max-width: 700px) {
  .account-report-tabs {
    scrollbar-width: thin;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .account-report-tabs button {
    flex: none;
    min-height: 40px;
    padding: 0 13px;
  }
}

.part2-summary-cards {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 14px;
}

.part2-summary-cards > article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  gap: 13px;
  min-width: 0;
  min-height: 112px;
  padding: 15px 16px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-summary-cards > article:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #0f172a12;
}

.part2-summary-cards > article + article {
  border-left: 1px solid #e2e8f0;
}

.part2-summary-cards > article > span {
  color: #64748b;
  letter-spacing: .065em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.45;
}

.part2-summary-cards > article > strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
}

.part2-summary-cards > article > small {
  color: #64748b;
  margin-top: -6px;
  font-size: 9px;
}

.part2-summary-cards > article:after {
  background: var(--card-accent);
  border-radius: 8px;
  width: 27px;
  height: 27px;
  top: 13px;
  right: 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .part2-summary-cards > article:after {
    background: color-mix(in srgb,var(--card-accent) 9%,white);
  }
}

.part2-summary-cards > article:before {
  width: 15px;
  height: 15px;
  top: 19px;
  right: 19px;
}

.part2-summary-cards > article:first-child {
  --card-accent: #059669;
}

.part2-summary-cards > article:nth-child(2) {
  --card-accent: #d97706;
}

.part2-summary-cards > article:nth-child(3) {
  --card-accent: #2563eb;
}

.part2-summary-cards > article:nth-child(4) {
  --card-accent: #9333ea;
}

.part2-monitor-tabs {
  margin-bottom: 12px;
}

.part2-monitor-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.part2-retirement-status-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .part2-monitor-summary, .part2-retirement-status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .part2-monitor-summary, .part2-retirement-status-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .part2-summary-cards > article {
    min-height: 96px;
  }
}

.account-trial-filters {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 15px;
  display: grid;
}

.account-trial-filters label {
  color: var(--text);
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  display: grid;
}

.account-trial-filters select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 32px 8px 11px;
  font-size: 14px;
}

.trial-balance-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 15px;
  display: grid;
}

.trial-balance-summary article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  gap: 6px;
  padding: 13px 16px;
  display: grid;
}

.trial-balance-summary article > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.trial-balance-summary article > strong {
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 7px;
  font-size: 20px;
  display: flex;
}

.trial-balance-summary article > strong small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

@media (max-width: 700px) {
  .account-trial-filters, .trial-balance-summary {
    grid-template-columns: 1fr;
  }
}

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

.company-status-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px;
  display: flex;
}

.company-status-grid span {
  color: var(--muted);
  font-size: 12px;
}

.company-status-grid strong {
  color: var(--text);
  font-size: 17px;
}

.quota-report-content {
  max-width: 1500px;
}

.quota-report-content .page-heading {
  margin-bottom: 18px;
}

.quota-report-content .page-heading h1 {
  margin-top: 7px;
}

.quota-report-active-pane {
  margin-top: 15px;
}

.quota-report-filters {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  align-items: end;
  gap: 11px;
  margin: 0 0 18px;
  padding: 15px 16px;
  display: grid;
}

.quota-report-filters label {
  min-width: 0;
  color: var(--muted);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  display: grid;
}

.quota-report-filters select, .quota-report-filters input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 39px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
}

.quota-report-filters .searchable-select {
  width: 100%;
  min-width: 0;
}

.quota-report-filters .searchable-select-trigger {
  border-color: var(--line);
  min-height: 39px;
  font: inherit;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
}

.quota-report-filters .searchable-select-menu {
  font: inherit;
  font-size: 12px;
}

.quota-report-filter-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.quota-report-filter-actions .outline-button {
  white-space: nowrap;
  min-height: 39px;
}

.quota-report-loading {
  color: var(--muted);
  align-items: center;
  gap: 7px;
  margin: -8px 0 12px;
  font-size: 11px;
  display: flex;
}

.quota-report-loading .spinner {
  border-width: 2px;
  width: 13px;
  height: 13px;
}

.quota-report-tabs {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  gap: 7px;
  margin: 0 0 17px;
  padding: 5px;
  display: flex;
  overflow: auto;
}

.quota-report-tabs button {
  min-height: 42px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}

.quota-report-tabs button:hover {
  color: var(--text);
}

.quota-report-tabs button.selected {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

.quota-report-tabs button span {
  opacity: .74;
  font: 700 10px JetBrains Mono, monospace;
}

.quota-report-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 10px;
  display: flex;
}

.quota-report-section-heading h2 {
  letter-spacing: -.02em;
  margin: 0 0 4px;
  font-size: 16px;
}

.quota-report-section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.quota-report-unit {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 8px;
  font: 600 10px JetBrains Mono, monospace;
}

.quota-report-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  display: grid;
  overflow: hidden;
}

.quota-report-summary article {
  border-right: 1px solid var(--line);
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  display: grid;
}

.quota-report-summary article:last-child {
  border-right: 0;
}

.quota-report-summary article > span {
  min-height: 26px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.quota-report-summary article > strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 clamp(16px, 1.6vw, 21px) JetBrains Mono, monospace;
  overflow: hidden;
}

.quota-report-summary article > small {
  color: var(--muted);
  margin-top: -4px;
  font-size: 9px;
}

.quota-report-summary article.emphasis {
  background: var(--green-tint);
}

.quota-report-note, .quota-report-footnote {
  color: var(--muted);
  margin: 0 0 13px;
  font-size: 10px;
  line-height: 1.55;
}

.quota-report-footnote {
  margin: 12px 0 0;
}

.quota-balance-sheet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  display: grid;
}

.quota-balance-side {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  min-width: 0;
  padding: 16px 18px;
}

.quota-balance-side > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.quota-balance-side h3 {
  color: var(--text);
  letter-spacing: .045em;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.quota-balance-lines {
  display: grid;
}

.quota-balance-lines > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 0;
  display: flex;
}

.quota-balance-lines > div > span {
  color: var(--text);
  gap: 4px;
  font-size: 11px;
  display: grid;
}

.quota-balance-lines > div > strong {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font: 650 13px JetBrains Mono, monospace;
}

.quota-balance-lines > div > strong small {
  color: var(--muted);
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.quota-balance-lines .quota-balance-total {
  border-bottom: 0;
  min-height: 54px;
  font-weight: 750;
}

.quota-balance-lines .quota-balance-total > span, .quota-balance-lines .quota-balance-total > strong {
  font-weight: 750;
}

.quota-balance-lines .quota-balance-pending > span > small {
  max-width: 340px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 450;
  line-height: 1.45;
}

.quota-balance-lines .quota-balance-equation {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: stretch;
  gap: 8px;
  padding: 12px 0 0;
  display: grid;
}

.quota-balance-lines .quota-balance-equation > span {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 700;
}

.quota-balance-lines .quota-balance-equation > strong {
  overflow-wrap: anywhere;
  color: var(--green-deep);
  text-align: left;
  white-space: normal;
  font-size: 12px;
}

.quota-report-table {
  overflow: hidden;
}

.quota-report-table .table-wrap {
  max-width: 100%;
  overflow: auto;
}

.quota-report-table table {
  min-width: 1120px;
}

.quota-report-table th, .quota-report-table td {
  padding: 10px 9px;
}

.quota-report-code {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
  display: block;
}

.quota-report-identity {
  white-space: normal;
  gap: 3px;
  min-width: 150px;
  display: grid;
}

.quota-report-identity strong {
  color: var(--text);
  font-size: 10px;
}

.quota-report-identity > span {
  color: var(--text);
}

.quota-report-event {
  white-space: normal;
  gap: 3px;
  max-width: 220px;
  display: grid;
}

.quota-report-event b {
  color: var(--green-deep);
  font: 700 10px JetBrains Mono, monospace;
}

.quota-report-negative {
  color: var(--danger) !important;
}

.quota-report-state {
  margin-top: 14px;
}

@media (max-width: 950px) {
  .quota-report-filters {
    grid-template-columns: repeat(3, minmax(135px, 1fr));
  }

  .quota-report-summary article {
    padding: 12px;
  }
}

@media (max-width: 700px) {
  .quota-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .quota-report-filters .outline-button {
    min-height: 39px;
  }

  .quota-report-filter-actions {
    flex-wrap: wrap;
  }

  .quota-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quota-report-summary article:nth-child(2) {
    border-right: 0;
  }

  .quota-report-summary article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .quota-report-summary article > span {
    min-height: 0;
  }

  .quota-report-section-heading {
    align-items: flex-start;
  }

  .quota-balance-sheet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .quota-report-filters {
    grid-template-columns: 1fr;
  }

  .quota-report-filter-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .quota-report-filter-actions button {
    width: 100%;
    padding-inline: 8px;
  }

  .quota-report-tabs button {
    min-height: 39px;
    padding: 0 11px;
    font-size: 11px;
  }

  .quota-balance-side {
    padding: 14px 12px;
  }

  .quota-balance-lines > div {
    gap: 8px;
  }

  .quota-balance-lines > div > strong {
    font-size: 11px;
  }
}

.company-cell-note {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.company-error {
  color: #9d2525;
  background: #fff3f2;
  border: 1px solid #e8aaaa;
  border-radius: 8px;
  margin: 12px 0;
  padding: 11px 13px;
  font-size: 13px;
}

.company-request-modal {
  width: min(590px, 100vw - 28px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.company-request-modal > label, .company-form-grid label {
  color: var(--text);
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.company-request-modal input, .company-request-modal select, .company-request-modal textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
}

.company-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.company-request-modal footer {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
  display: flex;
}

.transaction-clear-nav {
  margin-top: 0;
}

.transaction-clear-link {
  color: var(--danger);
}

.transaction-clear-link:hover {
  border-color: var(--danger);
  background: var(--surface-soft);
}

.transaction-clear-modal {
  width: min(650px, 100%);
}

.transaction-clear-warning {
  color: #75420c;
  background: #fff7ed;
  border: 1px solid #efc7a0;
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.transaction-count-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 0;
  max-height: 230px;
  display: grid;
  overflow: auto;
}

.transaction-count-list > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  font-size: 11px;
  display: flex;
}

.transaction-count-list > div:last-child {
  border-bottom: 0;
}

.transaction-count-list strong {
  white-space: nowrap;
}

.transaction-count-total {
  background: var(--surface-soft);
  font-weight: 700;
}

.transaction-confirm-label {
  gap: 7px;
  font-size: 12px;
  display: grid;
}

.transaction-confirm-label input {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 9px 11px;
}

.transaction-clear-footer {
  border: 0;
  padding: 0;
}

.transaction-confirm-button {
  background: #b4232d;
  border-color: #b4232d;
}

.market-workspace .market-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.market-quick-links, .market-toolbar, .market-best {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.market-quick-links {
  margin: 16px 0;
}

.market-toolbar {
  justify-content: space-between;
  margin: 16px 0;
}

.market-toolbar label, .market-ticket label {
  color: var(--text);
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  display: grid;
}

.market-toolbar select, .market-ticket select, .market-ticket input {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 42px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
}

.market-best span {
  min-width: 120px;
  color: var(--muted);
  gap: 3px;
  font-size: 12px;
  display: grid;
}

.market-best b {
  color: var(--text);
  font-size: 17px;
}

.market-tabs {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 10px;
  padding: 5px;
  display: flex;
}

.market-tabs button {
  min-height: 39px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.market-tabs button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 2px 6px #0000000f;
}

.market-book-grid, .market-ticket {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.market-ticket-note {
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.market-ticket > button {
  justify-self: start;
}

.market-validation {
  gap: 8px;
  display: grid;
}

.market-validation p {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}

.market-history-modal {
  width: min(900px, 100vw - 24px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.market-settlement-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 18px;
  display: grid;
}

.market-settlement-detail div {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 9px 0;
}

.market-settlement-detail dt {
  color: var(--muted);
  text-transform: capitalize;
  font-size: 12px;
}

.market-settlement-detail dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-weight: 650;
}

.market-history-item {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  font-size: 12px;
  display: flex;
}

.market-history-item span {
  color: var(--muted);
}

.market-order-detail-trigger {
  max-width: 240px;
  color: var(--green);
  font: inherit;
  text-align: left;
  text-underline-offset: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 750;
  text-decoration: underline;
}

.market-order-detail-trigger:hover {
  color: var(--green-dark, #145c3b);
}

.market-order-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  display: grid;
}

.market-order-detail-grid > div {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  min-width: 0;
  padding: 11px 12px;
}

.market-order-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.market-order-detail-grid dd {
  overflow-wrap: anywhere;
  color: var(--text);
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.market-history-modal .record-modal-body > h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.market-admin-workspace .vintage-book-page .vintage-book-metrics {
  gap: 8px;
}

.market-admin-workspace .vintage-book-page .vintage-book-metrics article {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 2px;
  padding: 10px 52px 10px 11px;
}

.market-admin-workspace .vintage-book-page .vintage-book-metrics span, .market-admin-workspace .vintage-book-page .vintage-book-metrics small {
  font-size: 10px;
  line-height: 1.35;
}

.market-admin-workspace .vintage-book-page .vintage-book-metrics strong {
  color: var(--text);
  font-family: JetBrains Mono, monospace;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
}

.market-admin-workspace .market-demo-tools {
  display: none;
}

@media (max-width: 760px) {
  .market-book-grid, .market-ticket, .market-settlement-detail {
    grid-template-columns: 1fr;
  }

  .market-toolbar {
    align-items: stretch;
  }

  .market-toolbar label, .market-toolbar select {
    width: 100%;
  }

  .market-workspace .market-panel {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .market-order-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .market-order-detail-grid {
    grid-template-columns: 1fr;
  }
}

.transaction-confirm-button:hover:not(:disabled) {
  background: #941d25;
  border-color: #941d25;
}

.transaction-confirm-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .company-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .company-form-grid {
    grid-template-columns: 1fr;
  }

  .company-period-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger-modal .record-modal-body {
    gap: 14px;
    padding: 16px;
  }

  .ledger-modal .record-modal-body > .toolbar, .ledger-modal .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ledger-modal .metric-card {
    padding: 13px 15px;
  }

  .ledger-modal .metric-card > strong {
    font-size: 20px;
  }

  .bulk-manual-row, .bulk-response-fields {
    grid-template-columns: 1fr;
  }
}

@keyframes floating-notice-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

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

@media (max-width: 1000px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .dashboard-stage {
    min-height: 0;
  }

  .part3-charts {
    grid-template-columns: 1fr;
  }

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

  .sidebar:not(.collapsed) {
    width: 220px;
  }

  .workspace {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .sidebar.collapsed ~ .workspace {
    width: calc(100% - 76px);
    margin-left: 76px;
  }

  .topbar {
    padding: 0 22px;
  }

  .content-wrap {
    padding: 30px 22px;
  }

  .pref-label span {
    display: none;
  }

  .top-actions {
    gap: 9px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .icon-button {
    margin-left: 0;
  }

  .data-card .toolbar {
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .allocation-summary {
    grid-template-columns: 1fr;
  }

  .allocation-summary article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .dashboard-metric {
    min-height: 125px;
  }

  .dashboard-progress {
    padding: 13px;
  }

  .annual-trend-panel {
    padding: 0;
  }

  .annual-trend-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 14px;
  }

  .annual-trend-header h2 {
    font-size: 14px;
  }

  .annual-trend-actions {
    align-self: flex-end;
  }

  .annual-trend-badge {
    margin-right: auto;
  }

  .annual-trend-metrics {
    gap: 8px;
    padding: 10px;
  }

  .annual-trend-metric {
    min-height: 80px;
    padding: 11px;
  }

  .annual-trend-metric-label {
    font-size: 9px;
  }

  .annual-trend-metric strong {
    font-size: 14px;
  }

  .annual-trend-plot {
    padding: 0 5px 0 0;
  }

  .annual-trend-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .annual-trend-footer em {
    text-align: left;
  }

  .annual-trend-fullscreen {
    inset: 6px;
  }

  .annual-trend-fullscreen .annual-trend-plot .recharts-responsive-container {
    height: 65vh !important;
  }

  .sector-summary-grid {
    grid-template-columns: 1fr;
  }

  .sector-chart-wrap {
    height: 320px;
  }

  .sector-analysis-heading {
    flex-direction: column;
  }

  .sector-year-buttons {
    gap: 5px;
  }

  .part3-chart {
    height: 205px;
  }

  .documentation-layout {
    grid-template-columns: 1fr;
  }

  .documentation-viewer {
    min-height: 420px;
    position: static;
  }

  .documentation-viewer:has(.documentation-markdown) {
    max-height: 96vh;
    position: fixed;
    inset: 2vh 2vw;
  }

  .documentation-viewer:has(.documentation-markdown) .documentation-markdown {
    height: calc(96vh - 105px);
    max-height: none;
  }

  .documentation-table {
    font-size: 12px;
  }

  .documentation-table th, .documentation-table td {
    min-width: 100px;
    padding: 8px 10px;
  }

  .documentation-modal-close {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    top: calc(2vh + 10px);
    right: calc(2vw + 10px);
  }

  .documentation-empty.large {
    min-height: 350px;
  }

  .portal-frame > .main-shell, .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: 100%;
    margin-left: 0;
  }

  .portal-frame {
    display: block;
  }

  .sidebar, .sidebar.collapsed {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: auto;
    padding: 13px 14px 10px;
    position: static;
  }

  .sidebar-menu-scroll {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .sidebar.collapsed .brand-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .sidebar.collapsed .brand-copy {
    display: block;
  }

  .sidebar.collapsed .collapse-button {
    margin: 5px 0 0 4px;
  }

  .sidebar.collapsed .nav-text {
    display: inline;
  }

  .brand {
    padding: 0 4px 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .side-label, .sidebar-bottom {
    display: none;
  }

  .side-nav {
    gap: 5px;
    display: flex;
    overflow-x: auto;
  }

  .side-link {
    flex: none;
    min-height: 37px;
    padding: 0 9px;
    font-size: 11px;
  }

  .workspace, .sidebar.collapsed ~ .workspace {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    position: static;
  }

  .top-actions {
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .user-chip {
    padding-left: 7px;
  }

  .user-chip b {
    text-overflow: ellipsis;
    max-width: 82px;
    overflow: hidden;
  }

  .quiet-button {
    font-size: 10px;
  }

  .content-wrap {
    padding: 25px 13px;
  }

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

  .page-heading .primary-button {
    align-self: stretch;
  }

  .source-badge {
    font-size: 7px;
  }

  .toolbar {
    padding: 11px;
  }

  .filter-control {
    flex: 1;
    justify-content: space-between;
  }

  .filter-control select {
    min-width: 105px;
  }

  .sort-control {
    flex-wrap: wrap;
  }

  .table-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination label {
    width: 100%;
  }

  .login-page {
    padding: 62px 12px 18px;
  }

  .login-pref {
    top: 13px;
    right: 12px;
  }

  .login-layout {
    min-height: auto;
    display: block;
  }

  .login-art {
    min-height: 345px;
    padding: 22px;
  }

  .art-copy {
    max-width: 68%;
    margin-top: 26px;
    padding: 15px 0 0;
  }

  .art-copy h1 {
    font-size: 25px;
  }

  .art-copy p {
    font-size: 8px;
  }

  .art-illustration {
    opacity: .9;
    width: 78%;
    height: 93%;
    bottom: 7px;
    right: -5%;
  }

  .art-footer {
    font-size: 7px;
  }

  .login-card {
    padding: 27px 23px 22px;
  }

  .login-brand {
    margin-bottom: 14px;
  }

  .login-form {
    gap: 9px;
    margin-top: 12px;
  }

  .login-demo-accounts {
    gap: 5px 8px;
    margin-top: 8px;
    padding: 7px 8px;
  }

  .login-security {
    margin-top: auto;
    padding-top: 8px;
  }
}

.history-list {
  gap: 12px;
  max-height: min(62vh, 640px);
  display: grid;
  overflow: auto;
}

.history-entry {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
}

.history-entry > div:first-child {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.history-entry small {
  color: var(--muted);
  font-size: 12px;
}

.history-values {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  display: grid;
}

.history-values section {
  min-width: 0;
}

.history-values pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-soft, var(--background));
  border-radius: 8px;
  max-height: 180px;
  margin: 6px 0 0;
  padding: 10px;
  font-size: 12px;
  overflow: auto;
}

@media (max-width: 640px) {
  .history-values {
    grid-template-columns: 1fr;
  }

  .history-entry > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }
}

.captcha-image img {
  object-fit: contain;
}

@media (max-width: 480px) {
  .captcha-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 7px;
  }

  .captcha-image {
    min-height: 56px;
  }

  .captcha-image img {
    object-fit: contain;
    height: 56px;
  }
}

@media (max-width: 900px) {
  .portal-frame .sidebar-user {
    margin: 0 0 4px;
  }

  .portal-frame .sidebar-primary-nav {
    gap: 5px;
    margin: 0;
  }

  .portal-frame .sidebar-primary-link {
    border-radius: 11px;
    place-items: center;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    display: grid;
  }

  .portal-frame .sidebar-primary-link .primary-text, .portal-frame .sidebar-user-copy, .portal-frame .sidebar-submenu {
    display: none;
  }

  .portal-frame .sidebar-user {
    background: none;
    border: 0;
    justify-content: center;
    padding: 5px 0;
  }

  .portal-frame .sidebar-user-avatar {
    width: 38px;
    height: 38px;
  }

  .portal-frame .sidebar-bottom {
    padding: 8px 0 0;
  }

  .portal-frame .sidebar-status {
    justify-content: center;
  }

  .portal-frame .sidebar-status > span:first-child {
    font-size: 0;
  }

  .portal-frame .sidebar-status-tech {
    display: none;
  }

  .portal-frame .sidebar-logout {
    border-radius: 11px;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
  }

  .portal-frame .sidebar-logout .sidebar-text-element {
    display: none;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-user-copy {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-primary-link .primary-text {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-menu-group.expanded > .sidebar-submenu {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-user {
    background: #0000001f;
    border: 1px solid #ffffff1f;
    justify-content: flex-start;
    padding: 9px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-primary-link {
    border-radius: 9px;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    display: flex;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-primary-link .sidebar-chevron {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-logout {
    border-radius: 8px;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 0 10px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-logout .sidebar-text-element {
    display: inline;
  }
}

.portal-frame:has(.sidebar):has(.topbar .user-chip) .sidebar-user {
  display: none;
}

.portal-frame:has(.sidebar) .topbar:has(.user-chip) .user-chip {
  display: flex;
}

.portal-frame:has(.sidebar) .topbar:has(.user-chip) .quiet-button {
  display: none;
}

@media (max-width: 900px) {
  .sidebar, .sidebar.collapsed {
    align-items: stretch;
    gap: 4px;
  }

  .sidebar .brand-row, .sidebar.collapsed .brand-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .sidebar .brand, .sidebar.collapsed .brand {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0 4px 10px;
  }

  .sidebar .collapse-button {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 2px 9px 0;
  }

  .sidebar-menu-scroll {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    max-width: 100%;
    display: grid;
  }

  .sidebar-menu-scroll .side-label {
    margin: 2px 0 0;
    padding: 0 4px;
    font-size: 8px;
    line-height: 1.3;
    display: block;
  }

  .sidebar-menu-scroll .side-label-spaced {
    margin-top: 5px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    display: grid;
    overflow: visible;
  }

  .side-link, .sidebar.collapsed .side-link {
    flex: initial;
    white-space: normal;
    border: 1px solid #ffffff1f;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
    display: flex;
  }

  .side-link .nav-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
  }

  .side-link .nav-text, .sidebar.collapsed .nav-text {
    overflow-wrap: anywhere;
    min-width: 0;
    display: block;
  }

  .sidebar.collapsed .brand-copy, .sidebar.collapsed .bottom-copy {
    display: block;
  }

  .sidebar.collapsed .sidebar-bottom, .sidebar-bottom {
    display: none;
  }

  .sidebar > .side-nav, .sidebar > .side-bottom-nav {
    margin-top: 5px;
  }

  .sidebar > .side-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .side-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mobile-sidebar-toggle {
  display: none;
}

@media (max-width: 900px) {
  .portal-frame {
    min-height: 100vh;
    display: block;
  }

  .portal-frame .sidebar, .portal-frame .sidebar.collapsed {
    z-index: 40;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 64px;
    height: 100dvh;
    padding: 10px 7px;
    transition: width .18s;
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    overflow: hidden;
    box-shadow: 3px 0 14px #0f172a14;
  }

  .portal-frame .sidebar .brand-row, .portal-frame .sidebar.collapsed .brand-row {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
  }

  .portal-frame .sidebar .brand, .portal-frame .sidebar.collapsed .brand {
    flex: none;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    margin: 0;
    padding: 0;
  }

  .portal-frame .sidebar .brand-mark {
    width: 42px;
    height: 42px;
  }

  .portal-frame .sidebar .brand-copy, .portal-frame .sidebar .side-label, .portal-frame .sidebar .nav-text, .portal-frame .sidebar .collapse-button {
    display: none !important;
  }

  .portal-frame .sidebar .mobile-sidebar-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    width: 42px;
    height: 42px;
    color: var(--text);
    cursor: pointer;
    border-radius: 11px;
    flex: 0 0 42px;
    place-items: center;
    margin: 0 auto;
    padding: 0;
    font-size: 20px;
    display: grid;
  }

  .portal-frame .sidebar-menu-scroll {
    flex-direction: column;
    flex: auto;
    gap: 6px;
    max-width: none;
    min-height: 0;
    padding: 4px 0;
    display: flex;
    overflow: auto;
  }

  .portal-frame .side-nav {
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
    display: grid;
    overflow: visible;
  }

  .portal-frame .side-link, .portal-frame .sidebar.collapsed .side-link {
    flex: initial;
    border: 1px solid #0000;
    border-radius: 11px;
    place-items: center;
    gap: 0;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    font-size: 0;
    display: grid;
  }

  .portal-frame .side-link .nav-icon {
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    display: grid;
  }

  .portal-frame .side-bottom-nav, .portal-frame .sidebar > .side-nav {
    margin-top: auto;
  }

  .portal-frame .workspace, .portal-frame .sidebar.collapsed ~ .workspace {
    width: calc(100% - 64px);
    margin-left: 64px;
  }

  .portal-frame > .main-shell, .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 64px) !important;
    margin-left: 64px !important;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]):before {
    content: "";
    z-index: 30;
    background: #0f172a61;
    position: fixed;
    inset: 0 0 0 64px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar {
    width: min(292px, 86vw);
    padding: 12px 11px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar.collapsed {
    width: min(292px, 86vw);
    padding: 12px 11px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .brand-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar.collapsed .brand-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .brand {
    flex: 1;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar.collapsed .brand {
    flex: 1;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
  }

  :is(.portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .brand-copy, .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .side-label, .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .nav-text) {
    display: block !important;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar .brand-copy {
    min-width: 0;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-menu-scroll {
    display: flex;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .side-nav {
    grid-template-columns: 1fr;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .side-label {
    margin: 5px 0 0;
    padding: 0 5px;
    font-size: 9px;
    line-height: 1.3;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .side-link {
    border: 1px solid #ffffff1f;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 5px 9px;
    font-size: 12px;
    display: flex;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar.collapsed .side-link {
    border: 1px solid #ffffff1f;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 5px 9px;
    font-size: 12px;
    display: flex;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .side-link .nav-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .side-link .nav-text {
    overflow-wrap: anywhere;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-frame .sidebar {
    transition: none;
  }
}

.sidebar {
  width: 256px;
  transition: width .2s, padding .2s;
}

.sidebar.collapsed {
  width: 64px;
}

.workspace {
  width: calc(100% - 256px);
  margin-left: 256px;
  transition: width .2s, margin-left .2s;
}

.sidebar.collapsed ~ .workspace {
  width: calc(100% - 64px);
  margin-left: 64px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  min-height: 56px;
  color: var(--text);
  padding: 0 38px 0 62px;
  box-shadow: 0 1px 4px #0f172a0a;
}

.topbar > strong {
  color: var(--text);
}

.breadcrumb {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--line);
}

.breadcrumb strong {
  color: var(--text);
}

.topbar .preference-icon-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.topbar .preference-icon-button:hover {
  background: var(--surface-soft);
}

.topbar .pref-label {
  color: var(--muted);
}

.topbar .pref-label select {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.topbar .pref-label select option {
  color: var(--text);
}

.topbar .user-chip {
  border-color: var(--line);
}

.topbar .user-chip b {
  color: var(--text);
}

.topbar .user-chip small {
  color: var(--muted);
}

.topbar .avatar {
  background: var(--green-tint);
  color: var(--green);
}

.topbar .quiet-button {
  color: var(--muted);
}

.topbar .quiet-button:hover {
  color: var(--green);
}

.glossary-toolbar {
  border-bottom: 1px solid var(--line);
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 17px;
  padding: 15px 0 17px;
  display: flex;
}

.glossary-toolbar label, .glossary-form-grid label {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.glossary-search {
  flex: 1;
}

.glossary-toolbar input, .glossary-toolbar select, .glossary-form-grid input, .glossary-form-grid textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 38px;
  color: var(--ink);
  border-radius: 7px;
  outline: none;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.glossary-toolbar input:focus, .glossary-toolbar select:focus, .glossary-form-grid input:focus, .glossary-form-grid textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  .glossary-toolbar input:focus, .glossary-toolbar select:focus, .glossary-form-grid input:focus, .glossary-form-grid textarea:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb,var(--green) 14%,transparent);
  }
}

.glossary-filter {
  width: 190px;
}

.glossary-results-meta {
  min-height: 32px;
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  display: flex;
}

.glossary-pagination {
  align-items: center;
  gap: 9px;
  display: flex;
}

.glossary-pagination .outline-button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 10px;
}

.glossary-layout {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(300px, .82fr) minmax(380px, 1.18fr);
  min-height: 430px;
  display: grid;
}

.glossary-list {
  border-right: 1px solid var(--line);
  max-height: 70vh;
  overflow: auto;
}

.glossary-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  min-height: 68px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  display: flex;
}

.glossary-row:hover, .glossary-row.selected {
  background: var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  .glossary-row:hover, .glossary-row.selected {
    background: color-mix(in srgb,var(--green) 7%,var(--surface));
  }
}

.glossary-row strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  display: block;
}

.glossary-row small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 9px;
  display: block;
}

.glossary-arrow {
  color: var(--green);
  font-size: 14px;
}

.glossary-detail {
  min-width: 0;
  padding: 26px clamp(20px, 4vw, 52px);
}

.glossary-detail-top {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.glossary-detail h2, .glossary-detail-placeholder h2 {
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 13px 0 5px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.glossary-translation {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 12px;
}

.glossary-definition {
  max-width: 68ch;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.glossary-context, .glossary-source {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 15px;
}

.glossary-context strong, .glossary-source strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.glossary-context p, .glossary-source p {
  color: var(--muted);
  margin: 7px 0;
  font-size: 11px;
  line-height: 1.65;
}

.glossary-related {
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  display: flex;
}

.glossary-source small {
  color: var(--muted);
  font-size: 9px;
}

.glossary-history {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.glossary-history-heading {
  color: var(--ink);
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
  font-size: 10px;
  display: flex;
}

.glossary-history article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 11px 0;
  display: grid;
}

.glossary-history article b {
  color: var(--ink);
  font-size: 10px;
}

.glossary-history article small {
  color: var(--muted);
  font-size: 9px;
}

.glossary-history article p {
  color: var(--muted);
  grid-column: span 2;
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.glossary-detail-placeholder {
  max-width: 420px;
  padding-top: 55px;
}

.glossary-index {
  color: var(--green);
  letter-spacing: .15em;
  font-size: 9px;
  font-weight: 800;
}

.glossary-detail-placeholder p, .glossary-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.glossary-empty {
  padding: 20px 15px;
}

.glossary-editor {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  margin: 5px 0 19px;
  padding: 18px 20px;
}

.glossary-section-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  display: flex;
}

.glossary-section-heading h2 {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.glossary-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
  display: grid;
}

.glossary-form-grid .wide {
  grid-column: span 3;
}

.glossary-form-grid textarea {
  resize: vertical;
}

@media (max-width: 850px) {
  .glossary-layout {
    grid-template-columns: 1fr;
  }

  .glossary-list {
    border-right: 0;
    max-height: 38vh;
  }

  .glossary-detail {
    min-height: 270px;
    padding: 20px 14px;
  }

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

  .glossary-form-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .glossary-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .glossary-filter {
    width: auto;
  }

  .glossary-results-meta {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .glossary-form-grid {
    grid-template-columns: 1fr;
  }

  .glossary-form-grid .wide {
    grid-column: span 1;
  }
}

.header-sidebar-toggle {
  z-index: 8;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  color: var(--text);
  border-radius: 7px;
  place-items: center;
  padding: 0;
  display: inline-grid;
  position: fixed;
  top: 12px;
  left: 274px;
  box-shadow: 0 1px 4px #0f172a0f;
}

.header-sidebar-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--surface-soft);
}

.header-sidebar-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  width: 17px;
  height: 17px;
}

.sidebar.collapsed .header-sidebar-toggle {
  left: 80px;
}

@media (max-width: 1000px) and (min-width: 901px) {
  .sidebar:not(.collapsed) {
    width: 220px;
  }

  .sidebar.collapsed {
    width: 64px;
  }

  .workspace {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .sidebar.collapsed ~ .workspace {
    width: calc(100% - 64px);
    margin-left: 64px;
  }

  .portal-frame > .main-shell {
    width: calc(100% - 220px) !important;
    margin-left: 220px !important;
  }

  .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 64px) !important;
    margin-left: 64px !important;
  }

  .header-sidebar-toggle {
    left: 238px;
  }

  .sidebar.collapsed .header-sidebar-toggle {
    left: 80px;
  }

  .topbar {
    padding-left: 60px;
  }
}

@media (max-width: 900px) {
  .header-sidebar-toggle {
    display: none;
  }

  .topbar {
    padding-left: 15px;
  }
}

@media (max-width: 700px) {
  .modal-backdrop {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
    display: block;
    overflow-y: auto;
  }

  .modal-backdrop > .record-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 10px;
    margin: 0 auto;
  }

  .record-modal-header, .record-modal-footer {
    z-index: 1;
    background: var(--surface);
    padding: 12px 14px;
    position: sticky;
  }

  .record-modal-header {
    top: 0;
  }

  .record-modal-body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 11px;
    min-height: 0;
    padding: 14px;
  }

  .modal-actions {
    z-index: 1;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom));
    background: var(--surface);
    flex-wrap: wrap;
    position: sticky;
    bottom: -14px;
  }

  .modal-actions > button {
    min-height: 40px;
  }
}

@media (max-width: 900px) {
  .portal-frame:has(.modal-backdrop) .sidebar {
    visibility: hidden;
    pointer-events: none;
  }

  .portal-frame:has(.modal-backdrop) .sidebar.collapsed {
    visibility: hidden;
    pointer-events: none;
  }

  .modal-backdrop {
    z-index: 70;
  }
}

.main-shell {
  min-height: 100vh;
}

.portal-frame > .main-shell {
  flex: auto;
  min-width: 0;
  position: relative;
  width: calc(100% - 258px) !important;
  margin-left: 258px !important;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 20px;
}

.data-table {
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  background: var(--surface-soft);
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 11px;
}

.data-table td {
  border-top: 1px solid var(--line);
  white-space: nowrap;
  padding: 11px 12px;
}

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

.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 92px;
  box-shadow: var(--shadow);
  border-radius: 9px;
  gap: 8px;
  padding: 16px;
  display: grid;
}

.stat-card small {
  color: var(--muted);
  font-size: 11px;
}

.stat-card strong {
  font-size: 23px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.secondary-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.error-notice {
  background: var(--danger);
  border: 1px solid #e2a5a1;
  border-radius: 8px;
  padding: 12px 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .error-notice {
    background: color-mix(in srgb,var(--danger) 10%,var(--surface));
  }
}

.error-notice {
  color: var(--danger);
}

.success-notice {
  background: #15803d;
  border: 1px solid #9ac8ad;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .success-notice {
    background: color-mix(in srgb,#15803d 9%,var(--surface));
  }
}

.success-notice {
  color: #166534;
}

.market-order-form {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  display: grid;
}

.market-order-form label {
  color: var(--muted);
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  display: grid;
}

.market-order-form input, .market-order-form select, .toolbar select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 0 10px;
}

@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 14px;
  }

  .topbar {
    position: static;
  }
}

@media (max-width: 620px) {
  .market-order-form {
    grid-template-columns: 1fr;
  }

  .market-order-form .primary-button {
    width: 100%;
  }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .portal-frame > .main-shell {
    width: calc(100% - 220px) !important;
    margin-left: 220px !important;
  }

  .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 76px) !important;
    margin-left: 76px !important;
  }
}

@media (max-width: 700px) {
  .portal-frame > .main-shell, .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 64px) !important;
    margin-left: 64px !important;
  }
}

.demo-flow {
  margin-top: 18px;
}

.demo-flow-intro {
  color: var(--muted);
  margin: -5px 0 18px;
  font-size: 13px;
}

.demo-flow-tree, .demo-flow-tree ol {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.demo-flow-tree {
  padding-left: 0;
}

.demo-flow-tree li {
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding: 0 0 18px;
  display: grid;
  position: relative;
}

.demo-flow-tree li:last-child {
  padding-bottom: 0;
}

.demo-flow-tree li:before {
  content: "";
  border-left: 1px solid var(--line);
  position: absolute;
  top: 29px;
  bottom: 0;
  left: 13px;
}

.demo-flow-tree li:last-child:before {
  display: none;
}

.demo-flow-tree ol {
  border-left: 1px solid var(--line);
  grid-column: 1 / -1;
  margin-top: 16px;
  margin-left: 12px;
}

.demo-flow-tree ol > li {
  margin-left: 7px;
}

.demo-flow-node {
  z-index: 1;
  background: var(--surface);
  color: #15803d;
  border: 1px solid #15803d40;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}

.demo-flow-tree li > div {
  min-width: 0;
  padding: 3px 0 0;
}

.demo-flow-tree strong {
  color: var(--text);
  font-size: 14px;
}

.demo-flow-tree p {
  color: var(--muted);
  margin: 4px 0 6px;
  font-size: 12px;
  line-height: 1.55;
}

.demo-flow-tree a {
  color: #147a43;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.demo-flow-tree a:hover {
  text-decoration: underline;
}

.demo-flow-separator {
  color: var(--muted);
}

@media (max-width: 640px) {
  .demo-flow-tree, .demo-flow-tree ol {
    padding-left: 0;
  }

  .demo-flow-tree ol {
    margin-left: 4px;
  }

  .demo-flow-tree ol > li {
    margin-left: 7px;
  }

  .demo-flow-tree strong {
    font-size: 13px;
  }
}

.company-sell-workspace {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.sell-context {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}

.sell-context h2, .sell-context p {
  margin: 4px 0;
}

.sell-product-context {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  gap: 5px;
  min-width: 240px;
  padding: 12px 15px;
  display: grid;
}

.sell-product-context span, .sell-kpis article > small {
  color: var(--muted);
  font-size: 12px;
}

.sell-product-context strong {
  color: var(--text);
}

.sell-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.sell-kpis .stat-card {
  min-width: 0;
}

.sell-kpis .stat-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2vw, 23px);
}

.sell-main-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.sell-main-grid > .panel, .sell-side-panels .panel {
  min-width: 0;
}

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

.sell-quick-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  display: flex;
}

.sell-quick-actions > span {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.sell-quick-actions button {
  min-height: 36px;
  padding: 7px 11px;
}

.sell-order-mode {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  align-items: end;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  display: grid;
}

.sell-order-mode label {
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  display: grid;
}

.sell-order-mode select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 8px 10px;
}

.sell-order-mode p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.sell-validation {
  gap: 7px;
  margin-top: 20px;
  display: grid;
}

.sell-validation h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.sell-validation p {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
}

.sell-validation .check-pass {
  color: #16663d;
  background: #f0faf4;
  border-color: #b6dec8;
}

.sell-validation .check-warning {
  color: #815500;
  background: #fff9e9;
  border-color: #f0d28d;
}

.sell-validation .check-info {
  color: var(--muted);
}

.sell-panel-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.sell-panel-heading h2 {
  margin: 0;
}

.sell-panel-heading > span {
  color: var(--green);
  font-weight: 750;
}

.sell-result {
  background: linear-gradient(120deg,var(--surface),#f3fbf6);
  border-color: #b6dec8;
}

.sell-result h2, .sell-result p {
  margin: 4px 0;
}

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

.sell-result dl div {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 9px 0;
}

.sell-result dt {
  color: var(--muted);
  font-size: 12px;
}

.sell-result dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.sell-result-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

@media (max-width: 1000px) {
  .sell-main-grid {
    grid-template-columns: 1fr;
  }

  .sell-side-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sell-context {
    flex-direction: column;
    align-items: stretch;
  }

  .sell-product-context {
    min-width: 0;
  }

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

  .sell-side-panels, .sell-order-mode {
    grid-template-columns: 1fr;
  }

  .sell-result dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sell-result-actions > * {
    width: 100%;
  }
}

.sell-surplus-note, .sell-order-count-note {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.sell-result-outcome {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 8px;
  margin: 0 0 15px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.content-wrap.market-sell-page {
  width: 100%;
  max-width: 1180px;
  padding: 30px 28px 40px;
}

.market-sell-page .sell-main-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 14px;
}

.market-sell-page .sell-kpis {
  gap: 10px;
}

.market-sell-page .sell-context, .market-sell-page .sell-result {
  padding: 18px 20px;
}

@media (max-width: 1100px) {
  .market-sell-page .sell-main-grid {
    grid-template-columns: 1fr;
  }

  .market-sell-page .sell-side-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .content-wrap.market-sell-page {
    padding: 22px 13px 30px;
  }

  .market-sell-page .sell-side-panels {
    grid-template-columns: 1fr;
  }

  .market-sell-page .sell-context, .market-sell-page .sell-result {
    padding: 15px;
  }
}

.market-chart-switch {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  display: flex;
}

.market-chart-switch > div:first-child {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.market-chart-switch strong {
  color: var(--text);
  font-size: 15px;
}

.market-chart-switch small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.market-chart-modes {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  flex: none;
  gap: 5px;
  padding: 4px;
  display: flex;
}

.market-chart-modes button {
  min-height: 34px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
}

.market-chart-modes button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 4px #00000012;
}

.market-sim-tooltip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 9px;
  gap: 6px;
  padding: 10px 12px;
  font-size: 12px;
  display: grid;
  box-shadow: 0 6px 20px #0000001f;
}

.company-my-orders {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  display: grid;
}

.company-my-orders > *, .company-orderbook-vintage {
  min-width: 0;
}

.company-orderbook-vintage .sell-panel-heading {
  align-items: flex-start;
}

.company-orderbook-vintage .sell-panel-heading h2 {
  margin: 0 0 5px;
}

.company-orderbook-vintage .sell-panel-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.company-orderbook-vintage .market-book-grid {
  margin-top: 14px;
}

.sell-estimate-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 13px;
}

.sell-estimate-card h3 {
  margin: 0 0 11px;
  font-size: 14px;
}

.sell-estimate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.sell-estimate-grid > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  display: grid;
}

.sell-estimate-grid span {
  color: var(--muted);
  font-size: 11px;
}

.sell-estimate-grid b {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 14px;
}

.sell-estimate-grid .sell-estimate-net {
  background: var(--green-soft);
  grid-column: 1 / -1;
}

.sell-estimate-card > p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.market-sell-page .market-ticket {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

.market-sell-page .market-ticket > label {
  min-width: 0;
}

.market-sell-page .market-ticket select, .market-sell-page .market-ticket input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.market-sell-page .market-ticket select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.market-sell-page .sell-order-mode {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.market-sell-page .sell-order-mode > * {
  min-width: 0;
}

.market-sell-page .sell-order-mode select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.vintage-book-page, .company-vintage-book {
  gap: 14px;
  min-width: 0;
  display: grid;
}

.vintage-book-toolbar {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  min-width: 0;
  display: flex;
}

.vintage-book-toolbar h2 {
  color: var(--text);
  margin: 0 0 3px;
  font-size: 23px;
}

.vintage-book-toolbar p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.vintage-book-toolbar label {
  min-width: min(270px, 40%);
  color: var(--muted);
  gap: 5px;
  font-size: 12px;
  display: grid;
}

.vintage-book-toolbar select {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 7px 10px;
}

.vintage-book-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.vintage-book-metrics article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-top: 3px solid #1472cf;
  border-radius: 10px;
  gap: 3px;
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  box-shadow: 0 5px 16px #1432410f;
}

.vintage-book-metrics span, .vintage-book-metrics small {
  color: var(--muted);
  font-size: 12px;
}

.vintage-book-metrics strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font-family: JetBrains Mono, monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.vintage-book-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  min-width: 0;
  padding: 0 16px 12px;
  overflow: hidden;
  box-shadow: 0 5px 18px #1432410f;
}

.vintage-book-card > header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -16px 14px;
  padding: 12px 16px;
  display: flex;
}

.vintage-book-card > header h2 {
  color: var(--text);
  margin: 0;
  font-size: 17px;
}

.vintage-live {
  color: #b52828;
  vertical-align: middle;
  background: #fee9e9;
  border-radius: 12px;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 10px;
  display: inline-flex;
}

.vintage-live i {
  background: #d33;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.vintage-level-count {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 18px;
  flex: none;
  padding: 5px 10px;
  font-size: 11px;
}

.vintage-match-strip {
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.vintage-match-strip article {
  background: var(--surface-soft);
  border: 1px solid #0000;
  border-radius: 8px;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  display: grid;
}

.vintage-match-strip article:first-child {
  border-color: #2479db;
}

.vintage-match-strip span, .vintage-match-strip small {
  color: var(--muted);
  font-size: 11px;
}

.vintage-match-strip strong {
  color: var(--text);
  font-size: 20px;
}

.vintage-match-strip .ask-price {
  color: #c93636;
}

.vintage-match-strip .bid-price {
  color: #008b75;
}

.ob-ladder {
  min-width: 0;
}

.ob-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 32px;
  display: grid;
}

.ob-half {
  min-width: 0;
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.ob-half > i {
  z-index: 0;
  opacity: .14;
  position: absolute;
  top: 2px;
  bottom: 2px;
}

.ob-half.bid > i {
  background: #008c7b;
  right: 0;
}

.ob-half.ask > i {
  background: #d74c4c;
  left: 0;
}

.ob-half.bid {
  color: #078778;
}

.ob-half.ask {
  color: #c83232;
}

.ob-half > span, .ob-half > b {
  z-index: 1;
  white-space: nowrap;
  position: relative;
}

.ob-half .ob-qty {
  color: var(--text);
  font-weight: 500;
}

.ob-half .ob-price {
  font-weight: 750;
}

.ob-half.match {
  outline-offset: -1px;
  outline: 1px solid #287ad8;
}

.ob-row.ob-head {
  min-height: 34px;
  color: var(--muted);
}

.ob-row.ob-head .ob-half {
  font-size: 11px;
}

.ob-row.ob-head .ob-price {
  color: var(--muted);
  font-weight: 500;
}

.ob-row.ob-foot {
  border-bottom: 0;
  min-height: 32px;
}

.ob-row.ob-foot .ob-half {
  color: var(--muted);
  justify-content: flex-end;
  font-size: 11px;
}

.vintage-book-empty {
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
  padding: 20px 10px;
  font-size: 13px;
}

.market-sim-tooltip strong {
  margin-bottom: 2px;
}

@media (max-width: 700px) {
  .market-chart-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .market-chart-modes {
    align-self: flex-start;
    max-width: 100%;
  }

  .market-chart-modes button {
    padding-inline: 8px;
    font-size: 11px;
  }
}

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

.market-regular-panel .market-tabs {
  margin: 0;
}

.market-price-card {
  background: var(--surface);
  border: 1px solid #dce6e9;
  border-radius: 14px;
  min-width: 0;
  padding: 20px;
  box-shadow: 0 5px 18px #1837460b;
}

.market-price-header, .market-price-summary {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  display: flex;
}

.market-price-header h2 {
  align-items: center;
  gap: 10px;
  margin: 0 0 3px;
  font-size: 19px;
  display: flex;
}

.market-price-header small, .market-price-summary small {
  color: #637b8d;
  font-size: 12px;
  display: block;
}

.market-live-badge {
  color: #a92d2d;
  letter-spacing: .03em;
  background: #fff0f0;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 11px;
  display: inline-flex;
}

.market-live-badge i {
  background: #c43838;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.market-range-tabs {
  border: 1px solid #d9e5e8;
  border-radius: 999px;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  display: flex;
}

.market-range-tabs button {
  min-height: 32px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 650;
  transition: background .16s, color .16s;
}

.market-range-tabs button:hover {
  background: #eef5f5;
}

.market-range-tabs button.active {
  color: #fff;
  background: #087d78;
}

.market-price-summary {
  align-items: flex-end;
  margin-top: 20px;
}

.market-price-summary > div:first-child {
  min-width: 0;
}

.market-price-summary strong {
  font-size: 16px;
  display: block;
}

.market-price-latest {
  text-align: right;
  justify-items: end;
  gap: 2px;
  display: grid;
}

.market-price-latest b {
  font-size: 29px;
  line-height: 1.1;
}

.market-price-latest span {
  font-size: 13px;
}

.market-price-latest .positive {
  color: #13805b;
}

.market-price-latest .negative {
  color: #b52e2e;
}

.market-price-chart {
  height: 360px;
  margin: 12px 0 0;
}

.market-price-chart .recharts-cartesian-grid-horizontal line {
  stroke: #d6e2e5;
}

.market-price-chart .recharts-tooltip-wrapper {
  outline: 0;
}

.market-price-chart .recharts-default-tooltip {
  border-radius: 9px;
  box-shadow: 0 6px 20px #0000001f;
  border: 1px solid #dce6e9 !important;
}

.market-orderbook-price-chart .recharts-cartesian-grid-horizontal line, .market-orderbook-price-chart .recharts-cartesian-grid-vertical line, .market-reference-price-chart .recharts-cartesian-grid-horizontal line, .market-reference-price-chart .recharts-cartesian-grid-vertical line {
  stroke: #e4ebf2;
}

.market-orderbook-price-chart .recharts-reference-line line, .market-reference-price-chart .recharts-reference-line line {
  stroke: #1d2732;
}

.market-orderbook-price-chart .recharts-bar-rectangle, .market-reference-price-chart .recharts-bar-rectangle {
  shape-rendering: crispedges;
}

.market-price-stats {
  color: #61798a;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 12px;
  font-size: 12px;
  display: flex;
}

.market-price-stats span {
  white-space: nowrap;
}

.market-price-stats b {
  color: var(--text);
}

.market-price-card .market-chart-switch {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 14px;
}

@media (max-width: 700px) {
  .market-price-card {
    padding: 15px 12px;
  }

  .market-price-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-range-tabs {
    justify-content: space-between;
    width: 100%;
  }

  .market-range-tabs button {
    flex: 1;
    padding-inline: 5px;
    font-size: 11px;
  }

  .market-price-summary {
    align-items: flex-start;
  }

  .market-price-latest b {
    font-size: 22px;
  }

  .market-price-chart {
    height: 290px;
    margin-left: -5px;
  }

  .market-price-stats {
    gap: 8px 14px;
  }
}

.market-demo-tools {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  display: flex;
}

.market-demo-tools > div:first-child {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.market-demo-tools strong {
  color: var(--text);
  font-size: 14px;
}

.market-demo-tools small {
  max-width: 760px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.market-demo-tools > div:last-child {
  flex: none;
  gap: 8px;
  display: flex;
}

.market-demo-clear {
  color: #a93131 !important;
  border-color: #e9bcbc !important;
}

.market-demo-modal {
  width: min(680px, 100vw - 28px);
  max-height: min(86dvh, 760px);
}

.market-demo-confirm {
  color: var(--text);
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  display: grid;
}

.market-demo-confirm input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
}

.danger-button {
  color: #fff;
  cursor: pointer;
  background: #b73535;
  border: 1px solid #a82f2f;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 700;
}

.danger-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .market-demo-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .market-demo-tools > div:last-child {
    flex-direction: column;
  }

  .market-demo-tools button {
    width: 100%;
  }

  .company-my-orders, .sell-estimate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sell-estimate-grid .sell-estimate-net {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .vintage-book-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vintage-book-toolbar label {
    width: 100%;
    min-width: 0;
  }

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

  .vintage-match-strip {
    grid-template-columns: 1fr;
  }

  .vintage-book-card {
    padding-inline: 10px;
  }

  .vintage-book-card > header {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .vintage-book-card > header h2 {
    font-size: 15px;
  }

  .ob-half {
    gap: 4px;
    padding-inline: 5px;
    font-size: 10px;
  }
}

.content-wrap.market-sell-page {
  box-sizing: border-box;
  width: min(100%, 1180px);
  min-width: 0;
  max-width: 1180px;
  overflow-x: clip;
}

.market-sell-page > *, .market-sell-page .company-sell-workspace, .market-sell-page .company-sell-workspace > *, .market-sell-page .sell-main-grid, .market-sell-page .sell-side-panels, .market-sell-page .sell-side-panels > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.market-sell-page .company-sell-workspace {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.market-sell-page .sell-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-sell-page .sell-context {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  display: grid;
}

.market-sell-page .sell-product-context {
  width: 100%;
  min-width: 0;
  max-width: 300px;
}

.market-sell-page .table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 900px) {
  .market-sell-page .sell-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .market-sell-page .sell-context {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-sell-page .sell-product-context {
    max-width: none;
  }
}

.company-trade-mobile-tabs {
  display: none;
}

.company-trade-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 520px;
  margin: 16px 0 12px;
  padding: 5px;
  display: grid;
}

.company-trade-tabs button {
  border-radius: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  transition: background .16s, color .16s, box-shadow .16s;
}

.company-trade-tabs button.active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 2px 7px #00462a2e;
}

.company-trade-tabs button:not(.active):hover {
  background: var(--surface);
  color: var(--green-deep);
}

@media (max-width: 520px) {
  .company-trade-tabs {
    width: 100%;
    max-width: none;
  }

  .company-trade-tabs button {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 12px;
  }
}

.company-trading-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 14px 0 18px;
  display: grid;
}

.company-trading-grid > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.company-trade-book {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  min-width: 0;
  padding: 16px;
}

.company-trading-sell .company-sell-workspace {
  width: 100%;
  min-width: 0;
}

.company-trading-sell .sell-main-grid {
  grid-template-columns: minmax(0, 1fr);
}

.company-trading-sell .sell-side-panels {
  display: none;
}

.company-trading-grid .sell-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-selected-product {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  gap: 4px;
  margin: 12px 0;
  padding: 11px 12px;
  display: grid;
}

.trade-selected-product span {
  color: var(--muted);
  font-size: 11px;
}

.trade-selected-product strong {
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 900px) {
  .company-trading-grid {
    gap: 12px;
    margin-top: 10px;
  }

  .company-trading-grid .company-trade-book {
    padding: 11px;
  }

  .company-trading-grid .company-sell-workspace {
    gap: 11px;
  }
}

.company-trade-book {
  padding: 12px;
}

.market-company-trade .company-trade-overview {
  gap: 12px;
  margin: 0 0 14px;
  display: grid;
}

.market-company-trade .company-trade-overview > .sell-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card strong small {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}

.market-company-trade .company-sell-summary, .market-company-trade .company-sell-workspace > .sell-kpis, .market-company-trade .company-trading-grid > .company-trade-book {
  display: none;
}

.market-company-trade .company-trading-grid {
  display: block;
}

.market-company-trade .sell-main-grid {
  grid-template-columns: minmax(0, 1fr);
}

.market-company-trade .company-trade-positions:not(.company-trade-positions-bottom) {
  display: none;
}

.market-company-trade .company-my-orders {
  margin-top: 14px;
}

.market-company-trade .company-my-orders a {
  display: none;
}

.market-company-trade {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .95fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.market-company-trade > .page-heading, .market-company-trade > .trade-scenario-link, .market-company-trade > .market-session-banner, .market-company-trade > .error-notice, .market-company-trade > .success-notice {
  grid-column: 1 / -1;
}

.market-company-trade > .market-regular-panel {
  grid-area: 4 / 1 / 7;
  margin: 0;
}

.market-company-trade > .company-trade-overview {
  grid-area: 4 / 2;
  margin: 0;
}

.market-company-trade > .company-trade-overview > .sell-kpis {
  display: none;
}

.market-company-trade > .company-trade-tabs {
  grid-area: 5 / 2;
  width: 100%;
  max-width: none;
  margin: 0;
}

.market-company-trade > .company-trading-grid {
  grid-area: 6 / 2;
  margin: 0;
}

.market-company-trade > .company-my-orders, .market-company-trade > .company-trade-positions-bottom {
  grid-column: 1 / -1;
}

@media (max-width: 1000px) {
  .market-company-trade {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-company-trade > .market-regular-panel, .market-company-trade > .company-trade-overview, .market-company-trade > .company-trade-tabs, .market-company-trade > .company-trading-grid, .market-company-trade > .company-my-orders, .market-company-trade > .company-trade-positions-bottom {
    grid-area: auto / 1;
  }
}

.trade-scenario-link {
  color: #16834b;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 7px;
  margin: -7px 0 14px;
  padding: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  display: inline-flex;
}

.trade-scenario-link:hover {
  color: #0e6237;
}

.trade-scenario-backdrop {
  z-index: 120;
  background: #0f172a8f;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.trade-scenario-modal.documentation-viewer:has(.documentation-markdown) {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  width: min(100%, 980px);
  min-height: 0;
  max-height: min(90vh, 900px);
  padding: 20px 24px;
  position: relative;
  inset: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px #0000004d;
}

.trade-scenario-modal .documentation-markdown {
  height: auto;
  max-height: calc(90vh - 100px);
}

.trade-scenario-modal .documentation-md-heading-1 {
  font-size: 22px;
}

.trade-scenario-modal .documentation-md-heading-2 {
  font-size: 17px;
}

.trade-scenario-modal .documentation-content {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

@media (max-width: 700px) {
  .trade-scenario-backdrop {
    padding: 10px;
  }

  .trade-scenario-modal.documentation-viewer:has(.documentation-markdown) {
    max-height: 96vh;
    padding: 14px;
  }

  .trade-scenario-modal .documentation-markdown {
    max-height: calc(96vh - 90px);
  }

  .trade-scenario-link {
    margin-top: 0;
  }
}

.company-trade-positions-bottom {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .market-company-trade .company-trade-overview > .sell-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-sell-summary {
  gap: 10px;
  margin: 12px 0 4px;
  display: grid;
}

.company-sell-summary .sell-context, .company-sell-summary .sell-kpis {
  width: 100%;
}

.company-sell-summary .sell-kpis .stat-card strong {
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.25;
}

.company-sell-summary .sell-kpis .stat-card strong small {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}

.company-trading-sell .company-sell-workspace > .sell-context, .company-trading-sell .company-sell-workspace > .sell-kpis, .company-trading-sell .company-sell-workspace > .sell-surplus-note {
  display: none;
}

.company-trade-book .vintage-book-toolbar {
  align-items: center;
  gap: 12px;
}

.company-trade-book .vintage-book-toolbar .eyebrow {
  letter-spacing: .08em;
  font-size: 9px;
}

.company-trade-book .vintage-book-toolbar p {
  font-size: 11px;
  line-height: 1.4;
}

.company-trade-book .vintage-book-toolbar label {
  gap: 4px;
  min-width: min(230px, 44%);
  font-size: 10px;
}

.company-trade-book .vintage-book-toolbar select {
  min-height: 35px;
  padding: 6px 9px;
  font-size: 12px;
}

.company-trade-book .vintage-book-metrics {
  gap: 8px;
}

.company-trade-book .vintage-book-metrics article {
  border-radius: 8px;
  gap: 2px;
  padding: 10px 11px;
}

.company-trade-book .vintage-book-metrics span, .company-trade-book .vintage-book-metrics small {
  font-size: 10px;
  line-height: 1.35;
}

.company-trade-book .vintage-book-metrics strong {
  font-size: 14px;
  font-weight: 550;
}

.company-trade-book .vintage-book-card {
  border-radius: 9px;
  padding: 0 11px 9px;
}

.company-trade-book .vintage-book-card > header {
  gap: 8px;
  margin: 0 -11px 10px;
  padding: 10px 11px;
}

.company-trade-book .vintage-book-card > header h2 {
  font-size: 14px;
}

.buy-order-type {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 7px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  display: grid;
}

.buy-order-type > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.buy-order-type-select {
  box-sizing: border-box;
  border: 1px solid var(--green);
  background: var(--surface);
  width: 100%;
  min-height: 46px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
}

.buy-order-type-select:focus-visible {
  outline: 3px solid var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  .buy-order-type-select:focus-visible {
    outline: 3px solid color-mix(in srgb,var(--green) 24%,transparent);
  }
}

.buy-order-type-select:focus-visible {
  outline-offset: 2px;
}

.buy-order-type small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.company-trade-book .vintage-level-count {
  font-size: 10px;
}

.company-trade-book .vintage-match-strip {
  gap: 7px;
  margin-bottom: 9px;
}

.company-trade-book .vintage-match-strip article {
  gap: 2px;
  padding: 8px 9px;
}

.company-trade-book .vintage-match-strip span, .company-trade-book .vintage-match-strip small {
  font-size: 10px;
  line-height: 1.35;
}

.company-trade-book .vintage-match-strip strong {
  font-size: 16px;
}

.company-trade-book .ob-row {
  min-height: 29px;
}

.company-trade-book .ob-half {
  gap: 5px;
  padding: 4px 7px;
  font-size: 11px;
}

.company-trade-book .ob-row.ob-head .ob-half, .company-trade-book .ob-row.ob-foot .ob-half {
  font-size: 10px;
}

.company-trade-book .vintage-book-empty {
  padding: 15px 8px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .company-trade-book .vintage-book-metrics article {
    padding: 9px;
  }

  .company-trade-book .vintage-book-metrics strong {
    font-size: 14px;
    font-weight: 550;
  }

  .company-trade-book .vintage-match-strip strong {
    font-size: 15px;
  }

  .company-trade-book .vintage-book-card > header h2 {
    font-size: 13px;
  }
}

.market-company-trade {
  font-family: Plus Jakarta Sans, sans-serif;
}

.market-company-trade .page-heading {
  margin-bottom: 15px;
}

.market-company-trade .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.market-company-trade .page-heading p {
  color: #64748b;
  font-size: 10px;
}

.market-company-trade .company-trade-overview {
  gap: 10px;
  margin-bottom: 12px;
}

.market-company-trade .company-trade-overview > .sell-kpis {
  gap: 9px;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card {
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--card-accent);
  background: var(--surface);
  border-radius: 10px;
  gap: 7px;
  min-height: 84px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card > small {
  color: #64748b;
  letter-spacing: .025em;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card > strong {
  color: #0f172a;
  letter-spacing: -.035em;
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card > strong small {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.market-company-trade .company-trade-book {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-trade .company-trade-book .vintage-book-toolbar h2 {
  letter-spacing: -.02em;
  font-size: 15px;
}

.market-company-trade .company-trade-book .vintage-book-metrics article {
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--card-accent);
  box-shadow: none;
  background: #fff;
}

.market-company-trade .company-trade-book .vintage-book-card {
  box-shadow: none;
  background: #fff;
  border-color: #e2e8f0;
}

.market-company-trade .company-trade-book .vintage-book-card > header h2 {
  color: #1e293b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-weight: 700;
}

.market-company-trade .company-trade-book .vintage-match-strip article {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 7px;
}

.market-company-trade .company-trade-book .ob-row.ob-head {
  color: #64748b;
  background: #f8fafc;
}

.market-company-trade .company-trade-tabs {
  background: #f1f5f3;
  border-color: #e2e8f0;
  border-radius: 9px;
  width: min(100%, 440px);
  max-width: 440px;
  margin: 12px 0 10px;
  padding: 4px;
}

.market-company-trade .company-trade-tabs button {
  border-radius: 7px;
  min-height: 38px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.market-company-trade .company-trade-tabs button.active {
  background: #16834b;
  border-color: #16834b;
  box-shadow: 0 1px 3px #0f502d29;
}

.market-company-trade .company-trading-grid {
  margin: 10px 0 14px;
}

.market-company-trade .company-trade-form {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
  padding: 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-trade .company-trade-form > h2 {
  color: #1e293b;
  letter-spacing: -.02em;
  margin: 0 0 5px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 750;
}

.market-company-trade .company-trade-form > p {
  color: #64748b;
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.5;
}

.market-company-trade .company-trade-form .trade-selected-product {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 8px;
  margin: 9px 0;
  padding: 9px 11px;
}

.market-company-trade .company-trade-form .trade-selected-product span {
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .trade-selected-product strong {
  font-size: 11px;
  line-height: 1.45;
}

.market-company-trade .company-trade-form .buy-order-type {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #16834b;
  border-radius: 8px;
  gap: 5px;
  margin: 9px 0;
  padding: 9px 11px;
}

.market-company-trade .company-trade-form .buy-order-type > span {
  font-size: 10px;
}

.market-company-trade .company-trade-form .buy-order-type-select {
  border-color: #d7e4db;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 650;
}

.market-company-trade .company-trade-form .buy-order-type small {
  font-size: 9px;
  line-height: 1.45;
}

.market-company-trade .company-trade-form .market-ticket {
  gap: 10px;
}

.market-company-trade .company-trade-form .market-ticket label {
  color: #475569;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .market-ticket select, .market-company-trade .company-trade-form .market-ticket input {
  box-sizing: border-box;
  border-color: #dbe3e9;
  border-radius: 7px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.market-company-trade .company-trade-form .market-ticket input[readonly] {
  color: #334155;
  background: #f8fafc;
  font-family: JetBrains Mono, monospace;
  font-weight: 650;
}

.market-company-trade .company-trade-form .market-ticket label > small {
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.market-company-trade .company-trade-form .market-ticket-note {
  font-size: 9px;
}

.market-company-trade .company-trade-form .market-ticket > button {
  border-radius: 7px;
  justify-self: start;
  min-height: 37px;
  padding: 8px 16px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .buy-cash-estimate {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 8px;
  gap: 7px;
  padding: 9px;
}

.market-company-trade .company-trade-form .buy-cash-estimate > div {
  border-color: #e2e8f0;
  border-radius: 7px;
  gap: 3px;
  padding: 8px 9px;
}

.market-company-trade .company-trade-form .buy-cash-estimate span {
  font-size: 9px;
}

.market-company-trade .company-trade-form .buy-cash-estimate b {
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.market-company-trade .company-trade-form .buy-cash-estimate > small {
  font-size: 9px;
  line-height: 1.45;
}

.market-company-trade .company-trade-form .sell-quick-actions {
  gap: 6px;
  margin: 9px 0;
}

.market-company-trade .company-trade-form .sell-quick-actions > span {
  width: auto;
  margin-right: 3px;
  font-size: 9px;
}

.market-company-trade .company-trade-form .sell-quick-actions button {
  border-radius: 6px;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

.market-company-trade .company-trade-form .sell-order-mode {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 8px;
  gap: 9px;
  margin: 9px 0;
  padding: 9px;
}

.market-company-trade .company-trade-form .sell-order-mode label {
  gap: 4px;
  font-size: 10px;
}

.market-company-trade .company-trade-form .sell-order-mode select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 35px;
  padding: 6px 8px;
  font-size: 10px;
}

.market-company-trade .company-trade-form .sell-order-mode p, .market-company-trade .company-trade-form .sell-surplus-note {
  font-size: 9px;
  line-height: 1.45;
}

.market-company-trade .company-trade-form .sell-estimate-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.market-company-trade .company-trade-form .sell-estimate-card h3 {
  font-size: 11px;
}

.market-company-trade .company-trade-form .sell-estimate-grid {
  gap: 6px;
}

.market-company-trade .company-trade-form .sell-estimate-grid > div {
  border-color: #e2e8f0;
  border-radius: 6px;
  padding: 7px 8px;
}

.market-company-trade .company-trade-form .sell-estimate-grid span {
  font-size: 9px;
}

.market-company-trade .company-trade-form .sell-estimate-grid b {
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.market-company-trade .company-trade-form .sell-estimate-card > p {
  font-size: 9px;
}

.market-company-trade .company-sell-workspace .sell-main-grid > .panel {
  font-family: Plus Jakarta Sans, sans-serif;
}

.market-company-trade .company-sell-workspace .sell-main-grid > .panel > h2 {
  color: #1e293b;
  letter-spacing: -.02em;
  margin: 0 0 5px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 750;
}

.market-company-trade .company-sell-workspace .sell-main-grid > .panel > p {
  color: #64748b;
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.5;
}

.market-company-trade .company-trade-form .sell-quick-actions > span {
  font-size: 10px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .sell-quick-actions button {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .sell-order-mode select {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.market-company-trade .company-trade-form .sell-estimate-card h3 {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .sell-estimate-grid b {
  font-size: 12px;
  font-weight: 700;
}

.market-company-trade .company-trade-form .sell-estimate-grid span, .market-company-trade .company-trade-form .sell-estimate-card > p {
  font-family: Plus Jakarta Sans, sans-serif;
}

@media (max-width: 900px) {
  .market-company-trade .company-trade-overview > .sell-kpis, .market-company-trade .company-trade-form .market-ticket {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .market-company-trade .company-trade-overview .sell-kpis .stat-card {
    min-height: 76px;
    padding: 10px;
  }

  .market-company-trade .company-trade-overview .sell-kpis .stat-card > strong {
    font-size: 13px;
  }

  .market-company-trade .company-trade-form {
    padding: 12px;
  }

  .market-company-trade .company-trade-form .market-ticket, .market-company-trade .company-trade-form .buy-cash-estimate {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-company-trade .company-trade-form .buy-cash-estimate > small {
    grid-column: auto;
  }
}

.dashboard-metric, .stat-card, .allocation-summary > article, .annual-trend-metric, .sector-summary-card, .part3-chart-card, .dashboard-stage, .dashboard-progress, .ledger-modal .metric-card, .vintage-book-metrics > article {
  --card-accent: #16834b;
  border-left: 3px solid var(--card-accent);
}

.dashboard-metric, .stat-card, .allocation-summary > article, .sector-summary-card, .ledger-modal .metric-card, .vintage-book-metrics > article {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.dashboard-metric:after, .stat-card:after, .allocation-summary > article:after, .sector-summary-card:after, .ledger-modal .metric-card:after, .vintage-book-metrics > article:after {
  content: "▥";
  background: var(--card-accent);
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
  position: absolute;
  top: 12px;
  right: 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .dashboard-metric:after, .stat-card:after, .allocation-summary > article:after, .sector-summary-card:after, .ledger-modal .metric-card:after, .vintage-book-metrics > article:after {
    background: color-mix(in srgb, var(--card-accent) 12%, var(--surface));
  }
}

.dashboard-metric:after, .stat-card:after, .allocation-summary > article:after, .sector-summary-card:after, .ledger-modal .metric-card:after, .vintage-book-metrics > article:after {
  color: var(--card-accent);
  pointer-events: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-metric, .stat-card, .allocation-summary > article, .ledger-modal .metric-card, .vintage-book-metrics > article {
  padding-right: 52px;
}

.dashboard-metrics > .dashboard-metric:nth-child(4n+2), .stat-grid > .stat-card:nth-child(4n+2), .allocation-summary > article:nth-child(4n+2), .annual-trend-metrics > .annual-trend-metric:nth-child(4n+2), .part3-charts > .part3-chart-card:nth-child(4n+2), .vintage-book-metrics > article:nth-child(4n+2) {
  --card-accent: #3486b6;
}

.dashboard-metrics > .dashboard-metric:nth-child(4n+3), .stat-grid > .stat-card:nth-child(4n+3), .allocation-summary > article:nth-child(4n+3), .annual-trend-metrics > .annual-trend-metric:nth-child(4n+3), .part3-charts > .part3-chart-card:nth-child(4n+3), .vintage-book-metrics > article:nth-child(4n+3) {
  --card-accent: #d69522;
}

.dashboard-metrics > .dashboard-metric:nth-child(4n+4), .stat-grid > .stat-card:nth-child(4n+4), .allocation-summary > article:nth-child(4n+4), .annual-trend-metrics > .annual-trend-metric:nth-child(4n+4), .part3-charts > .part3-chart-card:nth-child(4n+4), .vintage-book-metrics > article:nth-child(4n+4) {
  --card-accent: #8262ad;
}

.annual-trend-metric, .part3-chart-card, .dashboard-stage, .dashboard-progress {
  border-left-color: var(--card-accent);
}

.sector-summary-card {
  --card-accent: var(--sector-color, #16834b);
}

.vintage-book-metrics > article {
  border-top-color: var(--card-accent);
}

.part3-chart-card h2:before, .dashboard-progress .section-title h2:before {
  content: "▥";
  background: var(--card-accent);
  border-radius: 7px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .part3-chart-card h2:before, .dashboard-progress .section-title h2:before {
    background: color-mix(in srgb, var(--card-accent) 12%, var(--surface));
  }
}

.part3-chart-card h2:before, .dashboard-progress .section-title h2:before {
  color: var(--card-accent);
  vertical-align: middle;
  font-size: 14px;
}

@media (max-width: 700px) {
  .dashboard-metric, .stat-card, .allocation-summary > article, .ledger-modal .metric-card, .vintage-book-metrics > article {
    padding-right: 48px;
  }

  .dashboard-metric:after, .stat-card:after, .allocation-summary > article:after, .sector-summary-card:after, .ledger-modal .metric-card:after, .vintage-book-metrics > article:after {
    width: 25px;
    height: 25px;
    font-size: 14px;
    top: 9px;
    right: 9px;
  }
}

.dashboard-stage {
  padding-right: 54px;
  position: relative;
  overflow: hidden;
}

.dashboard-stage:after {
  content: "▥";
  background: var(--card-accent);
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
  position: absolute;
  top: 12px;
  right: 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .dashboard-stage:after {
    background: color-mix(in srgb, var(--card-accent) 12%, var(--surface));
  }
}

.dashboard-stage:after {
  color: var(--card-accent);
  pointer-events: none;
  font-size: 17px;
  font-weight: 700;
}

.dashboard-metric > span, .stat-card > small, .allocation-summary > article > span, .ledger-modal .metric-card > span, .vintage-book-metrics > article > span, .vintage-book-metrics > article > small, .sector-summary-card h3 {
  padding-right: 34px;
}

@media (max-width: 700px) {
  .dashboard-stage {
    padding-right: 48px;
  }

  .dashboard-stage:after {
    width: 25px;
    height: 25px;
    font-size: 14px;
    top: 9px;
    right: 9px;
  }

  .dashboard-metric > span, .stat-card > small, .allocation-summary > article > span, .ledger-modal .metric-card > span, .vintage-book-metrics > article > span, .vintage-book-metrics > article > small, .sector-summary-card h3 {
    padding-right: 28px;
  }
}

.cash-topup-field, .cash-topup-controls label {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.cash-topup-field {
  max-width: 520px;
  margin: 14px 0;
}

.cash-topup-field input, .cash-topup-controls input {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 8px 10px;
}

.cash-topup-field small {
  color: var(--muted);
  font-size: 12px;
}

.cash-topup-controls {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.5fr) auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0 20px;
  display: grid;
}

.cash-account-panel .stat-grid {
  margin-top: 14px;
}

.cash-account-panel .stat-card strong {
  font-size: 20px;
}

@media (max-width: 720px) {
  .cash-topup-controls {
    grid-template-columns: 1fr;
  }

  .cash-topup-controls button {
    width: 100%;
  }
}

.market-ticket .buy-cash-estimate {
  grid-column: 1 / -1;
}

.buy-cash-estimate {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  display: grid;
}

.buy-cash-estimate > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
}

.buy-cash-estimate span, .buy-cash-estimate small {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.buy-cash-estimate b {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 650;
  line-height: 1.35;
}

.buy-cash-estimate small {
  grid-column: 1 / -1;
}

.buy-cash-estimate .negative {
  color: #b42318;
}

@media (max-width: 760px) {
  .market-ticket .buy-cash-estimate {
    grid-column: 1 / -1;
  }

  .buy-cash-estimate {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .buy-cash-estimate > div {
    padding: 9px 10px;
  }

  .buy-cash-estimate small {
    grid-column: auto;
  }
}

:root {
  --metric-icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 16v-4m5 4V7m5 9v-7'/%3E%3C/svg%3E");
  --metric-icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M20 17H4'/%3E%3C/svg%3E");
  --metric-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E");
  --metric-icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5h15a2 2 0 0 1 2 2V20H4a2 2 0 0 1-2-2V6a3 3 0 0 1 3-3h14'/%3E%3Cpath d='M21 12h-5a2 2 0 0 0 0 4h5'/%3E%3Ccircle cx='16' cy='14' r='.5'/%3E%3C/svg%3E");
}

:is(.dashboard-metrics, .stat-grid, .allocation-summary, .annual-trend-metrics, .part3-charts, .vintage-book-metrics, .sector-summary-grid, .dashboard-stage-grid, .sell-kpis, .dashboard-grid) > :nth-child(4n+1) {
  --metric-card-mask: var(--metric-icon-chart);
}

:is(.dashboard-metrics, .stat-grid, .allocation-summary, .annual-trend-metrics, .part3-charts, .vintage-book-metrics, .sector-summary-grid, .dashboard-stage-grid, .sell-kpis, .dashboard-grid) > :nth-child(4n+2) {
  --metric-card-mask: var(--metric-icon-swap);
}

:is(.dashboard-metrics, .stat-grid, .allocation-summary, .annual-trend-metrics, .part3-charts, .vintage-book-metrics, .sector-summary-grid, .dashboard-stage-grid, .sell-kpis, .dashboard-grid) > :nth-child(4n+3) {
  --metric-card-mask: var(--metric-icon-user);
}

:is(.dashboard-metrics, .stat-grid, .allocation-summary, .annual-trend-metrics, .part3-charts, .vintage-book-metrics, .sector-summary-grid, .dashboard-stage-grid, .sell-kpis, .dashboard-grid) > :nth-child(4n+4) {
  --metric-card-mask: var(--metric-icon-wallet);
}

:is(.dashboard-metric, .stat-card, .allocation-summary > article, .sector-summary-card, .ledger-modal .metric-card, .vintage-book-metrics > article, .dashboard-stage):after {
  content: "";
}

:is(.dashboard-metric, .stat-card, .allocation-summary > article, .sector-summary-card, .ledger-modal .metric-card, .vintage-book-metrics > article, .dashboard-stage):before {
  content: "";
  z-index: 1;
  background: var(--card-accent);
  width: 17px;
  height: 17px;
  -webkit-mask: var(--metric-card-mask) center / contain no-repeat;
  -webkit-mask: var(--metric-card-mask) center / contain no-repeat;
  mask: var(--metric-card-mask) center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  top: 19px;
  right: 19px;
}

.part2-monitor-summary > article:first-child {
  border-left: 1px solid #e2e8f0;
}

.dashboard-stage:before {
  width: 17px;
  height: 17px;
  top: 19px;
  right: 19px;
}

.dashboard-stage-grid > .dashboard-stage:first-child {
  --metric-card-mask: var(--metric-icon-chart);
}

.dashboard-stage-grid > .dashboard-stage:nth-child(2) {
  --metric-card-mask: var(--metric-icon-swap);
}

.dashboard-stage-grid > .dashboard-stage:nth-child(3) {
  --metric-card-mask: var(--metric-icon-user);
}

@media (max-width: 700px) {
  :is(.dashboard-metric, .stat-card, .allocation-summary > article, .sector-summary-card, .ledger-modal .metric-card, .vintage-book-metrics > article, .dashboard-stage):before {
    width: 15px;
    height: 15px;
    top: 13px;
    right: 13px;
  }
}

.sidebar.collapsed .sidebar-bottom {
  grid-template-columns: 1fr;
  padding: 13px 0 0;
  display: grid;
}

.company-compliance-dashboard-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-dashboard-theme .page-heading {
  margin-bottom: 16px;
}

.company-compliance-dashboard-theme .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-compliance-dashboard-theme .page-heading p {
  max-width: 620px;
  font-size: 11px;
  line-height: 1.55;
}

.company-compliance-dashboard-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 10px;
  display: flex;
}

.company-compliance-dashboard-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-dashboard-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-compliance-dashboard-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.company-compliance-dashboard-metrics .dashboard-metric {
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--card-accent);
  background: var(--surface);
  border-radius: 10px;
  gap: 7px;
  min-width: 0;
  min-height: 100px;
  padding: 13px 40px 13px 12px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-dashboard-metrics .dashboard-metric:before {
  width: 15px;
  height: 15px;
  top: 15px;
  right: 14px;
}

.company-compliance-dashboard-metrics .dashboard-metric:after {
  background: var(--card-accent);
  border-radius: 8px;
  width: 25px;
  height: 25px;
  top: 10px;
  right: 9px;
}

@supports (color: color-mix(in lab, red, red)) {
  .company-compliance-dashboard-metrics .dashboard-metric:after {
    background: color-mix(in srgb,var(--card-accent) 9%,var(--surface));
  }
}

.company-compliance-dashboard-metrics .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .025em;
  padding: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong {
  color: #0f172a;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong small {
  letter-spacing: 0;
  white-space: nowrap;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.company-compliance-dashboard-theme .dashboard-progress {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #16834b;
  border-radius: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-dashboard-theme .dashboard-progress .section-title {
  margin: 0 0 6px;
}

.company-compliance-dashboard-theme .dashboard-progress .section-title h2 {
  color: #334155;
  letter-spacing: .045em;
  font-size: 11px;
  font-weight: 750;
}

.company-compliance-dashboard-theme .dashboard-progress .section-title h2:before {
  border-radius: 6px;
  width: 21px;
  height: 21px;
  margin-right: 7px;
  font-size: 12px;
}

.company-compliance-dashboard-theme .dashboard-progress > p {
  color: #64748b;
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .company-compliance-dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .company-compliance-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .company-compliance-dashboard-metrics .dashboard-metric {
    min-height: 88px;
    padding: 11px 36px 11px 10px;
  }

  .company-compliance-dashboard-metrics .dashboard-metric > strong {
    font-size: 15px;
  }

  .company-compliance-dashboard-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-compliance-dashboard-theme .company-period-filter select {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .company-compliance-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .company-compliance-dashboard-metrics .dashboard-metric {
    min-height: 78px;
  }
}

.bae-dashboard-theme, .company-bae-view {
  font-family: Plus Jakarta Sans, sans-serif;
}

.bae-dashboard-theme .bae-period-filter {
  margin-bottom: 12px;
}

.bae-dashboard-theme .annual-trend-panel, .bae-dashboard-theme .sector-analysis-card, .bae-dashboard-theme .sector-summary-card {
  border-left: 1px solid #e2e8f0;
}

.bae-dashboard-theme .annual-trend-metrics-above {
  margin-bottom: 12px;
  padding: 0;
}

.bae-dashboard-theme .annual-trend-metric {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 78px;
  padding: 12px 14px;
}

.bae-dashboard-theme .annual-trend-metric-label {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.bae-dashboard-theme .annual-trend-metric strong {
  letter-spacing: -.035em;
  font-family: JetBrains Mono, monospace;
  font-size: 15px;
  font-weight: 700;
}

.bae-dashboard-theme .annual-trend-metric strong small {
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 400;
}

.bae-parameters-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.bae-parameters-theme .page-heading {
  margin-bottom: 20px;
}

.bae-parameters-theme .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.bae-parameters-theme .page-heading p {
  max-width: 760px;
  font-size: 11px;
  line-height: 1.55;
}

.bae-parameters-theme > .bae-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  gap: 12px;
  width: max-content;
  min-width: 210px;
  min-height: 58px;
  margin: 0 0 14px;
  padding: 10px 13px;
  box-shadow: 0 1px 2px #0f172a09;
}

.bae-parameters-theme > .bae-period-filter label {
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.bae-parameters-theme > .bae-period-filter select {
  border-color: #dbe3eb;
  border-radius: 7px;
  min-width: 112px;
  min-height: 34px;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 600;
}

.bae-parameters-theme .allocation-summary {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 14px;
}

.bae-parameters-theme .allocation-summary > article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  gap: 13px;
  min-width: 0;
  min-height: 112px;
  padding: 15px 16px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 1px 2px #0f172a09;
}

.bae-parameters-theme .allocation-summary > article:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #0f172a12;
}

.bae-parameters-theme .allocation-summary > article + article {
  border-left: 1px solid #e2e8f0;
}

.bae-parameters-theme .allocation-summary > article > span {
  color: #64748b;
  letter-spacing: .065em;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.45;
}

.bae-parameters-theme .allocation-summary > article > strong {
  color: #0f172a;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  overflow: hidden;
}

.bae-parameters-theme .allocation-summary > article > strong small {
  color: #64748b;
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.bae-parameters-theme .allocation-summary > article:after {
  background: var(--card-accent);
  border-radius: 8px;
  width: 27px;
  height: 27px;
  top: 13px;
  right: 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .bae-parameters-theme .allocation-summary > article:after {
    background: color-mix(in srgb,var(--card-accent) 9%,white);
  }
}

.bae-parameters-theme .allocation-summary > article:before {
  width: 15px;
  height: 15px;
  top: 19px;
  right: 19px;
}

.bae-parameters-theme .allocation-summary > article:first-child {
  --card-accent: #059669;
}

.bae-parameters-theme .allocation-summary > article:nth-child(2) {
  --card-accent: #d97706;
}

.bae-parameters-theme .allocation-summary > article:nth-child(3) {
  --card-accent: #2563eb;
}

.bae-parameters-theme .allocation-summary > article:nth-child(4) {
  --card-accent: #9333ea;
}

.bae-parameters-theme .allocation-status-bar {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 52px;
  margin: 0 0 14px;
  padding: 9px 12px;
}

.bae-parameters-theme .allocation-status-bar .status-pill {
  font-size: 10px;
  font-weight: 700;
}

.bae-parameters-theme .allocation-status-bar .primary-button, .bae-parameters-theme .allocation-status-bar .outline-button {
  border-radius: 7px;
  min-height: 34px;
  font-size: 10px;
}

.bae-parameters-theme .data-card {
  border-color: #e2e8f0;
  border-radius: 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 1px 2px #0f172a09;
}

.bae-parameters-theme .data-card .toolbar {
  border-color: #e2e8f0;
  min-height: 58px;
  padding: 11px 14px;
}

.bae-parameters-theme .data-card .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.bae-parameters-theme .data-card .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.bae-parameters-theme .data-card .table-wrap {
  min-height: 0;
}

.bae-parameters-theme .data-card table {
  min-width: 760px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.bae-parameters-theme .data-card thead {
  background: #f8fafc;
}

.bae-parameters-theme .data-card thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 650;
}

.bae-parameters-theme .data-card thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.bae-parameters-theme .data-card tbody td {
  color: #334155;
  border-color: #e2e8f0;
  height: 46px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.bae-parameters-theme .data-card tbody tr {
  transition: background-color .14s;
}

.bae-parameters-theme .data-card tbody tr:hover {
  background: #f8fafc;
}

.bae-parameters-theme .data-card tbody td:nth-child(3), .bae-parameters-theme .data-card tbody td:nth-child(4), .bae-parameters-theme .data-card tbody td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.bae-parameters-theme .data-card tbody td.primary-cell {
  color: #0f172a;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
  font-weight: 650;
}

.bae-parameters-theme .data-card .column-info-trigger {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  font-size: 9px;
}

.bae-parameters-theme .data-card .table-footer {
  border-color: #e2e8f0;
  min-height: 48px;
  padding: 10px 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.bae-parameters-theme .data-card .pagination {
  gap: 7px;
}

.bae-parameters-theme .data-card .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

.bae-parameters-theme .allocation-rule-button {
  min-height: 35px;
  box-shadow: 0 2px 6px var(--green);
  border-radius: 8px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

@supports (color: color-mix(in lab, red, red)) {
  .bae-parameters-theme .allocation-rule-button {
    box-shadow: 0 2px 6px color-mix(in srgb,var(--green) 16%,transparent);
  }
}

.bae-parameters-theme .allocation-rule-button svg {
  width: 15px;
  height: 15px;
}

.bae-parameters-theme .data-card .row-actions {
  gap: 6px;
}

.bae-parameters-theme .data-card .row-actions .outline-button {
  border-radius: 7px;
  min-height: 30px;
  padding: 0 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.bae-parameters-theme .data-card .row-actions .icon-button {
  border-radius: 7px;
  width: 30px;
  height: 30px;
  margin-left: 0;
  font-size: 15px;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop > .record-modal {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 12px;
  width: min(520px, 100%);
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-header {
  border-color: var(--line);
  background: var(--surface);
  min-height: 58px;
  padding: 14px 17px;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-header .quiet-button {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  color: var(--muted);
  border-radius: 7px;
  place-items: center;
  font-size: 19px;
  display: grid;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body {
  gap: 12px;
  padding: 16px 17px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body > p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body > p b {
  color: var(--text);
  font-weight: 650;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body input:not([type="checkbox"]) {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

:is(.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body input:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body select:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body textarea:focus) {
  border-color: var(--green);
  outline: 3px solid var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  :is(.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body input:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body select:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body textarea:focus) {
    outline: 3px solid color-mix(in srgb,var(--green) 16%,transparent);
  }
}

:is(.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body input:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body select:focus, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .record-modal-body textarea:focus) {
  outline-offset: 1px;
}

.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .modal-actions {
  gap: 8px;
  padding-top: 5px;
}

:is(.portal-frame:has(.bae-parameters-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.bae-parameters-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.company-bae-view .page-heading h1 {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-bae-view .dashboard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-bae-view .dashboard-metrics.bae-company-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-bae-view .dashboard-metric {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 116px;
  padding: 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-bae-view .dashboard-metric:before {
  background: #059669;
  width: 16px;
  height: 16px;
  top: 22px;
  right: 22px;
}

.company-bae-view .dashboard-metric:after {
  content: "";
  z-index: 0;
  background: #e9f6f2;
  border-radius: 9px;
  width: 28px;
  height: 28px;
  position: absolute;
  top: 16px;
  right: 16px;
}

.company-bae-view .dashboard-metric:nth-child(2):before {
  background: #2563eb;
}

.company-bae-view .dashboard-metric:nth-child(2):after {
  background: #ebf1fd;
}

.company-bae-view .dashboard-metric:nth-child(3):before {
  background: #d97706;
}

.company-bae-view .dashboard-metric:nth-child(3):after {
  background: #fcf3e9;
}

.company-bae-view .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .075em;
  text-transform: uppercase;
  padding: 0 38px 0 0;
  font-size: 10px;
  font-weight: 700;
}

.company-bae-view .dashboard-metric > strong {
  letter-spacing: -.04em;
  margin-top: 15px;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.company-bae-view .dashboard-metric > strong small {
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.company-bae-view .bae-company-status {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-bae-view .bae-company-status .section-title h2 {
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
}

.company-bae-view .company-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-bae-view .company-status-grid article {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 9px;
  min-height: 55px;
  padding: 12px;
}

.company-bae-view .company-status-grid span {
  font-size: 10px;
  font-weight: 600;
}

.company-bae-view .company-status-grid strong {
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.company-bae-view .company-period-filter {
  margin-bottom: 14px;
}

.company-bae-view .bae-company-allocation-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-bae-view .bae-company-allocation-card thead th {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.allocation-history-modal {
  width: min(1120px, 96vw);
  max-height: min(88vh, 900px);
}

.allocation-history-modal .record-modal-body {
  gap: 12px;
  min-height: 0;
  padding: 14px 16px 16px;
}

.allocation-history-table-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 100%;
  max-height: min(62vh, 620px);
  overflow: auto;
}

.allocation-history-table {
  table-layout: fixed;
  min-width: 850px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.allocation-history-table th {
  z-index: 1;
  background: var(--surface-soft);
  height: 38px;
  color: var(--muted);
  letter-spacing: .055em;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
  position: sticky;
  top: 0;
}

.allocation-history-table th:first-child {
  width: 160px;
}

.allocation-history-table th:nth-child(2) {
  width: 130px;
}

.allocation-history-table th:nth-child(3) {
  width: 145px;
}

.allocation-history-table th:nth-child(4) {
  width: 155px;
}

.allocation-history-table th:nth-child(5), .allocation-history-table th:nth-child(6) {
  width: 240px;
}

.allocation-history-table td {
  height: auto;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  padding: 9px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  line-height: 1.45;
}

.allocation-history-table .history-group-start td {
  border-top: 1px solid var(--line);
}

.allocation-history-table tbody tr:first-child td {
  border-top: 0;
}

.allocation-history-table td[rowspan] {
  vertical-align: top;
}

.allocation-history-table .history-field {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.allocation-history-table .history-value {
  overflow-wrap: anywhere;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.history-action {
  border: 1px solid var(--green);
  max-width: 100%;
  padding: 3px 7px;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .history-action {
    border: 1px solid color-mix(in srgb,var(--green) 24%,var(--line));
  }
}

.history-action {
  background: var(--green);
  border-radius: 5px;
}

@supports (color: color-mix(in lab, red, red)) {
  .history-action {
    background: color-mix(in srgb,var(--green) 7%,var(--surface));
  }
}

.history-action {
  color: var(--green-deep);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 9px;
  font-weight: 700;
}

.content-wrap:has(.facility-allocation-table) {
  font-family: Plus Jakarta Sans, sans-serif;
}

.content-wrap:has(.facility-allocation-table) .page-heading {
  margin-bottom: 20px;
}

.content-wrap:has(.facility-allocation-table) .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.content-wrap:has(.facility-allocation-table) .page-heading p {
  max-width: 760px;
  font-size: 11px;
  line-height: 1.55;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  grid-template-rows: auto 37px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 7px 12px;
  margin: 0 0 13px;
  padding: 12px 13px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :first-child {
  grid-area: 1 / 1;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(2) {
  grid-area: 2 / 1;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(3) {
  grid-area: 1 / 2;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(4) {
  grid-area: 2 / 2;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(5) {
  grid-area: 1 / 3;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(6) {
  grid-area: 2 / 3;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(7) {
  grid-area: 1 / 4;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(8) {
  grid-area: 2 / 4;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > label {
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.content-wrap:has(.facility-allocation-table) .allocation-filters > select {
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 0 28px 0 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.content-wrap:has(.facility-allocation-table) .allocation-status-bar {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 50px;
  margin: 0 0 13px;
  padding: 8px 11px;
}

.content-wrap:has(.facility-allocation-table) .allocation-status-bar .status-pill {
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .allocation-status-bar .primary-button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal {
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal > header {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal h2 {
  margin: 0 0 5px;
  font-size: 15px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-heading h2 {
  margin: 0;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-collapse-toggle {
  color: #155c52;
  white-space: nowrap;
  background: #f7fbfa;
  border: 1px solid #c6d8d4;
  border-radius: 7px;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 4px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
  display: inline-flex;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-collapse-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 14px;
  height: 14px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal p {
  max-width: 800px;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  display: grid;
  overflow: visible;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-step-button {
  color: #155c52;
  white-space: normal;
  text-align: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-shadow: none;
  background: #f7fbfa;
  border: 1px solid #c6d8d4;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  display: inline-flex;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-step-button:hover:not(:disabled) {
  color: #10483f;
  background: #edf6f3;
  border-color: #80aaa1;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-step-button:disabled {
  opacity: .5;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-step-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 15px;
  height: 15px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-step-number {
  color: #155c52;
  background: #dfefea;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 10px;
  font-weight: 750;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-subsector-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-subsector-summary article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  gap: 8px;
  padding: 11px 12px;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-subsector-summary article > strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.content-wrap:has(.facility-allocation-table) .manual-subsector-summary article > div {
  color: var(--muted);
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  display: flex;
}

.content-wrap:has(.facility-allocation-table) .manual-subsector-summary article b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}

:is(.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal th, .content-wrap:has(.facility-allocation-table) .manual-allocation-proposal td) {
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  padding: 9px 10px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal td small {
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal td input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 130px;
  height: 34px;
  color: var(--text);
  font: inherit;
  text-align: right;
  border-radius: 6px;
  padding: 0 8px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .intensity-detail-section {
  gap: 10px;
  display: grid;
}

.content-wrap:has(.facility-allocation-table) .manual-preview-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.content-wrap:has(.facility-allocation-table) .manual-preview-header h3 {
  margin: 0;
}

.content-wrap:has(.facility-allocation-table) .manual-preview-apply-button {
  color: #fff;
  background: #0f766e;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 2px 5px #0f766e2e;
}

.content-wrap:has(.facility-allocation-table) .manual-preview-apply-button:hover:not(:disabled) {
  background: #0b625c;
}

.content-wrap:has(.facility-allocation-table) .manual-preview-apply-button:disabled {
  opacity: .55;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-run-history {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  gap: 12px;
  padding: 14px;
}

.content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-run-history h3 {
  color: var(--text);
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.content-wrap:has(.facility-allocation-table) .manual-run-history > .table-scroll {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  max-width: 100%;
  max-height: 340px;
  overflow: auto;
}

.content-wrap:has(.facility-allocation-table) .manual-run-history table {
  min-width: 680px;
  font-size: 10px;
}

.content-wrap:has(.facility-allocation-table) .manual-run-history th {
  z-index: 1;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  position: sticky;
  top: 0;
}

.content-wrap:has(.facility-allocation-table) .manual-run-history td {
  vertical-align: middle;
}

.content-wrap:has(.facility-allocation-table) .manual-run-history td:first-child {
  color: #155c52;
  font-family: JetBrains Mono, monospace;
  font-weight: 750;
}

.manual-run-draft-cell {
  align-items: center;
  gap: 9px;
  display: flex;
}

.manual-run-draft-version {
  color: var(--text);
  font-family: JetBrains Mono, monospace;
  font-weight: 700;
}

.manual-run-snapshot-button {
  color: #155c52;
  white-space: nowrap;
  cursor: pointer;
  background: #f7fbfa;
  border: 1px solid #c6d8d4;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 4px 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.manual-run-snapshot-button:hover {
  background: #edf6f3;
  border-color: #80aaa1;
}

.manual-run-snapshot-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 14px;
  height: 14px;
}

.manual-run-snapshot-modal {
  width: min(1020px, 96vw);
  max-height: min(90vh, 900px);
}

.manual-run-snapshot-header {
  background: var(--surface);
  align-items: flex-start;
}

.manual-run-snapshot-header > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.manual-run-snapshot-header .eyebrow {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.manual-run-snapshot-header h2 {
  color: var(--text);
  font-size: 16px;
}

.manual-run-snapshot-header p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
}

.manual-run-snapshot-header .quiet-button {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  color: var(--muted);
  border-radius: 7px;
  flex: none;
}

.manual-run-snapshot-body {
  gap: 12px;
  min-height: 0;
  padding: 15px 17px 17px;
}

.manual-run-snapshot-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.manual-run-snapshot-stats > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  display: grid;
}

.manual-run-snapshot-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.manual-run-snapshot-stats strong {
  color: var(--text);
  font-family: JetBrains Mono, monospace;
  font-size: 13px;
}

.manual-run-snapshot-caption {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.manual-run-snapshot-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(54vh, 560px);
  overflow: auto;
}

.manual-run-snapshot-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 10px;
}

.manual-run-snapshot-table th {
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  padding: 10px 11px;
  font-size: 9px;
  font-weight: 750;
  position: sticky;
  top: 0;
}

.manual-run-snapshot-table td {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
  padding: 9px 11px;
}

.manual-run-snapshot-table tbody tr:last-child td {
  border-bottom: 0;
}

.manual-run-snapshot-table td strong, .manual-run-snapshot-table td small {
  display: block;
}

.manual-run-snapshot-table td strong {
  font-size: 10px;
  font-weight: 700;
}

.manual-run-snapshot-table td small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}

.manual-run-snapshot-table .manual-run-row-number {
  width: 44px;
  color: var(--muted);
  text-align: center;
  font-family: JetBrains Mono, monospace;
}

.manual-run-snapshot-table .manual-run-numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.manual-run-snapshot-table .manual-run-quota {
  color: #155c52;
  font-weight: 750;
}

.manual-run-snapshot-table .manual-run-quota small {
  margin-left: 3px;
  font-weight: 500;
  display: inline;
}

.manual-run-snapshot-body > .modal-actions {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 10px;
}

@media (max-width: 600px) {
  .manual-run-snapshot-backdrop {
    padding: 10px;
  }

  .manual-run-snapshot-modal {
    width: 100%;
    max-height: 94vh;
  }

  .manual-run-snapshot-body {
    padding: 12px;
  }

  .manual-run-snapshot-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .manual-run-draft-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 760px) {
  .content-wrap:has(.facility-allocation-table) .manual-allocation-proposal .manual-proposal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 13px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards > .dashboard-metric {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 14px 15px;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards > .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .06em;
  min-height: 0;
  padding-right: 34px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards > .dashboard-metric > strong {
  color: #0f172a;
  letter-spacing: -.04em;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 17px;
  font-weight: 700;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards > .dashboard-metric > em {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-style: normal;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards > .dashboard-metric > small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .allocation-bae-breakdown {
  gap: 5px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .allocation-bae-breakdown > div {
  gap: 5px;
  padding-bottom: 4px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .allocation-bae-breakdown small {
  color: #64748b;
  font-size: 9px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .allocation-bae-breakdown strong {
  color: #0f172a;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .allocation-bae-breakdown em {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
  font-style: normal;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .installation-count-breakdown {
  gap: 5px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .installation-count-breakdown > div {
  gap: 3px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .installation-count-breakdown small {
  color: #64748b;
  font-size: 8px;
}

.content-wrap:has(.facility-allocation-table) .allocation-summary-cards .installation-count-breakdown strong {
  color: #0f172a;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table {
  border-color: #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .toolbar {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .table-wrap {
  min-height: 0;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table table {
  min-width: 1000px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table thead {
  background: #f8fafc;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  height: 46px;
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1.45;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table tbody tr:hover {
  background: #f8fafc;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table tbody td.primary-cell {
  color: #0f172a;
  font-size: 11px;
  font-weight: 650;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .company-facility-cell {
  min-width: 180px;
}

:is(.content-wrap:has(.facility-allocation-table) .facility-allocation-table .inline-allocation-input, .content-wrap:has(.facility-allocation-table) .facility-allocation-table .inline-allocation-select) {
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .inline-allocation-input {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .row-actions {
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  width: max-content;
  display: flex;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table tbody td:last-child {
  white-space: nowrap;
  min-width: 280px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .row-actions .icon-button {
  border-color: #dbe3eb;
  border-radius: 7px;
  width: 29px;
  height: 29px;
  font-size: 14px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .row-actions .outline-button {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 600;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .inline-save-button {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 600;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .column-info-trigger {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  font-size: 9px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .table-footer {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.content-wrap:has(.facility-allocation-table) .facility-allocation-table .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop > .record-modal {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-header {
  border-color: var(--line);
  background: var(--surface);
  min-height: 58px;
  padding: 14px 17px;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body {
  gap: 12px;
  padding: 16px 17px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body > p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body input:not([type="checkbox"]) {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .record-modal-body textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.facility-allocation-table) > .modal-backdrop .modal-actions {
  gap: 8px;
  padding-top: 5px;
}

:is(.portal-frame:has(.facility-allocation-table) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.facility-allocation-table) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.company-bae-view .bae-company-allocation-card .toolbar {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

.company-bae-view .bae-company-allocation-card .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.company-bae-view .bae-company-allocation-card .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-bae-view .bae-company-allocation-card .table-wrap {
  min-height: 0;
}

.company-bae-view .bae-company-allocation-card table {
  min-width: 760px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-bae-view .bae-company-allocation-card thead {
  background: #f8fafc;
}

.company-bae-view .bae-company-allocation-card thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 650;
}

.company-bae-view .bae-company-allocation-card thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-bae-view .bae-company-allocation-card tbody td {
  color: #334155;
  border-color: #e2e8f0;
  height: 46px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.company-bae-view .bae-company-allocation-card tbody tr:hover {
  background: #f8fafc;
}

.company-bae-view .bae-company-allocation-card tbody td:first-child {
  color: #0f172a;
  font-weight: 650;
}

.company-bae-view .bae-company-allocation-card .company-cell-note {
  color: #64748b;
  font-size: 9px;
}

.company-bae-view .bae-company-allocation-card .table-footer {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-bae-view .bae-company-allocation-card .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

.company-bae-view .company-allocation-period-total {
  background: linear-gradient(110deg, #f2f8f3, #fff 72%);
  border: 1px solid #dce9df;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  margin: 13px;
  padding: 15px 17px;
  display: flex;
}

.company-bae-view .company-allocation-period-total > div {
  gap: 6px;
  display: grid;
}

.company-bae-view .company-allocation-period-total > div > span {
  color: #64748b;
  letter-spacing: .055em;
  font-size: 10px;
  font-weight: 750;
}

.company-bae-view .company-allocation-period-total > div > small {
  color: #64748b;
  font-size: 10px;
}

.company-bae-view .company-allocation-period-total > strong {
  color: #145c3c;
  letter-spacing: -.04em;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 23px;
  font-weight: 700;
}

.company-bae-view .company-allocation-period-total > strong > small {
  color: #64748b;
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 560px) {
  .company-bae-view .company-allocation-period-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin: 9px;
    padding: 13px;
  }

  .company-bae-view .company-allocation-period-total > strong {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .content-wrap:has(.facility-allocation-table) .allocation-filters {
    grid-template-rows: repeat(2, auto 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :first-child {
    grid-area: 1 / 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(2) {
    grid-area: 2 / 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(3) {
    grid-area: 1 / 2;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(4) {
    grid-area: 2 / 2;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(5) {
    grid-area: 3 / 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(6) {
    grid-area: 4 / 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(7) {
    grid-area: 3 / 2;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(8) {
    grid-area: 4 / 2;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.content-wrap:has(#request-period) {
  font-family: Plus Jakarta Sans, sans-serif;
}

.content-wrap:has(#request-period) .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.content-wrap:has(#request-period) .allocation-filters {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  grid-template-rows: auto 37px;
  grid-template-columns: minmax(220px, 320px);
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  padding: 12px 13px;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(#request-period) .allocation-filters > :first-child {
  grid-area: 1 / 1;
}

.content-wrap:has(#request-period) .allocation-filters > :nth-child(2) {
  grid-area: 2 / 1;
}

.content-wrap:has(#request-period) .allocation-filters > label {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.content-wrap:has(#request-period) .allocation-filters > select {
  background: var(--surface);
  width: 100%;
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 0 28px 0 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.request-quota-cards {
  grid-template-columns: minmax(0, 360px);
  gap: 13px;
  margin: 0 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  display: grid;
}

.request-quota-cards > article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  align-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 98px;
  padding: 14px 16px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a09;
}

.request-quota-cards > article > span {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.request-quota-card-label {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.request-quota-card-label > span {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.request-quota-card-label > svg {
  fill: none;
  stroke: #16804f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.request-quota-cards > article > strong {
  color: #145c3c;
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.request-quota-cards > article > strong > small {
  color: #64748b;
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.content-wrap:has(#request-period) .data-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(#request-period) .data-card .toolbar {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

.content-wrap:has(#request-period) .data-card .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.content-wrap:has(#request-period) .data-card .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.content-wrap:has(#request-period) .data-card table {
  min-width: 920px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.content-wrap:has(#request-period) .data-card thead {
  background: #f8fafc;
}

.content-wrap:has(#request-period) .data-card thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(#request-period) .data-card thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(#request-period) .data-card tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
}

.content-wrap:has(#request-period) .data-card tbody tr:hover {
  background: #f8fafc;
}

.content-wrap:has(#request-period) .data-card .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.content-wrap:has(#request-period) .data-card .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

:is(.content-wrap:has(#request-period) .data-card .row-actions .outline-button, .content-wrap:has(#request-period) .data-card .row-actions .icon-button) {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

.content-wrap:has(#request-period) .data-card .table-footer {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.content-wrap:has(#request-period) .data-card .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop > .record-modal, .portal-frame > .modal-backdrop > .company-request-modal) {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .record-modal-header, .company-requests-theme .company-request-modal .record-modal-header) {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 58px;
  padding: 14px 17px;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .record-modal-header h2, .company-requests-theme .company-request-modal .record-modal-header h2) {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .record-modal-body, .company-requests-theme .company-request-modal .record-modal-body) {
  gap: 12px;
  padding: 16px 17px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .record-modal-body > label, .company-requests-theme .company-request-modal .record-modal-body > label) {
  color: var(--text);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

.company-requests-theme .company-request-modal input, .company-requests-theme .company-request-modal select, .company-requests-theme .company-request-modal textarea {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(#request-period) > .modal-backdrop .record-modal-body input {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(#request-period) > .modal-backdrop .record-modal-body select {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(#request-period) > .modal-backdrop .record-modal-body textarea {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .modal-actions, .company-requests-theme .company-request-modal .modal-actions) {
  gap: 8px;
  padding-top: 5px;
}

:is(.portal-frame:has(#request-period) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(#request-period) > .modal-backdrop .modal-actions .outline-button, .company-requests-theme .company-request-modal .modal-actions .primary-button, .company-requests-theme .company-request-modal .modal-actions .outline-button) {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.company-requests-theme .company-period-filter {
  margin-bottom: 14px;
}

.company-requests-theme .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.company-requests-theme .page-heading > button {
  min-height: 36px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-requests-theme .company-period-filter label {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.company-requests-theme .company-period-filter select {
  border-color: #dbe3eb;
  border-radius: 7px;
  min-height: 36px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-requests-theme > .data-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-requests-theme > .data-card .toolbar {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

.company-requests-theme > .data-card .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.company-requests-theme > .data-card .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-requests-theme > .data-card table {
  min-width: 760px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-requests-theme > .data-card thead {
  background: #f8fafc;
}

.company-requests-theme > .data-card thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 650;
}

.company-requests-theme > .data-card thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-requests-theme > .data-card tbody td {
  color: #334155;
  border-color: #e2e8f0;
  height: 46px;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.45;
}

.company-requests-theme > .data-card tbody tr:hover {
  background: #f8fafc;
}

.company-requests-theme > .data-card .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.company-requests-theme > .data-card .row-actions .outline-button, .company-requests-theme > .data-card .company-revise {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

:is(.content-wrap:has(#request-period) .data-card .request-table-action, .company-requests-theme > .data-card .request-table-action) {
  border-radius: 7px !important;
  min-height: 29px !important;
  padding: 0 9px !important;
  font-family: Plus Jakarta Sans, sans-serif !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

.company-requests-theme > .data-card .table-footer {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-requests-theme > .data-card .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

.company-requests-theme .request-quota-cards {
  margin-bottom: 13px;
}

.company-requests-theme .company-request-modal {
  width: min(590px, 100vw - 28px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.portal-frame > .modal-backdrop > .company-request-detail-modal {
  width: min(720px, 100vw - 28px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.company-request-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 14px;
  margin: 0;
  display: grid;
}

.company-request-detail-grid > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
  padding: 10px 11px;
}

.company-request-detail-grid dt {
  color: #64748b;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 650;
}

.company-request-detail-grid dd {
  color: #1e293b;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.company-request-detail-grid .company-request-detail-wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .company-request-detail-grid {
    grid-template-columns: 1fr;
  }

  .company-request-detail-grid .company-request-detail-wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .company-requests-theme .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .company-requests-theme .page-heading > button {
    width: 100%;
  }

  .content-wrap:has(#request-period) .allocation-filters {
    grid-template-columns: 1fr;
  }

  .request-quota-cards {
    gap: 9px;
  }

  .request-quota-cards > article {
    min-height: 88px;
    padding: 12px;
  }

  .request-quota-cards > article > strong {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .request-quota-cards {
    grid-template-columns: 1fr;
  }
}

.content-wrap:has(#authorization-period) {
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.content-wrap:has(#authorization-period) .page-heading h1, .company-authorization-theme .page-heading h1) {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.content-wrap:has(#authorization-period) .allocation-filters {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  grid-template-rows: auto 37px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 7px 12px;
  margin: 0 0 13px;
  padding: 12px 13px;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(#authorization-period) .allocation-filters > :first-child {
  grid-area: 1 / 1;
}

.content-wrap:has(#authorization-period) .allocation-filters > :nth-child(2) {
  grid-area: 2 / 1;
}

.content-wrap:has(#authorization-period) .allocation-filters > :nth-child(3) {
  grid-area: 1 / 2;
}

.content-wrap:has(#authorization-period) .allocation-filters > :nth-child(4) {
  grid-area: 2 / 2;
}

.content-wrap:has(#authorization-period) .allocation-filters > :nth-child(5) {
  grid-area: 1 / 3;
}

.content-wrap:has(#authorization-period) .allocation-filters > :nth-child(6) {
  grid-area: 2 / 3;
}

:is(.content-wrap:has(#authorization-period) .allocation-filters > label, .company-authorization-theme .company-period-filter label) {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

:is(.content-wrap:has(#authorization-period) .allocation-filters > select, .company-authorization-theme .company-period-filter select) {
  background: var(--surface);
  width: 100%;
  min-width: 0;
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 0 28px 0 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.content-wrap:has(#authorization-period) .allocation-status-bar {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 50px;
  margin: 0 0 13px;
  padding: 8px 11px;
}

.content-wrap:has(#authorization-period) .allocation-status-bar .status-pill {
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(#authorization-period) .allocation-status-bar .row-actions {
  flex-wrap: wrap;
  gap: 7px;
}

.content-wrap:has(#authorization-period) .allocation-status-bar .primary-button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 13px;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards > .dashboard-metric {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  gap: 9px;
  min-width: 0;
  min-height: 104px;
  padding: 14px 15px;
  box-shadow: 0 1px 2px #0f172a09;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards > .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .055em;
  min-height: 0;
  padding-right: 34px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards > .dashboard-metric > strong {
  color: #0f172a;
  letter-spacing: -.04em;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 17px;
  font-weight: 700;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards > .dashboard-metric > em {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-style: normal;
}

.content-wrap:has(#authorization-period) .allocation-summary-cards > .dashboard-metric > small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.4;
}

.content-wrap:has(#authorization-period) > .data-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

:is(.content-wrap:has(#authorization-period) > .data-card .toolbar, .company-authorization-theme .company-authorization-table .toolbar) {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

:is(.content-wrap:has(#authorization-period) > .data-card .datatable-search, .company-authorization-theme .company-authorization-table .datatable-search) {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

:is(.content-wrap:has(#authorization-period) > .data-card .datatable-search input, .company-authorization-theme .company-authorization-table .datatable-search input) {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.content-wrap:has(#authorization-period) > .data-card table {
  min-width: 980px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-authorization-theme .company-authorization-table table {
  min-width: 760px;
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.content-wrap:has(#authorization-period) > .data-card thead, .company-authorization-theme .company-authorization-table thead) {
  background: #f8fafc;
}

:is(.content-wrap:has(#authorization-period) > .data-card thead th, .company-authorization-theme .company-authorization-table thead th) {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 650;
}

:is(.content-wrap:has(#authorization-period) > .data-card thead .th-sort, .company-authorization-theme .company-authorization-table thead .th-sort) {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

:is(.content-wrap:has(#authorization-period) > .data-card tbody td, .company-authorization-theme .company-authorization-table tbody td) {
  color: #334155;
  border-color: #e2e8f0;
  height: 46px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
}

:is(.content-wrap:has(#authorization-period) > .data-card tbody tr:hover, .company-authorization-theme .company-authorization-table tbody tr:hover) {
  background: #f8fafc;
}

:is(.content-wrap:has(#authorization-period) > .data-card .status-pill, .company-authorization-theme .company-authorization-table .status-pill) {
  font-size: 9px;
  font-weight: 650;
}

.content-wrap:has(#authorization-period) > .data-card .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

:is(.content-wrap:has(#authorization-period) > .data-card .row-actions .outline-button, .content-wrap:has(#authorization-period) > .data-card .row-actions .icon-button) {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

:is(.content-wrap:has(#authorization-period) > .data-card .table-footer, .company-authorization-theme .company-authorization-table .table-footer) {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

:is(.content-wrap:has(#authorization-period) > .data-card .pagination .outline-button, .company-authorization-theme .company-authorization-table .pagination .outline-button) {
  min-height: 30px;
  font-size: 10px;
}

.company-authorization-theme .company-period-filter {
  margin-bottom: 13px;
}

.company-authorization-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 13px;
  display: grid;
}

.company-authorization-summary > article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  align-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 98px;
  padding: 14px 16px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-authorization-summary-label {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.company-authorization-summary-label > span {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.company-authorization-summary-label > svg {
  fill: none;
  stroke: #16804f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.company-authorization-summary > article > strong {
  color: #145c3c;
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.company-authorization-summary > article > strong > small {
  color: #64748b;
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.company-authorization-theme .company-authorization-table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.portal-frame:has(#authorization-period) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 58px;
  padding: 14px 17px;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-body {
  gap: 12px;
  padding: 16px 17px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-body > p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

:is(.portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-body input, .portal-frame:has(#authorization-period) > .modal-backdrop .record-modal-body select) {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(#authorization-period) > .modal-backdrop .modal-actions {
  gap: 8px;
  padding-top: 5px;
}

:is(.portal-frame:has(#authorization-period) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(#authorization-period) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 900px) {
  .content-wrap:has(#authorization-period) .allocation-filters {
    grid-template-rows: repeat(2, auto 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(5) {
    grid-area: 3 / 1;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(6) {
    grid-area: 4 / 1;
  }

  .content-wrap:has(#authorization-period) .allocation-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .content-wrap:has(#authorization-period) .allocation-filters {
    grid-template-rows: repeat(3, auto 35px);
    grid-template-columns: 1fr;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(n) {
    grid-column: 1;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :first-child {
    grid-row: 1;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(2) {
    grid-row: 2;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(3) {
    grid-row: 3;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(4) {
    grid-row: 4;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(5) {
    grid-row: 5;
  }

  .content-wrap:has(#authorization-period) .allocation-filters > :nth-child(6) {
    grid-row: 6;
  }

  .content-wrap:has(#authorization-period) .allocation-summary-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .content-wrap:has(#authorization-period) .allocation-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-wrap:has(#authorization-period) .allocation-status-bar .row-actions {
    width: 100%;
  }

  .content-wrap:has(#authorization-period) .allocation-status-bar .row-actions > button {
    flex: auto;
  }

  .company-authorization-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .company-authorization-summary > article {
    min-height: 88px;
    padding: 12px;
  }
}

.sector-analysis-card .sector-summary-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}

.sector-analysis-card .sector-summary-card {
  border-radius: 8px;
  min-height: 0;
  padding: 9px 11px;
  box-shadow: 0 1px 3px #14322309;
}

.sector-analysis-card .sector-summary-card h3 {
  min-height: 0;
  margin: 0 0 5px;
  padding-right: 26px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.sector-analysis-card .sector-summary-card h3 i {
  flex-basis: 8px;
  width: 8px;
  height: 8px;
  margin-top: 3px;
}

.sector-analysis-card .sector-summary-card > div {
  gap: 6px;
  padding: 5px 0 0;
}

.sector-analysis-card .sector-summary-card > div span {
  font-size: 9px;
}

.sector-analysis-card .sector-summary-card > div strong {
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 700;
}

.sector-analysis-card .sector-summary-card > div small {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
}

.part2-intake-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-intake-theme .page-heading {
  align-items: flex-start;
  margin-bottom: 17px;
}

.part2-intake-theme .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 22px;
  font-weight: 700;
}

.part2-intake-theme .page-heading p {
  max-width: 700px;
  font-size: 11px;
  line-height: 1.5;
}

.part2-intake-actions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  grid-template-columns: repeat(3, max-content);
  gap: 7px;
  max-width: 100%;
  padding: 7px;
  display: grid;
}

.part2-intake-actions > button {
  white-space: nowrap;
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.part2-intake-actions > button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #16834b;
}

.part2-intake-actions > button:disabled {
  opacity: .52;
}

.part2-intake-theme > .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  align-items: stretch;
  gap: 6px;
  width: min(330px, 100%);
  margin: 0 0 13px;
  padding: 11px 12px;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-intake-theme > .company-period-filter label {
  color: #64748b;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.part2-intake-theme > .company-period-filter select {
  border-color: #dbe3eb;
  border-radius: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 28px 0 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.part2-intake-metrics {
  gap: 11px;
  margin: 0 0 13px;
}

.part2-intake-metrics .dashboard-metric {
  border-color: #e2e8f0;
  border-radius: 10px;
  gap: 7px;
  min-height: 96px;
  padding: 13px 15px;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-intake-metrics .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .045em;
  text-transform: uppercase;
  padding-right: 34px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.part2-intake-metrics .dashboard-metric > strong {
  color: #0f172a;
  margin-top: 3px;
  font-family: JetBrains Mono, monospace;
  font-size: 19px;
  font-weight: 700;
}

.part2-intake-metrics .dashboard-metric:after {
  color: #16834b;
}

.part2-intake-metrics .dashboard-metric:first-child:after {
  content: "↓";
}

.part2-intake-metrics .dashboard-metric:nth-child(2):after {
  content: "◷";
}

.part2-intake-metrics .dashboard-metric:nth-child(3):after {
  content: "↻";
}

.part2-intake-metrics .dashboard-metric:nth-child(4):after {
  content: "✓";
}

.part2-intake-table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-intake-table .toolbar {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 10px 13px;
}

.part2-intake-table .datatable-search {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 7px;
  height: 34px;
}

.part2-intake-table .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.part2-intake-table table {
  min-width: 920px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-intake-table thead {
  background: #f8fafc;
}

.part2-intake-table thead th {
  color: #475569;
  letter-spacing: 0;
  text-transform: none;
  border-color: #e2e8f0;
  height: 40px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 650;
}

.part2-intake-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.part2-intake-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
}

.part2-intake-table tbody tr:hover {
  background: #f8fafc;
}

.part2-intake-table .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.part2-intake-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.part2-intake-table .row-actions .outline-button {
  border-radius: 7px;
  min-height: 29px;
  padding: 0 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

.part2-intake-table .table-footer {
  border-color: #e2e8f0;
  min-height: 46px;
  padding: 9px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-intake-table .pagination .outline-button {
  min-height: 30px;
  font-size: 10px;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 58px;
  padding: 14px 17px;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-body {
  gap: 12px;
  padding: 16px 17px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

:is(.portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-body input, .portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-body select, .portal-frame:has(.part2-intake-theme) > .modal-backdrop .record-modal-body textarea) {
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
}

.portal-frame:has(.part2-intake-theme) > .modal-backdrop .modal-actions {
  gap: 8px;
  padding-top: 5px;
}

:is(.portal-frame:has(.part2-intake-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.part2-intake-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .part2-intake-theme .page-heading {
    flex-direction: column;
    gap: 12px;
  }

  .part2-intake-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .part2-intake-actions > button {
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 900px) {
  .part2-intake-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .part2-intake-actions {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .part2-intake-actions > button {
    width: 100%;
    min-height: 36px;
  }

  .part2-intake-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .part2-intake-metrics .dashboard-metric {
    min-height: 80px;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters {
    grid-template-rows: repeat(4, auto 35px);
    grid-template-columns: 1fr;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(n) {
    grid-column: 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :first-child {
    grid-row: 1;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(2) {
    grid-row: 2;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(3) {
    grid-row: 3;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(4) {
    grid-row: 4;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(5) {
    grid-row: 5;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(6) {
    grid-row: 6;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(7) {
    grid-row: 7;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-filters > :nth-child(8) {
    grid-row: 8;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-summary-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-wrap:has(.facility-allocation-table) .allocation-status-bar > button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .company-bae-view .dashboard-metrics, .company-bae-view .company-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .company-bae-view .dashboard-metric {
    min-height: 108px;
    padding: 12px;
  }

  .company-bae-view .dashboard-metric:before {
    top: 18px;
    right: 18px;
  }

  .company-bae-view .dashboard-metric:after {
    top: 12px;
    right: 12px;
  }

  .company-bae-view .company-status-grid article {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .bae-parameters-theme .allocation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bae-parameters-theme .allocation-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bae-parameters-theme .allocation-summary > article {
    min-height: 96px;
  }

  .bae-parameters-theme .allocation-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bae-parameters-theme .allocation-status-bar > button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .portal-frame .sidebar-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .portal-frame .sidebar-primary-nav {
    display: grid;
  }

  .portal-frame .sidebar-submenu, .portal-frame .sidebar-user-copy, .portal-frame .sidebar-primary-link .primary-text {
    display: none;
  }

  .portal-frame .sidebar-user {
    background: none;
    border: 0;
    justify-content: center;
    padding: 5px 0;
  }

  .portal-frame .sidebar-primary-link {
    border-radius: 11px;
    place-items: center;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
    display: grid;
  }

  .portal-frame .sidebar-primary-link .sidebar-chevron {
    display: none;
  }

  .portal-frame .sidebar-logout {
    border-radius: 11px;
    width: 48px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0;
  }

  .portal-frame .sidebar-logout .sidebar-text-element {
    display: none;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-menu-group.expanded > .sidebar-submenu {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-user-copy {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-primary-link .primary-text {
    display: block;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-user {
    background: #0000001f;
    border: 1px solid #ffffff1f;
    justify-content: flex-start;
    padding: 9px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-primary-link {
    border-radius: 9px;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    display: flex;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-logout {
    border-radius: 8px;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 0 10px;
  }

  .portal-frame:has(.mobile-sidebar-toggle[aria-expanded="true"]) .sidebar-logout .sidebar-text-element {
    display: inline;
  }
}

.portal-frame > .main-shell {
  transition: width .2s, margin-left .2s;
  width: calc(100% - 256px) !important;
  margin-left: 256px !important;
}

.portal-frame > .sidebar.collapsed ~ .main-shell {
  width: calc(100% - 64px) !important;
  margin-left: 64px !important;
}

@media (max-width: 1000px) and (min-width: 901px) {
  .portal-frame > .main-shell {
    width: calc(100% - 220px) !important;
    margin-left: 220px !important;
  }

  .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 64px) !important;
    margin-left: 64px !important;
  }
}

@media (max-width: 900px) {
  .portal-frame > .main-shell, .portal-frame > .sidebar.collapsed ~ .main-shell {
    width: calc(100% - 64px) !important;
    margin-left: 64px !important;
  }
}

.login-page {
  color: #f8fafc;
  background: #06111f;
  place-items: center;
  min-height: 100svh;
  padding: 72px 32px 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  display: grid;
  overflow: auto;
}

.login-pref {
  z-index: 3;
  top: 24px;
  right: 30px;
}

.login-layout {
  background: #0b1726;
  border: 1px solid #94a3b82e;
  border-radius: 22px;
  grid-template-columns: minmax(430px, .94fr) minmax(470px, 1.06fr);
  width: min(1160px, 100%);
  min-height: 690px;
  animation: .55s ease-out both login-rise;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 90px #0000005c, 0 0 0 1px #10b9810d;
}

.login-art:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(#0000, #020d18a6);
  height: 38%;
  position: absolute;
  inset: auto 0 0;
}

.art-grid {
  opacity: .1;
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(145deg, #000 12%, #0000 78%);
  mask-image: linear-gradient(145deg, #000 12%, #0000 78%);
}

.art-badge {
  color: #d1fae5;
  letter-spacing: .14em;
  gap: 12px;
  font-size: 9px;
}

.art-badge .brand-mark {
  color: #06261d;
  background: linear-gradient(135deg, #d1fae5, #34d399);
  border: 1px solid #a7f3d080;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  box-shadow: 0 8px 22px #10b98133;
}

.art-copy {
  max-width: 420px;
  margin-top: 74px;
  padding: 0;
}

.art-copy .eyebrow {
  color: #6ee7b7;
  letter-spacing: .18em;
  font-size: 10px;
}

.art-copy h1 {
  color: #fff;
  letter-spacing: -.055em;
  max-width: 410px;
  margin: 15px 0 13px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.04;
}

.art-copy p {
  color: #e2e8f0b8;
  letter-spacing: .22em;
  margin: 0;
  font-size: 10px;
}

.art-pillars {
  z-index: 1;
  gap: 9px;
  max-width: 430px;
  margin-top: 42px;
  display: grid;
  position: relative;
}

.art-pillar {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #06152257;
  border: 1px solid #ffffff21;
  border-radius: 10px;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  transition: transform .18s, border-color .18s, background .18s;
  display: flex;
}

.art-pillar:hover {
  background: #06232780;
  border-color: #6ee7b76b;
  transform: translateX(4px);
}

.art-pillar-index {
  color: #6ee7b7;
  border: 1px solid #6ee7b761;
  border-radius: 8px;
  flex: 0 0 29px;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}

.art-pillar strong, .art-pillar small {
  display: block;
}

.art-pillar strong {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
}

.art-pillar small {
  color: #cbd5e1a8;
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.35;
}

.art-footer {
  z-index: 1;
  color: #cbd5e194;
  letter-spacing: .13em;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  display: flex;
  position: relative;
}

.art-footer strong {
  color: #6ee7b7;
  letter-spacing: .04em;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.login-card {
  color: #f8fafc;
  background: #0b1726;
  min-width: 0;
  padding: 48px clamp(36px, 5vw, 68px) 30px;
}

.login-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 58px;
  display: flex;
}

.login-brand {
  color: #f8fafc;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.login-brand .brand-mark {
  color: #064e3b;
  background: #d1fae5;
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.login-brand strong {
  color: #f8fafc;
  letter-spacing: -.02em;
  font-size: 13px;
}

.login-brand small {
  color: #64748b;
  letter-spacing: .16em;
  font-size: 9px;
}

.login-sso-badge {
  color: #a7f3d0;
  letter-spacing: .08em;
  white-space: nowrap;
  background: #064e3b42;
  border: 1px solid #34d39947;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
}

.login-sso-badge .online-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px #34d3991f;
}

.login-heading .eyebrow {
  color: #6ee7b7;
  letter-spacing: .15em;
  font-size: 9px;
}

.login-heading h2 {
  color: #f8fafc;
  letter-spacing: -.045em;
  margin: 12px 0 9px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}

.login-heading p {
  color: #94a3b8;
  max-width: 390px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.login-form > label, .login-field {
  color: #cbd5e1;
  letter-spacing: .01em;
  font-size: 10px;
  font-weight: 700;
}

.login-form input {
  color: #f8fafc;
  background: #101f31;
  border: 1px solid #263a4f;
  border-radius: 8px;
  min-height: 45px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.login-form input:focus {
  background: #11253a;
  border-color: #34d399;
  outline: 0;
  box-shadow: 0 0 0 3px #34d3991f;
}

.captcha-label {
  color: #cbd5e1;
  margin: 2px 0 -5px;
  font-size: 10px;
}

.captcha-label .text-button {
  color: #6ee7b7;
  font-size: 10px;
}

.captcha-image {
  background: #f8fafc;
  border-color: #263a4f;
  border-radius: 8px;
  min-height: 64px;
}

.captcha-image img {
  height: 64px;
}

.captcha-row input {
  text-align: center;
  letter-spacing: .16em;
  min-width: 0;
  font-family: JetBrains Mono, monospace;
  font-size: 15px;
  font-weight: 700;
}

.form-error {
  color: #fca5a5;
  background: #7f1d1d38;
  border-color: #f8717159;
  border-radius: 8px;
  font-size: 10px;
}

.login-submit {
  letter-spacing: .02em;
  background: linear-gradient(135deg, #059669, #0f766e);
  border-color: #10b981;
  border-radius: 8px;
  min-height: 47px;
  margin-top: 2px;
  font-family: inherit;
  font-size: 11px;
  box-shadow: 0 10px 24px #05966933;
}

.login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #0d9488);
  border-color: #34d399;
  transform: translateY(-1px);
}

.login-demo-accounts {
  background: none;
  border: 0;
  border-top: 1px solid #1d3043;
  border-radius: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin-top: 31px;
  padding: 14px 0 0;
}

.login-demo-accounts .demo-heading {
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
  display: flex;
}

.login-demo-accounts .demo-heading strong {
  color: #cbd5e1;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 9px;
}

.login-demo-accounts > div:not(.demo-heading) {
  background: #101f3185;
  border: 1px solid #1d3043;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  display: flex;
}

.login-demo-accounts > div:not(.demo-heading) span {
  color: #94a3b8;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.login-demo-accounts code {
  color: #6ee7b7;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 8px;
  font-weight: 600;
  overflow: hidden;
}

.login-security {
  color: #64748b;
  margin-top: auto;
  padding-top: 24px;
  font-size: 9px;
}

.login-security .online-dot {
  width: 6px;
  height: 6px;
}

.login-foot {
  color: #64748b;
  letter-spacing: .1em;
  border-color: #1d3043;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 8px;
}

.login-foot-status {
  color: #6ee7b7;
  margin-left: auto;
  font-family: JetBrains Mono, monospace;
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 900px) {
  .login-page {
    padding: 68px 16px 20px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-art {
    min-height: 430px;
    padding: 30px 28px 24px;
  }

  .art-copy {
    margin-top: 48px;
  }

  .art-copy h1 {
    max-width: 520px;
    font-size: clamp(31px, 8vw, 44px);
  }

  .art-pillars {
    margin-top: 28px;
  }

  .login-card {
    padding: 34px clamp(24px, 7vw, 56px) 26px;
  }

  .login-card-head {
    margin-bottom: 40px;
  }
}

@media (max-width: 520px) {
  .login-pref {
    top: 14px;
    right: 16px;
  }

  .login-layout {
    border-radius: 16px;
  }

  .login-art {
    min-height: 470px;
    padding: 26px 21px 22px;
  }

  .art-badge {
    font-size: 8px;
  }

  .art-copy {
    margin-top: 42px;
  }

  .art-copy h1 {
    font-size: 31px;
  }

  .art-pillars {
    gap: 7px;
    margin-top: 25px;
  }

  .art-pillar {
    padding: 9px 10px;
  }

  .art-pillar strong {
    font-size: 10px;
  }

  .art-pillar small {
    font-size: 8px;
  }

  .art-footer {
    font-size: 7px;
  }

  .login-card {
    padding: 28px 21px 23px;
  }

  .login-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 34px;
  }

  .login-sso-badge {
    align-self: flex-start;
  }

  .login-heading h2 {
    font-size: 27px;
  }

  .login-demo-accounts {
    grid-template-columns: 1fr;
  }

  .login-demo-accounts .demo-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

.login-page {
  color: #18231d;
  background: radial-gradient(circle at 8% 12%, #00734814, #0000 28%), radial-gradient(circle at 92% 88%, #2f6f5514, #0000 26%), #edf3f0;
  padding: 56px 32px 30px;
}

.login-pref .preference-icon-button {
  color: #315447;
  background: #ffffffd1;
  border-color: #cbdad2;
  box-shadow: 0 5px 18px #15422d14;
}

.login-pref .preference-icon-button:hover {
  color: #007348;
  background: #fff;
  border-color: #007348;
}

.login-layout {
  background: #fff;
  border-color: #d5e1db;
  border-radius: 24px;
  grid-template-columns: minmax(470px, 1.04fr) minmax(430px, .96fr);
  min-height: 670px;
  box-shadow: 0 28px 70px #20493424, 0 2px 10px #2049340d;
}

.art-grid {
  opacity: .07;
}

.art-badge {
  color: #ecfdf5;
}

.art-badge .brand-mark {
  color: #065f46;
  background: #f0fdf4;
  border-color: #ecfdf5ad;
  box-shadow: 0 8px 20px #0000002e;
}

.art-copy .eyebrow {
  color: #b7f3d5;
}

.art-copy h1 {
  letter-spacing: -.06em;
  max-width: 445px;
  font-size: clamp(35px, 4.2vw, 54px);
}

.art-copy p {
  color: #ecfdf5b8;
}

.art-pillar {
  background: #01241f45;
  border-color: #ecfdf538;
}

.art-pillar:hover {
  background: #0041316b;
  border-color: #b7f3d5b3;
}

.art-pillar strong {
  color: #fff;
}

.art-pillar small {
  color: #ecfdf5b3;
}

.art-footer {
  color: #ecfdf5a8;
}

.art-footer strong {
  color: #d1fae5;
}

.login-card {
  color: #18231d;
  background: #fff;
  padding: 46px clamp(38px, 5vw, 62px) 28px;
}

.login-brand {
  color: #18231d;
}

.login-brand .brand-mark {
  color: #007348;
  box-shadow: none;
  background: #e7f6ed;
  border: 1px solid #bfe5d0;
}

.login-brand strong {
  color: #18231d;
}

.login-brand small {
  color: #759084;
}

.login-sso-badge {
  color: #087443;
  background: #effaf3;
  border-color: #bfe5d0;
}

.login-sso-badge .online-dot {
  box-shadow: 0 0 0 3px #0073481f;
}

.login-heading .eyebrow {
  color: #007348;
}

.login-heading h2 {
  color: #18231d;
}

.login-heading p {
  color: #647b6e;
}

.login-form > label, .login-field {
  color: #2f473b;
}

.login-form input {
  color: #18231d;
  background: #fbfdfc;
  border-color: #d5e1db;
}

.login-form input::placeholder {
  color: #91a69b;
}

.login-form input:hover {
  border-color: #9fc5ae;
}

.login-form input:focus {
  background: #fff;
  border-color: #007348;
  box-shadow: 0 0 0 3px #0073481a;
}

.captcha-label {
  color: #2f473b;
}

.captcha-label .text-button {
  color: #007348;
}

.captcha-label .text-button:hover {
  color: #005635;
}

.captcha-image {
  background: #f6faf7;
  border-color: #d5e1db;
}

.form-error {
  color: #b42318;
  background: #fff5f5;
  border-color: #b91c1c38;
}

.login-submit {
  background: linear-gradient(135deg, #007348, #0b8060);
  border-color: #007348;
  box-shadow: 0 9px 22px #0073482e;
}

.login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #0b8060, #14976c);
  border-color: #0b8060;
}

.login-demo-accounts {
  border-top-color: #e0e9e4;
}

.login-demo-accounts .demo-heading strong {
  color: #426154;
}

.login-demo-accounts .demo-heading span {
  color: #8aa096;
}

.login-demo-accounts > div:not(.demo-heading) {
  background: #f8fbf9;
  border-color: #e0e9e4;
}

.login-demo-accounts > div:not(.demo-heading) span {
  color: #647b6e;
}

.login-demo-accounts code {
  color: #007348;
}

.login-security {
  color: #789084;
}

.login-foot {
  color: #789084;
  border-color: #e0e9e4;
}

.login-foot-status {
  color: #007348;
}

@media (max-width: 900px) {
  .login-page {
    padding: 62px 16px 20px;
  }

  .login-art {
    min-height: 425px;
    padding: 30px 28px 24px;
  }

  .art-copy {
    margin-top: 54px;
  }

  .login-card {
    padding: 36px clamp(24px, 7vw, 56px) 26px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 61px 12px 16px;
  }

  .login-layout {
    border-radius: 17px;
  }

  .login-art {
    min-height: 458px;
    padding: 25px 20px 21px;
  }

  .art-copy {
    margin-top: 44px;
  }

  .art-copy h1 {
    font-size: 32px;
  }

  .login-card {
    padding: 29px 20px 22px;
  }
}

.login-page {
  padding: 48px 24px 18px;
}

.login-layout {
  border-radius: 20px;
  width: min(1120px, 100%);
  height: min(632px, 100svh - 76px);
  min-height: 0;
}

.login-art {
  min-height: 0;
  padding: 30px 34px 22px;
}

.art-badge {
  font-size: 8px;
}

.art-badge .brand-mark {
  border-radius: 10px;
  width: 38px;
  height: 38px;
}

.art-copy .eyebrow {
  font-size: 8px;
}

.art-copy h1 {
  max-width: 380px;
  margin: 11px 0 10px;
  font-size: clamp(30px, 3.4vw, 42px);
}

.art-copy p {
  font-size: 8px;
}

.art-pillar {
  gap: 10px;
  padding: 8px 10px;
}

.art-pillar-index {
  flex-basis: 25px;
  width: 25px;
  height: 25px;
  font-size: 8px;
}

.art-pillar small {
  margin-top: 2px;
  font-size: 8px;
}

.art-footer {
  font-size: 7px;
}

.login-card {
  padding: 30px clamp(30px, 4.2vw, 52px) 20px;
}

.login-brand .brand-mark {
  border-radius: 9px;
  width: 35px;
  height: 35px;
}

.login-sso-badge {
  padding: 6px 8px;
  font-size: 7px;
}

.login-heading .eyebrow {
  font-size: 8px;
}

.login-heading p {
  font-size: 10px;
}

.login-form input {
  min-height: 39px;
  padding: 0 11px;
  font-size: 11px;
}

.captcha-row {
  gap: 8px;
}

.captcha-row input {
  font-size: 13px;
}

.login-submit {
  align-self: end;
  width: auto;
  min-width: 145px;
  min-height: 40px;
  padding: 0 13px;
  font-size: 10px;
}

.login-submit span:last-child {
  font-size: 16px;
}

.login-demo-accounts {
  gap: 5px 8px;
  margin-top: 18px;
  padding-top: 10px;
}

.login-demo-accounts .demo-heading strong, .login-demo-accounts .demo-heading span {
  font-size: 8px;
}

.login-demo-accounts > div:not(.demo-heading) {
  padding: 5px 7px;
}

.login-demo-accounts > div:not(.demo-heading) span, .login-demo-accounts code {
  font-size: 7px;
}

.login-security {
  padding-top: 13px;
  font-size: 8px;
}

.login-foot {
  margin-top: 7px;
  padding-top: 8px;
  font-size: 7px;
}

@media (max-width: 900px) {
  .login-page {
    padding: 58px 16px 16px;
  }

  .login-layout {
    height: auto;
    min-height: 0;
  }

  .login-art {
    min-height: 370px;
    padding: 26px 27px 21px;
  }

  .art-copy {
    margin-top: 43px;
  }

  .art-pillars {
    margin-top: 21px;
  }

  .login-card {
    padding: 30px clamp(24px, 7vw, 52px) 22px;
  }

  .login-card-head {
    margin-bottom: 27px;
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 58px 10px 12px;
  }

  .login-art {
    min-height: 398px;
    padding: 23px 19px 18px;
  }

  .art-copy {
    margin-top: 38px;
  }

  .art-copy h1 {
    font-size: 29px;
  }

  .login-card {
    padding: 25px 19px 18px;
  }

  .login-card-head {
    gap: 10px;
    margin-bottom: 25px;
  }
}

.login-hero-title {
  gap: 0;
  display: grid;
}

.login-hero-title span {
  display: block;
}

.login-art {
  background-position: 58%;
}

.art-pillars {
  margin-top: 27px;
}

.art-pillar {
  background: #0030243d;
}

.art-pillar-index {
  color: #c5f27e;
  border-color: #a9e85b9e;
}

.login-card {
  background: #fff;
}

.login-card-head {
  align-items: center;
}

.login-demo-trigger {
  color: #007348;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  align-self: center;
  margin-top: 18px;
  padding: 6px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.login-demo-trigger:hover {
  color: #005b39;
}

.login-demo-trigger:focus-visible, .login-demo-modal button:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #00734847;
}

.login-demo-modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0c1c158f;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.login-demo-modal {
  background: #fff;
  border: 1px solid #dce9e0;
  border-radius: 16px;
  width: min(800px, 100%);
  font-family: Plus Jakarta Sans, sans-serif;
  overflow: hidden;
  box-shadow: 0 28px 80px #081e1447;
}

.login-demo-modal-header {
  border-bottom: 1px solid #e7efe9;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 17px;
  display: flex;
}

.login-demo-modal-header span {
  color: #648173;
  letter-spacing: .13em;
  font-size: 9px;
  font-weight: 800;
}

.login-demo-modal-header h2 {
  color: #15291e;
  letter-spacing: -.035em;
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 750;
}

.login-demo-modal-header button {
  color: #456252;
  cursor: pointer;
  background: #f8fbf9;
  border: 1px solid #dfe9e2;
  border-radius: 9px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  display: grid;
}

.login-demo-password {
  background: #f0f8f2;
  border: 1px solid #cfe4d6;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 15px 24px 0;
  padding: 11px 13px;
  display: flex;
}

.login-demo-password span {
  color: #456252;
  font-size: 11px;
  font-weight: 700;
}

.login-demo-password code {
  color: #006c43;
  -webkit-user-select: all;
  user-select: all;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 750;
}

.login-demo-modal-list {
  gap: 8px;
  padding: 17px 24px 23px;
  display: grid;
}

.login-demo-modal-list > div {
  background: #f9fcfa;
  border: 1px solid #e5eee8;
  border-radius: 9px;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 9px 11px;
  display: grid;
}

.login-demo-modal-list span {
  color: #536b5e;
  font-size: 11px;
  font-weight: 650;
}

.login-demo-modal-list code {
  color: #006c43;
  text-align: right;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 650;
}

@media (max-width: 520px) {
  .login-demo-modal-backdrop {
    padding: 14px;
  }

  .login-demo-modal-header {
    padding: 18px 17px 14px;
  }

  .login-demo-password {
    margin: 12px 17px 0;
    padding: 10px 11px;
  }

  .login-demo-modal-list {
    gap: 7px;
    padding: 14px 17px 18px;
  }

  .login-demo-modal-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .login-demo-modal-list code {
    text-align: left;
    font-size: 9px;
  }
}

.login-heading h2 {
  letter-spacing: -.05em;
}

@media (max-width: 520px) {
  .login-hero-title {
    font-size: 28px !important;
  }
}

.art-copy {
  margin-top: 32px;
}

.art-copy h1 {
  max-width: 520px;
  font-size: clamp(29px, 3.1vw, 39px);
}

.art-pillars {
  gap: 6px;
  margin-top: 18px;
}

.art-pillar {
  padding: 7px 10px;
}

.art-pillar-index {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
}

.login-submit {
  justify-content: space-between;
  align-self: flex-start;
  width: 166px;
  min-width: 166px;
}

@media (max-width: 900px) {
  .art-copy {
    margin-top: 34px;
  }

  .art-copy h1 {
    max-width: 620px;
    font-size: clamp(30px, 7vw, 42px);
  }
}

@media (max-width: 520px) {
  .art-copy {
    margin-top: 30px;
  }

  .art-copy h1 {
    max-width: 100%;
    font-size: 28px !important;
  }

  .art-pillars {
    margin-top: 16px;
  }

  .login-submit {
    width: 156px;
    min-width: 156px;
  }
}

.login-page {
  background: #f5f8f5;
  min-height: 100svh;
  padding: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  display: block;
}

.login-layout {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100svh;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  animation: none;
}

.login-pref {
  top: 20px;
  right: 24px;
}

.login-art {
  background: linear-gradient(#042a2087, #042d217a 45%, #001b14d1), url("/images/login-industrial-hero.webp") 50% / cover no-repeat;
  min-height: 0;
  padding: clamp(30px, 4vw, 62px) clamp(32px, 4vw, 68px) 28px;
}

.login-art:after {
  background: linear-gradient(#0000, #0019135c);
  height: 25%;
}

.art-grid {
  display: none;
}

.art-badge {
  color: #fff;
  letter-spacing: 0;
  gap: 15px;
}

.art-badge .brand-mark {
  background: #08794c;
  border: 0;
  border-radius: 15px;
  width: 54px;
  height: 54px;
}

.art-badge strong, .art-badge small {
  display: block;
}

.art-badge strong {
  font-size: 17px;
  font-weight: 800;
}

.art-badge small {
  color: #ffffffe0;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}

.art-copy {
  max-width: 720px;
  margin: clamp(24px, 5vh, 65px) 0 0;
  padding: 0;
}

.art-copy h1 {
  letter-spacing: -.052em;
  max-width: none;
  margin: 0 0 16px;
  font-size: clamp(34px, 3.1vw, 57px);
  line-height: 1.12;
}

.login-hero-title {
  gap: 2px;
}

.login-hero-title .accent {
  color: #b2ed9f;
}

.art-copy p {
  color: #ffffffed;
  letter-spacing: 0;
  max-width: 610px;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 1.6;
}

.art-pillars {
  gap: clamp(7px, 1.4vh, 14px);
  max-width: 640px;
  margin-top: auto;
  margin-bottom: auto;
}

.art-pillar {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 13px;
  padding: 4px 0;
}

.art-pillar:hover {
  background: none;
}

.art-pillar-index {
  color: #fff;
  background: #ffffff2b;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.art-pillar strong {
  font-size: clamp(12px, 1vw, 15px);
}

.art-pillar small {
  color: #ffffffd6;
  margin-top: 3px;
  font-size: clamp(10px, .85vw, 13px);
}

.art-footer {
  color: #ffffffd9;
  letter-spacing: 0;
  margin-top: 0;
  padding-top: 20px;
  font-size: 11px;
  font-weight: 600;
}

.login-card {
  background: #f9fcf9;
  min-width: 0;
  padding: clamp(72px, 8vh, 100px) clamp(30px, 5vw, 90px) 30px;
}

.login-card-head {
  margin-bottom: 0;
}

.login-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.login-brand strong {
  font-size: 13px;
}

.login-brand small {
  font-size: 9px;
}

.login-heading {
  text-align: center;
  margin-top: auto;
}

.login-lock {
  color: #007348;
  background: #e1f3e7;
  border: 1px solid #b9dec9;
  border-radius: 50%;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
}

.login-lock svg {
  width: 25px;
  height: 25px;
}

.login-heading h2 {
  margin: 0 0 9px;
  font-size: clamp(24px, 2.1vw, 34px);
}

.login-heading p {
  max-width: none;
  font-size: 13px;
}

.login-form {
  gap: 14px;
  margin-top: 24px;
}

.login-form > label, .login-field, .captcha-label {
  font-size: 12px;
}

.login-form input {
  background: #f7faf8;
  border-radius: 10px;
  min-height: 48px;
  padding: 0 15px;
  font-size: 13px;
}

.captcha-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
}

.captcha-image, .captcha-image img {
  height: 52px;
  min-height: 52px;
}

.captcha-row input {
  font-family: JetBrains Mono, monospace;
  font-size: 14px;
}

.login-submit {
  background: #007348;
  border-radius: 10px;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 800;
}

.login-demo-accounts {
  background: none;
  border: 0;
  border-top: 1px solid #dce9e0;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 24px;
  padding: 14px 0 0;
  display: grid;
}

.login-demo-accounts .demo-heading {
  grid-column: 1;
  justify-content: space-between;
  margin-bottom: 5px;
  display: flex;
}

.login-demo-accounts .demo-heading strong {
  color: #315747;
  letter-spacing: .04em;
  font-size: 10px;
}

.login-demo-accounts .demo-heading span {
  color: #7c9588;
  font-size: 10px;
}

.login-demo-accounts > div:not(.demo-heading) {
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 3px 0;
  display: grid;
}

.login-demo-accounts > div:not(.demo-heading) span {
  color: #4e6b5c;
  font-size: 10px;
}

.login-demo-accounts code {
  color: #006c43;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  overflow: hidden;
}

.login-foot {
  color: #658173;
  letter-spacing: 0;
  border: 0;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 10px;
}

@media (max-height: 780px) and (min-width: 901px) {
  .login-layout {
    min-height: 100svh;
  }

  .login-art {
    padding-top: 26px;
    padding-bottom: 17px;
  }

  .art-copy {
    margin-top: 18px;
  }

  .art-copy h1 {
    margin-bottom: 9px;
    font-size: clamp(30px, 2.7vw, 43px);
  }

  .art-pillars {
    gap: 5px;
  }

  .art-footer {
    padding-top: 9px;
  }

  .login-card {
    padding-top: 26px;
    padding-bottom: 12px;
  }

  .login-lock {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .login-lock svg {
    width: 20px;
    height: 20px;
  }

  .login-heading h2 {
    margin-bottom: 4px;
    font-size: 23px;
  }

  .login-form {
    gap: 7px;
    margin-top: 12px;
  }

  .login-form input {
    min-height: 39px;
  }

  .captcha-image, .captcha-image img {
    height: 42px;
    min-height: 42px;
  }

  .login-submit {
    min-height: 40px;
    margin-top: 2px;
  }

  .login-demo-accounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
    margin-top: 15px;
    padding-top: 10px;
  }

  .login-demo-accounts .demo-heading {
    grid-column: 1 / -1;
  }

  .login-demo-accounts > div:not(.demo-heading) {
    min-width: 0;
    padding: 2px 0;
    display: block;
  }

  .login-demo-accounts > div:not(.demo-heading) span, .login-demo-accounts code {
    text-align: left;
    display: block;
  }

  .login-demo-accounts code {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 9px;
    overflow: visible;
  }

  .login-foot {
    padding-top: 10px;
  }

  .login-heading p {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .login-page {
    padding: 0;
  }

  .login-layout {
    border-radius: 0;
    height: auto;
    min-height: 100svh;
    display: block;
  }

  .login-art {
    min-height: 0;
    padding: 85px 7vw 32px;
  }

  .art-copy {
    margin-top: 32px;
  }

  .art-copy h1 {
    font-size: clamp(30px, 6vw, 46px);
  }

  .art-pillars {
    margin-top: 22px;
    margin-bottom: 0;
  }

  .login-card {
    padding: 34px 7vw 26px;
  }

  .login-card-head {
    margin-bottom: 28px;
  }

  .login-heading {
    margin-top: 0;
  }

  .login-demo-accounts {
    grid-template-columns: 1fr;
  }

  .login-foot {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .login-pref {
    top: 15px;
    right: 14px;
  }

  .login-art {
    padding: 75px 20px 24px;
  }

  .art-badge .brand-mark {
    width: 43px;
    height: 43px;
  }

  .art-badge strong {
    font-size: 14px;
  }

  .art-badge small {
    font-size: 9px;
  }

  .art-copy {
    margin-top: 25px;
  }

  .art-copy h1, .login-hero-title {
    font-size: 29px !important;
  }

  .art-copy p {
    font-size: 11px;
  }

  .art-pillars {
    gap: 8px;
    margin-top: 17px;
  }

  .art-pillar-index {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .art-footer {
    font-size: 9px;
  }

  .login-card {
    padding: 30px 20px 24px;
  }

  .login-card-head {
    flex-direction: row;
    margin-bottom: 30px;
  }

  .login-heading h2 {
    font-size: 25px;
  }

  .login-form input {
    font-size: 12px;
  }

  .login-demo-accounts > div:not(.demo-heading) {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
  }

  .login-demo-accounts code {
    font-size: 9px;
  }

  .login-foot {
    flex-wrap: wrap;
  }
}

.part2-registry-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-registry-theme .page-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.part2-registry-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.part2-registry-theme .page-heading p {
  color: #64748b;
  max-width: 640px;
  font-size: 10px;
  line-height: 1.55;
}

.part2-registry-actions {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  gap: 7px;
  max-width: 650px;
  display: flex;
}

.part2-registry-actions > button {
  white-space: normal;
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-registry-actions > .outline-button {
  background: var(--surface);
  color: #176b43;
  border-color: #d6e3dc;
}

.part2-registry-actions > .outline-button:hover:not(:disabled) {
  background: #f3faf6;
  border-color: #16834b;
}

.part2-registry-actions > .primary-button {
  background: #16834b;
  border-color: #16834b;
}

.part2-registry-actions > button:disabled {
  opacity: .48;
}

.part2-registry-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.part2-registry-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.part2-registry-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.part2-registry-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-registry-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.part2-registry-table .table-toolbar input, .part2-registry-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-registry-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-registry-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.part2-registry-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.part2-registry-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.part2-registry-table tbody tr:hover {
  background: #f8fafc;
}

.part2-registry-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.part2-registry-table .row-actions .outline-button, .part2-registry-table .row-actions .primary-button {
  white-space: normal;
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-registry-table .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.part2-registry-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-registry-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

:is(.portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-body input, .portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-body select, .portal-frame:has(.part2-registry-theme) > .modal-backdrop .record-modal-body textarea) {
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.portal-frame:has(.part2-registry-theme) > .modal-backdrop .modal-actions {
  gap: 7px;
  padding-top: 4px;
}

:is(.portal-frame:has(.part2-registry-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.part2-registry-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .part2-registry-theme .page-heading {
    flex-direction: column;
  }

  .part2-registry-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .part2-registry-actions {
    grid-template-columns: 1fr;
    width: 100%;
    display: grid;
  }

  .part2-registry-actions > button {
    width: 100%;
    min-height: 35px;
  }

  .part2-registry-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .part2-registry-theme .company-period-filter select {
    width: 100%;
  }

  .part2-registry-table .row-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.market-company-trade .company-trade-overview .sell-kpis .stat-card {
  border-left-color: #e2e8f0;
}

.market-company-trade .company-trade-book .vintage-book-metrics article {
  border-top-color: #e2e8f0;
}

.market-company-trade .company-trade-tabs button:first-child {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.market-company-trade .company-trade-tabs button:first-child.active {
  color: #fff;
  background: #16834b;
  border-color: #16834b;
}

.market-company-trade .company-trade-tabs button:first-child:not(.active):hover {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.market-company-trade .company-trade-tabs button:nth-child(2) {
  color: #c2413b;
  background: #fff1f2;
  border-color: #fecaca;
}

.market-company-trade .company-trade-tabs button:nth-child(2).active {
  color: #fff;
  background: #c2413b;
  border-color: #c2413b;
}

.market-company-trade .company-trade-tabs button:nth-child(2):not(.active):hover {
  color: #9f1239;
  background: #ffe4e6;
  border-color: #fca5a5;
}

.market-session-banner {
  color: #f8fafc;
  background: linear-gradient(105deg, #0f172a 0%, #142821 68%, #20311f 100%);
  border: 1px solid #1e293b;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 13px 16px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 6px #0f172a1a;
}

.market-session-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.market-session-eyebrow {
  color: #aab8c8;
  letter-spacing: .1em;
  font-size: 8px;
  font-weight: 800;
}

.market-session-copy > strong {
  color: #fff;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}

.market-session-copy > small {
  color: #aab8c8;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.market-session-state {
  color: #bbf7d0;
  letter-spacing: .035em;
  background: #064e3b7a;
  border: 1px solid #4ade804d;
  border-radius: 8px;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.market-session-state > i {
  background: #4ade80;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: relative;
}

.market-session-banner.is-open .market-session-state > i:after {
  content: "";
  border: 1px solid #4ade80cc;
  border-radius: 50%;
  animation: 1.6s ease-out infinite market-session-pulse;
  position: absolute;
  inset: -4px;
}

.market-session-banner.is-closed {
  background: linear-gradient(105deg, #111827, #1f2937);
  border-color: #334155;
}

.market-session-banner.is-closed .market-session-state {
  color: #cbd5e1;
  background: #33415573;
  border-color: #94a3b840;
}

.market-session-banner.is-closed .market-session-state > i {
  background: #94a3b8;
}

@keyframes market-session-pulse {
  0% {
    opacity: .95;
    transform: scale(.65);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-session-banner.is-open .market-session-state > i:after {
    animation: none;
  }
}

@media (max-width: 520px) {
  .market-session-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .market-session-state {
    padding: 7px 9px;
  }
}

.part2-emissions-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-emissions-theme .page-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.part2-emissions-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.part2-emissions-theme .page-heading p {
  color: #64748b;
  max-width: 640px;
  font-size: 10px;
  line-height: 1.55;
}

.part2-emissions-actions {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  gap: 7px;
  max-width: 560px;
  display: flex;
}

.part2-emissions-actions > button {
  white-space: normal;
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-emissions-actions > .outline-button {
  background: var(--surface);
  color: #176b43;
  border-color: #d6e3dc;
}

.part2-emissions-actions > .outline-button:hover:not(:disabled) {
  background: #f3faf6;
  border-color: #16834b;
}

.part2-emissions-actions > .primary-button {
  background: #16834b;
  border-color: #16834b;
}

.part2-emissions-actions > button:disabled {
  opacity: .48;
}

.part2-emissions-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.part2-emissions-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.part2-emissions-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.part2-emissions-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-emissions-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.part2-emissions-table .table-toolbar input, .part2-emissions-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-emissions-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-emissions-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.part2-emissions-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.part2-emissions-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.part2-emissions-table tbody tr:hover {
  background: #f8fafc;
}

.part2-emissions-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.part2-emissions-table .row-actions > button {
  white-space: normal;
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-emissions-table .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.part2-emissions-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-emissions-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

:is(.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-body input, .portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-body select, .portal-frame:has(.part2-emissions-theme) > .modal-backdrop .record-modal-body textarea) {
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .modal-actions {
  gap: 7px;
  padding-top: 4px;
}

:is(.portal-frame:has(.part2-emissions-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.part2-emissions-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .part2-emissions-theme .page-heading {
    flex-direction: column;
  }

  .part2-emissions-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .part2-emissions-actions {
    grid-template-columns: 1fr;
    width: 100%;
    display: grid;
  }

  .part2-emissions-actions > button {
    width: 100%;
    min-height: 35px;
  }

  .part2-emissions-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .part2-emissions-theme .company-period-filter select {
    width: 100%;
  }
}

.part2-compliance-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-compliance-theme .page-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.part2-compliance-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.part2-compliance-theme .page-heading p {
  color: #64748b;
  max-width: 640px;
  font-size: 10px;
  line-height: 1.55;
}

.part2-compliance-actions {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  gap: 7px;
  max-width: 400px;
  display: flex;
}

.part2-compliance-actions > button {
  color: #fff;
  white-space: normal;
  min-height: 34px;
  box-shadow: none;
  background: #16834b;
  border: 1px solid #16834b;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-compliance-actions > button:hover:not(:disabled) {
  background: #116b3d;
  border-color: #116b3d;
}

.part2-compliance-actions > button:disabled {
  opacity: .48;
}

.part2-compliance-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.part2-compliance-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.part2-compliance-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.part2-compliance-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-compliance-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.part2-compliance-table .table-toolbar input, .part2-compliance-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-compliance-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.part2-compliance-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.part2-compliance-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.part2-compliance-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.part2-compliance-table tbody tr:hover {
  background: #f8fafc;
}

.part2-compliance-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.part2-compliance-table .row-actions > button {
  white-space: normal;
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-compliance-table .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.part2-compliance-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-compliance-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

.portal-frame:has(.part2-compliance-theme) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part2-compliance-theme) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.portal-frame:has(.part2-compliance-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-frame:has(.part2-compliance-theme) > .modal-backdrop .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.portal-frame:has(.part2-compliance-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.part2-compliance-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .part2-compliance-theme .page-heading {
    flex-direction: column;
  }

  .part2-compliance-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .part2-compliance-actions {
    width: 100%;
  }

  .part2-compliance-actions > button {
    width: 100%;
    min-height: 35px;
  }

  .part2-compliance-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .part2-compliance-theme .company-period-filter select {
    width: 100%;
  }

  .part2-compliance-table .row-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.company-compliance-dashboard-metrics .dashboard-metric {
  border-left-width: 1px;
  border-left-color: #e2e8f0;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong {
  letter-spacing: -.025em;
  font-size: 14px;
  line-height: 1.25;
}

.company-compliance-dashboard-metrics .dashboard-metric > strong small {
  font-size: 8px;
}

.company-compliance-dashboard-theme .dashboard-progress {
  border-left-width: 1px;
  border-left-color: #e2e8f0;
}

@media (max-width: 700px) {
  .company-compliance-dashboard-metrics .dashboard-metric > strong {
    font-size: 13px;
  }
}

.company-compliance-emissions-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-emissions-theme .page-heading {
  margin-bottom: 14px;
}

.company-compliance-emissions-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-compliance-emissions-theme .page-heading p {
  color: #64748b;
  max-width: 620px;
  font-size: 10px;
  line-height: 1.55;
}

.company-compliance-emissions-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-compliance-emissions-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-emissions-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-compliance-emissions-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-emissions-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.company-compliance-emissions-table .table-toolbar input, .company-compliance-emissions-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-emissions-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-emissions-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.company-compliance-emissions-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-compliance-emissions-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.company-compliance-emissions-table tbody tr:hover {
  background: #f8fafc;
}

.company-compliance-emissions-table .status-pill {
  font-size: 9px;
  font-weight: 650;
}

.company-compliance-emissions-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-emissions-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

@media (max-width: 700px) {
  .company-compliance-emissions-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-compliance-emissions-theme .company-period-filter select {
    width: 100%;
  }
}

.company-compliance-positions-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-positions-theme .page-heading {
  margin-bottom: 14px;
}

.company-compliance-positions-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-compliance-positions-theme .page-heading p {
  color: #64748b;
  max-width: 620px;
  font-size: 10px;
  line-height: 1.55;
}

.company-compliance-positions-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-compliance-positions-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-positions-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-compliance-position-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 13px;
}

.company-compliance-position-metrics .dashboard-metric {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 6px;
  min-width: 0;
  min-height: 90px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-position-metrics .dashboard-metric > span {
  color: #64748b;
  letter-spacing: .04em;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
}

.company-compliance-position-metrics .dashboard-metric > strong {
  color: #0f172a;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  margin-top: 2px;
  font-family: JetBrains Mono, monospace;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.company-compliance-position-metrics .dashboard-metric > strong small {
  color: #64748b;
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.company-compliance-positions-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-positions-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.company-compliance-positions-table .table-toolbar input, .company-compliance-positions-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-positions-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-positions-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.company-compliance-positions-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-compliance-positions-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.company-compliance-positions-table tbody tr:hover {
  background: #f8fafc;
}

.company-compliance-positions-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.company-compliance-positions-table .row-actions > button {
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.company-compliance-positions-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-positions-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

@media (max-width: 700px) {
  .company-compliance-positions-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-compliance-positions-theme .company-period-filter select {
    width: 100%;
  }

  .company-compliance-position-metrics {
    gap: 8px;
  }

  .company-compliance-position-metrics .dashboard-metric {
    min-height: 80px;
    padding: 11px;
  }

  .company-compliance-position-metrics .dashboard-metric > strong {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .company-compliance-position-metrics {
    grid-template-columns: 1fr;
  }
}

.company-compliance-batches-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-batches-theme .page-heading {
  margin-bottom: 14px;
}

.company-compliance-batches-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-compliance-batches-theme .page-heading p {
  color: #64748b;
  max-width: 620px;
  font-size: 10px;
  line-height: 1.55;
}

.company-compliance-batches-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-compliance-batches-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-batches-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-compliance-batches-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-batches-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.company-compliance-batches-table .table-toolbar input, .company-compliance-batches-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-batches-table table {
  min-width: 900px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-batches-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.company-compliance-batches-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-compliance-batches-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.company-compliance-batches-table tbody td:nth-child(n+4) {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.company-compliance-batches-table tbody tr:hover {
  background: #f8fafc;
}

.company-compliance-batches-table .status-pill {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

.company-compliance-batches-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-batches-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

@media (max-width: 700px) {
  .company-compliance-batches-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-compliance-batches-theme .company-period-filter select {
    width: 100%;
  }
}

.company-compliance-surrender-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-surrender-theme .page-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.company-compliance-surrender-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-compliance-surrender-theme .page-heading p {
  color: #64748b;
  max-width: 620px;
  font-size: 10px;
  line-height: 1.55;
}

.company-compliance-surrender-theme .page-heading > button {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-surrender-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-compliance-surrender-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-compliance-surrender-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-compliance-surrender-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-compliance-surrender-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.company-compliance-surrender-table .table-toolbar input, .company-compliance-surrender-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-surrender-table table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-compliance-surrender-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.company-compliance-surrender-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-compliance-surrender-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.company-compliance-surrender-table tbody tr:hover {
  background: #f8fafc;
}

.company-compliance-surrender-table .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.company-compliance-surrender-table .row-actions > button {
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.company-compliance-surrender-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-compliance-surrender-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

.company-surrender-modal {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: min(520px, 100vw - 28px);
  max-height: calc(100dvh - 32px);
  font-family: Plus Jakarta Sans, sans-serif;
  overflow: auto;
  box-shadow: 0 22px 60px #0f172a33;
}

.company-surrender-modal .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.company-surrender-modal .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.company-surrender-modal .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
}

.company-surrender-modal .record-modal-body > label {
  color: var(--text);
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

.company-surrender-modal .record-modal-body input, .company-surrender-modal .record-modal-body select, .company-surrender-modal .record-modal-body textarea {
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-surrender-modal .modal-actions {
  gap: 7px;
  padding-top: 4px;
}

.company-surrender-modal .modal-actions .primary-button, .company-surrender-modal .modal-actions .outline-button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .company-compliance-surrender-theme .page-heading {
    flex-direction: column;
  }

  .company-compliance-surrender-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-compliance-surrender-theme .company-period-filter select {
    width: 100%;
  }
}

.company-accounts-theme {
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-accounts-theme .page-heading {
  margin-bottom: 14px;
}

.company-accounts-theme .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.company-accounts-theme .page-heading p {
  color: #64748b;
  max-width: 620px;
  font-size: 10px;
  line-height: 1.55;
}

.company-accounts-theme .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-accounts-theme .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.company-accounts-theme .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-accounts-theme .company-account-facility-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

.company-accounts-theme .company-account-facility-filter > label {
  color: #64748b;
  flex: none;
  font-size: 10px;
  font-weight: 700;
}

.company-accounts-theme .company-account-facility-filter .searchable-select {
  flex: 1;
}

.company-accounts-theme .company-account-facility-filter .searchable-select-trigger {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  padding: 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-accounts-theme .company-account-facility-filter .searchable-select-menu {
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.company-accounts-tabs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 5px;
  margin: 0 0 12px;
  padding: 4px;
}

.company-accounts-tabs button {
  border-radius: 7px;
  min-height: 35px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.company-accounts-tabs button.selected {
  background: #16834b;
  border-color: #16834b;
  box-shadow: 0 1px 3px #0f502d29;
}

.company-accounts-theme .trial-balance-summary {
  gap: 9px;
  margin: 0 0 12px;
}

.company-accounts-theme .trial-balance-summary article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 5px;
  min-height: 72px;
  padding: 11px 13px;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-accounts-theme .trial-balance-summary article > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.company-accounts-theme .trial-balance-summary article > strong {
  color: #0f172a;
  font-family: JetBrains Mono, monospace;
  font-size: 15px;
  font-weight: 700;
}

.company-accounts-theme .trial-balance-summary article > strong small {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
}

.company-accounts-table {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

.company-accounts-table .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

.company-accounts-table .table-toolbar input, .company-accounts-table .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-accounts-table table {
  min-width: 850px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-accounts-table thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.company-accounts-table thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.company-accounts-table tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.company-accounts-table tbody tr:hover {
  background: #f8fafc;
}

.company-accounts-table .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-accounts-table .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

@media (max-width: 700px) {
  .company-accounts-theme .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-accounts-theme .company-period-filter select {
    width: 100%;
  }

  .company-accounts-theme .company-account-facility-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .company-accounts-tabs {
    scrollbar-width: thin;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .company-accounts-tabs button {
    flex: none;
  }

  .company-accounts-theme .trial-balance-summary {
    grid-template-columns: 1fr;
  }
}

.market-company-workspace {
  font-family: Plus Jakarta Sans, sans-serif;
}

.market-company-workspace .page-heading {
  margin-bottom: 14px;
}

.market-company-workspace .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

.market-company-workspace .page-heading p {
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.market-company-workspace .stat-grid, .market-company-workspace .sell-kpis {
  gap: 9px;
}

.market-company-workspace .stat-card {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-workspace .stat-card > small {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.market-company-workspace .stat-card > strong {
  color: #0f172a;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.market-company-workspace .stat-card > strong small {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
  font-weight: 500;
}

.market-company-workspace .market-panel {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-workspace .market-panel h2 {
  color: #1e293b;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 750;
}

.market-company-workspace .market-panel > p {
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.market-company-workspace :is(.primary-button, .secondary-button, .outline-button) {
  min-height: 33px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.market-company-workspace .market-quick-links {
  gap: 7px;
  margin: 12px 0;
}

.market-company-workspace .market-quick-links > button {
  background: var(--surface);
  color: #334155;
  border: 1px solid #dbe3e9;
  min-height: 32px;
  padding: 6px 10px;
}

.market-company-workspace .market-quick-links > button:hover:not(:disabled) {
  color: #176b43;
  background: #f3faf6;
  border-color: #9fcab0;
}

.market-company-workspace .market-toolbar {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  justify-content: flex-start;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 11px;
}

.market-company-workspace .market-toolbar label {
  color: #64748b;
  gap: 4px;
  min-width: 150px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.market-company-workspace .market-toolbar select {
  box-sizing: border-box;
  border-color: #dbe3e9;
  border-radius: 7px;
  min-width: 0;
  min-height: 33px;
  padding: 6px 27px 6px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.market-company-workspace .market-tabs:not(.company-trade-tabs) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 5px;
  margin: 11px 0;
  padding: 4px;
}

.market-company-workspace .market-tabs:not(.company-trade-tabs) button {
  border-radius: 7px;
  min-height: 34px;
  padding: 6px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.market-company-workspace .market-tabs:not(.company-trade-tabs) button.active {
  color: #fff;
  background: #16834b;
  border-color: #16834b;
  box-shadow: 0 1px 3px #0f502d29;
}

.market-company-workspace .market-tabs:not(.company-trade-tabs) button:not(.active):hover {
  color: #176b43;
  background: #fff;
  border-color: #cbd5e1;
}

.market-company-workspace .market-panel[style] {
  margin-top: 12px !important;
}

.market-company-workspace .market-panel .table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.market-company-workspace .market-panel table {
  min-width: 700px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.market-company-workspace .market-panel thead th {
  color: #64748b;
  letter-spacing: .035em;
  background: #f8fafc;
  height: 36px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.market-company-workspace .market-panel tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 40px;
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.4;
}

.market-company-workspace .market-panel tbody tr:hover {
  background: #f8fafc;
}

.market-company-workspace .market-panel .table-toolbar {
  gap: 8px;
  padding: 9px 10px;
}

.market-company-workspace .market-panel .table-toolbar input, .market-company-workspace .market-panel .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 6px;
  min-height: 30px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.market-company-workspace .market-panel .table-footer {
  border-color: #e2e8f0;
  min-height: 40px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.market-company-workspace .market-panel .pagination button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 9px;
}

.market-company-workspace .market-panel .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

.market-company-workspace .market-panel .row-actions > :is(button, a) {
  border-radius: 6px;
  min-height: 28px;
  padding: 4px 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.market-company-workspace .market-panel .icon-action {
  width: 29px;
  min-width: 29px;
  height: 29px;
  padding: 0;
}

.market-company-workspace .market-quick-links + .panel {
  margin-top: 12px;
}

.market-company-workspace .vintage-book-page, .market-company-workspace .company-vintage-book {
  gap: 10px;
}

.market-company-workspace .vintage-book-card {
  background: var(--surface);
  border-color: #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-workspace .vintage-book-metrics article {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.market-company-workspace .company-trade-book .vintage-book-metrics article {
  border-top-color: #e2e8f0;
}

.market-company-workspace .vintage-match-strip article {
  border-color: #e2e8f0;
}

.market-company-workspace .market-price-header h2 {
  font-size: 14px;
}

.market-company-workspace .market-chart-modes button {
  border-radius: 6px;
  min-height: 30px;
  padding: 5px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.market-company-trade .company-trade-overview > .sell-kpis .stat-card {
  border-left: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .market-company-workspace .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-company-workspace .market-toolbar {
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .market-company-workspace .market-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .market-company-workspace .market-toolbar label {
    width: 100%;
    min-width: 0;
  }

  .market-company-workspace .market-toolbar select {
    width: 100%;
  }

  .market-company-workspace .market-quick-links > button {
    flex: 135px;
  }

  .market-company-workspace .market-panel {
    padding: 11px;
  }

  .market-company-workspace .market-panel .table-wrap {
    border-radius: 7px;
  }
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) {
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .page-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .page-heading h1 {
  color: #102a1c;
  letter-spacing: -.035em;
  font-size: 22px;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .page-heading p {
  color: #64748b;
  max-width: 640px;
  font-size: 10px;
  line-height: 1.55;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .company-period-filter {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  display: flex;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .company-period-filter label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

:is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .company-period-filter select {
  background: var(--surface);
  min-width: 190px;
  min-height: 32px;
  color: var(--text);
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  padding: 5px 28px 5px 9px;
  font: 500 11px Plus Jakarta Sans, sans-serif;
}

.part2-admin-surrender-actions, .part2-admin-accounts-actions {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  gap: 7px;
  max-width: 540px;
  display: flex;
}

.part2-admin-surrender-actions > button, .part2-admin-accounts-actions > button {
  white-space: normal;
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.part2-admin-surrender-actions > .outline-button {
  background: var(--surface);
  color: #176b43;
  border-color: #d6e3dc;
}

.part2-admin-surrender-actions > .primary-button, .part2-admin-accounts-actions > .primary-button {
  background: #16834b;
  border-color: #16834b;
}

.part2-admin-accounts-actions .ledger-launch-button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 10px;
}

.part2-admin-surrender-actions > button:disabled, .part2-admin-accounts-actions > button:disabled {
  opacity: .48;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a09;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .table-toolbar {
  border-bottom: 1px solid #e2e8f0;
  gap: 9px;
  padding: 11px 13px;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .table-toolbar input, :is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .table-toolbar select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 32px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) table {
  min-width: 760px;
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) thead th {
  color: #64748b;
  letter-spacing: .045em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) thead .th-sort {
  letter-spacing: 0;
  text-transform: none;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) tbody td {
  color: #334155;
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) tbody tr:hover {
  background: #f8fafc;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .row-actions > button {
  white-space: normal;
  min-height: 28px;
  box-shadow: none;
  border-radius: 6px;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .status-pill {
  font-size: 9px;
  font-weight: 650;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .table-footer {
  border-color: #e2e8f0;
  min-height: 44px;
  padding: 8px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

:is(.part2-admin-surrender-table, .part2-admin-close-table, .part2-admin-accounts-table) .pagination .outline-button {
  min-height: 29px;
  font-size: 10px;
}

.part2-admin-accounts-theme .dashboard-metric {
  border-left: 1px solid #e2e8f0;
}

.part2-admin-accounts-tabs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 5px;
  margin: 0 0 12px;
  padding: 4px;
}

.part2-admin-accounts-tabs button {
  border-radius: 7px;
  min-height: 35px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.part2-admin-accounts-tabs button.selected {
  background: #16834b;
  border-color: #16834b;
  box-shadow: 0 1px 3px #0f502d29;
}

.part2-admin-accounts-theme .account-trial-filters {
  gap: 9px;
  margin-bottom: 12px;
}

.part2-admin-accounts-theme .account-trial-filters label {
  color: #64748b;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
}

.part2-admin-accounts-theme .account-trial-filters select {
  border-color: #dbe3e9;
  border-radius: 7px;
  min-height: 33px;
  padding: 6px 28px 6px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part2-admin-accounts-theme .trial-balance-summary {
  gap: 9px;
  margin-bottom: 12px;
}

.part2-admin-accounts-theme .trial-balance-summary article {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 5px;
  min-height: 72px;
  padding: 11px 13px;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-admin-accounts-theme .trial-balance-summary article > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.part2-admin-accounts-theme .trial-balance-summary article > strong {
  color: #0f172a;
  font-family: JetBrains Mono, monospace;
  font-size: 15px;
  font-weight: 700;
}

.part2-admin-accounts-theme .trial-balance-summary article > strong small {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
}

.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop > .record-modal {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-header {
  background: var(--surface);
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

:is(.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-body input, .portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-body select, .portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .record-modal-body textarea) {
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

:is(.portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .modal-actions .primary-button, .portal-frame:has(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) > .modal-backdrop .modal-actions .outline-button) {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  :is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .page-heading {
    flex-direction: column;
  }

  .part2-admin-surrender-actions, .part2-admin-accounts-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 700px) {
  :is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .company-period-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  :is(.part2-admin-surrender-theme, .part2-admin-close-theme, .part2-admin-accounts-theme) .company-period-filter select {
    width: 100%;
  }

  .part2-admin-surrender-actions, .part2-admin-accounts-actions {
    grid-template-columns: 1fr;
    width: 100%;
    display: grid;
  }

  .part2-admin-surrender-actions > button, .part2-admin-accounts-actions > button {
    width: 100%;
    min-height: 35px;
  }

  .part2-admin-accounts-tabs {
    scrollbar-width: thin;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .part2-admin-accounts-tabs button {
    flex: none;
  }

  .part2-admin-accounts-theme .account-trial-filters, .part2-admin-accounts-theme .trial-balance-summary {
    grid-template-columns: 1fr;
  }
}

.part3-admin-market-theme, .market-admin-workspace {
  color: var(--text);
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .page-heading {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .page-heading h1 {
  letter-spacing: -.035em;
  font-size: 23px;
  font-weight: 750;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .page-heading p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .stat-grid {
  gap: 12px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .stat-card {
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-height: 90px;
  padding: 15px 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .stat-card > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .stat-card > strong {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .panel, :is(.part3-admin-market-theme, .market-admin-workspace) .part3-chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 1px 2px #0f172a09;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .panel {
  padding: 15px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .panel h2, :is(.part3-admin-market-theme, .market-admin-workspace) .part3-chart-card h2 {
  color: var(--text);
  letter-spacing: -.015em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-weight: 700;
  font-size: 13px !important;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .toolbar, :is(.part3-admin-market-theme, .market-admin-workspace) .market-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 9px;
  margin: 0 0 13px;
  display: flex;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .toolbar label, :is(.part3-admin-market-theme, .market-admin-workspace) .market-toolbar label, :is(.part3-admin-market-theme, .market-admin-workspace) .filter-control {
  color: var(--muted);
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .toolbar input, :is(.part3-admin-market-theme, .market-admin-workspace) .toolbar select, :is(.part3-admin-market-theme, .market-admin-workspace) .market-toolbar input, :is(.part3-admin-market-theme, .market-admin-workspace) .market-toolbar select, :is(.part3-admin-market-theme, .market-admin-workspace) .filter-control select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 34px;
  color: var(--text);
  border-radius: 7px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .primary-button, :is(.part3-admin-market-theme, .market-admin-workspace) .outline-button, :is(.part3-admin-market-theme, .market-admin-workspace) .secondary-button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .market-tabs {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 9px;
  gap: 5px;
  padding: 4px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .market-tabs button {
  border-radius: 6px;
  min-height: 34px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .market-tabs button.active {
  background: #16834b;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .table-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .part3-participants-panel {
  min-width: 0;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .part3-participants-panel .table-wrap {
  overscroll-behavior-inline: contain;
  width: 100%;
  max-width: 100%;
  overflow: auto hidden;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .part3-participants-panel .table-wrap table {
  min-width: 1050px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) table {
  font-family: Plus Jakarta Sans, sans-serif;
}

:is(.part3-admin-market-theme, .market-admin-workspace) thead th {
  color: #64748b;
  letter-spacing: .04em;
  background: #f8fafc;
  height: 38px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

:is(.part3-admin-market-theme, .market-admin-workspace) tbody td {
  border-color: var(--line);
  color: var(--text);
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.45;
}

:is(.part3-admin-market-theme, .market-admin-workspace) tbody tr:hover {
  background: #f8fafc;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .row-actions {
  flex-wrap: wrap;
  gap: 5px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .row-actions button {
  white-space: normal;
  min-height: 27px;
  box-shadow: none;
  padding: 0 8px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  line-height: 1.25;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .status-pill {
  font-size: 9px;
}

:is(.part3-admin-market-theme, .market-admin-workspace) .market-session-banner {
  border-radius: 10px;
}

.part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics .dashboard-metric {
  border-left: 1px solid #e2e8f0;
  border-radius: 9px;
  gap: 8px;
  min-height: 94px;
  padding: 14px 50px 13px 15px;
  box-shadow: 0 1px 2px #0f172a09;
}

.part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics .dashboard-metric > span {
  color: #64748b;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics .dashboard-metric > strong {
  color: #0f172a;
  letter-spacing: -.025em;
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics .dashboard-metric > small {
  color: #64748b;
  margin-top: -3px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.part2-admin-accounts-table .journal-numeric, .company-accounts-table .journal-numeric, .ledger-modal .journal-numeric {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
}

.datatable-number-cell {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.emission-history-table .emission-history-number {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
}

.part3-admin-sessions-theme .page-heading {
  margin-bottom: 18px;
}

.part3-admin-sessions-theme .part3-session-toolbar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  align-items: flex-end;
  margin: 0 0 12px;
  padding: 12px;
}

.part3-admin-sessions-theme .part3-session-toolbar select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 190px;
  min-height: 34px;
  color: var(--text);
  border-radius: 7px;
  padding: 7px 30px 7px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.part3-admin-sessions-theme .part3-session-toolbar .secondary-button {
  color: #176b43;
  min-height: 34px;
  box-shadow: none;
  background: #fff;
  border: 1px solid #d6e3dc;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop > .record-modal {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: min(480px, 100vw - 32px);
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 22px 60px #0f172a33;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-header {
  border-color: #e2e8f0;
  min-height: 56px;
  padding: 13px 16px;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-header h2 {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-body {
  gap: 11px;
  padding: 15px 16px 16px;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-body > label {
  color: var(--text);
  gap: 5px;
  font-size: 10px;
  font-weight: 650;
}

:is(.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-body input, .portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .record-modal-body select) {
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  min-height: 36px;
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.portal-frame:has(.part3-admin-sessions-theme) > .modal-backdrop .modal-actions button {
  min-height: 34px;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

@media (max-width: 760px) {
  :is(.part3-admin-market-theme, .market-admin-workspace) .page-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .part3-admin-market-theme .toolbar, .market-admin-workspace .market-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .part3-admin-market-theme .toolbar > *, .market-admin-workspace .market-toolbar > * {
    width: 100%;
  }

  .part3-admin-market-theme .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .part3-admin-sessions-theme .part3-session-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .part3-admin-sessions-theme .part3-session-toolbar > * {
    width: 100%;
  }

  .part3-admin-sessions-theme .part3-session-toolbar select {
    min-width: 0;
  }

  .part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .part2-admin-accounts-theme .account-report-tabs + .dashboard-metrics .dashboard-metric {
    min-height: 78px;
  }
}

.master-data-workspace, .master-data-workspace .topbar {
  font-family: Plus Jakarta Sans, sans-serif;
}

.master-data-workspace .content-wrap {
  padding-top: 30px;
}

.master-data-workspace .page-heading {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.master-data-workspace .page-heading h1 {
  letter-spacing: -.035em;
  margin: 6px 0 5px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.master-data-workspace .page-heading p {
  max-width: 680px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.master-data-workspace .eyebrow {
  letter-spacing: .13em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.master-data-workspace .heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.master-data-workspace .primary-button, .master-data-workspace .outline-button, .master-data-workspace .secondary-button {
  min-height: 35px;
  box-shadow: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.master-data-workspace .stat-strip {
  border-radius: 9px;
  min-height: 68px;
  margin-bottom: 13px;
  padding: 11px 15px;
  box-shadow: 0 1px 2px #0f172a09;
}

.master-data-workspace .stat-icon {
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.master-data-workspace .stat-strip small {
  margin-bottom: 3px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 650;
}

.master-data-workspace .stat-strip strong {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.master-data-workspace .stat-strip em {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.master-data-workspace .facility-subsector-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  margin: 0 0 13px;
  padding: 13px;
}

.master-data-workspace .facility-subsector-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 1px 10px;
  display: flex;
}

.master-data-workspace .facility-subsector-heading h2 {
  color: var(--text);
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.master-data-workspace .facility-subsector-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.master-data-workspace .facility-subsector-cards {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 9px;
  display: grid;
}

.master-data-workspace .facility-subsector-card {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 67px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  grid-template-rows: auto auto;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  padding: 9px 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  display: grid;
}

.master-data-workspace .facility-subsector-card:hover, .master-data-workspace .facility-subsector-card.is-selected {
  background: #f2faf5;
  border-color: #16804a;
  box-shadow: 0 0 0 2px #16804a14;
}

.master-data-workspace .facility-subsector-icon {
  color: #16804a;
  background: #e8f4ed;
  border-radius: 8px;
  grid-row: 1 / 3;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 14px;
  display: grid;
}

.master-data-workspace .facility-subsector-icon.tone-1 {
  color: #5268b8;
  background: #edf1fc;
}

.master-data-workspace .facility-subsector-icon.tone-2 {
  color: #c27a24;
  background: #fff4e8;
}

.master-data-workspace .facility-subsector-icon.tone-3 {
  color: #9361a5;
  background: #f5edf8;
}

.master-data-workspace .facility-subsector-copy {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.master-data-workspace .facility-subsector-copy small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  overflow: hidden;
}

.master-data-workspace .facility-subsector-copy strong {
  color: var(--text);
  font-family: JetBrains Mono, monospace;
  font-size: 17px;
  font-weight: 750;
}

.master-data-workspace .facility-subsector-caption {
  color: var(--muted);
  font-size: 8px;
}

.master-data-workspace .source-badge {
  padding: 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 8px;
}

.master-data-workspace .data-card {
  border-radius: 9px;
  box-shadow: 0 1px 2px #0f172a09;
}

.master-data-workspace .toolbar {
  gap: 9px;
  min-height: 58px;
  padding: 10px 13px;
}

.master-data-workspace .search-box {
  background: var(--surface);
  border-radius: 7px;
  width: min(390px, 38vw);
  height: 36px;
}

.master-data-workspace .search-box input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.master-data-workspace .search-box button {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.master-data-workspace .filter-control {
  gap: 6px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.master-data-workspace .filter-control select, .master-data-workspace .pagination select {
  border-radius: 7px;
  min-height: 35px;
  padding: 7px 27px 7px 9px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.master-data-workspace .direction-button {
  border-radius: 7px;
  width: 34px;
  height: 34px;
}

.master-data-workspace .table-wrap {
  min-height: 240px;
}

.master-data-workspace table {
  font-family: Plus Jakarta Sans, sans-serif;
}

.master-data-workspace thead {
  background: var(--surface-soft);
}

.master-data-workspace th {
  letter-spacing: .055em;
  height: 39px;
  padding: 0 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 750;
}

.master-data-workspace td {
  height: 49px;
  padding: 7px 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.master-data-workspace td.primary-cell {
  color: var(--text);
  font-weight: 700;
}

.master-data-workspace td.master-number-cell {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
}

.master-data-workspace td.row-number {
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
  font-weight: 700;
}

.master-data-workspace .status-pill {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.master-data-workspace .icon-action {
  border-radius: 7px;
  width: 30px;
  height: 30px;
}

.master-data-workspace .row-actions {
  gap: 5px;
}

.master-data-workspace .table-footer {
  min-height: 54px;
  padding: 9px 13px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.master-data-workspace .table-footer b, .master-data-workspace .page-number b {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 700;
}

.master-data-workspace .pagination {
  gap: 7px;
}

.master-data-workspace .pagination .outline-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 9px;
}

.master-data-portal .record-modal {
  border-radius: 11px;
  font-family: Plus Jakarta Sans, sans-serif;
  box-shadow: 0 20px 60px #0f172a2e;
}

.master-data-portal .record-modal-header, .master-data-portal .record-modal-footer {
  padding: 13px 17px;
}

.master-data-portal .record-modal-header h2 {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.master-data-portal .record-modal-header p {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  line-height: 1.5;
}

.master-data-portal .record-modal-body {
  gap: 11px;
  padding: 16px 17px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.master-data-portal .record-modal-body > label {
  gap: 5px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.master-data-portal .record-modal-body input:not([type="checkbox"]), .master-data-portal .record-modal-body select, .master-data-portal .record-modal-body textarea {
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.master-data-portal .record-modal-footer .primary-button, .master-data-portal .record-modal-footer .outline-button, .master-data-portal .modal-actions .primary-button, .master-data-portal .modal-actions .outline-button {
  min-height: 34px;
  padding: 7px 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.master-data-portal .detail-field small {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 9px;
}

.master-data-portal .detail-field strong {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.master-data-portal .master-number-cell {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .master-data-workspace .content-wrap {
    padding: 22px 18px 32px;
  }

  .master-data-workspace .page-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .master-data-workspace .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .master-data-workspace .toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .master-data-workspace .search-box {
    width: 100%;
    max-width: none;
  }

  .master-data-workspace .filter-control {
    flex: 180px;
    justify-content: space-between;
  }

  .master-data-workspace .filter-control select {
    flex: 1;
    min-width: 0;
  }

  .master-data-workspace .source-badge {
    display: none;
  }

  .master-data-workspace .table-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .master-data-workspace .pagination {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .master-data-workspace .content-wrap {
    padding-left: 13px;
    padding-right: 13px;
  }

  .master-data-workspace .stat-strip {
    min-height: 60px;
    padding: 9px 11px;
  }

  .master-data-workspace .toolbar .filter-control {
    flex-basis: 100%;
  }

  .master-data-workspace .pagination label {
    justify-content: space-between;
    width: 100%;
  }

  .master-data-portal .record-modal {
    width: calc(100vw - 24px);
    max-height: 92vh;
  }
}

.content-wrap .page-heading h1 {
  letter-spacing: -.035em;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.part3-admin-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.part3-admin-chart-grid .part3-chart-card {
  flex-direction: column;
  min-height: 315px;
  padding: 17px 18px 14px;
  display: flex;
}

.part3-admin-chart-grid .part3-chart-card h2 {
  min-height: 22px;
  margin-bottom: 8px;
  font-size: 13px !important;
}

.part3-admin-chart-grid .part3-chart {
  flex: 1;
  height: 250px;
  min-height: 250px;
}

.part3-admin-chart-grid .part3-chart-empty-state {
  height: 100%;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
  place-items: center;
  padding: 24px;
  font-size: 11px;
  display: grid;
}

.part3-admin-chart-grid > .part3-chart-card:first-child h2:before {
  content: "⇄";
}

.part3-admin-chart-grid > .part3-chart-card:nth-child(2) h2:before {
  content: "◷";
}

.part3-admin-chart-grid > .part3-chart-card:nth-child(3) h2:before {
  content: "▤";
}

.part3-admin-chart-grid > .part3-chart-card:nth-child(4) h2:before {
  content: "↗";
}

.market-company-trade .company-trade-positions, .market-company-trade .company-trade-positions-bottom {
  display: none !important;
}

.market-company-workspace .cash-account-panel > .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.market-company-workspace .cash-account-panel > .stat-grid > .stat-card {
  min-width: 0;
  min-height: 96px;
  padding: 14px 48px 14px 16px;
}

.market-company-workspace .cash-account-panel > .stat-grid > .stat-card > strong {
  letter-spacing: -.04em;
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(12px, 1.2vw, 17px);
  line-height: 1.35;
}

@media (max-width: 520px) {
  .market-company-workspace .cash-account-panel > .stat-grid {
    grid-template-columns: 1fr;
  }
}

.market-admin-workspace .market-order-filters {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 15px;
  display: grid;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-admin-workspace .market-order-filters > label {
  color: #64748b;
  gap: 5px;
  min-width: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  display: grid;
}

.market-admin-workspace .market-order-filters select {
  background: var(--surface);
  color: #1e293b;
  border: 1px solid #dbe3e9;
  border-radius: 7px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 28px 7px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 550;
}

.market-admin-workspace .market-order-filters select:focus {
  border-color: #16834b;
  outline: 3px solid #16834b1f;
}

.sidebar-user-copy {
  flex: auto;
}

.sidebar-user-copy strong {
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

@media (max-width: 1050px) {
  .market-admin-workspace .market-order-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-admin-workspace .market-order-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
  }
}

@media (max-width: 480px) {
  .market-admin-workspace .market-order-filters {
    grid-template-columns: 1fr;
  }
}

.market-company-trade .company-my-orders {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.market-company-workspace .market-dashboard-quick-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
  margin: 14px 0 16px;
  display: grid;
}

.market-company-workspace .market-dashboard-quick-links > button {
  background: var(--surface);
  color: #334155;
  text-align: center;
  white-space: normal;
  border: 1px solid #dbe3e9;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  box-shadow: 0 1px 2px #0f172a09;
}

.market-company-workspace .market-dashboard-quick-links > button:hover:not(:disabled) {
  color: #176b43;
  background: #f3faf6;
  border-color: #9fcab0;
}

@media (max-width: 1100px) {
  .market-company-workspace .market-dashboard-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .market-company-workspace .market-dashboard-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .market-company-workspace .market-dashboard-quick-links > button {
    min-height: 40px;
    padding: 7px;
  }

  .part3-admin-chart-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .part3-admin-chart-grid .part3-chart-card {
    min-height: 280px;
    padding: 14px;
  }

  .part3-admin-chart-grid .part3-chart {
    height: 225px;
    min-height: 225px;
  }
}

.primary-button .button-spinner, .outline-button .button-spinner {
  vertical-align: -2px;
  border-color: #0000 currentColor currentColor;
  flex: none;
  width: 13px;
  height: 13px;
}

.intensity-subsector-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  margin: 0 0 14px;
  padding: 15px 17px 12px;
}

.intensity-summary-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  display: flex;
}

.intensity-summary-heading h2 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.intensity-summary-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.intensity-summary-table-wrap {
  overflow-x: auto;
}

.intensity-summary-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 11px;
}

.intensity-summary-table-wrap th, .intensity-summary-table-wrap td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  padding: 9px 10px;
}

.intensity-summary-table-wrap thead th {
  color: var(--muted);
  letter-spacing: .045em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.intensity-summary-table-wrap tbody th {
  color: var(--text);
  font-weight: 650;
}

.intensity-summary-table-wrap tbody tr:last-child th, .intensity-summary-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.intensity-mono {
  font-variant-numeric: tabular-nums;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 700;
}

.intensity-balanced {
  color: #13794b;
}

.intensity-unbalanced {
  color: #b45309;
}

.intensity-detail-button {
  white-space: nowrap;
  min-height: 29px;
  padding: 0 8px;
  font-size: 10px;
}

.intensity-calculation-modal {
  width: min(980px, 96vw);
  max-height: min(92vh, 920px);
}

.intensity-calculation-modal .record-modal-header {
  align-items: center;
}

.intensity-calculation-modal .record-modal-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.intensity-calculation-modal .record-modal-body {
  gap: 13px;
  min-height: 0;
  padding: 16px 18px 18px;
}

.intensity-calculation-context {
  border-bottom: 1px solid var(--line);
  gap: 3px;
  padding-bottom: 10px;
  display: grid;
}

.intensity-calculation-context strong {
  color: var(--text);
  font-size: 13px;
}

.intensity-calculation-context span {
  color: var(--text);
  font-size: 12px;
}

.intensity-calculation-context small, .intensity-calculation-modal .field-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.intensity-run-select {
  max-width: 430px;
  color: var(--text);
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  display: grid;
}

.intensity-run-select select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 36px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
}

.intensity-run-meta {
  border-left: 2px solid var(--green);
  background: var(--surface-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 11px 12px;
  display: grid;
}

.intensity-run-meta span, .intensity-rounding-grid span, .intensity-excel-value span {
  color: var(--muted);
  align-content: start;
  gap: 5px;
  font-size: 10px;
  line-height: 1.45;
  display: grid;
}

.intensity-run-meta b, .intensity-rounding-grid b, .intensity-excel-value b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 700;
}

.intensity-detail-section {
  border-top: 1px solid var(--line);
  gap: 9px;
  padding-top: 10px;
  display: grid;
}

.intensity-detail-section h3 {
  color: var(--text);
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

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

.intensity-detail-grid > div {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  min-width: 0;
  padding: 8px 0;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .intensity-detail-grid > div {
    border-bottom: 1px solid color-mix(in srgb,var(--line) 72%,transparent);
  }
}

.intensity-detail-grid dt {
  color: var(--muted);
  font-size: 9px;
}

.intensity-detail-grid dd {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
}

.intensity-formula {
  border-left: 2px solid var(--green);
  gap: 5px;
  padding: 8px 10px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .intensity-formula {
    border-left: 2px solid color-mix(in srgb,var(--green) 58%,var(--line));
  }
}

.intensity-formula {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.intensity-formula b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 700;
}

.intensity-rounding-grid, .intensity-excel-value {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 2px;
  display: grid;
}

.intensity-excel-value {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intensity-run-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-size: 10px;
  display: flex;
}

.intensity-run-footer .outline-button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 10px;
}

.intensity-error {
  color: #991b1b;
  background: #fff7f7;
  border-left: 2px solid #dc2626;
  padding: 10px 12px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .intensity-run-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .intensity-run-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .intensity-calculation-modal .record-modal-body {
    padding: 13px;
  }

  .intensity-detail-grid, .intensity-rounding-grid, .intensity-excel-value {
    grid-template-columns: 1fr;
  }
}

.intensity-window-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 10px;
  margin: 14px 0;
  padding: 14px 16px;
  display: grid;
}

.intensity-window-panel > header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.intensity-window-panel h2, .intensity-history-preview h3, .intensity-submission-review h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.intensity-window-panel p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}

.intensity-window-row {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  display: grid;
}

.intensity-window-row > div {
  gap: 3px;
  display: grid;
}

.intensity-window-row small {
  color: var(--muted);
  font-size: 11px;
}

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

.intensity-input-grid label em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.intensity-history-preview, .intensity-submission-review {
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 9px;
  padding: 12px;
  display: grid;
}

.intensity-history-preview p, .intensity-history-preview > small, .intensity-submission-review > small {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.intensity-history-preview .table-scroll {
  max-width: 100%;
  overflow: auto;
}

.intensity-history-preview table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}

.intensity-history-preview th, .intensity-history-preview td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  padding: 7px 9px;
}

.intensity-data-tabs {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 14px;
  padding: 5px;
  display: grid;
}

.intensity-data-tabs button {
  min-width: 0;
  min-height: 58px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s;
  display: grid;
}

.intensity-data-tabs button:hover {
  background: var(--surface);
}

@supports (color: color-mix(in lab, red, red)) {
  .intensity-data-tabs button:hover {
    background: color-mix(in srgb,var(--surface) 68%,transparent);
  }
}

.intensity-data-tabs button:hover {
  color: var(--text);
}

.intensity-data-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.intensity-data-tabs button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px #0f172a0f;
}

.intensity-tab-index {
  background: var(--green);
  border-radius: 7px;
  place-items: center;
  width: 26px;
  height: 26px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .intensity-tab-index {
    background: color-mix(in srgb,var(--green) 9%,var(--surface));
  }
}

.intensity-tab-index {
  color: var(--green);
  font: 700 10px IBM Plex Mono, monospace;
}

.intensity-tab-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.intensity-tab-copy strong {
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

.intensity-tab-copy small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 500;
  overflow: hidden;
}

.intensity-data-tabs button b {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-width: 22px;
  color: var(--muted);
  text-align: center;
  border-radius: 6px;
  padding: 3px 6px;
  font: 700 10px IBM Plex Mono, monospace;
}

.intensity-data-tabs button b:empty {
  display: none;
}

.intensity-data-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 18px 22px 16px;
  display: flex;
}

.intensity-data-toolbar > div:first-child {
  min-width: 0;
  padding-left: 2px;
}

.intensity-data-toolbar h2 {
  letter-spacing: -.015em;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.35;
}

.intensity-data-toolbar p {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.intensity-data-toolbar .row-actions {
  flex: none;
  align-items: center;
}

.intensity-admin-modal {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
}

.intensity-admin-modal .record-modal-body {
  gap: 13px;
  display: grid;
}

.intensity-admin-form-grid, .intensity-dynamic-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.intensity-admin-form-grid label, .intensity-dynamic-fields label {
  align-content: start;
  gap: 6px;
  display: grid;
}

.intensity-json-input, .intensity-json-preview {
  font-family: IBM Plex Mono, monospace;
  font-size: 12px;
}

.intensity-json-input {
  white-space: pre;
  tab-size: 2;
  min-height: 190px;
}

.intensity-json-preview {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 440px;
  display: block;
  overflow: hidden;
}

.intensity-data-card {
  min-width: 0;
}

.intensity-data-card .table-wrap, .intensity-data-card .datatable-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.intensity-revision-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.intensity-revision-item header {
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.intensity-revision-item header span, .intensity-revision-item small {
  color: var(--muted);
  font-size: 11px;
}

.intensity-revision-item pre {
  background: var(--surface-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 7px;
  max-height: 220px;
  margin: 0;
  padding: 10px;
  font: 11px / 1.5 IBM Plex Mono, monospace;
  overflow: auto;
}

.intensity-governance {
  gap: 15px;
  padding: 18px 22px;
  display: grid;
}

.intensity-governance > p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.intensity-governance .data-table {
  min-width: 720px;
}

.intensity-governance .data-table td small {
  color: var(--muted);
  font-size: 10px;
  display: block;
}

.intensity-governance-form {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.intensity-governance-form h3, .intensity-governance > h3 {
  margin: 0;
  font-size: 14px;
}

.intensity-governance-form > label {
  gap: 6px;
  display: grid;
}

.intensity-governance-form textarea {
  resize: vertical;
  width: 100%;
  font: 12px / 1.5 IBM Plex Mono, monospace;
}

@media (max-width: 700px) {
  .intensity-governance {
    padding: 14px 15px;
  }
}

@media (max-width: 900px) {
  .intensity-data-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .intensity-data-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
  }

  .intensity-data-toolbar > div:first-child {
    padding-left: 0;
  }

  .intensity-data-toolbar > .row-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .intensity-data-toolbar > .primary-button {
    align-self: flex-start;
  }

  .intensity-admin-form-grid, .intensity-dynamic-fields {
    grid-template-columns: 1fr;
  }

  .intensity-data-tabs {
    gap: 4px;
    padding: 4px;
  }

  .intensity-data-tabs button {
    gap: 7px;
    min-height: 54px;
    padding: 8px;
  }

  .intensity-data-tabs button b {
    min-width: 20px;
    padding: 2px 5px;
  }
}

@media (max-width: 390px) {
  .intensity-data-tabs button {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px;
  }

  .intensity-tab-index {
    width: 23px;
    height: 23px;
  }

  .intensity-tab-copy strong {
    font-size: 10px;
  }

  .intensity-tab-copy small {
    font-size: 8px;
  }
}

.intensity-submission-review dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  display: grid;
}

.intensity-submission-review dl > div {
  gap: 2px;
  display: grid;
}

.intensity-submission-review dt {
  color: var(--muted);
  font-size: 10px;
}

.intensity-submission-review dd {
  font-family: var(--font-mono, monospace);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.intensity-submission-review p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.intensity-review-profile-meta {
  background: var(--surface-soft);
  border-radius: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 11px 12px;
  display: grid;
}

.intensity-review-profile-meta span {
  color: var(--muted);
  gap: 3px;
  font-size: 10px;
  display: grid;
}

.intensity-review-profile-meta b {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: 11px;
}

.intensity-submission-review .table-scroll {
  max-width: 100%;
  overflow: auto;
}

.intensity-submission-review table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}

.intensity-submission-review th, .intensity-submission-review td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 8px 9px;
}

.intensity-submission-review td strong, .intensity-submission-review td small {
  display: block;
}

.intensity-submission-review td small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}

.intensity-generating-backdrop {
  z-index: 3000;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #1118277a;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.intensity-generating-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  border-radius: 14px;
  justify-items: center;
  gap: 10px;
  width: min(400px, 92vw);
  padding: 26px 28px;
  display: grid;
  box-shadow: 0 18px 60px #0f172a33;
}

.intensity-generating-panel strong {
  font-size: 15px;
}

.intensity-generating-panel p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.intensity-loading-spinner {
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: .8s linear infinite intensity-spin;
}

@keyframes intensity-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .intensity-window-row {
    grid-template-columns: 1fr auto;
  }

  .intensity-window-row button {
    grid-column: 1 / -1;
  }

  .intensity-input-grid, .intensity-submission-review dl, .intensity-review-profile-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intensity-loading-spinner {
    animation-duration: 1.8s;
  }
}

.intensity-formula-page {
  max-width: 1480px;
}

.intensity-formula-page .page-heading h1 {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 22px;
}

.formula-disclaimer {
  color: #255d3c;
  background: #f0f9f3;
  border: 1px solid #c9e7d5;
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 18px;
  display: flex;
}

.formula-disclaimer > span {
  font-size: 20px;
  line-height: 1;
}

.formula-disclaimer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

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

.formula-profile-card {
  padding: 22px 24px;
}

.formula-profile-heading {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  display: flex;
}

.formula-number {
  color: #167547;
  background: #e7f5eb;
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font: 700 15px Plus Jakarta Sans, sans-serif;
  display: grid;
}

.formula-profile-heading > div:last-child > span, .formula-source > span {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.formula-profile-heading h2 {
  margin: 3px 0;
  font: 700 20px Plus Jakarta Sans, sans-serif;
}

.formula-profile-heading small {
  color: var(--muted);
  font: 600 11px JetBrains Mono, monospace;
}

.formula-detail-section {
  border-bottom: 1px solid var(--line);
  padding: 17px 0 2px;
}

.formula-detail-section h3 {
  margin: 0 0 12px;
  font: 700 14px Plus Jakarta Sans, sans-serif;
}

.formula-detail-row {
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  display: grid;
}

.formula-detail-row > b {
  font-size: 12px;
}

.formula-detail-row p {
  color: var(--muted);
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.formula-math-row p {
  border: 1px solid var(--line);
  background: var(--surface-soft, #f7f9f8);
  color: var(--text);
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 10px 12px;
  font: 600 12px / 1.6 JetBrains Mono, monospace;
}

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

.formula-input-list > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  gap: 4px;
  padding: 11px 12px;
  display: grid;
}

.formula-input-list span {
  font-size: 12px;
  font-weight: 700;
}

.formula-input-list code {
  color: var(--muted);
  font: 11px JetBrains Mono, monospace;
}

.formula-input-list small {
  color: var(--muted);
  font-size: 11px;
}

.formula-source {
  padding-top: 16px;
}

.formula-source p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.formula-loading {
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 760px) {
  .formula-profile-card {
    padding: 17px;
  }

  .formula-detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .formula-input-list {
    grid-template-columns: 1fr 1fr;
  }
}

.allocation-action-buttons {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.formula-link-button {
  white-space: nowrap;
  color: #fff;
  background: #167547;
  border-color: #167547;
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.formula-link-button:hover {
  color: #fff;
  background: #105c37;
  border-color: #105c37;
}

.formula-link-button > span {
  font: 700 15px JetBrains Mono, monospace;
}

.formula-modal-backdrop {
  z-index: 1200;
}

.formula-record-modal {
  width: min(980px, 94vw);
  max-height: min(88vh, 900px);
}

.formula-record-body {
  gap: 12px;
  min-height: 0;
}

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

.formula-modal-content .formula-profile-list {
  gap: 12px;
}

.formula-modal-content .formula-profile-card {
  padding: 15px 17px;
}

.formula-modal-content .formula-profile-heading {
  gap: 10px;
  padding-bottom: 11px;
}

.formula-modal-content .formula-number {
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.formula-modal-content .formula-profile-heading h3 {
  margin: 2px 0;
  font: 700 16px Plus Jakarta Sans, sans-serif;
}

.formula-modal-content .formula-profile-heading small {
  font-size: 10px;
}

.formula-modal-content .formula-detail-section {
  padding: 11px 0 1px;
}

.formula-modal-content .formula-detail-section h4 {
  margin: 0 0 7px;
  font: 700 12px Plus Jakarta Sans, sans-serif;
}

.formula-modal-content .formula-detail-row {
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
}

.formula-modal-content .formula-detail-row > b {
  font-size: 11px;
}

.formula-modal-content .formula-detail-row p {
  font-size: 11px;
  line-height: 1.5;
}

.formula-modal-content .formula-math-row p {
  padding: 8px 10px;
  font-size: 10px;
}

.formula-modal-content .formula-input-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.formula-modal-content .formula-input-list > div {
  gap: 3px;
  padding: 8px 9px;
}

.formula-modal-content .formula-input-list span {
  font-size: 10px;
}

.formula-modal-content .formula-input-list code, .formula-modal-content .formula-input-list small {
  font-size: 9px;
}

.formula-modal-content .formula-source {
  padding-top: 10px;
}

.formula-modal-content .formula-source > span {
  font-size: 9px;
}

.formula-modal-content .formula-source p {
  font-size: 10px;
}

.formula-modal-content .formula-loading {
  padding: 10px;
}

.formula-modal-content .notice {
  margin: 0;
}

@media (max-width: 760px) {
  .allocation-action-buttons {
    flex-wrap: wrap;
  }

  .formula-record-modal {
    width: 96vw;
    max-height: 92vh;
  }

  .formula-modal-content .formula-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .formula-modal-content .formula-input-list {
    grid-template-columns: 1fr 1fr;
  }
}

.company-surrender-modal {
  width: min(900px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.retirement-timeline-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  display: grid;
}

.retirement-timeline-panel .section-title {
  gap: 3px;
  display: grid;
}

.retirement-timeline-panel .section-title h3 {
  color: #0f172a;
  margin: 0;
  font-size: 14px;
}

.retirement-timeline-panel .section-title small {
  color: #64748b;
  font-size: 11px;
}

.retirement-timeline-summary {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  display: grid;
}

.retirement-timeline-summary article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 5px;
  padding: 9px 10px;
  display: grid;
}

.retirement-timeline-summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.retirement-timeline-summary strong {
  color: #0f172a;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
}

.retirement-timeline-list {
  gap: 0;
  max-height: 260px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: grid;
  overflow: auto;
}

.retirement-timeline-list li {
  border-bottom: 1px solid #e8edf3;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  display: grid;
  position: relative;
}

.retirement-timeline-dot {
  z-index: 1;
  background: #fff;
  border: 2px solid #15803d;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  position: relative;
}

.retirement-timeline-list li:not(:last-child) .retirement-timeline-dot:after {
  content: "";
  background: #cbd5e1;
  width: 1px;
  height: 36px;
  position: absolute;
  top: 7px;
  left: 2px;
}

.retirement-timeline-list li > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.retirement-timeline-list li strong {
  color: #1e293b;
  font-size: 11px;
}

.retirement-timeline-list li small {
  color: #64748b;
  font-size: 10px;
}

.retirement-timeline-list li > b {
  color: #0f172a;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 700;
}

.internal-issuance-status {
  color: #245a39;
  background: #f1faf3;
  border: 1px solid #cfe7d6;
  border-radius: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 11px 14px;
  font-size: 11px;
  display: flex;
}

.internal-issuance-status strong {
  color: #17623a;
}

.retirement-admin-timeline-modal {
  width: min(1000px, 94vw);
  max-height: 90vh;
}

.retirement-admin-timeline-modal .record-modal-body {
  min-height: 0;
  overflow: auto;
}

.retirement-admin-timeline-modal h3 {
  margin: 5px 0 0;
  font: 700 13px Plus Jakarta Sans, sans-serif;
}

.retirement-admin-events {
  gap: 0;
  display: grid;
}

.retirement-admin-events article {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  display: grid;
}

.retirement-event-dot {
  background: #16834b;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.retirement-admin-events article > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.retirement-admin-events article strong {
  font-size: 11px;
}

.retirement-admin-events article small {
  color: var(--muted);
  font-size: 9px;
}

.retirement-admin-events article > b {
  white-space: nowrap;
  font: 700 11px IBM Plex Mono, monospace;
}

.retirement-admin-timeline-modal .table-wrap {
  overflow: auto;
}

.retirement-admin-timeline-modal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
}

.retirement-admin-timeline-modal th, .retirement-admin-timeline-modal td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
  padding: 8px;
  font-size: 10px;
}

.retirement-admin-timeline-modal td:not(:first-child) {
  font: 700 10px IBM Plex Mono, monospace;
}

@media (max-width: 620px) {
  .retirement-timeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retirement-timeline-list li {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .retirement-timeline-list li > b {
    grid-column: 2;
  }
}

.searchable-select {
  min-width: 0;
  position: relative;
}

.searchable-select-trigger {
  border: 1px solid var(--line, #d8e1dc);
  background: var(--surface, #fff);
  width: 100%;
  min-height: 42px;
  color: var(--text, #18352a);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  display: flex;
}

.searchable-select-trigger > span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.searchable-select-trigger:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.searchable-select-menu {
  z-index: 80;
  border: 1px solid var(--line, #d8e1dc);
  background: var(--surface, #fff);
  border-radius: 12px;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  box-shadow: 0 12px 32px #102a1d24;
}

.searchable-select-menu input {
  border: 1px solid var(--line, #d8e1dc);
  background: var(--surface, #fff);
  width: 100%;
  min-height: 38px;
  color: var(--text, #18352a);
  font: inherit;
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
}

.searchable-select-options {
  gap: 2px;
  max-height: 240px;
  display: grid;
  overflow: auto;
}

.searchable-select-options button {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
}

.searchable-select-options button:hover, .searchable-select-options button[aria-selected="true"] {
  color: #176b3a;
  background: #e9f4ed;
}

.searchable-select-empty {
  color: var(--muted, #68766d);
  padding: 10px;
  font-size: 13px;
}

.retirement-allocation-lines {
  gap: 10px;
  display: grid;
}

.retirement-allocation-lines > .section-title {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.retirement-allocation-line {
  border: 1px solid var(--line, #d8e1dc);
  background: var(--surface-muted, #f8faf8);
  border-radius: 10px;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  display: grid;
}

@media (max-width: 700px) {
  .retirement-allocation-line {
    grid-template-columns: 1fr;
  }

  .retirement-allocation-line > .quiet-button {
    justify-self: start;
  }
}

.company-surrender-modal .retirement-eligibility-summary {
  border: 1px solid var(--line);
  background: var(--surface-soft, #f8faf8);
  border-radius: 10px;
  gap: 10px;
  margin: 0;
  padding: 13px;
  display: grid;
}

.company-surrender-modal .retirement-eligibility-summary > header {
  gap: 3px;
  display: grid;
}

.company-surrender-modal .retirement-eligibility-summary > header h3 {
  color: var(--text);
  margin: 0;
  font: 700 12px Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-eligibility-summary > header small {
  color: var(--muted);
  font: 400 10px / 1.45 Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-eligibility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.company-surrender-modal .retirement-eligibility-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  align-content: space-between;
  gap: 9px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  display: grid;
}

.company-surrender-modal .retirement-eligibility-grid article > span {
  color: var(--muted);
  font: 600 10px / 1.4 Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-eligibility-grid article > strong {
  color: var(--text);
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font: 700 15px / 1.2 JetBrains Mono, monospace;
  display: flex;
}

.company-surrender-modal .retirement-eligibility-grid article > strong small {
  color: var(--muted);
  font: 600 9px Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-eligibility-grid article.primary {
  background: #f3faf5;
  border-color: #c7e4d0;
}

.company-surrender-modal .retirement-eligibility-grid article.primary > strong {
  color: #176b3a;
}

.company-surrender-modal .retirement-eligibility-grid article.shortage {
  background: #fff9f5;
  border-color: #f2d7c6;
}

.company-surrender-modal .retirement-eligibility-grid article.shortage > strong {
  color: #a64b20;
}

@media (max-width: 640px) {
  .company-surrender-modal .retirement-eligibility-summary {
    padding: 10px;
  }

  .company-surrender-modal .retirement-eligibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-surrender-modal .retirement-eligibility-grid article {
    min-height: 68px;
    padding: 9px;
  }

  .company-surrender-modal .retirement-eligibility-grid article > strong {
    font-size: 13px;
  }
}

.company-retirement-overview {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  display: grid;
}

.company-retirement-overview > header {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.company-retirement-overview > header > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.company-retirement-overview > header h2 {
  color: var(--text);
  margin: 0;
  font: 700 13px Plus Jakarta Sans, sans-serif;
}

.company-retirement-overview > header p {
  color: var(--muted);
  margin: 0;
  font: 400 10px / 1.5 Plus Jakarta Sans, sans-serif;
}

.company-retirement-overview > header > label {
  width: min(360px, 45%);
  color: var(--muted);
  flex: none;
  gap: 4px;
  font: 600 10px Plus Jakarta Sans, sans-serif;
  display: grid;
}

.company-retirement-scroll-area {
  overscroll-behavior: contain;
  scrollbar-color: #a8b9ad transparent;
  scrollbar-width: thin;
  gap: 12px;
  min-height: 110px;
  max-height: 360px;
  padding: 2px 5px 4px 0;
  display: grid;
  overflow-y: auto;
}

.company-retirement-overview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.company-retirement-overview-metrics article {
  border: 1px solid var(--line);
  background: var(--surface-soft, #f8faf8);
  border-radius: 8px;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px;
  display: grid;
}

.company-retirement-overview-metrics article > span {
  color: var(--muted);
  font: 600 10px / 1.4 Plus Jakarta Sans, sans-serif;
}

.company-retirement-overview-metrics article > strong {
  color: var(--text);
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font: 700 14px / 1.2 JetBrains Mono, monospace;
  display: flex;
}

.company-retirement-overview-metrics article > strong small {
  color: var(--muted);
  font: 600 9px Plus Jakarta Sans, sans-serif;
}

.company-retirement-overview-metrics article.primary {
  background: #f3faf5;
  border-color: #c7e4d0;
}

.company-retirement-overview-metrics article.primary > strong {
  color: #176b3a;
}

.company-retirement-overview-metrics article.shortage {
  background: #fff9f5;
  border-color: #f2d7c6;
}

.company-retirement-overview-metrics article.shortage > strong {
  color: #a64b20;
}

.company-retirement-overview-timeline {
  border-top: 1px solid var(--line);
  gap: 7px;
  padding-top: 9px;
  display: grid;
}

.company-retirement-overview-timeline h3 {
  color: var(--text);
  margin: 0;
  font: 700 11px Plus Jakarta Sans, sans-serif;
}

.company-retirement-overview-timeline .retirement-timeline-list {
  max-height: none;
  overflow: visible;
}

@media (max-width: 700px) {
  .company-retirement-overview > header {
    flex-direction: column;
    align-items: stretch;
  }

  .company-retirement-overview > header > label {
    width: 100%;
  }

  .company-retirement-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-retirement-scroll-area {
    max-height: 320px;
  }
}

.retirement-summary-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  min-width: 0;
  display: grid;
}

.retirement-summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.retirement-summary-card > header {
  border-bottom: 1px solid var(--line);
  gap: 3px;
  padding-bottom: 8px;
  display: grid;
}

.retirement-summary-card > header h3 {
  color: var(--text);
  margin: 0;
  font: 700 12px Plus Jakarta Sans, sans-serif;
}

.retirement-summary-card > header small {
  color: var(--muted);
  font: 400 10px / 1.4 Plus Jakarta Sans, sans-serif;
}

.retirement-summary-rows {
  gap: 0;
  margin: 0;
  display: grid;
}

.retirement-summary-rows > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 7px 1px;
  display: flex;
}

.retirement-summary-rows > div:last-child {
  border-bottom: 0;
}

.retirement-summary-rows dt {
  min-width: 0;
  color: var(--muted);
  font: 550 10px / 1.45 Plus Jakarta Sans, sans-serif;
}

.retirement-summary-rows dd {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font: 700 12px / 1.35 JetBrains Mono, monospace;
  display: flex;
}

.retirement-summary-rows dd small {
  color: var(--muted);
  font: 600 9px Plus Jakarta Sans, sans-serif;
}

.retirement-summary-rows.position > div.primary {
  background: #f2faf4;
  border: 1px solid #c9e6d2;
  border-radius: 7px;
  margin: 2px -5px;
  padding: 9px 6px;
}

.retirement-summary-rows.position > div.primary dd {
  color: #176b3a;
  font-size: 14px;
}

.retirement-summary-rows.position > div.shortage dd {
  color: #a64b20;
}

.retirement-movement-details {
  min-width: 0;
}

.retirement-movement-details > summary {
  color: #176b3a;
  cursor: pointer;
  background: #f2faf4;
  border: 1px solid #c9e6d2;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  font: 700 11px Plus Jakarta Sans, sans-serif;
  list-style: none;
  display: flex;
}

.retirement-movement-details > summary::-webkit-details-marker {
  display: none;
}

.retirement-movement-details > summary:after {
  content: "+";
  font: 700 16px JetBrains Mono, monospace;
}

.retirement-movement-details[open] > summary {
  border-radius: 9px 9px 0 0;
}

.retirement-movement-details[open] > summary:after {
  content: "−";
}

.retirement-movement-details > .retirement-summary-card {
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.retirement-summary-cards.request-summary {
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.company-retirement-overview .retirement-summary-cards {
  width: 100%;
}

.company-retirement-overview .retirement-summary-card {
  background: var(--surface);
}

.company-retirement-overview .retirement-summary-cards .retirement-summary-rows dt {
  font-size: 10px;
}

.company-retirement-overview .retirement-summary-cards .retirement-summary-rows dd {
  font-size: 12px;
}

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

.company-compliance-dashboard-theme .dashboard-progress > .primary-button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 13px;
  font: 700 10px Plus Jakarta Sans, sans-serif;
}

@media (max-width: 760px) {
  .retirement-summary-cards, .retirement-summary-cards.request-summary, .company-compliance-dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

.marketplace-portal .topbar {
  padding-inline: 28px;
}

.marketplace-content {
  width: 100%;
  max-width: 1380px;
  padding: 28px 30px 52px;
}

.marketplace-heading {
  border-bottom: 1px solid var(--line);
  align-items: center;
  margin-bottom: 0;
  padding: 8px 0 24px;
}

.marketplace-heading h1 {
  letter-spacing: -.035em;
  margin: 9px 0 7px;
  font: 700 22px / 1.3 Plus Jakarta Sans, sans-serif;
}

.marketplace-heading p:not(.marketplace-eyebrow) {
  font-size: 13px;
  line-height: 1.55;
}

.marketplace-eyebrow {
  margin: 0;
}

.marketplace-wallet {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 250px;
  padding: 13px 16px;
}

.marketplace-wallet span {
  font-size: 11px;
  font-weight: 650;
}

.marketplace-wallet strong {
  font: 700 20px JetBrains Mono, monospace;
}

.marketplace-wallet small {
  font-size: 10px;
  line-height: 1.4;
}

.marketplace-filters {
  align-items: end;
  gap: 12px;
  margin: 20px 0 18px;
}

.marketplace-search {
  flex: 1;
  min-width: 220px;
  max-width: none;
  margin: 0;
}

.marketplace-period-filter {
  width: min(260px, 32%);
  min-width: 190px;
}

.marketplace-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .9fr);
  gap: 18px;
}

.marketplace-stack {
  gap: 14px;
}

.marketplace-panel {
  box-shadow: var(--shadow);
  border-radius: 11px;
  margin: 0 0 16px;
  padding: 19px 20px;
}

.marketplace-layout > .marketplace-panel, .marketplace-stack > .marketplace-panel {
  margin-bottom: 0;
}

.marketplace-panel h2 {
  letter-spacing: -.015em;
  margin-bottom: 15px;
  font: 700 14px / 1.35 Plus Jakarta Sans, sans-serif;
}

.marketplace-panel > p {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.55;
}

.marketplace-offer {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 17px 0;
}

.marketplace-offer header {
  flex-direction: column;
  align-items: start;
  gap: 4px;
}

.marketplace-offer header strong {
  font: 700 11px JetBrains Mono, monospace;
}

.marketplace-offer header span {
  margin: 0;
  font-size: 11px;
}

.marketplace-offer-stats {
  background: var(--surface-soft);
  border-radius: 8px;
  gap: 8px;
  margin: 13px 0 10px;
  padding: 12px;
}

.marketplace-offer-stats span {
  gap: 6px;
  min-width: 0;
}

.marketplace-offer-stats small {
  font-size: 10px;
  line-height: 1.35;
}

.marketplace-offer-stats b {
  overflow-wrap: anywhere;
  font: 700 12px / 1.4 JetBrains Mono, monospace;
}

.marketplace-offer p {
  margin: 10px 0 12px;
  font-size: 10px;
  line-height: 1.5;
}

.marketplace-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.marketplace-form > .marketplace-field:first-child, .marketplace-form > button {
  grid-column: 1 / -1;
}

.marketplace-field {
  gap: 7px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
}

.marketplace-field input, .marketplace-field select, .marketplace-search input, .marketplace-period-filter select {
  border-radius: 8px;
  min-height: 40px;
  font-size: 12px;
}

.marketplace-panel .primary-button, .marketplace-panel .secondary-button {
  border-radius: 8px;
  min-height: 38px;
  padding-inline: 13px;
  font-size: 11px;
  font-weight: 700;
}

.marketplace-cart-line {
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}

.marketplace-cart-line > div {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 7px 10px;
}

.marketplace-cart-line strong {
  overflow-wrap: anywhere;
  min-width: 0;
  font: 700 11px JetBrains Mono, monospace;
}

.marketplace-cart-line input {
  border-radius: 7px;
  min-height: 35px;
}

.marketplace-cart-line small {
  font-size: 10px;
}

.marketplace-checkout-preview {
  gap: 9px;
  margin: 14px 0;
  padding: 13px 0;
}

.marketplace-checkout-preview span {
  font-size: 11px;
}

.marketplace-checkout-preview span:last-of-type b {
  font: 700 13px JetBrains Mono, monospace;
}

.marketplace-checkout-preview small {
  line-height: 1.45;
}

.marketplace-inline-form {
  align-items: center;
}

.marketplace-inline-form input {
  border-radius: 8px;
  min-height: 38px;
}

.marketplace-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.marketplace-table-wrap table {
  min-width: 680px;
}

.marketplace-table-wrap th, .marketplace-table-wrap td {
  padding: 11px 12px;
  font-size: 11px;
}

.marketplace-table-wrap th {
  background: var(--surface-soft);
  font-weight: 700;
}

.marketplace-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.marketplace-summary {
  gap: 12px;
}

.marketplace-summary div {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 13px;
}

.marketplace-summary b {
  font: 700 20px JetBrains Mono, monospace;
}

.marketplace-content > .notice {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
}

.marketplace-portal :is(input, select, button) {
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}

@media (max-width: 980px) {
  .marketplace-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, .9fr);
    gap: 14px;
  }

  .marketplace-content {
    padding-inline: 22px;
  }
}

@media (max-width: 760px) {
  .marketplace-portal .topbar {
    padding-inline: 16px;
  }

  .marketplace-content {
    padding: 20px 16px 38px;
  }

  .marketplace-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
  }

  .marketplace-wallet {
    width: 100%;
    min-width: 0;
  }

  .marketplace-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-search, .marketplace-period-filter {
    width: 100%;
    min-width: 0;
  }

  .marketplace-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .marketplace-stack > .marketplace-panel:first-child {
    grid-column: 1 / -1;
  }

  .marketplace-table-wrap table {
    min-width: 620px;
  }
}

@media (max-width: 520px) {
  .marketplace-stack {
    grid-template-columns: 1fr;
  }

  .marketplace-stack > .marketplace-panel:first-child {
    grid-column: auto;
  }

  .marketplace-panel {
    padding: 16px 14px;
  }

  .marketplace-form {
    grid-template-columns: 1fr;
  }

  .marketplace-form > .marketplace-field:first-child, .marketplace-form > button {
    grid-column: auto;
  }

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

  .marketplace-offer-stats span:last-child {
    grid-column: 1 / -1;
  }
}

.marketplace-tabs.intensity-data-tabs {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 11px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 21px 0 18px;
  padding: 5px;
  display: grid;
  overflow: visible;
}

.marketplace-tabs .marketplace-tab {
  align-items: center;
  justify-content: initial;
  min-width: 0;
  min-height: 58px;
  color: var(--muted);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 9px 11px;
  display: grid;
}

.marketplace-tabs .marketplace-tab:hover {
  background: var(--surface);
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-tabs .marketplace-tab:hover {
    background: color-mix(in srgb,var(--surface) 68%,transparent);
  }
}

.marketplace-tabs .marketplace-tab:hover {
  color: var(--text);
}

.marketplace-tabs .marketplace-tab.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px #0f172a0f;
}

.marketplace-tabs .marketplace-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.marketplace-tab-panel {
  outline: none;
  gap: 16px;
  min-width: 0;
  display: grid;
}

.marketplace-tab-panel:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 10px;
}

.marketplace-tab-panel > .marketplace-panel {
  width: 100%;
  margin: 0;
}

.marketplace-tab-panel .marketplace-filters {
  margin: 0;
}

.marketplace-tab-panel .marketplace-period-filter {
  width: min(280px, 34%);
}

.marketplace-tab-panel .marketplace-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}

.marketplace-tab-panel .marketplace-form > .marketplace-field:first-child {
  grid-column: 1 / -1;
}

.marketplace-tab-panel .marketplace-form > button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 190px;
}

.marketplace-topup-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 28px;
  display: grid;
}

.marketplace-topup-panel h2 {
  margin: 5px 0 6px;
}

.marketplace-topup-panel .marketplace-eyebrow {
  margin: 0;
}

.marketplace-topup-panel > div:first-child > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
}

.marketplace-topup-balance {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 6px;
  min-width: 235px;
  padding: 13px 16px;
  display: grid;
}

.marketplace-topup-balance span {
  color: var(--muted);
  font-size: 10px;
}

.marketplace-topup-balance strong {
  font: 700 18px JetBrains Mono, monospace;
}

.marketplace-topup-panel .marketplace-inline-form {
  grid-column: 1 / -1;
  align-items: end;
  max-width: 620px;
}

.marketplace-topup-panel .marketplace-inline-form .marketplace-field {
  flex: 1;
}

.marketplace-topup-panel .marketplace-inline-form button {
  min-width: 150px;
}

.marketplace-topup-note {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 11px;
  margin: 0 !important;
}

.marketplace-panel .toolbar {
  flex-wrap: wrap;
  min-height: 58px;
  padding: 10px 12px;
}

.marketplace-panel .table-wrap {
  min-height: 180px;
}

.marketplace-panel .table-footer {
  flex-wrap: wrap;
  gap: 10px;
  padding-inline: 12px;
}

.marketplace-cell-note {
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  display: block;
}

.marketplace-quantity-input {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100px;
  min-height: 34px;
  color: var(--text);
  border-radius: 7px;
  padding: 6px 8px;
}

.marketplace-cart-modal-backdrop {
  z-index: 90;
}

.marketplace-cart-modal {
  border-color: var(--line);
  width: min(540px, 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-cart-modal {
    border-color: color-mix(in srgb,var(--line) 78%,var(--green));
  }
}

.marketplace-cart-modal {
  border-radius: 14px;
  box-shadow: 0 28px 90px #081c1347;
}

.marketplace-cart-modal .record-modal-header {
  align-items: flex-start;
  padding: 19px 22px 16px;
}

.marketplace-cart-modal .record-modal-header .eyebrow {
  color: var(--muted);
  letter-spacing: .13em;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
}

.marketplace-cart-modal .record-modal-header h2 {
  letter-spacing: -.02em;
  font: 700 17px / 1.35 Plus Jakarta Sans, sans-serif;
}

.marketplace-cart-modal-body {
  gap: 17px;
  padding: 20px 22px 22px;
}

.marketplace-cart-offer {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.marketplace-cart-offer div {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.marketplace-cart-offer span, .marketplace-cart-quantity small, .marketplace-cart-transaction small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.marketplace-cart-offer strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
}

.marketplace-cart-offer div:first-child strong {
  font-family: JetBrains Mono, monospace;
}

.marketplace-cart-quantity {
  color: var(--text);
}

.marketplace-cart-quantity input {
  min-height: 43px;
  font-size: 14px;
}

.marketplace-cart-quantity small {
  font-weight: 400;
}

.marketplace-cart-transaction {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 5px 12px;
  padding: 14px 0;
  display: grid;
}

.marketplace-cart-transaction span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.marketplace-cart-transaction strong {
  text-align: right;
  font: 700 17px JetBrains Mono, monospace;
}

.marketplace-cart-transaction small {
  grid-column: 1 / -1;
}

.marketplace-cart-modal .modal-actions {
  gap: 8px;
  padding-top: 0;
}

.marketplace-cart-modal .modal-actions button {
  border-radius: 8px;
  min-height: 39px;
  padding-inline: 15px;
  font-size: 11px;
  font-weight: 700;
}

.marketplace-pending-checkout {
  border: 1px solid var(--green);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-pending-checkout {
    border: 1px solid color-mix(in srgb,var(--green) 32%,var(--line));
  }
}

.marketplace-pending-checkout {
  background: var(--green);
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-pending-checkout {
    background: color-mix(in srgb,var(--green) 5%,var(--surface));
  }
}

.marketplace-pending-checkout > div {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.marketplace-pending-checkout strong {
  color: var(--text);
  font-size: 12px;
}

.marketplace-pending-checkout small {
  color: var(--muted);
  font: 600 10px JetBrains Mono, monospace;
}

.marketplace-payment-modal-backdrop {
  z-index: 100;
}

.marketplace-payment-modal {
  border-color: var(--line);
  width: min(560px, 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-payment-modal {
    border-color: color-mix(in srgb,var(--line) 78%,var(--green));
  }
}

.marketplace-payment-modal {
  border-radius: 14px;
  box-shadow: 0 28px 90px #081c1347;
}

.marketplace-payment-modal .record-modal-header {
  align-items: flex-start;
  padding: 19px 22px 16px;
}

.marketplace-payment-modal .record-modal-header .eyebrow {
  color: var(--muted);
  letter-spacing: .13em;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
}

.marketplace-payment-modal .record-modal-header h2 {
  letter-spacing: -.02em;
  font: 700 17px / 1.35 Plus Jakarta Sans, sans-serif;
}

.marketplace-payment-modal .record-modal-header p {
  color: var(--muted);
  margin: 5px 0 0;
  font: 600 10px JetBrains Mono, monospace;
}

.marketplace-payment-modal-body {
  gap: 14px;
  padding: 18px 22px 22px;
}

.marketplace-payment-balances {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.marketplace-payment-balances > div {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 7px;
  min-width: 0;
  padding: 13px 14px;
  display: grid;
}

.marketplace-payment-balances > div:last-child {
  border-color: var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-payment-balances > div:last-child {
    border-color: color-mix(in srgb,var(--green) 38%,var(--line));
  }
}

.marketplace-payment-balances > div:last-child {
  background: var(--green);
}

@supports (color: color-mix(in lab, red, red)) {
  .marketplace-payment-balances > div:last-child {
    background: color-mix(in srgb,var(--green) 6%,var(--surface));
  }
}

.marketplace-payment-balances span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.marketplace-payment-balances strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 700 17px JetBrains Mono, monospace;
}

.marketplace-payment-breakdown {
  border-bottom: 1px solid var(--line);
  gap: 9px;
  padding: 12px 0;
  display: grid;
}

.marketplace-payment-breakdown > span {
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.marketplace-payment-breakdown b {
  color: var(--text);
  font: 600 11px JetBrains Mono, monospace;
}

.marketplace-payment-breakdown > .total {
  border-top: 1px solid var(--line);
  color: var(--text);
  align-items: baseline;
  margin-top: 2px;
  padding-top: 10px;
}

.marketplace-payment-breakdown .total strong:last-child {
  color: var(--green);
  font: 750 17px JetBrains Mono, monospace;
}

.marketplace-payment-breakdown > small {
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.marketplace-payment-items {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  gap: 8px;
  max-height: 150px;
  padding: 12px;
  display: grid;
  overflow: auto;
}

.marketplace-payment-items > strong {
  color: var(--text);
  margin-bottom: 2px;
  font-size: 11px;
}

.marketplace-payment-items > div {
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  display: flex;
}

.marketplace-payment-items > div span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.marketplace-payment-items b {
  color: var(--text);
  flex: none;
  font: 600 10px JetBrains Mono, monospace;
}

.marketplace-payment-warning {
  color: #a33b2d;
  background: #fff5f3;
  border: 1px solid #efc1ba;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
}

.marketplace-payment-note {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.marketplace-payment-modal .modal-actions {
  gap: 8px;
  padding-top: 2px;
}

.marketplace-payment-modal .modal-actions button {
  border-radius: 8px;
  min-height: 39px;
  padding-inline: 15px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .marketplace-tabs.intensity-data-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .marketplace-tabs {
    margin: 17px 0 14px;
  }

  .marketplace-tabs .marketplace-tab {
    gap: 7px;
    min-height: 54px;
    padding: 8px;
  }

  .marketplace-tab-panel .marketplace-period-filter {
    width: 100%;
  }

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

  .marketplace-topup-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .marketplace-topup-balance {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .marketplace-cart-modal-backdrop, .marketplace-payment-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .marketplace-cart-modal, .marketplace-payment-modal {
    border-radius: 14px;
    max-height: calc(100dvh - 24px);
  }

  .marketplace-cart-modal .record-modal-header, .marketplace-payment-modal .record-modal-header {
    padding: 16px 16px 13px;
  }

  .marketplace-cart-modal-body {
    gap: 14px;
    padding: 16px;
  }

  .marketplace-payment-modal-body {
    gap: 12px;
    padding: 14px 16px 16px;
  }

  .marketplace-payment-balances {
    grid-template-columns: 1fr;
  }

  .marketplace-payment-balances strong {
    font-size: 15px;
  }

  .marketplace-payment-modal .modal-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .marketplace-payment-modal .modal-actions button {
    padding-inline: 8px;
  }

  .marketplace-pending-checkout {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-cart-offer {
    gap: 10px;
    padding: 12px;
  }

  .marketplace-cart-transaction {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .marketplace-cart-transaction strong {
    text-align: left;
  }

  .marketplace-cart-modal .modal-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .marketplace-cart-modal .modal-actions button {
    padding-inline: 8px;
  }

  .marketplace-tabs {
    gap: 4px;
    padding: 4px;
  }

  .marketplace-tabs .marketplace-tab {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px;
  }

  .marketplace-tabs .intensity-tab-index {
    width: 23px;
    height: 23px;
  }

  .marketplace-tabs .intensity-tab-copy strong {
    font-size: 10px;
  }

  .marketplace-tabs .intensity-tab-copy small {
    font-size: 8px;
  }

  .marketplace-tab-panel .marketplace-form {
    grid-template-columns: 1fr;
  }

  .marketplace-tab-panel .marketplace-form > .marketplace-field:first-child, .marketplace-tab-panel .marketplace-form > button {
    grid-column: auto;
  }

  .marketplace-topup-panel .marketplace-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-topup-panel .marketplace-inline-form button {
    width: 100%;
  }
}

.part2-retirement-status-cards > article {
  border-left: 1px solid #e2e8f0;
  min-height: 112px;
  padding: 15px 16px;
}

.batch-history-trigger {
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.batch-history-trigger > span {
  color: #168452;
  font: 700 16px JetBrains Mono, monospace;
}

.batch-history-backdrop {
  z-index: 1250;
  padding: 18px;
}

.batch-history-modal {
  width: min(1180px, 96vw);
  max-height: min(94vh, 1050px);
}

.batch-history-modal .record-modal-header {
  border-bottom: 1px solid #e7ece8;
  padding: 20px 24px 17px;
}

.batch-history-modal .record-modal-header h2 {
  color: #172b24;
  letter-spacing: -.03em;
  margin: 3px 0 2px;
  font: 700 21px / 1.25 Plus Jakarta Sans, sans-serif;
}

.batch-history-modal .record-modal-header small {
  color: #6b7771;
  font-size: 11px;
}

.batch-history-eyebrow {
  color: #658074;
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 800;
}

.batch-history-body {
  gap: 22px;
  padding: 20px 24px 25px;
  display: grid;
  overflow: auto;
}

.batch-history-overview {
  background: linear-gradient(115deg, #f5faf6, #fff 65%);
  border: 1px solid #e3eae5;
  border-radius: 10px;
  padding: 16px 18px 13px;
}

.batch-history-overview-title {
  border-bottom: 1px solid #e6ece7;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  display: flex;
}

.batch-history-overview-title > div:first-child {
  gap: 3px;
  display: grid;
}

.batch-history-overview-title span, .batch-history-metrics > div > span {
  color: #6d7b73;
  font-size: 10px;
  font-weight: 600;
}

.batch-history-overview-title strong {
  color: #193b2c;
  font: 700 14px JetBrains Mono, monospace;
}

.batch-history-origin {
  color: #286143;
  background: #f6fbf7;
  border: 1px solid #d4e5d9;
  border-radius: 99px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
}

.batch-code-cell {
  gap: 3px;
  min-width: max-content;
  display: grid;
}

.batch-code-cell strong {
  font: 600 10px JetBrains Mono, monospace;
}

.batch-code-cell small {
  color: var(--muted);
  font-size: 9px;
}

.batch-history-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 13px;
  display: grid;
}

.batch-history-metrics > div {
  gap: 4px;
  display: grid;
}

.batch-history-metrics strong {
  color: #23372d;
  font: 700 15px JetBrains Mono, monospace;
}

.batch-history-metrics strong small {
  color: #849087;
  font: 600 9px Plus Jakarta Sans, sans-serif;
}

.batch-history-section {
  min-width: 0;
}

.batch-history-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 10px;
  display: flex;
}

.batch-history-section-heading > div {
  align-items: center;
  gap: 9px;
  display: flex;
}

.batch-history-section-heading > div > span {
  color: #72877b;
  font: 600 10px JetBrains Mono, monospace;
}

.batch-history-section-heading h3 {
  color: #26372e;
  margin: 0;
  font: 700 13px Plus Jakarta Sans, sans-serif;
}

.batch-history-section-heading > small {
  color: #7b867f;
  text-align: right;
  max-width: 510px;
  font-size: 10px;
}

.batch-lineage-list {
  border-top: 1px solid #e7ece8;
  display: grid;
  overflow: auto;
}

.batch-lineage-node {
  border-bottom: 1px solid #edf0ed;
  grid-template-columns: 18px minmax(140px, 1fr) minmax(220px, 1.35fr) minmax(95px, .55fr);
  align-items: center;
  gap: 10px;
  min-width: 680px;
  padding: 10px 12px 10px 4px;
  display: grid;
}

.batch-lineage-node.is-selected {
  background: #f2f8f4;
}

.batch-lineage-stem {
  color: #168452;
  font: 700 11px JetBrains Mono, monospace;
}

.batch-lineage-main, .batch-lineage-detail {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.batch-lineage-main strong {
  color: #26372e;
  font: 700 10px JetBrains Mono, monospace;
}

.batch-lineage-main small, .batch-lineage-detail small {
  color: #78837c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.batch-lineage-detail span {
  color: #44564b;
  font-size: 10px;
  font-weight: 700;
}

.batch-lineage-balance {
  color: #7c877f;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  display: flex;
}

.batch-lineage-balance b {
  color: #254b36;
  font: 700 10px JetBrains Mono, monospace;
}

.batch-history-table-wrap {
  border: 1px solid #e6ebe7;
  border-radius: 9px;
  max-width: 100%;
  overflow: auto;
}

.batch-history-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 900px;
}

.batch-history-table th {
  color: #67766c;
  white-space: nowrap;
  background: #f6f8f6;
  padding: 9px 10px;
  font-size: 9px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.batch-history-table td {
  color: #445249;
  vertical-align: top;
  border-top: 1px solid #edf0ed;
  padding: 10px;
  font-size: 10px;
}

.batch-history-table td:first-child {
  color: #68756d;
  white-space: nowrap;
}

.batch-history-table td > strong {
  color: #294334;
  white-space: nowrap;
  font: 700 9px JetBrains Mono, monospace;
}

.batch-history-table td > small {
  color: #77827b;
  max-width: 190px;
  margin-top: 4px;
  font-size: 9px;
  display: block;
}

.batch-history-event-type {
  color: #2b6243;
  font-size: 9px;
  font-weight: 800;
}

.batch-history-number {
  white-space: nowrap;
  font: 600 10px JetBrains Mono, monospace !important;
}

.batch-history-balance-list {
  color: #758179;
  white-space: nowrap;
  grid-template-columns: repeat(3, auto);
  gap: 5px 10px;
  font-size: 9px;
  display: grid;
}

.batch-history-balance-list b {
  color: #31483a;
  font: 700 9px JetBrains Mono, monospace;
}

@media (max-width: 760px) {
  .batch-history-backdrop {
    padding: 8px;
  }

  .batch-history-modal {
    width: 100%;
    max-height: 96vh;
  }

  .batch-history-modal .record-modal-header {
    padding: 16px;
  }

  .batch-history-body {
    gap: 18px;
    padding: 14px;
  }

  .batch-history-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 13px;
  }

  .batch-history-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .batch-history-section-heading > small {
    text-align: left;
  }

  .batch-history-overview {
    padding: 13px;
  }

  .batch-history-origin {
    font-size: 8px;
  }

  .batch-history-balance-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.batch-history-detail-link {
  color: #176847;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 0;
  font: 700 11px Plus Jakarta Sans, sans-serif;
  display: inline-flex;
}

.batch-history-detail-link:hover {
  color: #0d5136;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.batch-history-detail-link span {
  font-size: 14px;
}

.batch-history-narrative-content {
  width: min(1380px, 100%);
  padding-top: 24px;
}

.batch-history-narrative-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.batch-history-narrative-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  display: flex;
}

.batch-history-narrative-kicker {
  color: var(--green-deep);
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 800;
}

.batch-history-narrative-heading h1 {
  color: var(--text);
  letter-spacing: -.025em;
  margin: 9px 0 7px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.batch-history-narrative-heading p {
  max-width: 700px;
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.batch-history-narrative-code {
  color: var(--green-deep);
  text-align: right;
  flex: none;
  font: 700 clamp(13px, 1.6vw, 19px) JetBrains Mono, monospace;
}

.batch-history-narrative-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(190px, 1.5fr) repeat(4, minmax(110px, 1fr));
  align-items: center;
  margin: 0 0 20px;
  display: grid;
}

.batch-history-summary-lead, .batch-history-summary-value {
  border-right: 1px solid var(--line);
  align-content: center;
  gap: 5px;
  min-height: 80px;
  padding: 12px 16px;
  display: grid;
}

.batch-history-summary-lead {
  padding-left: 0;
}

.batch-history-summary-value:last-child {
  border-right: 0;
}

.batch-history-summary-lead > span, .batch-history-summary-value > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.batch-history-summary-lead > strong {
  color: var(--text);
  font-size: 12px;
}

.batch-history-summary-lead > small {
  color: var(--muted);
  font-size: 9px;
}

.batch-history-summary-value > strong {
  color: var(--text);
  letter-spacing: -.04em;
  font: 700 18px JetBrains Mono, monospace;
}

.batch-history-summary-value > small {
  color: var(--muted);
  margin-top: -5px;
  font-size: 9px;
}

.batch-history-narrative-prose {
  border-left: 3px solid var(--green);
  background: var(--surface-soft);
  gap: 8px;
  margin: 0 0 26px;
  padding: 17px 20px;
  display: grid;
}

.batch-history-narrative-prose > span {
  color: var(--green-deep);
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 800;
}

.batch-history-narrative-prose p {
  max-width: 1100px;
  color: var(--text);
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.batch-history-narrative-section {
  margin-top: 26px;
}

.batch-history-narrative-section > header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  display: flex;
}

.batch-history-narrative-section > header > div {
  align-items: center;
  gap: 10px;
  display: flex;
}

.batch-history-narrative-section > header > div > span {
  color: var(--green);
  font: 700 10px JetBrains Mono, monospace;
}

.batch-history-narrative-section h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 15px;
}

.batch-history-narrative-section > header > small {
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.batch-history-family-list {
  display: grid;
}

.batch-history-family-row {
  min-width: 0;
  padding: 11px 12px 11px calc(12px + var(--batch-depth, 0)*22px);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 22px minmax(220px, 1.6fr) minmax(135px, .8fr) minmax(120px, .7fr) minmax(145px, .8fr);
  align-items: center;
  gap: 13px;
  display: grid;
}

.batch-history-family-row.is-selected {
  background: var(--green-tint);
}

@supports (color: color-mix(in lab, red, red)) {
  .batch-history-family-row.is-selected {
    background: color-mix(in srgb,var(--green-tint) 42%,var(--surface));
  }
}

.batch-history-family-connector {
  color: var(--green);
  font: 700 12px JetBrains Mono, monospace;
}

.batch-history-family-identity, .batch-history-family-issued, .batch-history-family-state, .batch-history-family-balance {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.batch-history-family-identity > strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 10px JetBrains Mono, monospace;
  overflow: hidden;
}

.batch-history-family-identity > span, .batch-history-family-issued > span, .batch-history-family-state > span, .batch-history-family-balance > span, .batch-history-family-identity > small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.batch-history-family-issued > strong, .batch-history-family-state > strong, .batch-history-family-balance > strong {
  color: var(--text);
  font: 650 11px JetBrains Mono, monospace;
}

.batch-history-family-issued > strong small, .batch-history-family-balance > strong small {
  color: var(--muted);
  font: 500 8px Plus Jakarta Sans, sans-serif;
}

.batch-history-narrative-timeline {
  margin-bottom: 25px;
}

.batch-history-narrative-events {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  position: relative;
}

.batch-history-narrative-events:before {
  background: var(--line-strong, var(--line));
  content: "";
  width: 1px;
  position: absolute;
  top: 7px;
  bottom: 20px;
  left: 7px;
}

.batch-history-narrative-events > li {
  grid-template-columns: 18px minmax(130px, 160px) minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
  display: grid;
  position: relative;
}

.batch-history-event-rail {
  z-index: 1;
  border: 2px solid var(--green);
  background: var(--surface);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin: 5px 0 0 3px;
}

.batch-history-narrative-events > li.is-transfer .batch-history-event-rail {
  background: #fff8ed;
  border-color: #b8752a;
}

.batch-history-event-time {
  color: var(--muted);
  padding-top: 1px;
  font-size: 10px;
  line-height: 1.5;
}

.batch-history-narrative-events article {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 0 0 14px;
}

.batch-history-event-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.batch-history-event-heading > div {
  gap: 4px;
  display: grid;
}

.batch-history-event-heading > div > span {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 750;
}

.batch-history-narrative-events > li.is-transfer .batch-history-event-heading > div > span {
  color: #8b5c21;
}

.batch-history-event-heading > div > strong {
  color: var(--text);
  font: 650 10px JetBrains Mono, monospace;
}

.batch-history-event-heading > b {
  color: var(--text);
  flex: none;
  font: 700 12px JetBrains Mono, monospace;
}

.batch-history-event-heading > b small {
  color: var(--muted);
  font: 500 9px Plus Jakarta Sans, sans-serif;
}

.batch-history-narrative-events article > p {
  max-width: 1050px;
  color: var(--text);
  margin: 7px 0 8px;
  font-size: 11px;
  line-height: 1.7;
}

.batch-history-event-source {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 9px;
  display: block;
}

.batch-history-event-balances {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 9px;
  display: flex;
}

.batch-history-event-balances b {
  color: var(--text);
  font: 650 9px JetBrains Mono, monospace;
}

.batch-history-transfer-balances {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 9px;
  display: grid;
}

.batch-history-transfer-balances > section {
  gap: 6px;
  display: grid;
}

.batch-history-transfer-balances > section > strong {
  color: var(--text);
  font: 650 9px JetBrains Mono, monospace;
}

.batch-history-narrative-state {
  min-height: 220px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  display: flex;
}

.batch-history-narrative-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding-top: 10px;
  font-size: 9px;
  display: flex;
}

@media (max-width: 960px) {
  .batch-history-narrative-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .batch-history-summary-lead {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-column: 1 / -1;
    min-height: auto;
    padding: 12px 0;
  }

  .batch-history-summary-value:first-of-type {
    padding-left: 0;
  }

  .batch-history-family-row {
    grid-template-columns: 20px minmax(180px, 1.5fr) repeat(3, minmax(100px, .8fr));
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .batch-history-narrative-content {
    padding: 16px 14px 30px;
  }

  .batch-history-narrative-toolbar {
    margin-bottom: 15px;
  }

  .batch-history-narrative-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .batch-history-narrative-code {
    text-align: left;
  }

  .batch-history-narrative-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-history-summary-value {
    min-height: 65px;
    padding: 10px;
  }

  .batch-history-summary-value:nth-child(3) {
    border-right: 0;
  }

  .batch-history-summary-value:nth-child(4), .batch-history-summary-value:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .batch-history-summary-value:nth-child(4) {
    padding-left: 0;
  }

  .batch-history-narrative-prose {
    padding: 14px;
  }

  .batch-history-narrative-section > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .batch-history-narrative-section > header > small {
    text-align: left;
  }

  .batch-history-family-list {
    overflow-x: auto;
  }

  .batch-history-family-row {
    min-width: 740px;
  }

  .batch-history-narrative-events > li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
  }

  .batch-history-event-time {
    grid-area: 1 / 2;
  }

  .batch-history-event-rail {
    grid-area: 1 / 1 / 3;
  }

  .batch-history-narrative-events article {
    grid-area: 2 / 2;
  }

  .batch-history-transfer-balances {
    grid-template-columns: 1fr;
  }

  .batch-history-narrative-footer {
    flex-direction: column;
    gap: 5px;
  }
}

@media print {
  .batch-history-narrative-portal .sidebar, .batch-history-narrative-portal .topbar, .batch-history-narrative-toolbar {
    display: none !important;
  }

  .batch-history-narrative-portal {
    background: #fff;
    display: block;
  }

  .batch-history-narrative-portal .workspace, .batch-history-narrative-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .batch-history-narrative-heading {
    margin-top: 0;
  }

  .batch-history-narrative-section, .batch-history-narrative-prose, .batch-history-family-row, .batch-history-narrative-events > li {
    break-inside: avoid;
  }

  .batch-history-family-list {
    overflow: visible;
  }

  .batch-history-family-row {
    grid-template-columns: 20px minmax(180px, 1.5fr) repeat(3, minmax(100px, .8fr));
    min-width: 0;
  }

  .batch-history-event-time {
    color: #333;
  }
}

.profile-governance {
  gap: 22px;
  padding: 22px 24px 26px;
}

.profile-assignment-section {
  min-width: 0;
}

.profile-section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  display: flex;
}

.profile-section-heading .eyebrow {
  color: #748078;
  letter-spacing: .1em;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  display: block;
}

.profile-section-heading h3 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.profile-period-chip {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  flex: none;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
}

.profile-assignment-section .data-table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  overflow: auto;
}

.profile-assignment-section .data-table {
  min-width: 850px;
}

.profile-assignment-section .data-table th {
  color: #66736a;
  letter-spacing: .02em;
  background: #f7f9f7;
  font-size: 10px;
}

.profile-assignment-section .data-table td {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
}

.profile-assignment-section .data-table td:nth-child(2) {
  color: #215d3b;
  font-weight: 700;
}

.profile-editor {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}

.profile-editor[open] {
  border-color: #b8d8c3;
  box-shadow: 0 8px 24px #1b492e0f;
}

.profile-editor > summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px 18px;
  list-style: none;
  display: flex;
}

.profile-editor > summary::-webkit-details-marker {
  display: none;
}

.profile-editor > summary > span {
  gap: 4px;
  display: grid;
}

.profile-editor > summary b {
  color: var(--text);
  font-size: 13px;
}

.profile-editor > summary small {
  color: var(--muted);
  font-size: 11px;
}

.profile-editor > summary > strong {
  color: #fff;
  background: #1c7045;
  border-radius: 8px;
  flex: none;
  padding: 9px 12px;
  font-size: 11px;
  transition: background .16s, transform .16s;
}

.profile-editor > summary:hover > strong {
  background: #155a37;
  transform: translateY(-1px);
}

.profile-editor[open] > summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.profile-editor[open] > summary > strong {
  color: #1c7045;
  background: #e3f2e8;
}

.profile-change-form {
  background: none;
  border: 0;
  border-radius: 0;
  gap: 17px;
  padding: 19px;
}

.profile-change-form h3 {
  color: #1c7045;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.profile-change-form > .intensity-admin-form-grid:first-of-type {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  padding: 14px;
}

.profile-change-form > label, .profile-change-form .intensity-admin-form-grid label {
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.profile-change-form textarea {
  min-height: 82px;
}

.profile-change-form .data-card {
  box-shadow: none;
  background: #fafcfb;
  border-color: #e5ebe6;
  border-radius: 10px;
}

.profile-change-form .data-card .data-card {
  background: var(--surface);
}

.profile-change-form .modal-actions, .profile-change-form > .primary-button {
  justify-self: start;
}

.profile-proposals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  display: grid;
}

.profile-proposals > .profile-section-heading {
  grid-column: 1 / -1;
  margin-bottom: 1px;
}

.profile-proposals .intensity-revision-item {
  border-color: var(--line);
  background: var(--surface);
  min-width: 0;
  box-shadow: none;
  border-radius: 10px;
  padding: 15px;
}

.profile-proposals .intensity-revision-item header {
  align-items: flex-start;
}

.profile-proposals .intensity-revision-item header strong {
  color: var(--text);
  font-size: 12px;
}

.profile-proposals .intensity-revision-item header span {
  background: var(--surface-soft);
  border-radius: 999px;
  flex: none;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 700;
}

.profile-proposals .intensity-revision-item p {
  color: var(--muted);
  margin: 2px 0;
  font-size: 11px;
  line-height: 1.5;
}

.profile-proposals .intensity-revision-item small {
  overflow-wrap: anywhere;
}

.profile-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  border-radius: 9px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  font-size: 12px;
}

.profile-row-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.profile-row-actions .outline-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

.profile-inspector-modal {
  width: min(820px, 96vw);
  max-height: 90vh;
  overflow: hidden;
}

.profile-parameter-modal {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: hidden;
}

.profile-parameter-modal .record-modal-body {
  overflow-y: auto;
}

.profile-parameter-modal .intensity-json-input {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.profile-inspector-modal .record-modal-header h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.profile-inspector-modal .record-modal-header .eyebrow {
  color: #738078;
  letter-spacing: .1em;
  font-size: 9px;
  font-weight: 800;
}

.profile-inspector-body {
  gap: 17px;
  max-height: calc(90vh - 92px);
  display: grid;
  overflow: auto;
}

.profile-inspector-meta {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  display: grid;
  overflow: hidden;
}

.profile-inspector-meta span {
  min-width: 0;
  color: var(--muted);
  background: var(--surface);
  gap: 5px;
  padding: 11px 13px;
  font-size: 10px;
  display: grid;
}

.profile-inspector-meta b {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}

.profile-inspector-body section {
  min-width: 0;
}

.profile-inspector-body section h3 {
  color: var(--text);
  margin: 0 0 7px;
  font-size: 12px;
}

.profile-inspector-body pre {
  border: 1px solid var(--line);
  color: #34473b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f9f7;
  border-radius: 9px;
  max-height: 260px;
  margin: 0;
  padding: 13px;
  font: 11px / 1.55 IBM Plex Mono, monospace;
  overflow: auto;
}

.profile-inspector-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 3px;
  display: flex;
}

@media (max-width: 760px) {
  .profile-governance {
    gap: 17px;
    padding: 15px;
  }

  .profile-editor > summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-proposals {
    grid-template-columns: 1fr;
  }

  .profile-proposals > .profile-section-heading {
    grid-column: 1;
  }

  .profile-change-form {
    padding: 14px;
  }

  .profile-inspector-modal {
    width: 100%;
    max-height: 96vh;
  }

  .profile-inspector-body {
    max-height: calc(96vh - 88px);
  }

  .profile-inspector-meta {
    grid-template-columns: 1fr;
  }

  .profile-inspector-actions {
    justify-content: stretch;
  }

  .profile-inspector-actions button {
    flex: 1;
  }
}

.company-trading-account-content {
  gap: 17px;
  display: grid;
}

.company-trading-account-content > .page-heading {
  align-items: flex-end;
  margin-bottom: 0;
}

.company-trading-account-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 13px 0;
  display: flex;
}

.company-trading-account-toolbar label {
  min-width: min(360px, 100%);
  color: var(--muted);
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.company-trading-account-toolbar select, .company-trading-account-topup input {
  border: 1px solid var(--line);
  min-height: 40px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  border-radius: 8px;
  padding: 9px 11px;
}

.company-trading-account-mode {
  color: var(--muted);
  padding-bottom: 10px;
  font-size: 11px;
}

.company-trading-account-identity {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 15px;
  display: flex;
}

.company-trading-account-identity .eyebrow, .company-trading-account-topup .eyebrow, .company-trading-account-empty .eyebrow {
  color: var(--muted);
  letter-spacing: .1em;
  font-size: 9px;
  font-weight: 800;
}

.company-trading-account-identity h2, .company-trading-account-topup h2, .company-trading-account-empty h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 5px 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.company-trading-account-identity p, .company-trading-account-topup p, .company-trading-account-empty p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.company-trading-account-balances {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.company-trading-account-balances article {
  border-right: 1px solid var(--line);
  align-content: start;
  gap: 8px;
  min-height: 100px;
  padding: 15px 16px;
  display: grid;
}

.company-trading-account-balances article:last-child {
  border-right: 0;
}

.company-trading-account-balances span {
  color: var(--muted);
  letter-spacing: .07em;
  font-size: 9px;
  font-weight: 800;
}

.company-trading-account-balances strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.company-trading-account-balances small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.company-trading-account-main {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  display: grid;
  overflow: hidden;
}

.company-trading-account-topup {
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 17px;
  display: grid;
}

.company-trading-account-topup form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 9px;
  display: grid;
}

.company-trading-account-topup form label {
  color: var(--muted);
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.company-trading-account-topup form .primary-button {
  white-space: nowrap;
  min-height: 40px;
}

.company-trading-account-actions {
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
  align-content: center;
  justify-items: stretch;
  gap: 8px;
  min-width: 180px;
  padding: 15px;
  display: grid;
}

.company-trading-account-actions span {
  color: var(--muted);
  margin-bottom: 3px;
  font-size: 10px;
  line-height: 1.45;
}

.company-trading-account-history > header {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.company-trading-account-history > header h2 {
  margin: 0;
  font-size: 14px;
}

.company-trading-account-history > header span {
  color: var(--muted);
  font-size: 10px;
}

.company-trading-account-empty {
  border-block: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  display: flex;
}

.company-trading-account-empty > div {
  max-width: 700px;
}

.company-trading-account-legacy {
  background: var(--surface-soft);
  border-left: 3px solid #9a7941;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
  display: flex;
}

.company-trading-account-legacy > div {
  gap: 4px;
  display: grid;
}

.company-trading-account-legacy .eyebrow {
  color: #806536;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 800;
}

.company-trading-account-legacy strong {
  color: var(--text);
  font-size: 12px;
}

.company-trading-account-legacy p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.company-trading-account-legacy > span {
  color: #806536;
  flex: none;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .company-trading-account-balances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-trading-account-balances article:nth-child(2) {
    border-right: 0;
  }

  .company-trading-account-balances article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .company-trading-account-main {
    grid-template-columns: 1fr;
  }

  .company-trading-account-actions {
    border-top: 1px solid var(--line);
    border-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-trading-account-actions span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .company-trading-account-toolbar, .company-trading-account-identity, .company-trading-account-empty {
    flex-direction: column;
    align-items: stretch;
  }

  .company-trading-account-toolbar label {
    min-width: 0;
  }

  .company-trading-account-mode {
    padding: 0;
  }

  .company-trading-account-balances article {
    min-height: 90px;
    padding: 12px;
  }

  .company-trading-account-balances strong {
    font-size: 14px;
  }

  .company-trading-account-topup, .company-trading-account-topup form, .company-trading-account-actions {
    grid-template-columns: 1fr;
  }
}

.company-trading-account-content {
  gap: 20px;
}

.company-trading-account-content > .page-heading {
  align-items: center;
}

.company-trading-account-content > .page-heading h1 {
  letter-spacing: -.035em;
}

.company-trading-account-content > .page-heading p {
  max-width: 740px;
}

.company-trading-account-toolbar {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .72fr) auto;
  align-items: end;
  gap: 14px;
  padding: 13px 0 16px;
  display: grid;
}

.company-trading-account-toolbar label {
  min-width: 0;
}

.company-trading-account-toolbar select {
  border-radius: 9px;
  min-height: 42px;
}

.company-trading-account-filter-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding-bottom: 1px;
  display: flex;
}

.company-trading-account-mode {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  display: inline-flex;
}

.company-trading-account-mode i {
  background: #168568;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px #16856826;
}

.company-trading-account-identity {
  align-items: center;
  padding: 16px 0;
}

.trading-account-title h2 {
  color: var(--text);
  letter-spacing: -.035em;
  margin: 5px 0 4px;
  font-size: 22px;
}

.trading-account-title p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.trading-account-title p span {
  padding: 0 4px;
}

.trading-account-meta {
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  display: flex;
}

.trading-account-meta > span:not(.trading-account-state) {
  color: var(--muted);
  gap: 4px;
  font-size: 10px;
  display: grid;
}

.trading-account-meta b {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.trading-account-state, .trading-status {
  border: 1px solid var(--line);
  width: max-content;
  min-height: 23px;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
}

.trading-account-state.is-active, .trading-status.is-good {
  color: #12684f;
  border-color: #168568;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-account-state.is-active, .trading-status.is-good {
    border-color: color-mix(in srgb,#168568 28%,var(--line));
  }
}

.trading-account-state.is-active, .trading-status.is-good {
  background: #168568;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-account-state.is-active, .trading-status.is-good {
    background: color-mix(in srgb,#168568 9%,var(--surface));
  }
}

.trading-status.is-bad {
  color: #9d3e36;
  border-color: #c94d43;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-status.is-bad {
    border-color: color-mix(in srgb,#c94d43 30%,var(--line));
  }
}

.trading-status.is-bad {
  background: #c94d43;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-status.is-bad {
    background: color-mix(in srgb,#c94d43 8%,var(--surface));
  }
}

.company-trading-account-ledger {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  animation: .34s both trading-rise-in;
  overflow: hidden;
}

.company-trading-account-ledger > header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 17px 19px 13px;
  display: flex;
}

.company-trading-account-ledger > header h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 4px 0 0;
  font-size: 16px;
}

.trading-ledger-metrics {
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.trading-ledger-metrics article {
  border-right: 1px solid var(--line);
  align-content: center;
  gap: 9px;
  min-height: 93px;
  padding: 14px 19px;
  display: grid;
}

.trading-ledger-metrics article:last-child {
  border-right: 0;
}

.trading-ledger-metrics article > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.trading-ledger-metrics strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  font-size: 22px;
  line-height: 1;
}

.trading-ledger-metrics small {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 10px;
  font-weight: 550;
}

.company-trading-account-ledger > footer {
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
  padding: 10px 19px;
  font-size: 10px;
  display: flex;
}

.company-trading-account-ledger > footer b {
  color: var(--text);
  font-weight: 650;
}

.trading-activity-section {
  min-width: 0;
  padding-top: 5px;
}

.trading-activity-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 15px;
  display: flex;
}

.trading-activity-heading h2 {
  color: var(--text);
  letter-spacing: -.03em;
  margin: 4px 0 0;
  font-size: 19px;
}

.trading-account-tabs {
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.trading-account-tabs button {
  min-height: 46px;
  color: var(--muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 650;
  transition: color .18s, background .18s;
  display: inline-flex;
  position: relative;
}

.trading-account-tabs button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.trading-account-tabs button:after {
  content: "";
  background: none;
  height: 2px;
  transition: background .18s, transform .18s;
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  transform: scaleX(.45);
}

.trading-account-tabs button.is-active {
  color: var(--text);
}

.trading-account-tabs button.is-active:after {
  background: #168568;
  transform: scaleX(1);
}

.trading-account-tabs button b {
  min-width: 20px;
  height: 20px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  place-items: center;
  padding: 0 5px;
  font-size: 9px;
  display: grid;
}

.trading-account-tabs button.is-active b {
  color: #12684f;
  background: #168568;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-account-tabs button.is-active b {
    background: color-mix(in srgb,#168568 12%,var(--surface));
  }
}

.trading-tab-panel {
  min-width: 0;
  padding-top: 15px;
  animation: .22s both trading-panel-in;
}

.trading-table-heading {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  display: flex;
}

.trading-table-heading h3 {
  color: var(--text);
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.trading-table-heading button {
  padding: 0;
}

.trading-data-table {
  border-collapse: collapse;
  width: 100%;
  color: var(--text);
  font-size: 11px;
}

.trading-data-table th {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .045em;
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 9px;
  font-weight: 800;
}

.trading-data-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  padding: 11px 12px;
}

.trading-data-table tbody tr {
  transition: background .16s;
}

.trading-data-table tbody tr:hover {
  background: var(--surface-soft);
}

.trading-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.trading-data-table td strong {
  font-weight: 700;
}

.trading-table-scroll {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

.trading-text-button {
  color: #12684f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 750;
}

.trading-text-button:hover {
  text-underline-offset: 3px;
  text-decoration: underline;
}

.trading-settlement-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 17px;
  display: grid;
}

.trading-settlement-summary article {
  border-right: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  display: flex;
}

.trading-settlement-summary article:last-child {
  border: 0;
}

.trading-settlement-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.trading-settlement-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

.trading-reconciliation-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px;
  display: flex;
}

.trading-reconciliation-mark {
  color: #12684f;
  background: #168568;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .trading-reconciliation-mark {
    background: color-mix(in srgb,#168568 12%,var(--surface));
  }
}

.trading-reconciliation-mark {
  font-size: 18px;
  font-weight: 800;
}

.trading-reconciliation-summary h3 {
  color: var(--text);
  margin: 4px 0;
  font-size: 14px;
}

.trading-reconciliation-summary p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.trading-cash-details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  overflow: hidden;
}

.trading-cash-details > summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 17px;
  list-style: none;
  display: flex;
}

.trading-cash-details > summary::-webkit-details-marker {
  display: none;
}

.trading-cash-details > summary > span {
  gap: 4px;
  display: grid;
}

.trading-cash-details > summary b {
  color: var(--text);
  font-size: 12px;
}

.trading-cash-details > summary > strong {
  color: var(--text);
  font-size: 12px;
}

.trading-cash-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.trading-cash-content {
  gap: 0;
  display: grid;
}

.trading-cash-balance {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 28px;
  padding: 13px 17px;
  display: flex;
}

.trading-cash-balance > div {
  gap: 4px;
  display: grid;
}

.trading-cash-balance span {
  color: var(--muted);
  font-size: 9px;
}

.trading-cash-balance strong {
  color: var(--text);
  font-size: 13px;
}

.trading-cash-mode {
  margin-left: auto;
}

.trading-cash-content .company-trading-account-topup {
  border-bottom: 1px solid var(--line);
}

.trading-cash-content .company-trading-account-history {
  box-shadow: none;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.company-trading-account-history > header h2 {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.company-trading-account-history > header h2 small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.trading-loading {
  min-height: 125px;
  color: var(--muted);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.trading-loader {
  border: 2px solid var(--line);
  border-top-color: #168568;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .7s linear infinite trading-spin;
}

.company-trading-account-portal .trading-tab-panel > .toolbar {
  background: none;
  border: 0;
  min-height: 0;
  padding: 0 0 12px;
}

.company-trading-account-portal .trading-tab-panel > .toolbar .datatable-search {
  background: var(--surface);
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  width: min(100%, 300px);
  min-height: 37px;
}

.company-trading-account-portal .trading-tab-panel > .toolbar .datatable-search input {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  overflow: auto;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap table {
  min-width: 700px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap thead th {
  color: #64748b;
  letter-spacing: .025em;
  text-transform: none;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  height: 38px;
  padding: 0 11px;
  font-size: 9px;
  font-weight: 700;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap tbody td {
  color: #334155;
  border-top: 1px solid #edf0f3;
  height: 42px;
  padding: 8px 11px;
  font-size: 11px;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap tbody tr:hover {
  background: #f8fafc;
}

.company-trading-account-portal .trading-tab-panel > .table-wrap .state-panel {
  color: #64748b;
  padding: 24px 14px;
  font-size: 11px;
}

.company-trading-account-portal .trading-tab-panel > .table-footer {
  color: #64748b;
  border: 0;
  min-height: 44px;
  padding: 9px 2px 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-trading-account-portal .trading-tab-panel > .table-footer .pagination {
  gap: 7px;
}

.company-trading-account-portal .trading-tab-panel > .table-footer .outline-button {
  border-radius: 7px;
  min-height: 29px;
  font-size: 10px;
}

.company-trading-account-portal :is(button, select, input, summary):focus-visible {
  outline-offset: 2px;
  outline: 3px solid #1685684d;
}

@keyframes trading-rise-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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

@keyframes trading-panel-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

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

@keyframes trading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 950px) {
  .company-trading-account-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .company-trading-account-filter-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .trading-account-meta {
    gap: 13px;
  }

  .trading-ledger-metrics strong {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .company-trading-account-identity, .trading-activity-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .trading-account-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .trading-ledger-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .trading-ledger-metrics article:nth-child(2) {
    border-right: 0;
  }

  .trading-ledger-metrics article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .company-trading-account-ledger > footer {
    flex-direction: column;
  }

  .trading-settlement-summary {
    grid-template-columns: 1fr;
  }

  .trading-settlement-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trading-settlement-summary article:last-child {
    border-bottom: 0;
  }

  .trading-cash-balance {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 22px;
  }

  .trading-cash-mode {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .company-trading-account-toolbar {
    grid-template-columns: 1fr;
  }

  .company-trading-account-filter-actions {
    grid-column: auto;
  }

  .company-trading-account-ledger > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trading-ledger-metrics article {
    padding: 12px;
  }

  .trading-ledger-metrics strong {
    font-size: 16px;
  }

  .trading-account-meta {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .trading-account-meta .trading-account-state {
    grid-column: 1 / -1;
  }
}

.company-trading-account-content {
  gap: 18px;
  font-family: Plus Jakarta Sans, sans-serif;
}

.company-trading-account-content > .page-heading {
  align-items: center;
  padding-bottom: 3px;
}

.company-trading-account-content > .page-heading .eyebrow {
  color: #64748b;
  letter-spacing: .085em;
  font-size: 9px;
}

.company-trading-account-content > .page-heading h1 {
  color: #0f172a;
  margin: 6px 0 5px;
  font-size: 23px;
  font-weight: 700;
}

.company-trading-account-content > .page-heading p {
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

.company-trading-account-content > .page-heading .secondary-button {
  border-color: #dbe3eb;
  border-radius: 8px;
  min-height: 36px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  box-shadow: 0 1px 2px #0f172a06;
}

.company-trading-account-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  grid-template-columns: minmax(230px, 1fr) minmax(170px, .65fr) auto;
  gap: 12px;
  padding: 12px;
}

.company-trading-account-toolbar label {
  color: #64748b;
  letter-spacing: .025em;
  font-size: 9px;
}

.company-trading-account-toolbar select {
  border-color: #dbe3eb;
  border-radius: 7px;
  min-height: 38px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 11px;
}

.company-trading-account-filter-actions {
  gap: 12px;
}

.company-trading-account-filter-actions .outline-button {
  border-radius: 7px;
  min-height: 36px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.company-trading-account-identity {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px #0f172a06;
}

.trading-account-title h2 {
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 19px;
}

.trading-account-title p {
  color: #64748b;
  font-size: 10px;
}

.trading-account-meta {
  gap: 18px;
}

.trading-account-meta > span:not(.trading-account-state) {
  font-size: 9px;
}

.trading-account-meta b {
  font-size: 11px;
}

.trading-account-state {
  min-height: 23px;
  padding-inline: 9px;
  font-size: 9px;
}

.company-trading-account-ledger {
  border-color: #e2e8f0;
  border-radius: 11px;
  box-shadow: 0 1px 2px #0f172a06;
}

.company-trading-account-ledger > header {
  align-items: center;
  padding: 14px 16px 12px;
}

.company-trading-account-ledger > header .eyebrow {
  color: #64748b;
  letter-spacing: .07em;
  font-size: 9px;
}

.company-trading-account-ledger > header h2 {
  font-size: 14px;
  font-weight: 700;
}

.company-trading-account-ledger > header > span {
  color: #64748b;
  font-size: 9px;
}

.trading-ledger-metrics {
  border-block-color: #e2e8f0;
}

.trading-ledger-metrics article {
  border-right-color: #e2e8f0;
  min-height: 84px;
  padding: 13px 16px;
}

.trading-ledger-metrics article > span {
  color: #64748b;
  letter-spacing: .01em;
  font-size: 9px;
  font-weight: 650;
}

.trading-ledger-metrics strong {
  color: #0f172a;
  letter-spacing: -.045em;
  font-family: JetBrains Mono, monospace;
  font-size: 19px;
  font-weight: 650;
}

.trading-ledger-metrics .is-total {
  background: #f8fafc;
}

.company-trading-account-ledger > footer {
  color: #64748b;
  padding: 9px 16px;
  font-size: 9px;
}

.trading-activity-section {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 15px 16px 13px;
  overflow: hidden;
  box-shadow: 0 1px 2px #0f172a06;
}

.trading-activity-heading {
  margin-bottom: 9px;
}

.trading-activity-heading .eyebrow {
  color: #64748b;
  letter-spacing: .075em;
  font-size: 9px;
}

.trading-activity-heading h2 {
  color: #0f172a;
  letter-spacing: -.025em;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}

.trading-account-tabs {
  border-bottom-color: #e2e8f0;
  gap: 2px;
}

.trading-account-tabs button {
  min-height: 42px;
  padding-inline: 12px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 650;
}

.trading-account-tabs button:after {
  left: 9px;
  right: 9px;
}

.trading-account-tabs button b {
  min-width: 18px;
  height: 18px;
  font-size: 9px;
}

.trading-tab-panel {
  padding-top: 13px;
}

.trading-table-heading h3 {
  font-size: 12px;
}

.trading-table-heading > span {
  color: #64748b;
  font-size: 9px;
}

.trading-table-scroll {
  border-color: #e2e8f0;
  border-radius: 8px;
}

.trading-data-table {
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
}

.trading-data-table th {
  color: #64748b;
  letter-spacing: .015em;
  text-transform: none;
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
  height: 36px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 700;
}

.trading-data-table td {
  border-bottom-color: #edf0f3;
  padding: 9px 10px;
  font-size: 10px;
}

.trading-settlement-summary {
  border-color: #e2e8f0;
  border-radius: 8px;
}

.trading-settlement-summary article {
  border-right-color: #e2e8f0;
  padding: 10px 12px;
}

.trading-settlement-summary span {
  font-size: 9px;
}

.trading-settlement-summary strong {
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
}

.trading-reconciliation-summary {
  border-color: #e2e8f0;
  border-radius: 8px;
  padding: 13px;
}

.trading-reconciliation-summary h3 {
  font-size: 12px;
}

.trading-reconciliation-summary p {
  color: #64748b;
  font-size: 9px;
}

.trading-cash-details {
  border-color: #e2e8f0;
  border-radius: 10px;
}

.trading-cash-details > summary {
  padding: 12px 15px;
}

.trading-cash-details > summary b {
  font-size: 11px;
}

.trading-cash-details > summary small {
  color: #64748b;
  font-size: 9px;
}

@media (max-width: 700px) {
  .company-trading-account-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .company-trading-account-identity {
    padding: 13px;
  }

  .trading-account-meta {
    gap: 12px 18px;
  }

  .trading-activity-section {
    padding: 13px 11px 10px;
  }

  .trading-account-tabs button {
    padding-inline: 10px;
  }
}

@media (max-width: 480px) {
  .company-trading-account-content > .page-heading .secondary-button {
    width: 100%;
  }

  .company-trading-account-toolbar {
    grid-template-columns: 1fr;
  }

  .company-trading-account-filter-actions {
    grid-column: auto;
  }

  .company-trading-account-filter-actions .outline-button {
    flex: none;
  }

  .company-trading-account-ledger > header {
    padding-inline: 13px;
  }

  .trading-ledger-metrics article {
    min-height: 72px;
    padding: 10px 11px;
  }

  .trading-ledger-metrics strong {
    font-size: 15px;
  }

  .trading-ledger-metrics article > span {
    font-size: 8px;
  }

  .company-trading-account-ledger > footer {
    padding-inline: 13px;
  }

  .trading-activity-heading h2 {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-trading-account-ledger, .trading-tab-panel, .trading-loader {
    animation: none;
  }

  .trading-account-tabs button, .trading-account-tabs button:after, .trading-data-table tbody tr {
    transition: none;
  }
}

.marketplace-fixed-minimum input[readonly] {
  cursor: not-allowed;
  color: #475569;
  background: #f8fafc;
  font-weight: 700;
}

.marketplace-fixed-minimum small {
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

.company-surrender-modal .retirement-live-calculation {
  background: #f8fbf9;
  border: 1px solid #dbe6e0;
  border-radius: 9px;
  gap: 9px;
  padding: 12px;
  display: grid;
}

.company-surrender-modal .retirement-live-calculation > header {
  gap: 3px;
  display: grid;
}

.company-surrender-modal .retirement-live-calculation > header strong {
  color: var(--text);
  font: 700 11px Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-live-calculation > header small {
  color: var(--muted);
  font: 400 9px / 1.4 Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-live-calculation-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  display: grid;
}

.company-surrender-modal .retirement-live-calculation-grid article {
  background: var(--surface);
  border: 1px solid #e1e8e4;
  border-radius: 7px;
  align-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  display: grid;
}

.company-surrender-modal .retirement-live-calculation-grid article > span {
  color: var(--muted);
  font: 600 9px / 1.4 Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-live-calculation-grid article > strong {
  color: var(--text);
  overflow-wrap: anywhere;
  font: 700 13px / 1.2 JetBrains Mono, monospace;
}

.company-surrender-modal .retirement-live-calculation-grid article > strong small {
  color: var(--muted);
  font: 600 9px Plus Jakarta Sans, sans-serif;
}

.company-surrender-modal .retirement-live-calculation-grid article.is-complete > strong {
  color: #176b3a;
}

.company-surrender-modal .retirement-live-calculation-grid article.is-pending > strong, .company-surrender-modal .retirement-live-calculation-grid article.is-excess > strong {
  color: #a64b20;
}

.company-surrender-modal .retirement-request-summary-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
  display: grid;
}

.company-surrender-modal .retirement-summary-cards.request-summary {
  display: contents;
}

.company-surrender-modal .retirement-summary-cards.request-summary > .position-card {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

.company-surrender-modal .retirement-summary-cards.request-summary > .retirement-movement-details {
  grid-column: auto;
  min-width: 0;
}

.company-surrender-modal .retirement-timeline-details {
  min-width: 0;
}

.company-surrender-modal .retirement-timeline-details > summary {
  color: #334155;
  cursor: pointer;
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  font: 700 11px Plus Jakarta Sans, sans-serif;
  list-style: none;
  display: flex;
}

.company-surrender-modal .retirement-timeline-details > summary::-webkit-details-marker {
  display: none;
}

.company-surrender-modal .retirement-timeline-details > summary:after {
  content: "+";
  font: 700 16px JetBrains Mono, monospace;
}

.company-surrender-modal .retirement-timeline-details[open] > summary {
  border-radius: 9px 9px 0 0;
}

.company-surrender-modal .retirement-timeline-details[open] > summary:after {
  content: "−";
}

.company-surrender-modal .retirement-timeline-details > .retirement-timeline-panel {
  border-top: 0;
  border-radius: 0 0 9px 9px;
  margin: 0;
  padding: 11px;
}

@media (max-width: 640px) {
  .company-surrender-modal .retirement-request-summary-layout {
    grid-template-columns: 1fr;
  }
}

.company-retirement-overview .retirement-request-summary-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
  display: grid;
}

.company-retirement-overview .retirement-summary-cards.request-summary {
  display: contents;
}

.company-retirement-overview .retirement-summary-cards.request-summary > .position-card {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

.company-retirement-overview .retirement-summary-cards.request-summary > .retirement-movement-details, .company-retirement-overview .retirement-timeline-details {
  min-width: 0;
}

.company-retirement-overview .retirement-timeline-details > summary {
  color: #334155;
  cursor: pointer;
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  font: 700 11px Plus Jakarta Sans, sans-serif;
  list-style: none;
  display: flex;
}

.company-retirement-overview .retirement-timeline-details > summary::-webkit-details-marker {
  display: none;
}

.company-retirement-overview .retirement-timeline-details > summary:after {
  content: "+";
  font: 700 16px JetBrains Mono, monospace;
}

.company-retirement-overview .retirement-timeline-details[open] > summary {
  border-radius: 9px 9px 0 0;
}

.company-retirement-overview .retirement-timeline-details[open] > summary:after {
  content: "−";
}

.company-retirement-overview .retirement-timeline-details > .retirement-timeline-panel {
  border-top: 0;
  border-radius: 0 0 9px 9px;
  margin: 0;
  padding: 11px;
}

@media (max-width: 640px) {
  .company-retirement-overview .retirement-request-summary-layout {
    grid-template-columns: 1fr;
  }
}

.facility-activity-dot.purchase {
  background: #3578a8;
}

.quota-activity-mark.sale {
  color: #9a6816;
  background: #fff5e2;
}

.quota-activity-mark.purchase {
  color: #28688f;
  background: #eaf4fb;
}

.monitoring-details-grid {
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  gap: 12px;
  margin: 0 0 14px;
  display: grid;
}

.monitoring-detail-panel {
  background: var(--surface, #fff);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
  padding: 15px 16px;
  box-shadow: 0 1px 2px #0f172a09;
}

.monitoring-detail-panel > header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
  display: flex;
}

.monitoring-detail-panel > header > div {
  gap: 3px;
  display: grid;
}

.monitoring-detail-panel > header .quota-dashboard-kicker {
  font-size: 9px;
}

.monitoring-detail-panel > header h2 {
  color: var(--text, #18352a);
  letter-spacing: -.015em;
  margin: 0;
  font: 700 13px / 1.3 Plus Jakarta Sans, sans-serif;
}

.monitoring-detail-panel > header > small {
  color: var(--muted, #68766d);
  flex: none;
  font: 550 9px Plus Jakarta Sans, sans-serif;
}

.monitoring-movement-list {
  margin: 0;
  display: grid;
}

.monitoring-movement-list > div {
  border-top: 1px solid #edf1ef;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 7px 0;
  display: flex;
}

.monitoring-movement-list dt {
  color: var(--text, #18352a);
  align-items: center;
  gap: 8px;
  font: 550 10px Plus Jakarta Sans, sans-serif;
  display: flex;
}

.monitoring-movement-list dd {
  color: var(--text, #18352a);
  font-variant-numeric: tabular-nums;
  margin: 0;
  font: 700 11px JetBrains Mono, monospace;
}

.movement-direction {
  border-radius: 5px;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  font: 700 12px JetBrains Mono, monospace;
  display: grid;
}

.movement-direction.positive {
  color: #187344;
  background: #e9f6ee;
}

.movement-direction.negative {
  color: #a45b1d;
  background: #fff3e8;
}

.monitoring-chronology-list {
  max-height: 226px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: auto;
}

.monitoring-chronology-list > li {
  border-top: 1px solid #edf1ef;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 7px 0;
  display: grid;
}

.monitoring-event-dot {
  background: #7a8b80;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.monitoring-event-dot.purchase {
  background: #3578a8;
}

.monitoring-event-dot.sale {
  background: #b17922;
}

.monitoring-event-dot.retirement {
  background: #168558;
}

.monitoring-event-dot.verified_emission {
  background: #7357a6;
}

.monitoring-event-dot.issuance {
  background: #168558;
}

.monitoring-event-dot.expiry {
  background: #a45b1d;
}

.monitoring-event-description {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.monitoring-event-description strong {
  color: var(--text, #18352a);
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 650 10px Plus Jakarta Sans, sans-serif;
  overflow: hidden;
}

.monitoring-event-description small, .monitoring-event-description time {
  color: var(--muted, #68766d);
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 450 9px / 1.35 Plus Jakarta Sans, sans-serif;
  overflow: hidden;
}

.monitoring-chronology-list > li > b {
  color: var(--text, #18352a);
  text-align: right;
  white-space: nowrap;
  font: 700 10px JetBrains Mono, monospace;
}

.monitoring-chronology-list > li > b small {
  color: var(--muted, #68766d);
  font: 550 8px Plus Jakarta Sans, sans-serif;
}

.monitoring-chronology-empty {
  min-height: 120px;
  color: var(--muted, #68766d);
  text-align: center;
  place-items: center;
  font: 500 10px Plus Jakarta Sans, sans-serif;
  display: grid;
}

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

  .monitoring-chronology-list {
    max-height: 250px;
  }
}

.part2-monitor-tabs {
  scrollbar-width: thin;
  flex-wrap: nowrap;
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.part2-monitor-tabs > button {
  flex: none;
}

.monitoring-tab-content {
  min-width: 0;
  padding: 2px 2px 12px;
}

.monitoring-tab-heading {
  border-bottom: 1px solid #e2e8f0;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 0 9px;
  display: flex;
}

.monitoring-tab-heading > div {
  gap: 3px;
  display: grid;
}

.monitoring-tab-heading h2 {
  color: var(--text, #18352a);
  letter-spacing: -.02em;
  margin: 0;
  font: 700 15px / 1.3 Plus Jakarta Sans, sans-serif;
}

.monitoring-tab-heading > small {
  color: var(--muted, #68766d);
  flex: none;
  font: 550 9px Plus Jakarta Sans, sans-serif;
}

.monitoring-movement-list {
  max-width: 760px;
  display: grid;
}

.monitoring-movement-row {
  border-bottom: 1px solid #e8edf3;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 9px 4px;
  display: flex;
}

.monitoring-movement-row > span {
  color: var(--text, #18352a);
  align-items: center;
  gap: 10px;
  font: 550 11px Plus Jakarta Sans, sans-serif;
  display: flex;
}

.monitoring-movement-row > strong {
  color: var(--text, #18352a);
  font-variant-numeric: tabular-nums;
  font: 700 12px JetBrains Mono, monospace;
}

.monitoring-full-timeline-list {
  max-height: none;
  padding-left: 2px;
  overflow: visible;
}

.monitoring-full-timeline-list li {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 58px;
  padding: 10px 0;
}

.monitoring-full-timeline-list li:not(:last-child):before {
  content: "";
  background: #cbd5e1;
  width: 1px;
  position: absolute;
  top: 23px;
  bottom: -2px;
  left: 4px;
}

.monitoring-full-timeline-list li:not(:last-child) .retirement-timeline-dot:after {
  display: none;
}

.monitoring-full-timeline-list .retirement-timeline-dot {
  margin-top: 4px;
}

.monitoring-dot-purchase {
  border-color: #3578a8;
}

.monitoring-dot-sale {
  border-color: #b17922;
}

.monitoring-dot-retirement {
  border-color: #168558;
}

.monitoring-dot-verified_emission {
  border-color: #7357a6;
}

.monitoring-dot-issuance {
  border-color: #168558;
}

.monitoring-dot-expiry {
  border-color: #a45b1d;
}

@media (max-width: 620px) {
  .monitoring-full-timeline-list li {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 9px;
  }

  .monitoring-full-timeline-list li > b {
    text-align: left;
    grid-column: 2;
  }

  .monitoring-movement-list {
    max-width: none;
  }
}

.monitoring-chronology-more {
  justify-content: center;
  padding: 12px 0 4px;
  display: flex;
}

.tutorial-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}

.tutorial-back-btn {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.tutorial-filter-bar {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  padding-bottom: 20px;
  display: flex;
}

.search-input-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 260px;
  color: var(--muted);
  border-radius: 10px;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.search-input-wrapper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #0073481f;
}

.search-input-wrapper input {
  width: 100%;
  min-height: 40px;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 13px;
}

.category-select-wrapper {
  color: var(--muted);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.category-select-wrapper select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 180px;
  min-height: 40px;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  outline: 0;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
}

.tutorial-loading-box, .tutorial-empty-box {
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--surface);
  border-radius: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 60px 24px;
  display: flex;
}

.tutorial-loading-box .spinner {
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: .8s linear infinite tutorial-spin;
}

@keyframes tutorial-spin {
  to {
    transform: rotate(360deg);
  }
}

.tutorial-empty-box .empty-icon-wrap {
  color: var(--muted);
  opacity: .7;
  margin-bottom: 4px;
}

.tutorial-empty-box h3 {
  color: var(--text);
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.tutorial-empty-box p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 12px;
  font-size: 13px;
}

.tutorial-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  display: grid;
}

.tutorial-card {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  border-radius: 16px;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s cubic-bezier(.16, 1, .3, 1), border-color .2s;
  display: flex;
  overflow: hidden;
}

.tutorial-card:hover {
  border-color: #00734861;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #00000012;
}

.tutorial-card-media {
  aspect-ratio: 16 / 9;
  background: #0c1611;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.media-gradient-bg {
  background: linear-gradient(135deg, #092116 0%, #153e2c 50%, #1a2f26 100%);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.media-gradient-bg:after {
  content: "";
  opacity: .4;
  background-image: radial-gradient(#ffffff1a 1px, #0000 1px);
  background-size: 16px 16px;
  position: absolute;
  inset: 0;
}

.media-play-icon {
  color: #007348;
  z-index: 2;
  background: #ffffffeb;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  padding-left: 3px;
  font-size: 18px;
  transition: transform .2s, background .2s;
  display: flex;
  box-shadow: 0 4px 16px #0000004d;
}

.tutorial-card:hover .media-play-icon {
  background: #fff;
  transform: scale(1.12);
}

.media-duration-chip {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  z-index: 2;
  background: #000000bf;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.media-category-chip {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 2;
  background: #007348e6;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: 12px;
  left: 12px;
}

.tutorial-card-body {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px;
  display: flex;
}

.card-top-info {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  display: flex;
}

.card-steps-count {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.status-chip {
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.chip-done {
  color: #027a48;
  background: #e6f7ee;
}

.chip-progress {
  color: #175cd3;
  background: #eff8ff;
}

:root[data-theme="dark"] .chip-done {
  color: #6ce9a6;
  background: #16855833;
}

:root[data-theme="dark"] .chip-progress {
  color: #84caff;
  background: #175cd333;
}

.card-title {
  color: var(--text);
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.card-summary {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
}

.card-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
}

.card-action-text {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}

.card-arrow-icon {
  color: var(--green-deep);
  font-size: 14px;
  transition: transform .2s;
}

.tutorial-card:hover .card-arrow-icon {
  transform: translateX(4px);
}

.tutorial-pagination-bar {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 12px;
  display: flex;
}

.pagination-buttons {
  gap: 8px;
  display: flex;
}

.tutorial-detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
  display: grid;
}

.tutorial-player-column {
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  display: flex;
}

.tutorial-video-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
}

.tutorial-player-frame {
  aspect-ratio: 16 / 9;
  background: #080f0c;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tutorial-player-frame video {
  object-fit: contain;
  background: #000;
  width: 100%;
  height: 100%;
  display: block;
}

.tutorial-live-caption-overlay {
  pointer-events: none;
  z-index: 10;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  bottom: 54px;
  left: 24px;
  right: 24px;
}

.tutorial-live-caption-overlay span {
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 0 1px 3px #000000e6;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0a120ee6;
  border: 1px solid #fff3;
  border-radius: 8px;
  max-width: 90%;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  display: inline-block;
  box-shadow: 0 4px 16px #0009;
}

.tutorial-cc-toggle-btn {
  z-index: 15;
  color: #34d399;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0a120ecc;
  border: 1px solid #34d39966;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  transition: all .15s;
  display: flex;
  position: absolute;
  top: 14px;
  right: 14px;
}

.tutorial-cc-toggle-btn:hover {
  color: #fff;
  background: #10b981f2;
  border-color: #10b981;
}

.tutorial-cc-toggle-btn.off {
  color: #9ca3af;
  background: #0009;
  border-color: #fff3;
}

video::cue {
  color: #fff !important;
  text-shadow: 0 1px 3px #000 !important;
  background: #0a120ee6 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.tutorial-video-empty {
  color: #d6e5da;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 20px;
  display: flex;
}

.play-icon-circle {
  color: #fff;
  border: 2px solid #ffffff4d;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
}

.tutorial-video-empty strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.tutorial-video-empty small {
  color: #9bb1a3;
  font-size: 12px;
}

.tutorial-video-info {
  padding: 22px 24px;
}

.tutorial-meta-tags {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.category-pill {
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.module-pill {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.duration-pill {
  color: var(--muted);
  padding: 3px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.tutorial-video-info h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.tutorial-video-info p {
  color: var(--muted);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.tutorial-progress-banner {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 14px;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  display: flex;
}

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

.progress-info strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.progress-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  height: 100%;
  transition: width .3s;
}

.tutorial-steps-container {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 22px;
}

.steps-header {
  margin-bottom: 16px;
}

.steps-header h3 {
  color: var(--text);
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.tutorial-steps-list {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.tutorial-step-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: flex;
}

.tutorial-step-card:hover {
  background: var(--surface);
  border-color: #00734859;
}

.tutorial-step-card.is-active {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--green);
}

.tutorial-step-card.is-complete {
  background: var(--surface);
  border-color: #10b98159;
}

.step-check-circle {
  border: 2px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 700;
  transition: all .18s;
  display: flex;
}

.step-check-circle:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.tutorial-step-card.is-complete .step-check-circle {
  color: #fff;
  background: #007348;
  border-color: #007348;
}

.step-card-content {
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.step-card-header {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  display: flex;
}

.step-card-header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.step-timestamp {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 600;
}

.step-card-content p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 12.8px;
  line-height: 1.6;
}

.step-route-link {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  display: inline-flex;
}

.step-route-link code {
  color: var(--green-deep);
  font-family: JetBrains Mono, monospace;
  font-weight: 600;
}

.tutorial-transcript-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 14px;
  overflow: hidden;
}

.tutorial-transcript-card summary {
  color: var(--green-deep);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
  display: flex;
}

.tutorial-transcript-card summary::-webkit-details-marker {
  display: none;
}

.transcript-body {
  border-top: 1px solid var(--line);
  color: var(--muted);
  white-space: pre-wrap;
  background: var(--surface-soft);
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.75;
}

.tutorial-sidebar-curriculum {
  position: sticky;
  top: 24px;
}

.curriculum-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
}

.curriculum-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  display: flex;
}

.curriculum-header strong {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.curriculum-list {
  flex-direction: column;
  max-height: 480px;
  display: flex;
  overflow-y: auto;
}

.curriculum-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: none;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  transition: background .15s;
  display: flex;
}

.curriculum-item:hover {
  background: #0073480d;
}

.curriculum-item.active {
  background: var(--green-tint);
  border-left: 3px solid var(--green);
}

.curriculum-item.done .item-num {
  color: #fff;
  background: #007348;
  border-color: #007348;
}

.item-num {
  border: 1px solid var(--line);
  width: 24px;
  height: 24px;
  color: var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: 1px;
  font-family: JetBrains Mono, monospace;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
}

.item-text {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.item-text strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.item-text small {
  color: var(--muted);
  font-family: JetBrains Mono, monospace;
  font-size: 10.5px;
}

.curriculum-footer {
  border-top: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  display: flex;
}

.curriculum-footer .w-full {
  justify-content: center;
  width: 100%;
}

.version-tag {
  color: var(--muted);
  text-align: center;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.tutorial-admin-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  align-items: start;
  gap: 24px;
  display: grid;
}

.tutorial-admin-editor, .tutorial-admin-list {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 22px;
}

.tutorial-admin-editor header, .tutorial-admin-list header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.tutorial-admin-editor header h2, .tutorial-admin-list header h2 {
  color: var(--text);
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.tutorial-editor-tabs {
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  gap: 6px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  display: flex;
  overflow-x: auto;
}

.tutorial-editor-tabs button {
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 650;
  transition: all .15s;
}

.tutorial-editor-tabs button.active {
  background: var(--green-tint);
  color: var(--green-deep);
  border-color: #00734840;
}

.tutorial-form-body {
  margin-bottom: 22px;
}

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

.tutorial-form-grid label {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
}

.tutorial-span-two {
  grid-column: 1 / -1;
}

.tutorial-form-grid input:not([type="checkbox"]), .tutorial-form-grid textarea {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
}

.tutorial-form-grid textarea {
  resize: vertical;
  line-height: 1.55;
}

.tutorial-json-editor {
  font-family: JetBrains Mono, monospace !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
}

.field-hint-row {
  justify-content: space-between;
  align-items: baseline;
  display: flex;
}

.field-hint-row small {
  color: var(--muted);
  font-weight: 500;
}

.tutorial-audience {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 14px;
  display: flex;
}

.tutorial-audience legend {
  color: var(--muted);
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.audience-pill {
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.tutorial-upload-zone {
  border: 2px dashed var(--line);
  text-align: center;
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  display: flex;
}

.tutorial-upload-zone strong {
  color: var(--text);
  font-size: 14px;
}

.tutorial-upload-zone p {
  margin: 0;
  font-size: 12px;
}

.tutorial-upload-zone input[type="file"] {
  margin-top: 8px;
  font-size: 12px;
}

.upload-file-chip {
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 650;
  display: inline-flex;
}

.tutorial-form-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  display: flex;
}

.tutorial-admin-filter {
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.tutorial-admin-filter input, .tutorial-admin-filter select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 38px;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.tutorial-admin-filter input {
  flex: 1;
}

.tutorial-admin-filter select {
  max-width: 150px;
}

.tutorial-admin-items {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.tutorial-admin-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  display: flex;
}

.tutorial-admin-card-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tutorial-admin-card strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}

.admin-meta {
  color: var(--muted);
  margin: 0;
  font-size: 11.5px;
}

.tutorial-admin-actions {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  display: flex;
}

@media (max-width: 960px) {
  .tutorial-detail-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-sidebar-curriculum {
    position: static;
  }

  .tutorial-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tutorial-content {
    padding: 16px 14px 40px;
  }

  .tutorial-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .category-select-wrapper {
    justify-content: space-between;
  }

  .category-select-wrapper select {
    flex: 1;
  }

  .tutorial-cards-grid, .tutorial-form-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-span-two {
    grid-column: auto;
  }

  .tutorial-admin-filter {
    flex-direction: column;
  }

  .tutorial-admin-filter select {
    max-width: none;
  }

  .tutorial-form-actions {
    flex-direction: column;
  }

  .tutorial-form-actions button {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1600px) {
  .content-wrap, .content-wrap.market-sell-page, .marketplace-content, .quota-dashboard-content, .company-profile-help-content, .tutorial-content {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(32px, 2.2vw, 72px);
    padding-right: clamp(32px, 2.2vw, 72px);
  }

  .intensity-formula-page {
    width: 100%;
    max-width: none;
  }
}

.schedule-card .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.schedule-card .table-wrap table {
  width: 100%;
  min-width: 850px;
}

.schedule-card .table-wrap td:last-child {
  white-space: normal;
  min-width: 220px;
  line-height: 1.5;
}

.schedule-state {
  color: var(--muted);
  text-align: center;
  padding: 28px 16px;
  font-size: 12px;
}

.schedule-error {
  border: 1px solid var(--danger);
  margin: 12px;
  padding: 11px 13px;
}

@supports (color: color-mix(in lab, red, red)) {
  .schedule-error {
    border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line));
  }
}

.schedule-error {
  background: var(--danger);
  border-radius: 7px;
}

@supports (color: color-mix(in lab, red, red)) {
  .schedule-error {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  }
}

.schedule-error {
  color: var(--danger);
  font-size: 11px;
}

.market-overview-portal {
  --market-overview-accent: #167347;
}

.market-overview-content {
  max-width: 1600px;
  margin: 0 auto;
}

.market-overview-content .page-heading {
  align-items: center;
  margin-bottom: 20px;
}

.market-overview-content .page-heading h1 {
  color: var(--text);
  letter-spacing: -.035em;
  margin: 7px 0 5px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.market-overview-content .page-heading p {
  max-width: 680px;
  font-size: 11px;
  line-height: 1.55;
}

.market-overview-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 9px;
  display: flex;
}

.market-overview-period {
  color: var(--muted);
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.market-overview-period select {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 155px;
  min-height: 34px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 6px 28px 6px 9px;
}

.market-overview-mode {
  border: 1px solid var(--market-overview-accent);
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-mode {
    border: 1px solid color-mix(in srgb,var(--market-overview-accent) 23%,var(--line));
  }
}

.market-overview-mode {
  background: var(--market-overview-accent);
  border-radius: 7px;
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-mode {
    background: color-mix(in srgb,var(--market-overview-accent) 6%,var(--surface));
  }
}

.market-overview-mode {
  color: var(--market-overview-accent);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 750;
}

.market-overview-simulation-badge {
  color: #8a5b0a;
  white-space: nowrap;
  background: #fff8e8;
  border: 1px solid #e8d5a5;
  border-radius: 999px;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.market-overview-mode i, .market-overview-session-state i {
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.market-overview-refresh {
  align-items: center;
  gap: 7px;
  display: inline-flex;
  min-height: 34px !important;
}

.market-overview-refresh span {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.market-overview-refresh span.is-spinning {
  animation: .8s linear infinite market-overview-spin;
}

@keyframes market-overview-spin {
  to {
    transform: rotate(360deg);
  }
}

.market-overview-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0 0 22px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-summary {
    background: color-mix(in srgb,var(--surface) 78%,transparent);
  }
}

.market-overview-summary article {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 103px;
  padding: 15px 19px;
  display: flex;
}

.market-overview-summary article + article {
  border-left: 1px solid var(--line);
}

.market-overview-summary .overview-label {
  color: var(--muted);
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 750;
}

.market-overview-summary article > strong {
  color: var(--text);
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.market-overview-summary article > strong small {
  color: var(--muted);
  letter-spacing: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.market-overview-session-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.market-overview-session-line > strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.market-overview-session > small, .market-overview-source {
  color: var(--muted);
  font-size: 10px;
}

.market-overview-session-state {
  color: #64748b;
  letter-spacing: .04em;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.market-overview-session-state.state-open {
  color: #167347;
}

.market-overview-session-state.state-upcoming {
  color: #a16408;
}

.market-overview-session-state i {
  width: 6px;
  height: 6px;
}

.market-overview-listings {
  min-width: 0;
}

.market-overview-list-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 12px;
  display: flex;
}

.market-overview-list-heading h2 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0 0 4px;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 15px;
  font-weight: 750;
}

.market-overview-list-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.market-overview-status-tabs {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 4px;
  min-height: 40px;
  margin: 0 0 10px;
  padding: 4px;
  display: flex;
}

.market-overview-status-tabs button {
  min-height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 5px 11px;
  font: 600 10px Plus Jakarta Sans, sans-serif;
}

.market-overview-status-tabs button:hover {
  background: var(--surface);
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-status-tabs button:hover {
    background: color-mix(in srgb,var(--surface) 70%,var(--line));
  }
}

.market-overview-status-tabs button:hover {
  color: var(--text);
}

.market-overview-status-tabs button.active {
  border-color: var(--market-overview-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-status-tabs button.active {
    border-color: color-mix(in srgb,var(--market-overview-accent) 20%,var(--line));
  }
}

.market-overview-status-tabs button.active {
  background: var(--market-overview-accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-status-tabs button.active {
    background: color-mix(in srgb,var(--market-overview-accent) 8%,var(--surface));
  }
}

.market-overview-status-tabs button.active {
  color: var(--market-overview-accent);
  font-weight: 750;
}

.market-overview-count {
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  padding: 0 7px;
  font-size: 10px;
}

.market-overview-listings > .toolbar {
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 9px 0 12px;
  display: flex;
}

.market-overview-listings .datatable-search {
  max-width: 360px;
}

.market-overview-listings .table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.market-overview-listings table {
  min-width: 1190px;
}

.market-overview-listings thead th {
  white-space: nowrap;
}

.market-overview-listings tbody td {
  vertical-align: middle;
}

.market-overview-listings tbody td small {
  color: var(--muted);
  font-size: 9px;
}

.market-overview-product {
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
  display: flex;
}

.market-overview-product strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.market-overview-product small {
  color: var(--muted);
  font-size: 9px;
}

.market-overview-status {
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 750;
  display: inline-flex;
}

.market-overview-status.is-open {
  color: #176b43;
  background: #eff8f2;
  border-color: #c8e5d5;
}

.market-overview-positive {
  color: #167347;
  white-space: nowrap;
  font-weight: 750;
}

.market-overview-negative {
  color: #b54747;
  white-space: nowrap;
  font-weight: 750;
}

.market-overview-sparkline {
  color: #268357;
  width: 82px;
  height: 24px;
}

.market-overview-no-trend {
  color: var(--muted);
}

.market-overview-open {
  background: #167347;
  border: 1px solid #c8e5d5;
  border-radius: 6px;
  align-items: center;
  gap: 3px;
  min-height: 29px;
  padding: 5px 8px;
  display: inline-flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-open {
    background: color-mix(in srgb,#167347 5%,var(--surface));
  }
}

.market-overview-open {
  color: #176b43;
  white-space: nowrap;
  cursor: pointer;
  font: 700 9px Plus Jakarta Sans, sans-serif;
}

.market-overview-open:hover {
  background: #167347;
  border-color: #167347;
}

@supports (color: color-mix(in lab, red, red)) {
  .market-overview-open:hover {
    background: color-mix(in srgb,#167347 10%,var(--surface));
  }
}

.market-overview-loading, .market-overview-empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 18px;
  font-size: 11px;
}

.market-overview-empty {
  max-width: 650px;
  margin: 50px auto;
}

.market-overview-empty h2 {
  color: var(--text);
  margin: 12px 0 6px;
  font-size: 17px;
}

.market-overview-empty p {
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.market-overview-empty-mark {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  color: var(--market-overview-accent);
  border-radius: 50%;
  place-items: center;
  font-size: 20px;
  display: inline-grid;
}

@media (max-width: 900px) {
  .market-overview-content .page-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-overview-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .market-overview-summary {
    grid-template-columns: 1fr 1fr;
  }

  .market-overview-summary article:first-child {
    border-bottom: 1px solid var(--line);
    grid-column: 1 / -1;
  }

  .market-overview-summary article:nth-child(3) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .market-overview-header-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .market-overview-period {
    grid-column: 1 / -1;
  }

  .market-overview-period select {
    width: 100%;
  }

  .market-overview-refresh {
    justify-content: center;
  }

  .market-overview-summary {
    grid-template-columns: 1fr;
  }

  .market-overview-summary article {
    min-height: 82px;
    padding: 12px 14px;
  }

  .market-overview-summary article:first-child {
    grid-column: auto;
  }

  .market-overview-summary article + article, .market-overview-summary article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .market-overview-status-tabs {
    overflow-x: auto;
  }

  .market-overview-status-tabs button {
    flex: none;
  }

  .market-overview-listings table {
    min-width: 980px;
  }

  .market-overview-listings th:nth-child(3), .market-overview-listings td:nth-child(3), .market-overview-listings th:nth-child(6), .market-overview-listings td:nth-child(6) {
    display: none;
  }
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/