*, :before, :after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-variation-settings: normal;
  font-feature-settings: normal;
  min-height: 100vh;
  line-height: 1.5;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

textarea {
  resize: vertical;
}

::placeholder {
  opacity: 1;
}

html {
  --spacing: 4px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --section-min-width: 460px;
  --section-max-width: 920px;
  --section-sm-min-width: 280px;
  --section-sm-max-width: 320px;
}

.hidden {
  display: none !important;
}

.no-anchor {
  overflow-anchor: none;
}

.scrollable {
  overscroll-behavior: contain;
  height: 100%;
  overflow-y: auto;
}

.v-stack {
  gap: calc(var(--spacing) * 3);
  flex-direction: column;
  display: flex;

  &.reverse {
    flex-direction: column-reverse;
  }
}

.h-stack {
  gap: calc(var(--spacing) * 3);
  flex-direction: row;
  display: flex;

  &.reverse {
    flex-direction: row-reverse;
  }
}

.v-stack, .h-stack {
  &.items-center {
    align-items: center;
  }

  &.justify-center {
    justify-content: center;
  }
}

.inset, .x-inset {
  padding-inline: calc(var(--spacing) * 5);
}

.inset, .y-inset {
  padding-block: calc(var(--spacing) * 5);
}

.panel.v-stack, .panel.h-stack {
  gap: calc(var(--spacing) * 3);
}

.panel.inset, .panel.x-inset {
  padding-inline: calc(var(--spacing) * 3);
}

.panel.inset, .panel.y-inset {
  padding-block: calc(var(--spacing) * 3);
}

@container (width >= 640px) {
  section[id="section-left/0"], section[id="section-left/1"] {
    & .v-stack, & .h-stack {
      gap: calc(var(--spacing) * 4);
    }

    & .inset, & .x-inset {
      padding-inline: calc(var(--spacing) * 5);
    }

    & .inset, & .y-inset {
      padding-block: calc(var(--spacing) * 5);
    }

    & .panel.v-stack, & .panel.h-stack {
      gap: calc(var(--spacing) * 5);
    }

    & .panel.inset, & .panel.y-inset {
      padding-block: calc(var(--spacing) * 5);
    }
  }
}

@container (width >= 320px) {
  section[id="section-left/2"], section[id="section-left/3"] > * {
    & .v-stack, & .h-stack {
      gap: calc(var(--spacing) * 4);
    }

    & .inset, & .x-inset {
      padding-inline: calc(var(--spacing) * 5);
    }

    & .inset, & .y-inset {
      padding-block: calc(var(--spacing) * 5);
    }

    & .panel.v-stack, & .panel.h-stack {
      gap: calc(var(--spacing) * 5);
    }

    & .panel.inset, & .panel.y-inset {
      padding-block: calc(var(--spacing) * 5);
    }
  }
}

.sr-only, .screen-reader-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

button, .button {
  --size: calc(var(--spacing) * 8);
  height: var(--size);
  min-width: var(--size);
  padding-block: calc(var(--spacing) * 1) 0;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing) * 2.5);
  cursor: pointer;
  display: inline-flex;
  overflow: hidden;
}

button i, .button i {
  font-size: var(--text-sm);
  cursor: pointer;
  line-height: 1;
  position: relative;
}

button.button-lg, .button.button-lg {
  --size: calc(var(--spacing) * 9.5);
  gap: calc(var(--spacing) * 2);
}

button.button-sm, .button.button-sm {
  --size: calc(var(--spacing) * 6);
  padding-block: calc(var(--spacing) * .5)
  gap:                                      calc(var(--spacing) * 1);
}

button.button-sm i, .button.button-sm i {
  font-size: var(--text-sm);
}

button.button-xs, .button.button-xs {
  --size: calc(var(--spacing) * 4.5);
  gap: calc(var(--spacing) * 1);
}

button.button-xs i, .button.button-xs i {
  font-size: 10px;
  top: -2px;
}

input {
  min-width: 0;
  padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * .5);
  padding-inline: calc(var(--spacing) * 1);
}

textarea, .textarea {
  min-width: 0;
  padding-block: calc(var(--spacing) * 3) calc(var(--spacing) * 2);
  padding-inline: calc(var(--spacing) * 3);
}

.textarea textarea {
  padding: 0;
}

input:focus, textarea:focus {
  outline: none;
}

figure.avatar, figure.avatar-xs, figure.avatar-sm, figure.avatar-md {
  --size: calc(var(--spacing) * 6.5);
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;

  & figcaption {
    font-size: var(--text-xs);
    line-height: 1;
    position: relative;
    top: 1px;
  }
}

figure.avatar-xs {
  --size: calc(var(--spacing) * 5.5);
  font-size: var(--text-xs);
}

figure.avatar-sm {
  --size: calc(var(--spacing) * 6.5);
  font-size: var(--text-xs);
}

figure.avatar-md {
  --size: calc(var(--spacing) * 7.5);
  font-size: var(--text-sm);
}

.disclosure {
  &:after {
    content: "";
    font-family: "Font Awesome 7 Pro";
    font-weight: 400;
    font-size: var(--text-md);
    margin-left: auto;
    line-height: 1;
  }
}

@container (width >= 640px) {
  section[id="section-left/0"], section[id="section-left/1"], section[id="section-center/0"] {
    & h3, & .h3 {
      font-size: var(--text-md);
    }

    & h5, & .h5 {
      font-size: var(--text-sm);
    }

    & span, & p, & input, & textarea, & li, & label, & a, & pre {
      font-size: var(--text-md);
    }

    & figure {
      &.avatar {
        --size: calc(var(--spacing) * 8);

        & figcaption {
          font-size: var(--text-sm);
          top: 1px;
        }
      }
    }
  }
}

@container (width >= 320px) {
  section[id="section-left/2"], section[id="section-left/3"] {
    & h3, & .h3 {
      font-size: var(--text-md);
    }

    & h5, & .h5 {
      font-size: var(--text-sm);
    }

    & span, & p, & input, & textarea, & li, & label, & a, & pre {
      font-size: var(--text-md);
    }

    & figure {
      &.avatar {
        --size: calc(var(--spacing) * 8);

        & figcaption {
          font-size: var(--text-sm);
          top: 1px;
        }
      }
    }
  }
}

.tabular {
  flex-direction: column;
  display: flex;
  overflow: hidden;

  & .row {
    align-items: center;
    gap: calc(var(--spacing) * 2);
    display: flex;
  }

  & > .header .row {
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1);
  }

  & > .body {
    flex-direction: column;
    display: flex;

    & > .row {
      padding-inline: calc(var(--spacing) * 2);
      padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1.5);
      text-decoration: none;
    }
  }

  & .column {
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
}

.toolbox {
  opacity: 0;
  gap: 4px;
  padding-block: 2px;
  padding-inline: 2px;
  transition: opacity .25s;
  display: flex;
}

.action:has( > .label) {
  justify-content: flex-start;
  gap: 0;

  & > i {
    width: var(--size);
    text-align: center;
    flex: none;
  }
}

.action > .label {
  opacity: 0;
  width: 0;
  min-width: 0;
  max-width: 0;
  font-size: var(--text-xs);
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  flex: 0 auto;
  padding-inline: 0;
  line-height: 1;
  transition: max-width .36s, opacity .28s, padding-inline .36s;
  display: block;
  position: relative;
  top: -1px;
  left: -1px;
  overflow: hidden;
}

.action.expanded > .label {
  width: auto;
  max-width: calc(var(--spacing) * 18);
  padding-inline: 0 calc(var(--spacing) * 1);
  opacity: 1;
}

.action-checking {
  pointer-events: none;
}

.toggle-buttons {
  align-items: center;
  gap: calc(var(--spacing) * 1);
  display: inline-flex;

  & > :is(a, button) {
    cursor: pointer;
    font-size: 13px;
  }

  & i {
    font-size: 13px;
  }
}

.scrollable > .more {
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-block: 20px;
  display: flex;

  & button, & .button {
    width: calc(var(--spacing) * 20);
  }
}

.tags {
  gap: calc(var(--spacing) * 1);
  flex-wrap: wrap;
  display: flex;

  & code {
    white-space: nowrap;
    padding-block: 5px 3px;
    padding-inline: calc(var(--spacing) * 1.5);
    font-family: ui-monospace, SFMono-Regular, SF Mono, Cascadia Mono, Segoe UI Mono, Liberation Mono, Menlo, monospace;
    font-size: var(--text-sm);
    align-items: center;
    line-height: 1;
    display: inline-flex;

    & i {
      margin-right: calc(var(--spacing) * 1);
    }
  }
}

.tags-sm {
  & code {
    padding: calc(var(--spacing) * 1)
      calc(var(--spacing) * 2)
      calc(var(--spacing) * 1);
    font-size: 12px;
  }
}

.h-divider {
  padding: calc(var(--spacing) * 3) 0 calc(var(--spacing) * 2.5);
  align-items: center;
  gap: calc(var(--spacing) * 2);
  display: flex;

  & hr {
    flex: 1;
    height: 1px;
  }

  & span {
    padding: 0 calc(var(--spacing) * 1);
    font-size: 14px;
    line-height: 1.25;
  }
}

.switch {
  width: 40px;
  height: 22px;
  transition: background-color .2s, border-color .2s;
  position: relative;

  & .handle {
    width: 14px;
    height: 14px;
    transition: transform .2s, background-color .2s;
    position: absolute;
    top: 3px;
    left: 4px;
  }

  &:has(input:checked) {
    & .handle {
      transform: translateX(16px);
    }
  }
}

.tristate-switch {
  cursor: pointer;
  width: 40px;
  height: 22px;
  transition: background-color .2s, border-color .2s;
  position: relative;

  & .handle {
    width: 14px;
    height: 14px;
    transition: transform .2s, background-color .2s;
    position: absolute;
    top: 3px;
    left: 4px;
  }
}

.slider {
  height: calc(var(--spacing) * 4);
  padding-block: calc(var(--spacing) * 1);
  -webkit-user-select: none;
  user-select: none;
  flex: auto;
  align-items: center;
  display: flex;
  position: relative;

  & .complete, & .remaining {
    height: calc(var(--spacing) * 1);
  }

  & > .handle {
    width: calc(var(--spacing) * 5);
    height: calc(var(--spacing) * 4);
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);

    & i {
      font-size: 10px;
    }
  }
}

.input-slider {
  align-items: center;
  gap: calc(var(--spacing) * 4);
  flex: auto;
  display: flex;

  & input[type="number"] {
    text-align: right;
    font-size: var(--text-sm);
    flex: 0 0 8ch;

    &:focus {
      outline: none;
    }

    &:disabled {
      opacity: 1;
      -webkit-text-fill-color: currentColor;
    }

    &::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }
}

.feature {
  position: relative;

  & > h4 {
    padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * .5);
    padding-inline: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: 1;
    position: absolute;
  }

  & > .group {
    padding: calc(var(--spacing) * 3) 0 0 calc(var(--spacing) * 1.5);
  }

  & > .body, & > .group .body {
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 3) calc(var(--spacing) * 2.5);
  }
}

.presentation-switch {
  & .dismiss {
    display: none;
  }
}

.presented .presentation-switch {
  & .dismiss {
    display: block;
  }

  & .present {
    display: none;
  }
}

@container (width >= 640px) {
  section[id="section-left/0"], section[id="section-left/1"], section[id="section-center/0"] {
    & .feature {
      & > h4 {
        padding-block: calc(var(--spacing) * 1.5) calc(var(--spacing) * 1);
        padding-inline: calc(var(--spacing) * 2);
      }

      & > .group {
        padding: calc(var(--spacing) * 4) 0 0 calc(var(--spacing) * 2);
      }
    }
  }
}

.panel {
  & header {
    align-items: center;
    display: flex;
  }

  & h3 {
    align-items: center;
    gap: calc(var(--spacing) * .5);
    min-width: 0;
    font-size: var(--text-md);
    flex-wrap: nowrap;
    line-height: 1;
    display: flex;

    & > :first-child, & > :last-child, & > i {
      flex: none;
    }

    & > :not(:first-child):not(:last-child):not(i) {
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1 1 0;
      min-width: 0;
      overflow: hidden;
    }
  }
}

@container (width >= 640px) {
  section[id="section-left/0"], section[id="section-left/1"] {
    & .panel {
      & h3 {
        font-size: var(--text-lg);
      }
    }
  }

  @container (width >= 320px) {
    section[id="section-left/2"], section[id="section-left/3"] {
      & .panel {
        & h3 {
          font-size: var(--text-lg);
        }
      }
    }
  }
}

.menu-bar {
  height: calc(var(--spacing) * 7);
  z-index: 10;
  padding-left: calc(var(--spacing) * 2);
  padding-right: calc(var(--spacing) * 2);
  align-items: center;
  gap: calc(var(--spacing) * 2);
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  & > .left, & > .right, & > .center {
    align-items: center;
    gap: calc(var(--spacing) * 1.5);
    min-width: 0;
    display: flex;
  }

  & > .center {
    padding-top: calc(var(--spacing) * 1);
    padding-bottom: calc(var(--spacing) * .5);
    flex: 1;
    justify-content: start;
  }

  & :is(a, button) {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
    min-width: calc(var(--spacing) * 6);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    display: inline-flex;

    & i {
      font-size: 14px;
      position: relative;
    }

    &.dismiss-view-button i {
      position: relative;
      top: -2px;
    }

    &.previous-view-button i {
      font-size: 16px;
    }
  }

  & span {
    font-size: 14px;
  }

  & figure {
    margin-top: -2px;
  }
}

@container (width >= 640px) {
  section[id="section-left/0"], section[id="section-left/1"] {
    & .menu-bar {
      & h2 {
        padding-block: 1px 0;
      }
    }
  }
}

@container (width >= 320px) {
  section[id="section-left/2"], section[id="section-left/3"] {
    & .menu-bar {
      & h2 {
        padding-block: 1px 0;
      }
    }
  }
}

.view.registrant-new-view {
  padding-bottom: calc(var(--spacing) * 32);
  padding-inline: calc(var(--spacing) * 8);
  text-align: left;
  justify-content: center;
  align-items: center;
  height: 100vh;
  display: flex;

  & #new-person {
    justify-content: left;
    align-items: center;
    width: 420px;
    display: flex;

    & .registrar-onboarding-flow {
      top: calc(var(--spacing) * -15);
      align-items: left;
      gap: calc(var(--spacing) * 8);
      flex-direction: column;
      width: 100%;
      display: flex;
      position: relative;
    }

    & .registrar-onboarding-brand {
      margin-inline: auto;
      margin-bottom: calc(var(--spacing) * 6);
      width: calc(var(--spacing) * 32);
      height: calc(var(--spacing) * 32);
      opacity: 0;
      flex: none;
      animation: 1s .12s forwards registrar-onboarding-brand-fade-in;
      display: block;
    }

    & .registrar-onboarding-prompt {
      font-family: var(--theme-font-headline);
      justify-content: left;
      align-items: center;
      font-size: 20px;
      line-height: 1.05;
      display: flex;
    }

    & .registrar-onboarding-fields {
      align-items: stretch;
      gap: calc(var(--spacing) * 3);
      flex-direction: column;
      width: 100%;
      transition: opacity .6s;
      display: flex;
    }

    & .registrar-onboarding-fields.dismissed {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    & .registrar-onboarding-fields.presented {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    & .registrar-form-error {
      padding-inline: calc(var(--spacing) * 2);
      color: var(--color-red-700);
      font-size: var(--text-sm);
      line-height: 1.35;
    }

    & .registrar-onboarding-form {
      width: 100%;
    }

    & .registrar-onboarding-input-row {
      justify-content: center;
      align-items: center;
      gap: calc(var(--spacing) * 2);
      width: 100%;
      display: flex;
    }

    & input[name="name"] {
      min-width: 0;
      padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * .5);
      text-align: left;
      border-style: solid;
      border-width: 0 0 1px;
      border-color: var(--color-parchment-500);
      background: none;
      border-radius: 0;
      flex: auto;
      padding-inline: 0;
    }

    & input[name="name"]::placeholder {
      color: var(--color-taupe-600);
    }

    & .registrar-onboarding-form:invalid button[type="submit"] {
      color: var(--button-text-disabled-color);
      cursor: not-allowed;
      pointer-events: none;
      background: none;
    }

    & button.icon[type="submit"] {
      flex: none;
    }

    & button.icon[type="submit"] i {
      font-size: 16px;
    }
  }
}

@keyframes registrar-onboarding-brand-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@container (width >= 640px) {
  .view.registrant-new-view {
    & #new-person {
      width: min(100%, calc(var(--spacing) * 60));

      & .registrar-onboarding-flow {
        top: calc(var(--spacing) * -18);
      }

      & .registrar-onboarding-brand {
        margin-bottom: calc(var(--spacing) * 8);
      }

      & .registrar-onboarding-input-row {
        gap: calc(var(--spacing) * 3);
      }
    }
  }
}

.account-navigation-view {
  flex-direction: column;
  padding-top: 25px;
  display: flex;

  & nav {
    height: 100%;

    & > a.beancounter-subscriptions i {
      position: relative;
      top: -4px;
      left: -2px;
    }

    & > a.beancounter-credits i {
      top: -2px;
    }

    & > a.beancounter-daily-spending i {
      position: relative;
      top: -2px;
      left: -2px;
    }

    & > div.spacer {
      flex: 1;
    }

    & > a.deauthorize {
      &:after {
        content: "";
      }
    }
  }
}

nav {
  padding-block: calc(var(--spacing) * 5);
  padding-inline: calc(var(--spacing) * 5);
  gap: calc(var(--spacing) * 1);
  flex-direction: column;
  display: flex;

  & span {
    padding-block: calc(var(--spacing) * .5) 0;
    line-height: 1;
  }

  & > h2 {
    margin-block: calc(var(--spacing) * 2.5) calc(var(--spacing) * 1);
    padding-inline: calc(var(--spacing) * 1);

    & span {
      font-size: var(--text-md);
      line-height: 1;
    }
  }

  & > a {
    margin-bottom: calc(var(--spacing) * 1);
    height: calc(var(--spacing) * 9);
    padding-inline: calc(var(--spacing) * 3);
    align-items: center;
    display: flex;

    & i {
      font-size: var(--text-md);
      line-height: 1;
      width: calc(var(--spacing) * 7) !important;
      text-align: left !important;
    }

    &:after {
      content: "";
      font-family: "Font Awesome 7 Pro";
      font-weight: 400;
      font-size: var(--text-sm);
      margin-left: auto;
      line-height: 1;
    }
  }
}

@container (width >= 320px) {
  nav {
    & > h2 {
      & span {
        font-size: var(--text-lg);
      }
    }

    & > a {
      height: calc(var(--spacing) * 10.5);

      & i {
        font-size: var(--text-lg);
      }

      &:after {
        font-size: var(--text-md);
      }
    }
  }
}

.registrant-edit-view {
  height: 100vh;
  min-height: 0;
  padding-top: calc(var(--spacing) * 7);
  flex-direction: column;
  display: flex;

  & .registrant-edit {
    padding-block: calc(var(--spacing) * 4);
    padding-inline: calc(var(--spacing) * 5);

    & form {
      padding-top: calc(var(--spacing) * 16);

      & .name-fields-container {
        padding-block: calc(var(--spacing) * 22) calc(var(--spacing) * 8);
        padding-inline: calc(var(--spacing) * 4);
        justify-content: center;
        align-items: center;
        display: flex;

        & .name-fields {
          justify-content: center;
          align-items: center;
          gap: 16px;
          display: flex;

          & input {
            padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * 1);
            padding-inline: calc(var(--spacing) * 1.5);
          }
        }
      }
    }

    & .registrar-profile-tagline {
      text-align: center;
      justify-content: center;
      margin-inline: 16px;
      padding-block: 12px;
      display: flex;
    }
  }

  & figure {
    justify-content: center;
    align-items: center;
    width: 128px;
    height: 128px;
    display: flex;
    position: absolute;
    left: 50%;
    overflow: hidden;
    transform: translateX(-50%);

    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      display: block;
    }

    & span {
      letter-spacing: .08em;
      font-size: 60px;
      position: relative;
      top: 4px;
    }
  }
}

.view.summary-view {
  padding-block: calc(var(--spacing) * 7) 0;

  & .summary {
    & .panel {
      & header {
        margin-bottom: calc(var(--spacing) * 3);
        justify-content: space-between;
        display: flex;

        & > * {
          font-weight: 400;
          font-size: var(--text-md);
        }
      }
    }

    & .grants {
      & .grants.container {
        gap: calc(var(--spacing) * 3);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;

        & .subscriptions, & .credits {
          gap: calc(var(--spacing) * 2);
          flex-direction: column;
          display: flex;

          & .tiles {
            gap: calc(var(--spacing) * 3);
            flex-direction: column;
            display: flex;

            & .tile {
              padding: calc(var(--spacing) * 3);

              & h4 {
                text-transform: uppercase;
                letter-spacing: .04em;
                font-size: var(--text-sm);
              }

              & .amount {
                margin-block: calc(var(--spacing) * 1.5);
                font-size: var(--text-md);
                text-decoration: underline;
                display: block;
              }
            }
          }
        }
      }

      & hr {
        margin-block: calc(var(--spacing) * 3);
      }

      & .buttons.container {
        gap: calc(var(--spacing) * 3);
        justify-content: center;
        display: flex;

        & .button {
          height: calc(var(--spacing) * 9.5);
          text-align: center;
          width: 24ch;
        }
      }
    }
  }
}

@container (width >= 640px) {
  .view.summary-view .summary .panels.container {
    & .panel {
      & h3 {
        font-size: var(--text-lg);
      }

      & header {
        & > * {
          font-size: var(--text-lg);
        }
      }
    }

    & .grants {
      & .grants.container {
        & .subscriptions, & .credits {
          & .tiles {
            & .tile {
              & h4 {
                font-size: var(--text-sm);
              }

              & .amount {
                font-size: var(--text-lg);
              }
            }
          }
        }
      }
    }
  }
}

.transactions-view {
  height: 100vh;
  min-height: 0;
  padding-top: calc(var(--spacing) * 7);
  flex-direction: column;
  display: flex;

  & .scrollable {
    min-height: 0;
    padding-block: calc(var(--spacing) * 8);
    padding-inline: calc(var(--spacing) * 4);
    flex: auto;
    overflow-y: auto;
  }

  & .tabular-header {
    top: calc(var(--spacing) * 11);
    width: 100%;
    padding-inline: calc(var(--spacing) * 4);
    position: absolute;

    & > .transaction {
      padding-block: 8px 2px;
    }
  }

  & .tabular.collection {
    padding-top: calc(var(--spacing) * 3);
  }

  & .transaction {
    gap: 8px;
    width: 100%;
    padding-block: 8px 4px;
    padding-inline: 16px;
    display: flex;

    & .date, & .type, & .name {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    & .date {
      width: 16ch;
      margin-right: 4px;
    }

    & .type {
      gap: 4px;
      width: 18ch;
      display: none;

      & i {
        padding-top: 2px;
        display: block;
      }
    }

    & .name {
      width: 24ch;
    }

    & .currency {
      text-align: right;
      font-variant-numeric: tabular-nums;
      flex: auto;
      min-width: 9ch;
    }
  }
}

@container (width >= 640px) {
  .transactions-view {
    & .tabular-header {
      & .transaction {
        padding-block: 8px 4px;
      }
    }

    & .scrollable {
      padding-block: calc(var(--spacing) * 10) calc(var(--spacing) * 10);
    }

    & .transaction {
      & .type {
        display: flex;
      }
    }
  }
}

.view.companions-view {
  & .companions {
    padding-block: 20px;
    padding-inline: 20px;

    & .collection {
      flex-direction: column;
      gap: 8px;
      display: flex;
    }
  }
}

@container (width >= 320px) {
  .view.companions-view {
    & .companions {
      & .collection {
        gap: 12px;
      }
    }
  }
}

:is(.companions-browser, .showcase-view) {
  & .intelligence {
    letter-spacing: -.04em;
    white-space: nowrap;

    & i {
      font-size: 14px;
    }

    & i + i {
      margin-left: -4px;
    }
  }

  & .cost {
    font-size: var(--text-sm);
    letter-spacing: .24em;
    white-space: nowrap;
  }
}

.companions-browser {
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  padding-block: calc(var(--spacing) * 10);
  padding-inline: calc(var(--spacing) * 8);
  position: relative;
  container-type: inline-size;

  & > .dismiss {
    top: calc(var(--spacing) * 2);
    left: calc(var(--spacing) * 2);
    z-index: 4;
    position: fixed;
  }

  & .companions-browser-link {
    color: inherit;
    text-decoration: none;
    display: block;
  }

  & header {
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing) * 6);
    width: 100%;
    max-width: 976px;
    margin-inline: auto;
    margin-bottom: calc(var(--spacing) * 8);
    padding-bottom: calc(var(--spacing) * 4);
    border-bottom: 1px solid;
    display: flex;

    & h1 {
      margin: 0;
      font-family: Tiempos Headline, serif;
      font-size: 32px;
      font-weight: 400;
      line-height: 1;
    }

    & > button.companions-browser-more {
      align-items: center;
      gap: calc(var(--spacing) * 2);
      height: 36px;
      padding-block: 3px 0;
      padding-inline: 12px;
      display: inline-flex;

      & i {
        font-size: 16px;
        position: relative;
        top: -2px;
      }
    }
  }

  & > .companions-browser-body > .body {
    width: 100%;
    padding-bottom: calc(var(--spacing) * 20);
  }

  & .companions-grid {
    grid-template-columns: repeat(auto-fit, 220px);
    justify-content: center;
    gap: 40px 32px;
    width: 100%;
    max-width: 976px;
    margin-inline: auto;
    display: grid;
  }

  & .companions-grid-empty {
    justify-content: center;
    display: flex;
  }
}

@container (width <= 900px) {
  .companions-browser {
    padding-inline: calc(var(--spacing) * 6);

    & header {
      align-items: stretch;
      gap: calc(var(--spacing) * 4);

      & > .companions-browser-more {
        align-self: flex-start;
      }
    }
  }
}

@container (width <= 520px) {
  .companions-browser {
    padding: calc(var(--spacing) * 4)
      calc(var(--spacing) * 3)
      calc(var(--spacing) * 8);

    & > .dismiss {
      top: calc(var(--spacing) * 1.5);
      left: calc(var(--spacing) * 1.5);
    }

    & .companions-grid {
      grid-template-columns: minmax(0, 220px);
      gap: 32px;
    }
  }
}

:is(.companions-browser, .showcase-view) {
  & .companion.card {
    width: 220px;
    margin-top: calc(var(--spacing) * 12);
    padding-top: calc(var(--spacing) * 12);
    cursor: pointer;
    transition: transform .14s, background-color .14s, border-color .14s;
    position: relative;

    & > .body {
      min-height: 260px;
      padding: calc(var(--spacing) * 3)
        calc(var(--spacing) * 3)
        calc(var(--spacing) * 2);
      display: flex;
    }

    & > .body > figure.avatar {
      left: 50%;
      top: calc(var(--spacing) * -12);
      justify-content: center;
      align-items: center;
      width: 96px;
      height: 96px;
      display: flex;
      position: absolute;
      overflow: hidden;
      transform: translateX(-50%);

      & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        display: block;
      }

      & figcaption {
        letter-spacing: .08em;
        padding-top: 2px;
        font-size: 32px;
      }
    }

    & > .body > .v-stack {
      text-align: center;
      flex-direction: column;
      flex: 1;
      align-items: center;
      gap: 0;
      display: flex;
    }

    & .name {
      margin: calc(var(--spacing) * 2) 0 0;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.25;
    }

    & .tagline {
      margin: calc(var(--spacing) * 2) 0 0;
      flex: 1;
      align-self: stretch;
      max-height: 96px;
      font-size: 12px;
      font-style: italic;
      line-height: 1.4;
      overflow: hidden;
    }

    & .tags {
      justify-content: center;
      margin-top: auto;
    }

    & hr.divider {
      width: 100%;
      margin: calc(var(--spacing) * 3)
        0
        calc(var(--spacing) * 2);
    }

    & .footer {
      justify-content: space-between;
      align-items: center;
      width: 100%;
      display: flex;
    }

    &:hover {
      transform: translateY(-2px);
    }
  }
}

.companion-edit-view {
  flex-direction: column;
  display: flex;

  & > .menu-bar {
    & > .right {
      & > [data-controller~="popup"] {
        align-items: center;
        display: flex;
      }

      & button.action-menu {
        & i {
          font-size: 14px;
          top: -2px;
        }
      }
    }
  }

  & .companion-edit {
    & > * {
      margin-inline: calc(var(--spacing) * 4);
    }

    & .companion-profile {
      margin-inline: 0;

      & figure {
        justify-content: center;
        align-items: center;
        width: 128px;
        height: 128px;
        display: flex;
        position: absolute;
        left: 50%;
        overflow: hidden;
        transform: translateX(-50%);

        & img {
          object-fit: cover;
          width: 100%;
          height: 100%;
          display: block;
        }

        & span {
          letter-spacing: .08em;
          font-size: 60px;
          position: relative;
          top: 4px;
        }
      }

      & form {
        padding-top: calc(var(--spacing) * 16);

        & .panel {
          padding-block: calc(var(--spacing) * 20) calc(var(--spacing) * 6);

          & .name {
            gap: calc(var(--spacing) * 4);

            & input {
              padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * 1);
              padding-inline: calc(var(--spacing) * 1.5);
            }
          }
        }

        & .tagline {
          margin-inline: calc(var(--spacing) * 4);
          text-align: center;
          cursor: text;

          & .editable:focus {
            outline: none;
          }
        }
      }
    }

    & .language-model.panel {
      & .language-model {
        gap: 6px;

        & .round-flag-icon {
          margin-right: 12px;
        }

        & .tags {
          margin-left: 32px;
        }
      }
    }
  }
}

.action-menu.popup {
  margin-top: calc(( var(--spacing) * 1 ) + 2px);
  z-index: 1000;
  max-width: calc(100vw - ( var(--spacing) * 4 ));

  & > div {
    flex-direction: column;
    min-width: max-content;
    max-width: 100%;
    display: flex;

    & > :is(button, form) {
      width: 100%;
      max-width: 100%;
    }

    & > form {
      display: flex;
    }

    & > button, & > form > button {
      width: 100%;
      height: auto;
      padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1.5);
      padding-inline: 0 calc(var(--spacing) * 2.5);
      text-align: left;
      white-space: nowrap;
      line-height: 1;
      font-size: var(--text-sm);
      justify-content: flex-start;
      align-items: center;
      gap: 0;
      display: flex;

      & > i {
        width: calc(var(--spacing) * 7);
        text-align: center;
        font-size: 12px !important;
      }

      & > span {
        text-align: left;
        flex: auto;
        min-width: 0;
        position: relative;
        top: 1px;
      }
    }
  }
}

.companion-language-model-view, .registrant-language-model-view {
  --language-model-row-height: calc(var(--spacing) * 10);

  & > .companion-language-model, & > .registrant-language-model {
    padding-bottom: calc(var(--spacing) * 10) !important;

    & .round-flag-icon {
      width: 20px;
      height: 22px;
      top: -1px;
    }

    & .availability {
      display: none;
    }

    & .intelligence, & .cost {
      justify-content: center;
      align-items: center;
      gap: 1px;
      display: none;

      & i {
        width: 12px;
        height: 15px;
        font-size: 13px;
      }

      & span {
        font-family: monospace;
        position: relative;
        top: 1px;
      }

      & .x {
        margin-inline: 1px;
      }
    }

    & .cost {
      & i {
        width: 14px;
      }
    }
  }

  & .tabular {
    & > .body {
      &.language-model-families-body, &.language-models-body {
        & > .row {
          min-height: var(--language-model-row-height);
          flex: none;
        }
      }
    }

    & .column:nth-child(2), & .column:nth-child(3), & .column:nth-child(4) {
      text-align: center;
      flex: 0 0 9ch;
    }
  }

  & .language-model-parameters.panel, & .language-model-reasoning.panel {
    height: calc(var(--spacing) * 12);
    flex-shrink: 0;
    overflow: hidden;

    &.presented {
      height: auto;
    }

    & header.h-stack {
      cursor: pointer;
      justify-content: space-between;
    }
  }

  & .language-model-parameters.panel {
    & > .group {
      gap: calc(var(--spacing) * 2);
      grid-template-columns: minmax(0, 1fr);
      display: grid;

      & .body {
        padding-inline: calc(var(--spacing) * 4);
        padding-block: calc(var(--spacing) * 3) calc(var(--spacing) * 2.5);
      }
    }

    & .feature {
      &.disabled {
        opacity: .2;
      }
    }
  }

  & .language-model-reasoning.panel {
    & > .v-stack {
      gap: calc(var(--spacing) * 2);
    }

    & .feature .body {
      min-height: calc(var(--spacing) * 13);
      align-items: stretch;
      gap: calc(var(--spacing) * 3.5);
      padding-block: calc(var(--spacing) * 3) calc(var(--spacing) * 2.5);
      display: flex;

      & > .h-stack {
        width: 100%;
        padding-inline: 0 calc(var(--spacing) * 4);
      }

      & .toggle {
        position: relative;
        top: 3px;
      }
    }

    & .description {
      flex: auto;
      align-items: center;
      display: flex;
      position: relative;
      top: 1px;
    }

    & .label {
      font-size: var(--text-sm);
      flex: none;
      position: relative;
      top: 3px;
    }
  }
}

@container (width >= 640px) {
  .companion-language-model-view, .registrant-language-model-view {
    & > .companion-language-model .intelligence, & > .registrant-language-model .intelligence, & > .companion-language-model .cost, & > .registrant-language-model .cost, & > .companion-language-model .availability, & > .registrant-language-model .availability {
      display: flex;
    }

    & .companion-language-model, & .registrant-language-model {
      & .language-model-parameters.panel, & .language-model-reasoning.panel {
        height: calc(var(--spacing) * 13.5);
        padding-top: calc(var(--spacing) * 4);
        gap: 12px;

        &.presented {
          height: auto;
        }
      }
    }

    & .language-model-parameters.panel {
      & .group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
  }
}

.companion-edit-view {
  & .registrant-tools.panel {
    & .tools.tags {
      gap: 6px;
    }
  }
}

.registrant-tools-view {
  min-height: 0;

  & > .registrant-tools {
    gap: calc(var(--spacing) * 2);
    flex: auto;
    min-height: 0;
    padding-bottom: calc(var(--spacing) * 8) !important;
  }

  & .tool .body {
    align-items: center;
    gap: calc(var(--spacing) * 3);
    min-height: calc(var(--spacing) * 14);
    display: flex;
  }

  & .description {
    flex: auto;
    align-items: center;
    display: flex;
  }

  & .control {
    flex: none;
    position: relative;
    top: 1px;
  }

  & .tristate-switch {
    position: relative;
    top: -2px;
  }

  & [data-tristate-switch-state-value="available"] .tristate-switch {
    & .handle {
      transform: translateX(8px);
    }
  }

  & [data-tristate-switch-state-value="included"] .tristate-switch {
    & .handle {
      transform: translateX(16px);
    }
  }
}

.companion {
  &.tile {
    position: relative;

    & a {
      height: calc(var(--spacing) * 8.5);
      padding-inline: calc(var(--spacing) * 3);
      gap: calc(var(--spacing) * 2.5);
      align-items: center;
      display: flex;

      & figure.avatar {
        width: calc(var(--spacing) * 5.5);
        height: calc(var(--spacing) * 5.5);
      }

      & span.name {
        padding-block: calc(var(--spacing) * .5) 0;
        line-height: 1;
      }

      &:after {
        content: "";
        font-family: "Font Awesome 7 Pro";
        font-weight: 400;
        font-size: var(--text-sm);
        margin-left: auto;
        line-height: 1;
      }
    }
  }
}

@container (width >= 320px) {
  .companion.tile {
    & > a {
      height: calc(var(--spacing) * 10);

      & figure.avatar {
        width: calc(var(--spacing) * 6.5);
        height: calc(var(--spacing) * 6.5);
      }

      &:after {
        font-size: var(--text-md);
      }
    }
  }
}

.conversations {
  padding: calc(var(--spacing) * 5);
}

.conversations-view .collection.v-stack {
  gap: calc(var(--spacing) * 4);
}

.conversation.pane {
  gap: calc(var(--spacing) * 3);
  opacity: 1;
  transition: opacity .2s, transform .2s;
  display: flex;
  transform: translateY(0);

  & figure {
    top: calc(var(--spacing) * 1.25);
    position: relative;

    & img {
      width: 100%;
      height: 100%;
    }
  }

  & article {
    width: 100%;
    position: relative;

    & .body {
      cursor: pointer;
      width: 100%;
      min-height: 34px;
      display: block;
      position: relative;

      & .conversation-link {
        z-index: 2;
        display: block;
        position: absolute;
        inset: 0;
      }

      & form {
        z-index: 1;
        position: relative;
      }

      & textarea {
        min-height: calc(var(--spacing) * 8.5);
        width: 100%;
        padding-inline: calc(var(--spacing) * 3);
        padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1);
        resize: none;
        display: block;
        overflow: hidden;

        &[readonly] {
          pointer-events: none;
        }
      }

      &:has(textarea:not([readonly])) {
        cursor: text;

        & .conversation-link {
          pointer-events: none;
        }
      }

      & .linear-indicator {
        pointer-events: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }

      & .conversation-summary-indicator {
        display: none;
      }

      & textarea:placeholder-shown + .conversation-summary-indicator {
        display: block;
      }
    }

    & .toolbox {
      right: calc(var(--spacing) * 4);
      bottom: calc(var(--spacing) * -3);
      display: flex;
      position: absolute;

      & form {
        display: flex;
      }
    }

    &:hover .toolbox {
      opacity: 1;
      pointer-events: auto;
    }

    & footer {
      margin-inline: calc(var(--spacing) * 2);
      padding-block: calc(var(--spacing) * 1) calc(var(--spacing) * .5);
      padding-inline: calc(var(--spacing) * 2);

      & time {
        font-size: var(--text-xs);
      }
    }
  }

  &.dismissing {
    opacity: 0;
    transform: translateY(calc(var(--spacing) * 2));
    pointer-events: none;
  }
}

@container (width >= 640px) {
  .conversation.pane {
    & article {
      & .body {
        min-height: 42px;

        & textarea {
          padding-top: 8px;
        }
      }
    }
  }
}

.view.new-conversation-view {
  padding-inline: calc(var(--spacing) * 5);
  justify-content: center;
  align-items: center;
  display: flex;

  & .new-coversation {
    gap: 0;
    width: 100%;
    min-width: 0;
    position: relative;
    top: -60px;

    & > header {
      align-items: center;
      gap: calc(var(--spacing) * 10);
      text-align: center;
      flex-direction: column;
      padding-block: 0 40px;
      display: flex;

      & > .brand {
        width: calc(var(--spacing) * 24);
        height: calc(var(--spacing) * 24);
      }

      & h1 {
        font-family: var(--theme-font-headline);
        font-size: 48px;
        font-weight: 300;
        line-height: 1;
      }
    }

    & > .conversation-companions.panel {
      z-index: 1;
      margin-inline: calc(var(--spacing) * 3);
      gap: 0;
      overflow: hidden;

      & > header {
        width: 100%;
        padding: calc(var(--spacing) * 2) calc(var(--spacing) * 2.5);
        justify-content: space-between;
        align-items: center;
        gap: calc(var(--spacing) * 2);
        cursor: pointer;
        display: flex;

        & > div {
          align-items: center;
          gap: calc(var(--spacing) * 1);
          display: flex;

          & span {
            position: relative;
            top: 2px;
          }
        }

        & > div:last-child {
          display: inline-flex;

          & > i:last-child {
            display: none;
          }
        }
      }

      & > .v-stack {
        opacity: 0;
        max-height: 0;
        transition: max-height .2s, padding-bottom .2s;
        overflow: hidden;

        & .conversation-companions.collection {
          gap: calc(var(--spacing) * 1.5);
          padding-inline: calc(var(--spacing) * 2);
          transition: padding-inline .2s;
          display: grid;

          & > p {
            padding-inline: calc(var(--spacing) * 2);
            padding-top: calc(var(--spacing) * .5);
          }
        }
      }

      & > footer {
        justify-content: center;
        display: none;
      }

      &.presented {
        & > header > div:last-child {
          & > i:first-child {
            display: none;
          }

          & > i:last-child {
            display: inline-block;
          }
        }

        & > .v-stack {
          max-height: calc(var(--spacing) * 42);
          opacity: 1;
        }

        & > footer {
          padding-block: calc(var(--spacing) * 2);
          display: flex;

          & button {
            padding-block: 4px 0;
            padding-inline: 8px;
            line-height: 1;

            & i {
              position: relative;
              top: -2px;
            }
          }
        }
      }
    }
  }
}

.reasoning.popup {
  width: calc(var(--spacing) * 30);
  margin-bottom: calc(var(--spacing) * 1);
  z-index: 1000;

  & > header {
    padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1.5);
    padding-inline: 0 calc(var(--spacing) * 2);
    gap: 0;
    display: flex;

    & > i {
      width: calc(var(--spacing) * 7);
      text-align: center;
      position: relative;
      left: 0;
      font-size: 16px !important;

      &.icon.new-conversation-reasoning {
        --icon-width: calc(var(--spacing) * 7);
      }
    }

    & > div {
      text-align: left;
      flex: auto;
      min-width: 0;
      line-height: 1;
      position: relative;
      top: 2px;
    }
  }

  & > div {
    flex-direction: column;
    display: flex;

    & > :is(button, a) {
      width: 100%;
      min-width: 0;
      height: auto;
      padding-block: calc(var(--spacing) * 2) calc(var(--spacing) * 1.5);
      padding-inline: 0 calc(var(--spacing) * 2);
      justify-content: flex-start;
      align-items: center;
      gap: 0;
      line-height: 1;
      text-decoration: none;
      display: flex;

      & > i {
        width: calc(var(--spacing) * 7);
        text-align: center;
        font-size: 12px !important;
      }

      & span {
        text-align: left;
        flex: auto;
        min-width: 0;
        position: relative;
        top: 1px;
      }
    }
  }
}

@container (width >= 640px) {
  .view.new-conversation-view {
    padding-inline: calc(var(--spacing) * 5);

    & .new-coversation {
      & > form.conversation\/new-message-form {
        & .textarea {
          padding: calc(var(--spacing) * 2.5);

          & textarea {
            min-height: calc(var(--spacing) * 18);
          }
        }
      }

      & > .conversation-companions {
        & > .v-stack {
          & .conversation-companions.collection {
            grid-template-columns: repeat(2, minmax(0, 1fr));
          }
        }
      }
    }
  }
}

.node-attachments {
  min-height: calc(var(--spacing) * 4);
  border-radius: calc(var(--border-radius) * .8);
  flex-direction: column;
  display: flex;
  overflow: hidden;

  &:not(:has(.node-attachments-list > *)) {
    & .node-attachments-information {
      display: none;
    }
  }

  &:has(.node-attachments-tray.dragover) {
    & .node-attachments-information, & .node-attachments-list {
      display: none !important;
    }
  }

  & .node-attachments-information {
    min-height: calc(var(--spacing) * 5.5);
    padding-block: 1px;
    padding-inline: calc(var(--spacing) * 2)
                                            calc(var(--spacing) * 1);
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing) * 1);
    line-height: 1;
    display: flex;

    & > .name {
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: auto;
      min-width: 0;
      position: relative;
      top: 2px;
      overflow: hidden;
    }

    & > .size {
      white-space: nowrap;
      flex: none;
      position: relative;
      top: 2px;
    }
  }

  & .node-attachments-tray {
    min-height: inherit;
    transition: background .1s, min-height .2s, box-shadow .14s;
    position: relative;

    &.dragover {
      min-height: calc(var(--spacing) * 32);
    }
  }

  & .node-attachments-drop-target {
    pointer-events: none;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    inset: 0;

    & > i {
      opacity: 0;
      font-size: 32px;
      line-height: 1;
      transition: opacity 1s;
    }
  }

  & .node-attachments-tray.dragover {
    & .node-attachments-drop-target {
      visibility: visible;
    }

    & .node-attachments-drop-target > i {
      opacity: 1;
      transition-delay: .12s;
    }
  }

  & .node-attachments-list {
    padding: calc(var(--spacing) * 1)
                                            calc(var(--spacing) * 1)
                                            calc(var(--spacing) * 2.5);
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2px;
    display: flex;
    overflow-x: auto;
  }

  & .node-attachments-download, & .node-attachments-remove {
    --size: calc(var(--spacing) * 5.5);
    flex: none;
    margin-left: auto;

    & i {
      font-size: 12px;
    }
  }
}

.node-attachments.draft {
  margin-inline: calc(var(--spacing) * 3);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.node-attachment {
  width: 74px;
  height: 74px;
  padding-inline: calc(var(--spacing) * 2);
  padding-block: calc(var(--spacing) * 2);
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: var(--border-radius);
  flex-direction: column;
  flex: none;
  align-items: center;
  transition: transform .12s, box-shadow .14s;
  display: flex;

  & .node-attachment-preview {
    width: calc(var(--spacing) * 14);
    height: calc(var(--spacing) * 14);
    border-radius: var(--border-radius);
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
    overflow: visible;

    & img {
      object-fit: contain;
      width: auto;
      max-height: 56px;
      display: block;
    }

    & .node-attachment-progress {
      pointer-events: none;
      justify-content: center;
      align-items: center;
      display: flex;
      position: absolute;
      inset: 0;

      & > .gauge {
        width: calc(var(--spacing) * 8);
        height: calc(var(--spacing) * 8);

        & .indicator {
          transition: stroke-dashoffset .12s linear;
        }
      }
    }

    & .node-attachment-error {
      font-size: 30px;
      line-height: 1;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    & .node-attachment-extension {
      left: 0;
      bottom: calc(var(--spacing) * 3);
      height: calc(var(--spacing) * 4);
      min-width: calc(var(--spacing) * 6);
      padding-inline: calc(var(--spacing) * 1);
      border-radius: var(--border-radius);
      justify-content: center;
      align-items: center;
      padding-top: 2px;
      display: flex;
      position: absolute;

      & > span {
        letter-spacing: .08em;
        text-transform: uppercase;
        font-size: 10px;
        line-height: 1;
      }
    }
  }
}

@container (width >= 640px) {
  .node-attachments {
    & .node-attachments-information {
      min-height: calc(var(--spacing) * 6.5);
    }

    & .node-attachments-download, & .node-attachments-remove {
      --size: calc(var(--spacing) * 6.5);

      & i {
        font-size: 14px;
      }
    }
  }

  .node-attachment {
    width: calc(var(--spacing) * 28.5);
    height: calc(var(--spacing) * 28.5);

    & .node-attachment-preview {
      width: calc(var(--spacing) * 24);
      height: calc(var(--spacing) * 24);

      & img {
        max-height: calc(var(--spacing) * 24);
      }

      & .node-attachment-extension {
        height: calc(var(--spacing) * 6);

        & > span {
          font-size: 12px;
        }
      }
    }
  }
}

.conversation\/new-message-form {
  flex-direction: column;
  display: flex;

  & > .h-stack {
    gap: calc(var(--spacing) * 2);
  }

  & > .h-stack > .v-stack {
    flex: auto;
    gap: 0;
    width: 100%;
    min-width: 0;
  }

  & .conversation-snap {
    justify-content: flex-start;
    display: flex;

    & > button {
      font-size: 17px;

      & i {
        font-size: 17px;
        position: relative;
        top: -2px;
      }
    }
  }

  & .textarea {
    z-index: 1;
    width: 100%;
    min-width: 0;
    padding-inline: calc(var(--spacing) * 2.5);
    padding-block: calc(var(--spacing) * 2.5) calc(var(--spacing) * 2);
    gap: calc(var(--spacing) * 2);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    flex-direction: column;
    flex: auto;
    display: flex;
  }

  & textarea {
    width: 100%;
    min-height: calc(var(--spacing) * 12);
    max-height: calc(var(--spacing) * 36);
    resize: none;
    outline: none;
  }

  & .controls {
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    display: flex;

    & button {
      & i {
        font-size: 18px;
        position: relative;
        top: -2px;
      }
    }

    & > div {
      gap: calc(var(--spacing) * 2);
      display: flex;

      & > .reasoning {
        position: relative;

        & > button {
          min-width: calc(var(--spacing) * 8);
          justify-content: flex-start;
          align-items: center;
          gap: 0;
          padding-block: 2px;
          display: flex;
          overflow: hidden;

          & > i {
            width: 30px;
            position: relative;
            top: 0;
          }

          & > .label {
            opacity: 0;
            white-space: nowrap;
            flex: 0 auto;
            width: 0;
            min-width: 0;
            max-width: 0;
            padding-block: 4px 0;
            padding-inline: 0;
            line-height: 1;
            transition: max-width .18s, opacity .14s, padding-inline .18s, border-color .18s;
            display: block;
            overflow: hidden;
          }
        }

        &.presented > button {
          gap: 0;

          & > .label {
            width: auto;
            max-width: 100vw;
            padding-inline: calc(var(--spacing) * .5) calc(var(--spacing) * 2);
            opacity: 1;
            border-left-width: 1px;
          }
        }
      }
    }
  }
}

main > section > turbo-frame:has( > .indicator-view + .conversation-view) {
  display: block;
  position: relative;
}

main > section > turbo-frame:has( > .indicator-view + .conversation-view) > .indicator-view:first-child {
  z-index: 20;
  pointer-events: none;
  background: var(--color-parchment-250);
  justify-content: center;
  align-items: center;
  padding-block: 0;
  display: none;
  position: absolute;
  inset: 0;
}

main > section > turbo-frame:has( > .indicator-view + .conversation-view)[busy] > .indicator-view:first-child, main > section > turbo-frame:has( > .indicator-view + .conversation-view)[aria-busy="true"] > .indicator-view:first-child {
  display: flex;
}

.view.conversation-view {
  flex-direction: column;
  min-height: 0;
  display: flex;
  position: relative;

  & > .conversation.scrollable {
    min-height: 0;
    padding-top: calc(var(--spacing) * 5);
    padding-inline: calc(var(--spacing) * 5);
    flex: auto;
    overflow-y: auto;

    & > .more {
      padding-block: 0 16px;
    }

    &:has( > .conversation-turn:is(.companion-thinking, .companion-working)) {
      & > .messages > .message:last-child > article > .toolbox {
        display: none;
      }
    }
  }

  & > .conversation\/new-message {
    z-index: 1;
    padding-inline: 0 calc(var(--spacing) * 4);
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;

    & .node-attachments.draft {
      margin-left: 52px;
    }

    & > .fade {
      height: calc(var(--spacing) * 4);
      pointer-events: none;
    }
  }

  & > .conversation\/new-message.disabled {
    & .conversation\/new-message-form > .h-stack > .v-stack {
      pointer-events: none;
    }
  }

  & .conversation\/new-message-form {
    padding-inline: 14px 4px;
  }
}

.conversation-turn {
  justify-content: space-between;
  padding-block: 12px 0;
  padding-inline: 44px 12px;
  display: flex;

  & > .conversation-turn-indicator {
    position: relative;
    top: 10px;
    left: 25px;

    & > .linear-indicator {
      opacity: 0;
    }
  }

  & > .conversation-turn-body {
    gap: 8px;
    display: flex;
  }

  & > .conversation-turn-body > .conversation-turn-text {
    font-size: var(--text-sm);
    white-space: nowrap;
    padding-block: 8px 0;
  }

  & > .conversation-turn-body > .conversation-turn-brand {
    flex: none;
    width: 28px;
    height: 28px;
  }

  &.companion-thinking > .conversation-turn-indicator > .linear-indicator, &.companion-working > .conversation-turn-indicator > .linear-indicator {
    opacity: 1;
  }
}

.messages {
  gap: calc(var(--spacing) * 4);
  flex-direction: column;
  display: flex;

  & > .message:last-child {
    margin-bottom: calc(var(--spacing) * 2);
  }

  & > .companion-message > article > .toolbox .message-toolbox-recreate {
    display: none;
  }

  & > .companion-message:last-child > article > .toolbox .message-toolbox-recreate {
    display: inline-flex;
  }
}

.message {
  align-items: flex-start;
  gap: calc(var(--spacing) * 2.5);
  display: flex;

  & > figure {
    top: calc(var(--spacing) * 1.25);
    position: relative;
  }

  & > article {
    flex-direction: column;
    flex: auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    display: flex;
    position: relative;

    & .contents-container {
      flex-direction: column;
      gap: 12px;
      display: flex;
    }

    & .text-contents, & .action-contents {
      min-height: calc(var(--spacing) * 9);
    }

    & .content.text-content {
      font-family: var(--theme-font-default);
      padding-block: 8px 6px;
      padding-inline: 12px;
    }
  }

  &.person-message {
    & .content.text-content {
      & pre {
        white-space: pre-wrap;
        word-break: break-word;
        margin: 0;
        padding: 0;
        font-family: inherit;
        overflow-x: visible;
      }
    }
  }

  &.companion-message {
    & > article {
      & > .toolbox {
        z-index: 1;
        pointer-events: none;
        position: absolute;
        inset-block-end: calc(var(--spacing) * -3);
        inset-inline-end: calc(var(--spacing) * 3);

        & .message-toolbox-copy {
          display: inline-flex;
        }
      }
    }

    &:hover > article > .toolbox, &:focus-within > article > .toolbox, & > article > .toolbox:hover, & > article > .toolbox:focus-within {
      opacity: 1;
      pointer-events: auto;
    }

    & .action-contents {
      & > header {
        cursor: pointer;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 36px;
        padding-block: 8px 4px;
        padding-inline: 12px;
        display: flex;

        & .label, & .icon {
          position: relative;
        }

        & .label {
          white-space: nowrap;
          text-overflow: ellipsis;
          flex: auto;
          min-width: 0;
          overflow: hidden;
        }

        & .icon {
          flex: none;
        }
      }

      & > .body {
        overflow: hidden;

        & > .collection {
          & .content, & .tool-call-content {
            gap: 0;
            padding: 0;
            display: flex;

            & figure {
              flex-direction: column;
              flex: 0 0 36px;
              justify-content: start;
              align-items: center;
              margin-bottom: 2px;
              display: flex;

              & i {
                font-size: 18px;
                position: relative;
                top: 5px;

                &.fa-brain-circuit {
                  top: 4px;
                }
              }

              & div.line {
                flex-grow: 1;
                width: 1px;
                margin-block: 10px 0;
              }
            }

            & .text {
              padding-top: 2px;
            }
          }

          & .tool-call-content {
            & > .body {
              flex-direction: column;
              flex: auto;
              min-width: 0;
              padding-top: 6px;
              display: flex;
            }

            & .label {
              font-weight: 600;
              line-height: 1;
            }

            & .tool-calls {
              flex-direction: column;
              padding-block: 4px 2px;
              display: flex;
            }

            & .tool-call {
              align-items: center;
              gap: 4px;
              max-width: 100%;
              min-height: 0;
              padding-block: 0;
              padding-inline: 0 12px;
              display: inline-flex;

              &:not(:empty) {
                min-height: 28px;
              }

              & a {
                align-items: center;
                gap: 4px;
                min-width: 0;
                max-width: 100%;
                display: inline-flex;
                overflow: hidden;
              }

              & i {
                flex: none;
                position: relative;
                top: -1px;
              }

              & img {
                object-fit: cover;
                flex: none;
                width: 16px;
                height: 16px;
                margin-right: 4px;
                position: relative;
                top: -2px;
              }

              & span {
                white-space: nowrap;
                text-overflow: ellipsis;
                min-width: 0;
                overflow: hidden;
              }
            }
          }
        }
      }

      &.presented {
        & > .body > .collection {
          padding-block: 8px;
          padding-inline: 4px 16px;
        }
      }
    }
  }
}

@container (width >= 640px) {
  .conversation-turn {
    padding-inline-start: calc(var(--spacing) * 11);
  }

  .view.conversation-view {
    & > .conversation\/new-message {
      & > .fade {
        height: calc(var(--spacing) * 6);
      }
    }

    & .conversation\/new-message-form {
      padding-inline: 22px 4px;
    }
  }

  .message {
    & > figure.avatar {
      top: calc(var(--spacing) * 1);
    }

    & > article {
      & .content.text-content {
        min-height: calc(var(--spacing) * 9.5);
        padding-block: 9px 7px;
        padding-inline: 12px;
      }
    }

    &.companion-message {
      & > article {
        & .action-contents header {
          min-height: 42px;
        }
      }
    }
  }
}

.conversation-companion.tile {
  min-width: 0;
  height: calc(var(--spacing) * 13);
  padding-block: calc(var(--spacing) * 1.5);
  padding-inline: calc(var(--spacing) * 2);
  display: block;

  & input[type="radio"] {
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  & label {
    align-items: center;
    gap: calc(var(--spacing) * 2);
    cursor: pointer;
    height: 100%;
    display: flex;

    & > .body {
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      display: flex;

      & .name, & small {
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
        overflow: hidden;
      }

      & .name {
        position: relative;
        top: 2px;
      }

      & > small {
        font-size: var(--text-xs);
        line-height: 1.25;
      }
    }
  }
}

.conversation-companion-tools-view {
  min-height: 0;

  & > .companion-tools {
    gap: calc(var(--spacing) * 2);
    flex: auto;
    min-height: 0;
    padding-bottom: calc(var(--spacing) * 8) !important;
  }

  & .tool .body {
    align-items: center;
    gap: calc(var(--spacing) * 3);
    min-height: calc(var(--spacing) * 12);
    display: flex;
  }

  & .description {
    flex: auto;
    align-items: center;
    display: flex;
  }

  & .toggle {
    flex: none;
    position: relative;
    top: 1px;
  }
}

.handbook-view {
  height: 100vh;
  min-height: 0;
  padding-block: calc(var(--spacing) * 7) 0;

  & .handbook {
    height: 100%;
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 3);

    & .directive-create.button {
      width: 22px;
      height: 22px;

      & i {
        font-size: 13px;
      }
    }

    & .directives.collection {
      gap: calc(var(--spacing) * 3);
      padding-bottom: calc(var(--spacing) * 5);
      flex-direction: column;
      display: flex;

      & .empty {
        margin: 0;
      }

      & .directive {
        gap: calc(var(--spacing) * 2);
        flex-direction: column;
        display: flex;

        & > div:first-child {
          justify-content: center;
          display: flex;
        }

        & > article {
          flex-direction: column;
          display: flex;
          position: relative;

          & > form {
            flex: auto;
            min-width: 0;

            & .body {
              min-height: calc(var(--spacing) * 11);
            }
          }

          & .directive-scopes-form .body {
            margin-inline: calc(var(--spacing) * 3);
            align-items: center;
            display: flex;
          }

          & .textarea {
            padding-inline: calc(var(--spacing) * 3);
          }

          & .toolbox {
            gap: calc(var(--spacing) * 1);
            position: absolute;

            &.reorder {
              top: -12px;
              left: -2px;
            }

            &.actions {
              bottom: -12px;
              right: 12px;
            }
          }
        }

        & > article:hover .toolbox {
          opacity: 1;
          pointer-events: auto;
        }

        & .directive-scopes {
          flex: auto;
          min-width: 0;
          display: flex;
        }

        & .directive-scopes .tags {
          min-width: 0;
          font-family: monospace;
          font-size: var(--text-sm);
          white-space: pre-wrap;
          word-break: break-word;
          flex: auto;
          align-content: flex-start;
          gap: 2px;
          line-height: 1.7;

          & code {
            -webkit-user-select: none;
            user-select: none;
            margin-inline: 4px;
          }
        }

        & .directive-scopes .tags:focus {
          outline: none;
        }
      }

      & > div:last-child {
        justify-content: center;
        display: flex;
      }
    }
  }
}

.mandate-view {
  height: 100vh;
  min-height: 0;
  padding-block: calc(var(--spacing) * 7) 0;

  & .mandate {
    height: 100%;
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 3);

    & .provision-create.button {
      width: 22px;
      height: 22px;

      & i {
        font-size: 13px;
      }
    }

    & .provisions.collection {
      gap: calc(var(--spacing) * 3);
      padding-bottom: calc(var(--spacing) * 5);
      flex-direction: column;
      display: flex;

      & .provision {
        gap: calc(var(--spacing) * 2);
        flex-direction: column;
        display: flex;

        & > div:first-child {
          justify-content: center;
          display: flex;
        }

        & > article {
          position: relative;

          & .textarea {
            padding-inline: calc(var(--spacing) * 3);
          }

          & .toolbox {
            gap: calc(var(--spacing) * 1);
            position: absolute;
          }

          & > .toolbox:first-of-type {
            top: calc(var(--spacing) * -3);
            left: calc(var(--spacing) * -3);
          }

          & > .toolbox:last-of-type {
            right: calc(var(--spacing) * 4);
            bottom: calc(var(--spacing) * -3);
          }
        }

        & > article:hover .toolbox {
          opacity: 1;
          pointer-events: auto;
        }
      }

      & > div:last-child {
        justify-content: center;
        display: flex;
      }
    }
  }
}

.view.showcase-view {
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
  container-type: inline-size;

  & > .dismiss {
    top: calc(var(--spacing) * 2);
    left: calc(var(--spacing) * 2);
    z-index: 20;
    position: fixed;

    & i {
      top: -1px;
    }
  }

  & > .fade {
    pointer-events: none;
    z-index: 10;
    height: 100%;
    position: fixed;
    top: 0;
  }

  & > .fade-left {
    width: calc(var(--spacing) * 12);
    left: 0;
  }

  & > .fade-right {
    width: calc(var(--spacing) * 12);
    right: 0;
  }

  &:has( > turbo-frame#showcase-companion:not(:empty)) > .fade-right {
    right: 360px;
  }

  & .showcase-scrollable {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  & .showcase-body {
    width: 100%;
    min-height: 100%;
    padding: calc(var(--spacing) * 8)
      0
      calc(var(--spacing) * 24)
      0;
    flex-direction: column;
    align-items: center;
    display: flex;
  }

  &:has( > turbo-frame#showcase-companion:not(:empty)) .showcase-body {
    padding-right: 360px;
  }

  & .showcase-groups {
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: flex;
  }

  & .showcase-group {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    display: flex;
  }

  & .showcase-group-header {
    padding-inline: calc(var(--spacing) * 12);
    align-items: center;
    gap: calc(var(--spacing) * 3);
    display: flex;

    & h2 {
      font-size: var(--text-sm);
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
      margin: 0;
      font-weight: 600;
    }

    & hr {
      flex: auto;
      margin: 0;
    }

    & hr:first-child {
      flex: 0 0 calc(var(--spacing) * 2);
    }
  }

  & .showcase-companions {
    width: 100%;
    min-width: 0;
    padding-inline: calc(var(--spacing) * 14);
    padding-block: calc(var(--spacing) * 8) calc(var(--spacing) * 12);
    scroll-padding-inline: calc(var(--spacing) * 14);
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 32px;
    display: flex;
    overflow-x: auto;
  }

  & .showcase-companions::-webkit-scrollbar {
    display: none;
  }

  & .showcase-card-link {
    color: inherit;
    flex: none;
    text-decoration: none;
    display: block;
  }

  & .showcase-empty {
    width: min(100%, 976px);
    padding: calc(var(--spacing) * 18)
      calc(var(--spacing) * 10);
    font-size: var(--text-md);
    margin: 0;
  }
}

@container (width <= 900px) {
  .view.showcase-view {
    &:has( > turbo-frame#showcase-companion:not(:empty)) .showcase-body {
      padding-right: 320px;
    }

    &:has( > turbo-frame#showcase-companion:not(:empty)) > .fade-right {
      right: 320px;
    }
  }
}

@container (width <= 720px) {
  .view.showcase-view {
    & > .fade-left, & > .fade-right {
      display: none;
    }

    & .showcase-body {
      padding: calc(var(--spacing) * 8)
        0
        calc(var(--spacing) * 22);
    }

    &:has( > turbo-frame#showcase-companion:not(:empty)) .showcase-body {
      padding-right: 0;
    }

    & .showcase-group-header {
      padding-inline: calc(var(--spacing) * 12);
    }

    & .showcase-companions {
      padding-inline: calc(var(--spacing) * 14);
      scroll-padding-inline: calc(var(--spacing) * 14);
      gap: 24px;
    }
  }
}

.view.showcase-view.showcase-guides-view {
  height: 100vh;
  min-height: 100vh;

  & .showcase-scrollable {
    display: flex;
  }

  & .showcase-body {
    min-height: 100%;
    padding: calc(var(--spacing) * 8)
      0
      calc(var(--spacing) * 8);
    justify-content: center;
  }

  & .showcase-guides-content {
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 8);
    text-align: center;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    display: flex;
  }

  & .showcase-guides-heading {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
  }

  & .showcase-guides-form {
    align-items: center;
    gap: calc(var(--spacing) * 4);
    flex-direction: column;
    width: 100%;
    min-width: 0;
    display: flex;
  }

  & .showcase-guides-companions {
    padding-block: calc(var(--spacing) * 4) calc(var(--spacing) * 5);
    justify-content: safe center;
  }

  & .showcase-guide-option {
    flex: none;
    display: block;
  }

  & .showcase-guide-option > .companion.card {
    color: inherit;
    text-decoration: none;
    display: block;
  }

  & .showcase-guide-option > input:focus-visible + .companion.card {
    outline-offset: 4px;
    outline: 2px solid;
  }

  & .showcase-guide-option > input:checked + .companion.card {
    transform: translateY(-2px);
  }

  & .showcase-guides-note {
    font-size: var(--text-xs);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
  }

  & .showcase-guides-enter {
    margin-top: calc(var(--spacing) * 2);
    min-width: calc(var(--spacing) * 24);
    padding-inline: calc(var(--spacing) * 3);
  }

  & .showcase-guides-enter.disclosure:after {
    font-size: 14px;
    position: relative;
    top: -1px;
  }

  & .showcase-guides-enter[aria-disabled="true"] {
    cursor: default;
  }
}

@container (width <= 720px) {
  .view.showcase-view.showcase-guides-view {
    & .showcase-body {
      padding: calc(var(--spacing) * 8)
        0
        calc(var(--spacing) * 8);
    }

    & .showcase-guides-heading {
      font-size: 24px;
    }

    & .showcase-guides-companions {
      padding-inline: calc(var(--spacing) * 12);
      scroll-padding-inline: calc(var(--spacing) * 12);
    }
  }
}

.showcase-companion-empty {
  min-height: 100%;
  padding: calc(var(--spacing) * 5)
    calc(var(--spacing) * 4);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  flex-direction: column;
  display: flex;

  & h2, & p {
    margin: 0;
  }
}

.showcase-companion.panel {
  z-index: 10;
  width: 360px;
  height: 100%;
  min-height: 0;
  box-shadow: none;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  flex-direction: column;
  gap: 0;
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  overflow: hidden;

  & .showcase-companion-hero {
    width: 100%;
    min-height: calc(var(--spacing) * 32);
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    max-height: 33%;
    margin: 0;
    display: flex;
    position: relative;
    overflow: hidden;

    & img {
      object-fit: cover;
      object-position: center;
      width: 100%;
      height: 100%;
      display: block;
    }

    & .showcase-companion-monogram.avatar {
      justify-content: center;
      align-items: center;
      width: 7rem;
      height: 7rem;
      display: flex;

      & figcaption {
        letter-spacing: .08em;
        font-size: 36px;
      }
    }
  }

  & .showcase-companion-actions {
    top: calc(var(--spacing) * 2);
    left: calc(var(--spacing) * 2);
    right: calc(var(--spacing) * 2);
    z-index: 1;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing) * 1.5);
    display: flex;
    position: absolute;

    & form {
      margin: 0;
    }

    & .button i {
      font-size: 16px;
      top: -1px;
    }
  }

  & .showcase-companion-add {
    gap: calc(var(--spacing) * 1);
    padding-inline: calc(var(--spacing) * 1.5);

    & span {
      padding-top: 2px;
    }
  }

  & .showcase-companion-close i {
    top: -2px;
  }

  & .showcase-companion-body {
    min-height: 0;
    padding: calc(var(--spacing) * 6)
      calc(var(--spacing) * 6);
    gap: calc(var(--spacing) * 3);
    flex-direction: column;
    flex: auto;
    display: flex;

    & h2, & p {
      margin: 0;
    }

    & h2 {
      text-align: center;
      font-size: 28px;
      font-weight: 600;
      line-height: 1.1;
    }

    & .showcase-companion-tagline {
      font-size: var(--text-sm);
      margin-top: 0;
      line-height: 1.55;
    }

    & .showcase-companion-spacer {
      min-height: calc(var(--spacing) * 2);
      flex: auto;
    }
  }

  & .showcase-companion-tags {
    justify-content: center;
    gap: calc(var(--spacing) * 2);
  }

  & hr {
    width: 100%;
    margin: calc(var(--spacing) * 3) 0 0;
  }

  & .showcase-companion-stats {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }
}

@container (width <= 900px) {
  .view.showcase-view {
    & .showcase-companion.panel {
      width: 320px;
    }
  }
}

@container (width <= 720px) {
  .view.showcase-view {
    & .showcase-companion.panel {
      z-index: 15;
      width: 100%;
      height: min(58%, 520px);
      position: absolute;
      inset: auto 0 0;
    }
  }
}

.dock {
  inset-block: 0;
  z-index: 100;
  width: calc(var(--spacing) * 9);
  padding-block: 8px 4px;
  position: fixed;
  left: 0;

  & .drawer {
    align-items: center;
    gap: calc(var(--spacing) * 3);
    height: 100%;
    padding-block: calc(var(--spacing) * 9) 18px;
    flex-direction: column;
    display: flex;
    position: relative;

    &:before {
      content: "";
      top: calc(var(--spacing) * 3);
      bottom: calc(var(--spacing) * 3);
      z-index: 0;
      width: 1px;
      position: absolute;
      left: calc(50% - .5px);
    }
  }

  & button, & a.button {
    min-width: calc(var(--spacing) * 7.5);
    width: calc(var(--spacing) * 7.5);
    height: calc(var(--spacing) * 7.5);
    text-align: center;
    padding: 0;
  }

  & a[aria-label="Account"] {
    pointer-events: auto;
    justify-content: center;
    align-items: center;
    display: flex;
  }

  & .top, & .bottom {
    z-index: 1;
    align-items: center;
    gap: calc(var(--spacing) * 3);
    flex-direction: column;
    display: flex;
    position: relative;
  }

  & .workspace-dock-spacer {
    flex: 1;
  }

  & figure.avatar {
    z-index: 1;
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);

    & i {
      font-size: var(--text-sm);
      line-height: 1;
    }

    & figcaption {
      font-weight: 500;
      font-size: var(--text-sm);
      position: relative;
      top: -1px;
    }
  }
}

.dock + main {
  padding-left: calc(var(--spacing) * 13);
}

main {
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100vh;
  padding-inline: 12px;
  display: flex;
  overflow: hidden;

  & > section {
    height: 100vh;
    max-width: var(--section-max-width);
    min-width: var(--section-min-width);
    flex: 2;
    container-type: inline-size;

    &:empty {
      display: none;
    }

    & > turbo-frame {
      & > .view:not(.indicator-view) {
        opacity: 0;
        transition: opacity .1s;
      }

      &[complete] > .view:not(.indicator-view) {
        opacity: 1;
      }
    }

    &[id="section-left/2"], &[id="section-left/3"] {
      max-width: var(--section-sm-max-width);
      min-width: var(--section-sm-min-width);
      flex: 1;
    }

    & .view {
      height: 100vh;
      min-height: 0;
      position: relative;

      &.indicator-view {
        flex-direction: column;
        align-items: center;
        display: flex;

        & .linear-indicator {
          height: 10px;
        }
      }

      &.not-found-view {
        justify-content: center;
        gap: calc(var(--spacing) * 4);
        text-align: center;

        & > .icon {
          font-size: clamp(2rem, 6vw, 4rem);
        }

        & > span {
          max-width: 28ch;
        }
      }

      &:has( > .menu-bar:first-child) {
        padding-top: calc(var(--spacing) * 7);
      }
    }

    font-size: var(--text-sm);

    & small {
      font-size: var(--text-sm);
    }
  }
}

.modal {
  z-index: 240;
  opacity: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: opacity .2s;
  display: flex;
  position: fixed;
  inset: 0;

  &.visible {
    opacity: 1;
  }

  & > .modal-content {
    pointer-events: none;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;

    & > * {
      pointer-events: auto;
      width: 100%;
      max-height: 100%;
    }

    & > turbo-frame {
      height: 100%;
      display: block;

      & > .indicator-view {
        height: 100%;
      }
    }
  }
}

turbo-frame#workspace.modal-presented {
  & .dock, & main, & turbo-cable-stream-source {
    filter: blur(8px);
  }
}

.modal-screen {
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}

.modal-dialog {
  gap: calc(var(--spacing) * 4);
  width: min(100%, 36rem);
  max-width: 100%;
  padding: calc(var(--spacing) * 5);
  flex-direction: column;
  margin: auto;
  display: flex;
}

.dock.large {
  width: calc(var(--spacing) * 11);
  padding-block: 8px 0;

  & .drawer {
    gap: calc(var(--spacing) * 3);
    padding-block: 36px 22px;

    & button, & a.button {
      width: 36px;
      height: 36px;

      & i {
        font-size: 17px;
      }
    }
  }

  & figure.avatar {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);

    & figcaption {
      font-size: var(--text-md);
      top: 0;
    }
  }
}

@media (width >= 1080px) {
  main {
    gap: 16px;
    padding-inline: 16px;
  }

  .dock + main {
    padding-left: calc(var(--spacing) * 15);
  }
}

@container (width >= 640px) {
  section[id="section-center/0"] *, section[id="section-left/0"] *, section[id="section-left/1"] * {
    font-size: var(--text-md);
  }
}

@container (width >= 320px) {
  section[id="section-left/2"] *, section[id="section-left/3"] * {
    font-size: var(--text-md);
  }
}

article .content {
  padding: 8px 10px 0;
  overflow-x: hidden;

  & > * {
    min-height: 0;
    margin-bottom: 8px;
  }

  & > :last-child {
    margin-bottom: 0;
  }

  & > hr:first-child {
    margin-top: 8px;
  }

  & > .code:last-child, & > .widget:last-child, & > img:last-child, & > p:last-child:has( > img:last-child) {
    margin-bottom: 8px;
  }

  & p, & a, & li, & span, & pre {
    font-size: 14px;
    line-height: 20px;
  }

  & strong {
    font-weight: 600;
  }

  & a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  & sup {
    padding-inline: 2px;
  }

  & sup, & sup a {
    font-size: 12px;
    font-weight: 500;
  }

  & hr {
    margin: 20px 8px;
  }

  & ul, & ol {
    list-style-position: outside;
  }

  & ul {
    list-style-type: disc;
  }

  & ol {
    list-style-type: decimal;
  }

  & > ul {
    margin-left: 22px;
  }

  & > ol {
    margin-left: 28px;
  }

  & ul ul, & ul ol, & ol ul, & ol ol {
    margin-top: 4px;
    margin-left: 16px;
  }

  & li {
    margin-bottom: 8px;
    margin-left: 8px;

    & input[type="checkbox"] {
      vertical-align: text-top;
    }

    & input[type="checkbox"] + p {
      display: inline;
    }
  }

  & li:last-child {
    margin-bottom: 0;
  }

  & li:has( > ul,  > ol) {
    margin-bottom: 4px;
  }

  & li > p {
    margin-bottom: 8px;
  }

  & li > p:last-child, & li > p:only-child {
    margin-bottom: 0;
  }

  & li > .code, & li > blockquote, & li > table {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  & li > .code:last-child, & li > blockquote:last-child, & li > table:last-child {
    margin-bottom: 0;
  }

  & table {
    border-collapse: collapse;

    & tr {
      & td, & th {
        text-align: left;
        padding-block: 3px 0;
        padding-inline: 4px 12px;
      }
    }
  }

  & blockquote {
    padding-left: 12px;
    margin-block: 2px 8px;
    padding-block: 4px 2px;

    & p, & code {
      margin-bottom: 0;
    }
  }

  & code {
    padding: 2px;
    font-size: 14px;
    font-weight: normal;
  }

  & .code {
    min-width: 0;
    margin-bottom: 10px;

    & > header {
      justify-content: space-between;
      align-items: center;
      padding-block: 4px;
      padding-inline: 10px 4px;
      font-family: monospace;
      display: flex;

      & span {
        font-size: 14px;
      }
    }

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

    & .code-copy-button {
      font-size: inherit;
      line-height: inherit;
      flex: none;
      padding: 0;
    }

    &.code-streaming, &.code-completing, &.code-complete {
      & .code-content {
        position: relative;
      }

      & .code-content:after {
        content: "";
        inset-inline: 0;
        pointer-events: none;
        opacity: 0;
        background: linear-gradient(to bottom, #0000, var(--code-highlight-bg, transparent) 66%);
        height: 0;
        transition: height .18s, opacity .18s;
        position: absolute;
        bottom: 0;
      }
    }

    &.code-streaming {
      & .code-content:after {
        opacity: 1;
        height: 5lh;
      }
    }

    &.code-completing, &.code-complete {
      & .code-content:after {
        opacity: 0;
        height: 0;
      }
    }

    & pre, & .code-content {
      white-space: pre;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      margin: 0;
      padding: 12px;
      font-size: 14px;
      line-height: 20px;
      overflow-x: auto;

      & span {
        font-size: inherit !important;
        line-height: inherit !important;
      }

      &::-webkit-scrollbar {
        display: none;
      }
    }

    & .code-body {
      white-space: pre;
      padding: 0;
      display: block;
    }
  }

  & .widget {
    min-width: 0;
    min-height: var(--widget-height, 120px);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
  }

  & .widget-placeholder {
    min-height: inherit;
    justify-content: center;
    align-items: center;
    display: flex;
  }

  & .widget-payload {
    display: none;
  }

  & .widget-chemistry-compound {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 10px;
    display: flex;
    overflow-x: auto;

    & .widget-molecule {
      width: min(var(--widget-molecule-size, 196px), 100%);
      max-width: min(var(--widget-molecule-size, 196px), 100%);
      flex: 0 1 min(var(--widget-molecule-size, 196px), 100%);
      flex-direction: column;
      align-items: center;
      display: flex;
    }

    & .widget-molecule-structure {
      box-sizing: border-box;
      width: 100%;
      padding: 4px;

      & svg {
        background: none;
        max-width: 100%;
        height: auto;
        display: block;
      }

      & svg rect {
        fill: #0000;
      }

      & svg path[class^="bond-"] {
        stroke: currentColor;
      }

      & svg path[class^="atom-"] {
        stroke: none;
      }

      & svg text {
        fill: currentColor;
      }
    }

    & .widget-separator {
      color: var(--text-subtle-color);
      flex: none;
      font-size: 20px;
      line-height: 1;
    }

    & .widget-molecule-label {
      text-align: center;
      margin-top: 4px;
      font-size: 12px;
      font-weight: 600;
      line-height: 16px;
    }

    & .widget-molecule-sublabel {
      color: var(--text-subtle-color);
      text-align: center;
      font-size: 11px;
      line-height: 14px;
    }
  }

  & .widget.widget-error {
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: 12px;
    font-size: 14px;
    line-height: 20px;
    display: flex;
  }

  @media (prefers-reduced-motion: reduce) {
    & .code {
      &.code-streaming, &.code-completing, &.code-complete {
        & .code-content:after {
          transition: none;
        }
      }
    }
  }

  & img {
    max-height: 460px;
  }

  & p:has( > img) {
    margin-bottom: 16px;
  }

  & p > img + em {
    margin-top: 4px;
    font-size: .875em;
    display: block;
  }

  & h1 {
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: underline;
  }

  & h2 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
  }

  & h3 {
    font-size: 1.05rem;
    font-weight: 500;
  }

  & h4 {
    font-size: inherit;
    font-weight: 500;
    text-decoration: underline;
  }

  & h5 {
    font-size: inherit;
    font-weight: 500;
  }

  & h6 {
    font-size: inherit;
    font-style: italic;
    font-weight: 400;
  }

  & .footnotes {
    padding: 8px 8px 0;
  }

  & hr {
    height: 1px;
  }
}

@container (width > 640px) {
  article header, article .content {
    & p, & a, & li, & span, & pre {
      font-size: 16px;
      line-height: 24px;
    }

    & .code pre {
      font-size: 14px;
    }
  }

  .section-md article .content {
    padding-top: 10px;

    & > :last-child {
      margin-bottom: 8px;
    }
  }

  article .content {
    & h1 {
      font-size: 1.2rem;
    }

    & h2 {
      font-size: 1.15rem;
    }

    & h3 {
      font-size: 1.1rem;
    }
  }
}

.round-flag-icon {
  margin-right: calc(var(--spacing) * 1.5);
  vertical-align: top;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.round-flag-ad {
  background-image: url("/assets/images/flags/round/ad-2c6dd15c.svg");
}

.round-flag-ae {
  background-image: url("/assets/images/flags/round/ae-5b970155.svg");
}

.round-flag-af {
  background-image: url("/assets/images/flags/round/af-ee5a62de.svg");
}

.round-flag-ag {
  background-image: url("/assets/images/flags/round/ag-7d1b9e9c.svg");
}

.round-flag-ai {
  background-image: url("/assets/images/flags/round/ai-0fa857da.svg");
}

.round-flag-al {
  background-image: url("/assets/images/flags/round/al-d3fb733c.svg");
}

.round-flag-am {
  background-image: url("/assets/images/flags/round/am-3d4d6e58.svg");
}

.round-flag-ao {
  background-image: url("/assets/images/flags/round/ao-98bb07cf.svg");
}

.round-flag-ar {
  background-image: url("/assets/images/flags/round/ar-ba09d904.svg");
}

.round-flag-as {
  background-image: url("/assets/images/flags/round/as-56fdf824.svg");
}

.round-flag-at {
  background-image: url("/assets/images/flags/round/at-a8fdb06d.svg");
}

.round-flag-au {
  background-image: url("/assets/images/flags/round/au-7429b75d.svg");
}

.round-flag-aw {
  background-image: url("/assets/images/flags/round/aw-4c8463b5.svg");
}

.round-flag-ax {
  background-image: url("/assets/images/flags/round/ax-5b08b2a5.svg");
}

.round-flag-az {
  background-image: url("/assets/images/flags/round/az-ef99fc9e.svg");
}

.round-flag-ba {
  background-image: url("/assets/images/flags/round/ba-749be0ae.svg");
}

.round-flag-bb {
  background-image: url("/assets/images/flags/round/bb-c9caafdb.svg");
}

.round-flag-bd {
  background-image: url("/assets/images/flags/round/bd-86a642a9.svg");
}

.round-flag-be {
  background-image: url("/assets/images/flags/round/be-4c5a8333.svg");
}

.round-flag-bf {
  background-image: url("/assets/images/flags/round/bf-6d5d146f.svg");
}

.round-flag-bg {
  background-image: url("/assets/images/flags/round/bg-6b73e3d0.svg");
}

.round-flag-bh {
  background-image: url("/assets/images/flags/round/bh-0826a111.svg");
}

.round-flag-bi {
  background-image: url("/assets/images/flags/round/bi-bb1418a6.svg");
}

.round-flag-bj {
  background-image: url("/assets/images/flags/round/bj-cd093ff2.svg");
}

.round-flag-bl {
  background-image: url("/assets/images/flags/round/bl-58334fe1.svg");
}

.round-flag-bm {
  background-image: url("/assets/images/flags/round/bm-ea44d292.svg");
}

.round-flag-bn {
  background-image: url("/assets/images/flags/round/bn-7ecb0b76.svg");
}

.round-flag-bo {
  background-image: url("/assets/images/flags/round/bo-1bbc0ba7.svg");
}

.round-flag-bq-bo {
  background-image: url("/assets/images/flags/round/bq-bo-08c1b16b.svg");
}

.round-flag-bq-sa {
  background-image: url("/assets/images/flags/round/bq-sa-00505359.svg");
}

.round-flag-bq-se {
  background-image: url("/assets/images/flags/round/bq-se-ccb07df9.svg");
}

.round-flag-br {
  background-image: url("/assets/images/flags/round/br-3f658353.svg");
}

.round-flag-bs {
  background-image: url("/assets/images/flags/round/bs-08a500d6.svg");
}

.round-flag-bt {
  background-image: url("/assets/images/flags/round/bt-ffbe1ce7.svg");
}

.round-flag-bw {
  background-image: url("/assets/images/flags/round/bw-7b8a6167.svg");
}

.round-flag-by {
  background-image: url("/assets/images/flags/round/by-b20908e0.svg");
}

.round-flag-bz {
  background-image: url("/assets/images/flags/round/bz-57b6ff98.svg");
}

.round-flag-ca-bc {
  background-image: url("/assets/images/flags/round/ca-bc-abc14d00.svg");
}

.round-flag-ca {
  background-image: url("/assets/images/flags/round/ca-07b1ad6b.svg");
}

.round-flag-cc {
  background-image: url("/assets/images/flags/round/cc-1d87c406.svg");
}

.round-flag-cd {
  background-image: url("/assets/images/flags/round/cd-14180471.svg");
}

.round-flag-cf {
  background-image: url("/assets/images/flags/round/cf-f2708cec.svg");
}

.round-flag-cg {
  background-image: url("/assets/images/flags/round/cg-5d5cdd39.svg");
}

.round-flag-ch {
  background-image: url("/assets/images/flags/round/ch-6ffa7646.svg");
}

.round-flag-ci {
  background-image: url("/assets/images/flags/round/ci-8a878ef3.svg");
}

.round-flag-ck {
  background-image: url("/assets/images/flags/round/ck-dc4b285a.svg");
}

.round-flag-cl {
  background-image: url("/assets/images/flags/round/cl-031ec230.svg");
}

.round-flag-cm {
  background-image: url("/assets/images/flags/round/cm-a42ccbf5.svg");
}

.round-flag-cn {
  background-image: url("/assets/images/flags/round/cn-f36a8090.svg");
}

.round-flag-co {
  background-image: url("/assets/images/flags/round/co-bdeb6920.svg");
}

.round-flag-cr {
  background-image: url("/assets/images/flags/round/cr-70652cec.svg");
}

.round-flag-cu {
  background-image: url("/assets/images/flags/round/cu-42ffb850.svg");
}

.round-flag-cv {
  background-image: url("/assets/images/flags/round/cv-4757ec00.svg");
}

.round-flag-cw {
  background-image: url("/assets/images/flags/round/cw-45724bef.svg");
}

.round-flag-cx {
  background-image: url("/assets/images/flags/round/cx-21949fc3.svg");
}

.round-flag-cy {
  background-image: url("/assets/images/flags/round/cy-83f84215.svg");
}

.round-flag-cz {
  background-image: url("/assets/images/flags/round/cz-8b62be44.svg");
}

.round-flag-de {
  background-image: url("/assets/images/flags/round/de-c4011a3b.svg");
}

.round-flag-dj {
  background-image: url("/assets/images/flags/round/dj-971b02c6.svg");
}

.round-flag-dk {
  background-image: url("/assets/images/flags/round/dk-3cb698c0.svg");
}

.round-flag-dm {
  background-image: url("/assets/images/flags/round/dm-958fc577.svg");
}

.round-flag-do {
  background-image: url("/assets/images/flags/round/do-215d6200.svg");
}

.round-flag-dz {
  background-image: url("/assets/images/flags/round/dz-3cd239fe.svg");
}

.round-flag-ea {
  background-image: url("/assets/images/flags/round/ea-8e8dc5d2.svg");
}

.round-flag-easter_island {
  background-image: url("/assets/images/flags/round/easter_island-eec0b9b2.svg");
}

.round-flag-ec-w {
  background-image: url("/assets/images/flags/round/ec-w-411784d7.svg");
}

.round-flag-ec {
  background-image: url("/assets/images/flags/round/ec-85d8e268.svg");
}

.round-flag-ee {
  background-image: url("/assets/images/flags/round/ee-e276402e.svg");
}

.round-flag-eg {
  background-image: url("/assets/images/flags/round/eg-e53312a6.svg");
}

.round-flag-eh {
  background-image: url("/assets/images/flags/round/eh-2826b39e.svg");
}

.round-flag-er {
  background-image: url("/assets/images/flags/round/er-7cf0b65f.svg");
}

.round-flag-es-ce {
  background-image: url("/assets/images/flags/round/es-ce-8e8dc5d2.svg");
}

.round-flag-es-cn {
  background-image: url("/assets/images/flags/round/es-cn-1b729dbd.svg");
}

.round-flag-es-ga {
  background-image: url("/assets/images/flags/round/es-ga-d2bae639.svg");
}

.round-flag-es-ib {
  background-image: url("/assets/images/flags/round/es-ib-f52e2ccc.svg");
}

.round-flag-es-ml {
  background-image: url("/assets/images/flags/round/es-ml-cd455c0f.svg");
}

.round-flag-es-pv {
  background-image: url("/assets/images/flags/round/es-pv-081012a7.svg");
}

.round-flag-es {
  background-image: url("/assets/images/flags/round/es-82c040c7.svg");
}

.round-flag-esperanto {
  background-image: url("/assets/images/flags/round/esperanto-336149af.svg");
}

.round-flag-et {
  background-image: url("/assets/images/flags/round/et-7ab63262.svg");
}

.round-flag-european_union {
  background-image: url("/assets/images/flags/round/european_union-dd59150f.svg");
}

.round-flag-fi {
  background-image: url("/assets/images/flags/round/fi-4ae10bbb.svg");
}

.round-flag-fj {
  background-image: url("/assets/images/flags/round/fj-c3b2d6db.svg");
}

.round-flag-fk {
  background-image: url("/assets/images/flags/round/fk-78ef7ce6.svg");
}

.round-flag-fm {
  background-image: url("/assets/images/flags/round/fm-5e30aeea.svg");
}

.round-flag-fo {
  background-image: url("/assets/images/flags/round/fo-8378ea72.svg");
}

.round-flag-fr-h {
  background-image: url("/assets/images/flags/round/fr-h-bbe1fced.svg");
}

.round-flag-fr {
  background-image: url("/assets/images/flags/round/fr-9342aee2.svg");
}

.round-flag-ga {
  background-image: url("/assets/images/flags/round/ga-7dac8422.svg");
}

.round-flag-gb-eng {
  background-image: url("/assets/images/flags/round/gb-eng-9067b7c2.svg");
}

.round-flag-gb-ork {
  background-image: url("/assets/images/flags/round/gb-ork-ba69a06f.svg");
}

.round-flag-gb-sct {
  background-image: url("/assets/images/flags/round/gb-sct-7c8f6405.svg");
}

.round-flag-gb-wls {
  background-image: url("/assets/images/flags/round/gb-wls-992d7d29.svg");
}

.round-flag-gb {
  background-image: url("/assets/images/flags/round/gb-80de48a7.svg");
}

.round-flag-gd {
  background-image: url("/assets/images/flags/round/gd-685f03a7.svg");
}

.round-flag-ge-ab {
  background-image: url("/assets/images/flags/round/ge-ab-0b4ccef5.svg");
}

.round-flag-ge {
  background-image: url("/assets/images/flags/round/ge-10aacbb0.svg");
}

.round-flag-gg {
  background-image: url("/assets/images/flags/round/gg-86a123e1.svg");
}

.round-flag-gh {
  background-image: url("/assets/images/flags/round/gh-b41694d9.svg");
}

.round-flag-gi {
  background-image: url("/assets/images/flags/round/gi-240ce98a.svg");
}

.round-flag-gl {
  background-image: url("/assets/images/flags/round/gl-809fe9bd.svg");
}

.round-flag-gm {
  background-image: url("/assets/images/flags/round/gm-500dba5e.svg");
}

.round-flag-gn {
  background-image: url("/assets/images/flags/round/gn-88b120e9.svg");
}

.round-flag-gq {
  background-image: url("/assets/images/flags/round/gq-abd99f08.svg");
}

.round-flag-gr {
  background-image: url("/assets/images/flags/round/gr-5a6811a8.svg");
}

.round-flag-gt {
  background-image: url("/assets/images/flags/round/gt-cb9f9aae.svg");
}

.round-flag-gu {
  background-image: url("/assets/images/flags/round/gu-6b7fd7a5.svg");
}

.round-flag-gw {
  background-image: url("/assets/images/flags/round/gw-bac02386.svg");
}

.round-flag-gy {
  background-image: url("/assets/images/flags/round/gy-56e84614.svg");
}

.round-flag-hausa {
  background-image: url("/assets/images/flags/round/hausa-f1ff7cdc.svg");
}

.round-flag-hk {
  background-image: url("/assets/images/flags/round/hk-70b38710.svg");
}

.round-flag-hmong {
  background-image: url("/assets/images/flags/round/hmong-36094dc1.svg");
}

.round-flag-hn {
  background-image: url("/assets/images/flags/round/hn-c80d944e.svg");
}

.round-flag-hr {
  background-image: url("/assets/images/flags/round/hr-d360e989.svg");
}

.round-flag-ht {
  background-image: url("/assets/images/flags/round/ht-e51f084c.svg");
}

.round-flag-hu {
  background-image: url("/assets/images/flags/round/hu-d3c380cd.svg");
}

.round-flag-id {
  background-image: url("/assets/images/flags/round/id-bda88f49.svg");
}

.round-flag-ie {
  background-image: url("/assets/images/flags/round/ie-16b3a2c3.svg");
}

.round-flag-il {
  background-image: url("/assets/images/flags/round/il-b844cf17.svg");
}

.round-flag-im {
  background-image: url("/assets/images/flags/round/im-0233a6a0.svg");
}

.round-flag-in {
  background-image: url("/assets/images/flags/round/in-0ae3379a.svg");
}

.round-flag-io {
  background-image: url("/assets/images/flags/round/io-54f004ec.svg");
}

.round-flag-iq {
  background-image: url("/assets/images/flags/round/iq-cedc4ade.svg");
}

.round-flag-ir {
  background-image: url("/assets/images/flags/round/ir-e52fffad.svg");
}

.round-flag-is {
  background-image: url("/assets/images/flags/round/is-2646e6a9.svg");
}

.round-flag-it-82 {
  background-image: url("/assets/images/flags/round/it-82-dfd8f562.svg");
}

.round-flag-it-88 {
  background-image: url("/assets/images/flags/round/it-88-3ac5236d.svg");
}

.round-flag-it {
  background-image: url("/assets/images/flags/round/it-462dc9a5.svg");
}

.round-flag-je {
  background-image: url("/assets/images/flags/round/je-255196c7.svg");
}

.round-flag-jm {
  background-image: url("/assets/images/flags/round/jm-f0212376.svg");
}

.round-flag-jo {
  background-image: url("/assets/images/flags/round/jo-9bbda965.svg");
}

.round-flag-jp {
  background-image: url("/assets/images/flags/round/jp-25ed29be.svg");
}

.round-flag-kannada {
  background-image: url("/assets/images/flags/round/kannada-077abe11.svg");
}

.round-flag-ke {
  background-image: url("/assets/images/flags/round/ke-0f846fe9.svg");
}

.round-flag-kg {
  background-image: url("/assets/images/flags/round/kg-7aef3948.svg");
}

.round-flag-kh {
  background-image: url("/assets/images/flags/round/kh-e37f20e2.svg");
}

.round-flag-ki {
  background-image: url("/assets/images/flags/round/ki-4e26c0a7.svg");
}

.round-flag-km {
  background-image: url("/assets/images/flags/round/km-993b80ed.svg");
}

.round-flag-kn {
  background-image: url("/assets/images/flags/round/kn-8b0450a8.svg");
}

.round-flag-kp {
  background-image: url("/assets/images/flags/round/kp-d859f776.svg");
}

.round-flag-kr {
  background-image: url("/assets/images/flags/round/kr-5116dabd.svg");
}

.round-flag-kurdistan {
  background-image: url("/assets/images/flags/round/kurdistan-13248c29.svg");
}

.round-flag-kw {
  background-image: url("/assets/images/flags/round/kw-f4926ca4.svg");
}

.round-flag-ky {
  background-image: url("/assets/images/flags/round/ky-dabaf24b.svg");
}

.round-flag-kz {
  background-image: url("/assets/images/flags/round/kz-2b1b9970.svg");
}

.round-flag-la {
  background-image: url("/assets/images/flags/round/la-a27d189c.svg");
}

.round-flag-lb {
  background-image: url("/assets/images/flags/round/lb-02cb0932.svg");
}

.round-flag-lc {
  background-image: url("/assets/images/flags/round/lc-7c147dba.svg");
}

.round-flag-li {
  background-image: url("/assets/images/flags/round/li-3714c0d7.svg");
}

.round-flag-lk {
  background-image: url("/assets/images/flags/round/lk-4509695b.svg");
}

.round-flag-lr {
  background-image: url("/assets/images/flags/round/lr-2c812a65.svg");
}

.round-flag-ls {
  background-image: url("/assets/images/flags/round/ls-8e6083f8.svg");
}

.round-flag-lt {
  background-image: url("/assets/images/flags/round/lt-a08ed7f1.svg");
}

.round-flag-lu {
  background-image: url("/assets/images/flags/round/lu-dbccd819.svg");
}

.round-flag-lv {
  background-image: url("/assets/images/flags/round/lv-e65a93e9.svg");
}

.round-flag-ly {
  background-image: url("/assets/images/flags/round/ly-623581f8.svg");
}

.round-flag-ma {
  background-image: url("/assets/images/flags/round/ma-b69f74d7.svg");
}

.round-flag-malayali {
  background-image: url("/assets/images/flags/round/malayali-93550865.svg");
}

.round-flag-maori {
  background-image: url("/assets/images/flags/round/maori-1f86cbe9.svg");
}

.round-flag-mc {
  background-image: url("/assets/images/flags/round/mc-ba6807e3.svg");
}

.round-flag-md {
  background-image: url("/assets/images/flags/round/md-92634710.svg");
}

.round-flag-me {
  background-image: url("/assets/images/flags/round/me-9ca06b49.svg");
}

.round-flag-mg {
  background-image: url("/assets/images/flags/round/mg-3251b8ec.svg");
}

.round-flag-mh {
  background-image: url("/assets/images/flags/round/mh-fafe8fd8.svg");
}

.round-flag-mk {
  background-image: url("/assets/images/flags/round/mk-e5918a51.svg");
}

.round-flag-ml {
  background-image: url("/assets/images/flags/round/ml-b821c82a.svg");
}

.round-flag-mm {
  background-image: url("/assets/images/flags/round/mm-5d3a8195.svg");
}

.round-flag-mn {
  background-image: url("/assets/images/flags/round/mn-20956717.svg");
}

.round-flag-mo {
  background-image: url("/assets/images/flags/round/mo-cf423965.svg");
}

.round-flag-mp {
  background-image: url("/assets/images/flags/round/mp-283f476e.svg");
}

.round-flag-mq {
  background-image: url("/assets/images/flags/round/mq-7ee171c2.svg");
}

.round-flag-mr {
  background-image: url("/assets/images/flags/round/mr-f7297979.svg");
}

.round-flag-ms {
  background-image: url("/assets/images/flags/round/ms-af681116.svg");
}

.round-flag-mt {
  background-image: url("/assets/images/flags/round/mt-7b58cf21.svg");
}

.round-flag-mu {
  background-image: url("/assets/images/flags/round/mu-dc2ee770.svg");
}

.round-flag-mv {
  background-image: url("/assets/images/flags/round/mv-a3fe573f.svg");
}

.round-flag-mw {
  background-image: url("/assets/images/flags/round/mw-05b89d41.svg");
}

.round-flag-mx {
  background-image: url("/assets/images/flags/round/mx-1fe86325.svg");
}

.round-flag-my {
  background-image: url("/assets/images/flags/round/my-87d092b7.svg");
}

.round-flag-mz {
  background-image: url("/assets/images/flags/round/mz-c4f1ea30.svg");
}

.round-flag-na {
  background-image: url("/assets/images/flags/round/na-01bb2a84.svg");
}

.round-flag-nato {
  background-image: url("/assets/images/flags/round/nato-6c4488f7.svg");
}

.round-flag-ne {
  background-image: url("/assets/images/flags/round/ne-517ed789.svg");
}

.round-flag-nf {
  background-image: url("/assets/images/flags/round/nf-a0b35a27.svg");
}

.round-flag-ng {
  background-image: url("/assets/images/flags/round/ng-4b240487.svg");
}

.round-flag-ni {
  background-image: url("/assets/images/flags/round/ni-b0eb5d96.svg");
}

.round-flag-nl {
  background-image: url("/assets/images/flags/round/nl-fa0c92ce.svg");
}

.round-flag-no {
  background-image: url("/assets/images/flags/round/no-dbf22cc3.svg");
}

.round-flag-northern_cyprus {
  background-image: url("/assets/images/flags/round/northern_cyprus-75d80f57.svg");
}

.round-flag-np {
  background-image: url("/assets/images/flags/round/np-c8864d46.svg");
}

.round-flag-nr {
  background-image: url("/assets/images/flags/round/nr-b5fd3694.svg");
}

.round-flag-nu {
  background-image: url("/assets/images/flags/round/nu-ceafeeb6.svg");
}

.round-flag-nz {
  background-image: url("/assets/images/flags/round/nz-78cb09b0.svg");
}

.round-flag-om {
  background-image: url("/assets/images/flags/round/om-e1ddb609.svg");
}

.round-flag-pa {
  background-image: url("/assets/images/flags/round/pa-e6bbd62f.svg");
}

.round-flag-pe {
  background-image: url("/assets/images/flags/round/pe-cf651063.svg");
}

.round-flag-pf {
  background-image: url("/assets/images/flags/round/pf-321e204f.svg");
}

.round-flag-pg {
  background-image: url("/assets/images/flags/round/pg-d566b436.svg");
}

.round-flag-ph {
  background-image: url("/assets/images/flags/round/ph-024b8145.svg");
}

.round-flag-pk {
  background-image: url("/assets/images/flags/round/pk-473c2480.svg");
}

.round-flag-pl {
  background-image: url("/assets/images/flags/round/pl-1e09eeaf.svg");
}

.round-flag-pn {
  background-image: url("/assets/images/flags/round/pn-0860c56c.svg");
}

.round-flag-pr {
  background-image: url("/assets/images/flags/round/pr-0ebc366e.svg");
}

.round-flag-ps {
  background-image: url("/assets/images/flags/round/ps-d83baa35.svg");
}

.round-flag-pt-20 {
  background-image: url("/assets/images/flags/round/pt-20-ed2ec6c7.svg");
}

.round-flag-pt-30 {
  background-image: url("/assets/images/flags/round/pt-30-582b2dcc.svg");
}

.round-flag-pt {
  background-image: url("/assets/images/flags/round/pt-7095471c.svg");
}

.round-flag-pw {
  background-image: url("/assets/images/flags/round/pw-1b0a02a5.svg");
}

.round-flag-py {
  background-image: url("/assets/images/flags/round/py-fa3ae93a.svg");
}

.round-flag-qa {
  background-image: url("/assets/images/flags/round/qa-55aba0ef.svg");
}

.round-flag-re {
  background-image: url("/assets/images/flags/round/fr-9342aee2.svg");
}

.round-flag-ro {
  background-image: url("/assets/images/flags/round/ro-17464632.svg");
}

.round-flag-rs {
  background-image: url("/assets/images/flags/round/rs-edb60d34.svg");
}

.round-flag-ru {
  background-image: url("/assets/images/flags/round/ru-d44cb6af.svg");
}

.round-flag-rw {
  background-image: url("/assets/images/flags/round/rw-47a5d0f4.svg");
}

.round-flag-sa {
  background-image: url("/assets/images/flags/round/sa-bc3091bc.svg");
}

.round-flag-sb {
  background-image: url("/assets/images/flags/round/sb-40a517ee.svg");
}

.round-flag-sc {
  background-image: url("/assets/images/flags/round/sc-dd59f0b8.svg");
}

.round-flag-sd {
  background-image: url("/assets/images/flags/round/sd-a31d3a16.svg");
}

.round-flag-se {
  background-image: url("/assets/images/flags/round/se-73ba0ce8.svg");
}

.round-flag-sg {
  background-image: url("/assets/images/flags/round/sg-c6d244a8.svg");
}

.round-flag-sh {
  background-image: url("/assets/images/flags/round/gb-80de48a7.svg");
}

.round-flag-si {
  background-image: url("/assets/images/flags/round/si-d4a95498.svg");
}

.round-flag-sindh {
  background-image: url("/assets/images/flags/round/sindh-d2cd2bf5.svg");
}

.round-flag-sk {
  background-image: url("/assets/images/flags/round/sk-af6af72c.svg");
}

.round-flag-sl {
  background-image: url("/assets/images/flags/round/sl-d6e6130a.svg");
}

.round-flag-sm {
  background-image: url("/assets/images/flags/round/sm-c6fc4fef.svg");
}

.round-flag-sn {
  background-image: url("/assets/images/flags/round/sn-55039094.svg");
}

.round-flag-so {
  background-image: url("/assets/images/flags/round/so-f16b6da8.svg");
}

.round-flag-somaliland {
  background-image: url("/assets/images/flags/round/somaliland-71cdf562.svg");
}

.round-flag-south_ossetia {
  background-image: url("/assets/images/flags/round/south_ossetia-70f31ae1.svg");
}

.round-flag-sr {
  background-image: url("/assets/images/flags/round/sr-acfc83bd.svg");
}

.round-flag-ss {
  background-image: url("/assets/images/flags/round/ss-b3dbd34c.svg");
}

.round-flag-st {
  background-image: url("/assets/images/flags/round/st-c9e0d3bf.svg");
}

.round-flag-sv {
  background-image: url("/assets/images/flags/round/sv-cbbece2e.svg");
}

.round-flag-sx {
  background-image: url("/assets/images/flags/round/sx-e06f2ebd.svg");
}

.round-flag-sy {
  background-image: url("/assets/images/flags/round/sy-714415c4.svg");
}

.round-flag-sz {
  background-image: url("/assets/images/flags/round/sz-9b30207d.svg");
}

.round-flag-tc {
  background-image: url("/assets/images/flags/round/tc-6d740f92.svg");
}

.round-flag-td {
  background-image: url("/assets/images/flags/round/td-3af96826.svg");
}

.round-flag-tg {
  background-image: url("/assets/images/flags/round/tg-5013078d.svg");
}

.round-flag-th {
  background-image: url("/assets/images/flags/round/th-3310065b.svg");
}

.round-flag-tibet {
  background-image: url("/assets/images/flags/round/tibet-a5c86fd8.svg");
}

.round-flag-tj {
  background-image: url("/assets/images/flags/round/tj-f8afc309.svg");
}

.round-flag-tk {
  background-image: url("/assets/images/flags/round/tk-0c2a61ad.svg");
}

.round-flag-tl {
  background-image: url("/assets/images/flags/round/tl-cbe3b0ce.svg");
}

.round-flag-tm {
  background-image: url("/assets/images/flags/round/tm-7fbbd8df.svg");
}

.round-flag-tn {
  background-image: url("/assets/images/flags/round/tn-d49343ec.svg");
}

.round-flag-to {
  background-image: url("/assets/images/flags/round/to-4e0c546d.svg");
}

.round-flag-tr {
  background-image: url("/assets/images/flags/round/tr-64776175.svg");
}

.round-flag-transnistria {
  background-image: url("/assets/images/flags/round/transnistria-bfcebaa4.svg");
}

.round-flag-tt {
  background-image: url("/assets/images/flags/round/tt-2687f4ee.svg");
}

.round-flag-tv {
  background-image: url("/assets/images/flags/round/tv-c317946f.svg");
}

.round-flag-tw {
  background-image: url("/assets/images/flags/round/tw-5b36f12b.svg");
}

.round-flag-tz {
  background-image: url("/assets/images/flags/round/tz-c99f09f4.svg");
}

.round-flag-ua {
  background-image: url("/assets/images/flags/round/ua-7ac32ab5.svg");
}

.round-flag-ug {
  background-image: url("/assets/images/flags/round/ug-ab5253ec.svg");
}

.round-flag-united_nations {
  background-image: url("/assets/images/flags/round/united_nations-5b937eb1.svg");
}

.round-flag-us-hi {
  background-image: url("/assets/images/flags/round/us-hi-993f6a10.svg");
}

.round-flag-us {
  background-image: url("/assets/images/flags/round/us-fd941b2b.svg");
}

.round-flag-uy {
  background-image: url("/assets/images/flags/round/uy-7d41c98b.svg");
}

.round-flag-uz {
  background-image: url("/assets/images/flags/round/uz-e35b3bc7.svg");
}

.round-flag-va {
  background-image: url("/assets/images/flags/round/va-6072f830.svg");
}

.round-flag-vc {
  background-image: url("/assets/images/flags/round/vc-dbc40ddb.svg");
}

.round-flag-ve {
  background-image: url("/assets/images/flags/round/ve-f7fc0e99.svg");
}

.round-flag-vg {
  background-image: url("/assets/images/flags/round/vg-89acdc36.svg");
}

.round-flag-vi {
  background-image: url("/assets/images/flags/round/vi-874c41bd.svg");
}

.round-flag-vn {
  background-image: url("/assets/images/flags/round/vn-179e15ad.svg");
}

.round-flag-vu {
  background-image: url("/assets/images/flags/round/vu-a7ff7182.svg");
}

.round-flag-ws {
  background-image: url("/assets/images/flags/round/ws-01efffc6.svg");
}

.round-flag-xk {
  background-image: url("/assets/images/flags/round/xk-ce7d749b.svg");
}

.round-flag-xx {
  background-image: url("/assets/images/flags/round/xx-f496a748.svg");
}

.round-flag-ye {
  background-image: url("/assets/images/flags/round/ye-397eec08.svg");
}

.round-flag-yiddish {
  background-image: url("/assets/images/flags/round/yiddish-86ced817.svg");
}

.round-flag-za {
  background-image: url("/assets/images/flags/round/za-e393738f.svg");
}

.round-flag-zm {
  background-image: url("/assets/images/flags/round/zm-934427bf.svg");
}

.round-flag-zw {
  background-image: url("/assets/images/flags/round/zw-3ea2e69f.svg");
}

.theme-academia {
  --theme-font-default: "Tiempos Text", Georgia, serif;
  --theme-font-headline: "Tiempos Headline", "Tiempos Text", Georgia, serif;
  --color-parchment-50: #fffefc;
  --color-parchment-75: #fdfbf8;
  --color-parchment-100: #fbf7f0;
  --color-parchment-200: #f9f6f1;
  --color-parchment-250: #f2efea;
  --color-parchment-300: #eae7e2;
  --color-parchment-400: #dcd9d4;
  --color-parchment-500: #cecbc6;
  --color-parchment-600: #bbb8b3;
  --color-parchment-700: #a5a29d;
  --color-parchment-800: #87847f;
  --color-parchment-900: #65625e;
  --color-taupe-50: #f7f6f5;
  --color-taupe-100: #efecea;
  --color-taupe-200: #dedad5;
  --color-taupe-300: #cbc3bc;
  --color-taupe-400: #b5aaa0;
  --color-taupe-500: #9d9186;
  --color-taupe-600: #84786c;
  --color-taupe-700: #6c6258;
  --color-taupe-800: #554d45;
  --color-taupe-900: #3d3731;
  --color-amber-50: #fff8f0;
  --color-amber-100: #ffefd9;
  --color-amber-200: #ffddb3;
  --color-amber-300: #ffc880;
  --color-amber-400: #ffa94d;
  --color-amber-500: #f28c28;
  --color-amber-600: #e67a12;
  --color-amber-700: #cc6a0a;
  --color-amber-800: #a35309;
  --color-amber-900: #7a3f09;
  --color-pine-50: #f3f8f4;
  --color-pine-100: #e5f0e7;
  --color-pine-200: #cce0cf;
  --color-pine-300: #aac9b0;
  --color-pine-400: #83ad8b;
  --color-pine-500: #5c8c66;
  --color-pine-600: #4a7553;
  --color-pine-700: #3a5e42;
  --color-pine-800: #2c4832;
  --color-pine-900: #1f3323;
  --color-oxford-50: #f0f4f9;
  --color-oxford-100: #dce6f1;
  --color-oxford-200: #bfd2e6;
  --color-oxford-300: #95b4d3;
  --color-oxford-400: #6990bc;
  --color-oxford-500: #4b73a4;
  --color-oxford-600: #3b5c89;
  --color-oxford-700: #324a6f;
  --color-oxford-800: #2b3e5a;
  --color-oxford-900: #1a2a44;
  --color-oxford-950: #101a2c;
  --text-color: var(--color-taupe-800);
  --text-subtle-color: var(--color-taupe-600);
  --text-placeholder-color: var(--color-taupe-500);
  --border-color: var(--color-parchment-400);
  --background-color: var(--color-parchment-200);
  --background-hover-color: var(--color-parchment-100);
  --text-hover-color: var(--text-color);
  --border-hover-color: var(--color-parchment-400);
  --background-disabled-color: var(--color-parchment-50);
  --text-disabled-color: var(--color-taupe-400);
  --border-disabled-color: var(--color-parchment-400);
  --background-selected-color: var(--color-amber-100);
  --text-selected-color: var(--color-taupe-800);
  --border-selected-color: var(--color-amber-500);
  --input-text-color: var(--text-color);
  --input-border-color: var(--color-parchment-300);
  --input-background-color: transparent;
  --input-text-hover-color: var(--text-color);
  --input-border-hover-color: var(--border-color);
  --input-background-hover-color: var(--color-parchment-50);
  --input-text-focus-color: var(--text-color);
  --input-border-focus-color: var(--border-color);
  --input-background-focus-color: var(--color-parchment-50);
  --input-text-disabled-color: var(--text-subtle-color);
  --input-border-disabled-color: var(--color-parchment-500);
  --input-background-disabled-color: transparent;
  --button-text-color: var(--text-color);
  --button-border-color: var(--color-parchment-400);
  --button-background-color: var(--color-parchment-400);
  --button-text-hover-color: var(--color-taupe-900);
  --button-border-hover-color: var(--color-parchment-600);
  --button-background-hover-color: var(--color-parchment-500);
  --button-text-disabled-color: var(--color-taupe-400);
  --button-border-disabled-color: var(--border-color);
  --button-background-disabled-color: transparent;
  --button-text-selected-color: var(--color-taupe-400);
  --button-border-selected-color: var(--border-color);
  --button-background-selected-color: transparent;
  --frame-text-color: var(--color-parchment-200);
  --frame-border-color: var(--color-parchment-400);
  --frame-background-color: var(--color-taupe-700);
  --frame-text-hover-color: var(--color-parchment-200);
  --frame-border-hover-color: var(--color-parchment-400);
  --frame-background-hover-color: var(--color-parchment-800);
  --echarts-colors: var(--color-taupe-700),
                                            var(--color-amber-500),
                                            var(--color-pine-400),
                                            var(--color-oxford-400),
                                            var(--color-parchment-700);
  --frame-text-disabled-color: var(--color-parchment-400);
  --border-radius: 2px;
  --shadow: 0 10px 15px -3px #0000001a,
                                            0 4px 6px -4px #0000001a;
  background: var(--color-parchment-250);
  color: var(--text-color);
  border-color: var(--border-color);

  & * {
    border-color: var(--border-color);
  }

  font-family: var(--theme-font-default);

  & h1, & h2, & h3, & h4, & h5, & h6 {
    font-family: var(--theme-font-default);
  }

  & .brand-small {
    & .face, & .inner-gear, & .outer-gear {
      fill: currentColor;
      fill-rule: evenodd;
      stroke-width: 0;
    }

    & .inner-gear {
      animation-play-state: paused !important;
    }

    &.running {
      & .inner-gear {
        fill: var(--color-amber-800);
        animation-play-state: running !important;
      }
    }
  }
}

@keyframes theme-academia-linear-indicator-keyframes {
  0% {
    box-shadow: 20px 0 var(--color-taupe-600),
                                            -20px 0 rgb(from var(--color-taupe-600) r g b / .13);
    background: var(--color-taupe-600);
  }

  33% {
    box-shadow: 20px 0 var(--color-taupe-600),
                                            -20px 0 rgb(from var(--color-taupe-600) r g b / .13);
    background: rgb(from var(--color-taupe-600) r g b / .13);
  }

  66% {
    box-shadow: 20px 0 rgb(from var(--color-taupe-600) r g b / .13),
                                            -20px 0 var(--color-taupe-600);
    background: rgb(from var(--color-taupe-600) r g b / .13);
  }

  100% {
    box-shadow: 20px 0 rgb(from var(--color-taupe-600) r g b / .13),
                                            -20px 0 var(--color-taupe-600);
    background: var(--color-taupe-600);
  }
}

.theme-academia {
  & button {
    background: none;
  }

  & a {
    color: inherit;
  }

  & ::placeholder {
    color: var(--text-placeholder-color);
  }
}

.theme-academia {
  & .text-subtle {
    color: var(--text-subtle-color) !important;
  }

  & input:focus, & textarea:focus {
    box-shadow: none;
  }

  & input, & .input {
    color: var(--input-text-color);
    background: var(--input-background-color);
    border-color: var(--input-border-color);
    box-shadow: none;
    outline: none;
  }

  & :is(input, .input):hover {
    color: var(--input-text-hover-color);
    background: var(--input-background-hover-color);
    border-color: var(--input-border-hover-color);
  }

  & textarea, & .textarea {
    color: var(--input-text-color);
    background: var(--color-parchment-75);
    border-color: var(--input-border-color);
    box-shadow: none;
    outline: none;
  }

  & .textarea textarea, & .textarea textarea:hover {
    background: none;
  }

  & :is(textarea, .textarea):hover {
    color: var(--input-text-color);
    background: var(--color-parchment-75);
    border-color: var(--input-border-color);
  }

  & textarea:focus, & .textarea:focus-within {
    color: var(--input-text-color);
    background: var(--color-parchment-50);
    border-color: var(--input-border-color);
  }

  & :is(input:disabled, textarea:disabled, .input.disabled, .disabled input, .disabled textarea, .disabled .input) {
    color: var(--input-text-disabled-color);
    background: var(--input-background-disabled-color);
    border-color: var(--input-border-disabled-color);
    cursor: not-allowed;
    pointer-events: none;
  }

  & :is(a.disabled, .disabled a) {
    cursor: not-allowed;
    pointer-events: none;
  }

  & button, & .button {
    border-radius: var(--border-radius);
    color: var(--button-text-color);
    background: var(--button-background-color);
  }

  & button.primary, & .button.primary {
    background: var(--color-parchment-500);
    border-color: var(--color-parchment-800);
  }

  & button.ghost, & button.icon, & .button.ghost, & .button.icon {
    background: none;
  }

  & button.icon:not(:disabled):not(.disabled):hover, & .button.icon:not(.disabled):hover {
    color: var(--button-text-hover-color);
    background: none;
  }

  & :is(button:disabled, button.disabled, .button.disabled, .disabled button, .disabled .button) {
    color: var(--button-text-disabled-color);
    background: var(--button-background-disabled-color);
    cursor: not-allowed;
    pointer-events: none;
  }

  & :is(button:disabled, button.disabled, .button.disabled, .disabled button, .disabled .button):hover {
    color: var(--button-text-disabled-color);
    background: var(--button-background-disabled-color);
  }

  & button:not(:disabled):not(.disabled):not(.selected):hover, & .button:not(.disabled):not(.selected):hover {
    color: var(--button-text-hover-color);
    background: var(--button-background-hover-color);
  }

  & :is(button.icon:disabled, button.icon.disabled, .button.icon.disabled, .disabled button.icon):hover {
    color: var(--button-text-disabled-color);
    cursor: not-allowed;
    background: none;
  }

  & .linear-indicator {
    aspect-ratio: 1;
    border-radius: 50%;
    width: 10px;
    animation: 1s linear infinite alternate theme-academia-linear-indicator-keyframes;
  }

  & figure {
    &.avatar, &.avatar-xs, &.avatar-sm, &.avatar-md {
      border-style: solid;
      border-width: 2px;
      border-color: var(--color-taupe-700);
      background: var(--color-taupe-700);
      border-radius: 9999px;

      & figcaption {
        color: var(--color-parchment-100);
      }
    }
  }

  & .disclosure {
    &:after {
      color: var(--text-subtle-color);
    }
  }
}

.theme-academia {
  & .tabular {
    border: 1px solid var(--color-parchment-500);

    & > .header {
      background-color: var(--color-parchment-400);
      border-bottom: 1px solid var(--color-parchment-600);
    }

    & > .body {
      background-color: var(--color-parchment-75);

      & > .row {
        color: inherit;
        border-top: 1px solid #0000;
        border-bottom: 1px solid #0000;

        &.selected {
          color: var(--text-selected-color);
          border-top: 1px solid var(--border-selected-color);
          border-bottom: 1px solid var(--border-selected-color);
          background-color: var(--background-selected-color) !important;
        }
      }
    }
  }
}

.theme-academia {
  & .tags {
    & code {
      border-radius: var(--border-radius);
      background: var(--color-parchment-400);
    }
  }

  & .h-divider {
    & hr {
      background-color: var(--color-parchment-400);
    }

    & span {
      color: var(--text-subtle-color);
    }
  }

  & .switch {
    border: 1px solid var(--color-parchment-400);
    background-color: var(--color-parchment-75);
    border-radius: 9999px;

    & .handle {
      background-color: var(--color-parchment-800);
      border-radius: 9999px;
    }

    &:has(input:checked) {
      background-color: var(--color-pine-100);
      border-color: var(--color-pine-300);

      & .handle {
        background-color: var(--color-pine-700);
      }
    }
  }

  & .tristate-switch {
    border: 1px solid var(--color-parchment-400);
    background-color: var(--color-parchment-75);
    border-radius: 9999px;

    & .handle {
      background-color: var(--color-parchment-800);
      border-radius: 9999px;
    }
  }

  & .slider {
    & .complete {
      background-color: var(--color-parchment-700);
      border-radius: 999px 0 0 999px;
    }

    & .remaining {
      background-color: var(--color-parchment-500);
      border-radius: 0 999px 999px 0;
    }

    & .handle {
      border-radius: var(--border-radius);
      background-color: var(--color-parchment-200);
      border: 1px solid var(--color-parchment-800);

      & i {
        color: var(--color-parchment-800);
      }
    }
  }

  & .input-slider {
    & input[type="number"] {
      border-bottom: 1px solid var(--color-parchment-500);

      &:disabled {
        color: inherit;
      }
    }
  }

  & .toolbox {
    border: 1px solid var(--color-parchment-500);
    background: var(--color-parchment-250);
    box-shadow: var(--shadow);
    border-radius: 2px;
  }

  & .feature {
    & h4 {
      background-color: var(--color-parchment-400);
      border-radius: var(--border-radius);
    }

    & .body {
      background-color: var(--color-parchment-300);
      border: 1px solid var(--color-parchment-400);
      border-radius: var(--border-radius);
    }
  }
}

.theme-academia {
  & .panel {
    background: var(--color-parchment-250);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
}

.theme-academia {
  & .menu-bar {
    box-shadow: var(--shadow);
    color: var(--color-taupe-500);

    & :is(a, button) {
      color: var(--color-taupe-500);
      border-radius: var(--border-radius);
      background: none;

      &:hover {
        color: var(--color-taupe-800);
        background: var(--color-parchment-500);
      }
    }
  }
}

.theme-academia {
  & nav {
    & > a {
      background-color: var(--color-parchment-250);
      border: 1px solid var(--color-parchment-300);
      border-radius: 0;

      &:hover {
        background-color: var(--color-parchment-500);
        border-color: var(--color-parchment-500);
      }

      &:not(a + a):not(:has( + a)) {
        border-radius: var(--border-radius);
      }

      &:not(a + a):has( + a) {
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
      }

      & + a:not(:has( + a)) {
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
      }

      &:after {
        color: var(--text-subtle-color);
      }
    }
  }
}

.theme-academia {
  & .registrant-edit-view {
    & .registrant-edit {
      & form {
        & .name-fields-container {
          background: var(--color-parchment-250);
          border: 1px solid var(--border-color);
          box-shadow: var(--shadow);
          border-radius: 2px;

          & .name-fields {
            & input {
              border-bottom: 1px solid var(--color-parchment-400);
            }
          }
        }
      }

      & .registrar-profile-tagline {
        border: 1px solid var(--border-color);
        border-radius: 2px;
      }
    }

    & figure {
      border: 4px solid var(--color-taupe-700);
      background: var(--color-taupe-700);
      box-shadow: var(--shadow);
      border-radius: 999px;

      & span {
        color: var(--color-parchment-100);
      }
    }
  }
}

.theme-academia {
  & .view.summary-view {
    & .summary {
      & .grants {
        & .grants.container {
          & .subscriptions, & .credits {
            & .tiles {
              & .tile {
                background: var(--color-parchment-300);
                border: 1px solid var(--color-parchment-400);
                box-shadow: var(--shadow);
                border-radius: var(--border-radius);
              }
            }
          }
        }

        & hr {
          border-top: 1px solid var(--border-color);
        }

        & .buttons.container {
          & .button {
            background: var(--button-background-color);

            &:hover {
              background: var(--button-background-hover-color);
            }
          }
        }
      }
    }
  }
}

.theme-academia {
  & .transactions-view {
    & .tabular-header {
      & > .transaction {
        background-color: var(--color-parchment-400);
        box-shadow: var(--shadow);
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
      }
    }

    & .tabular.collection {
      & .transaction {
        &:nth-child(2n) {
          background-color: var(--color-parchment-250);
        }

        &:nth-child(odd) {
          background-color: var(--color-parchment-300);
        }
      }
    }
  }
}

.theme-academia {
  & .companions-browser {
    & > .dismiss {
      background: var(--color-parchment-250);
      border: 1px solid var(--color-parchment-400);
      border-radius: var(--border-radius);

      &:hover {
        background: var(--color-parchment-100);
      }
    }

    & header {
      border-bottom: 1px solid var(--color-parchment-500);
    }
  }
}

.theme-academia {
  & :is(.companions-browser, .showcase-view) {
    & .companion.card {
      background: var(--color-parchment-250);
      border: 1px solid var(--color-parchment-300);
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);

      &:hover {
        background: var(--color-parchment-300);
        border-color: var(--button-border-hover-color);
      }

      & > .body > figure.avatar {
        border: 3px solid var(--color-taupe-700);
        background: var(--color-taupe-700);
        box-shadow: var(--shadow);

        & figcaption {
          color: var(--color-parchment-100);
        }
      }

      & .tagline {
        color: var(--color-taupe-600);
      }

      & hr.divider {
        border: 0;
        border-top: 1px solid var(--color-parchment-500);
      }

      & .footer {
        color: var(--text-subtle-color);
      }
    }
  }
}

.theme-academia {
  & .companion-edit-view {
    & > .menu-bar {
      & > .right {
        & button.action-menu {
          color: inherit;
        }
      }
    }

    & .companion-edit {
      & figure {
        border: 4px solid var(--color-taupe-700);
        background: var(--color-taupe-700);
        box-shadow: var(--shadow);
        border-radius: 999px;

        & span {
          color: var(--color-parchment-100);
        }
      }

      & form {
        & .panel {
          & .name {
            & input {
              border-bottom: 1px solid var(--color-parchment-400);

              &:focus {
                background: var(--color-parchment-50);
              }
            }
          }
        }
      }

      & .tagline {
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        border-top: 0;

        & .editable:focus {
          box-shadow: none;
        }
      }
    }
  }

  & .action-menu.popup {
    border: 1px solid var(--color-parchment-400);
    border-radius: var(--border-radius);
    background: var(--color-parchment-300);
    box-shadow: var(--shadow);

    & > div {
      & > button, & > form > button {
        color: inherit;
        background: none;
        border: 0;
        border-radius: 0;

        &:hover {
          background: var(--color-parchment-400);
        }
      }
    }
  }
}

.theme-academia {
  & .companion-language-model-view, & .registrant-language-model-view {
    & .language-model-reasoning.panel {
      & .feature .body {
        & > .h-stack {
          border-right: 2px solid var(--color-parchment-400);
        }
      }
    }
  }
}

.theme-academia {
  & .registrant-tools-view {
    & [data-tristate-switch-state-value="available"] .tristate-switch {
      background-color: var(--color-pine-100);
      background-image: repeating-linear-gradient(-55deg,
                                            var(--color-pine-100) 0 7px,
                                            var(--color-parchment-75) 7px 14px);
      border-color: var(--color-pine-300);

      & .handle {
        background-color: var(--color-pine-700);
      }
    }

    & [data-tristate-switch-state-value="included"] .tristate-switch {
      background-color: var(--color-pine-100);
      border-color: var(--color-pine-300);

      & .handle {
        background-color: var(--color-pine-700);
      }
    }
  }
}

.theme-academia {
  & .companion.tile {
    background-color: var(--color-parchment-250);
    border: 1px solid var(--color-parchment-300);
    border-radius: var(--border-radius);

    &:hover {
      background: var(--color-parchment-500);
      border-color: var(--color-parchment-500);
    }

    & a {
      &:after {
        color: var(--text-subtle-color);
      }
    }
  }
}

.theme-academia {
  & .conversation.pane {
    & article {
      & .body {
        background: var(--color-parchment-250);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);

        & .conversation-link {
          border-radius: inherit;
        }

        & textarea, & textarea:hover {
          background: none;
        }

        &:hover {
          background: var(--color-parchment-75);
        }

        &:has(textarea:not([readonly]):focus) {
          background: var(--color-parchment-50);
        }
      }

      & footer {
        background: var(--color-parchment-400);
        border: 1px solid var(--color-parchment-500);
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
      }
    }

    &.selected article .body {
      background: var(--background-selected-color);
      border-color: var(--border-selected-color);
    }
  }
}

.theme-academia {
  & .view.new-conversation-view {
    & .new-coversation {
      & > .conversation-companions.panel {
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;

        & > header {
          background: none;
        }

        & > .v-stack {
          & .conversation-companions.collection {
            & > p {
              color: var(--color-taupe-600);
            }
          }
        }
      }

      & > header {
        & > .brand {
          background-image: url("/assets/images/conversation/brand-small-dc69a806.svg");
          background-position: center;
          background-repeat: no-repeat;
          background-size: contain;
        }
      }
    }
  }

  & .reasoning.popup {
    border: 1px solid var(--color-parchment-400);
    border-radius: var(--border-radius);
    background: var(--color-parchment-300);
    box-shadow: var(--shadow);

    & > header {
      border-bottom: 1px solid var(--color-parchment-400);
    }

    & > div {
      & > :is(button, a) {
        color: inherit;
        background: none;
        border: 0;
        border-radius: 0;

        &:hover {
          background: var(--color-parchment-400);
        }
      }
    }
  }
}

.theme-academia {
  & .node-attachments {
    background-color: var(--color-parchment-200);
    background-image: radial-gradient(var(--color-parchment-300) 15.2%, transparent 15.2%),
                                            radial-gradient(var(--color-parchment-300) 15.2%, transparent 15.2%);
    border: 3px double var(--color-parchment-500);
    box-shadow: var(--shadow);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;

    &.draft {
      border-bottom: 0;
    }

    & .node-attachments-information {
      color: var(--color-taupe-700);
      background: var(--color-parchment-300);
      border-bottom: 1px solid var(--color-parchment-500);
    }

    & .node-attachments-tray {
      &.dragover {
        background: color-mix(in srgb, var(--background-selected-color) 70%, transparent);
        box-shadow: inset 0 0 0 1px var(--border-selected-color);
      }
    }

    & .node-attachments-tray.dragover {
      & .node-attachments-drop-target {
        & i {
          color: color-mix(in srgb, var(--border-selected-color), transparent 50%);
        }
      }
    }
  }

  & .node-attachment {
    border: 1px solid #0000;

    &:hover {
      background: var(--button-background-hover-color);
    }

    &.selected {
      border-color: var(--border-selected-color);
      background: var(--background-selected-color) !important;
    }

    & .node-attachment-preview {
      & img {
        box-shadow: var(--shadow);
      }

      & .node-attachment-progress {
        background: color-mix(in srgb, var(--color-parchment-200) 40%, transparent);

        & > .gauge {
          & .backplate {
            fill: color-mix(in srgb, var(--color-parchment-100) 86%, transparent);
          }

          & .indicator {
            fill: none;
            stroke: var(--color-taupe-700);
          }
        }
      }

      & .node-attachment-error {
        color: #b42318;
      }

      & .node-attachment-extension {
        color: var(--color-parchment-100);
        background: var(--color-taupe-600);
        box-shadow: var(--shadow);
      }
    }
  }
}

.theme-academia {
  & .conversation\/new-message-form {
    background: var(--color-parchment-200);

    & .conversation-snap {
      & > button {
        background: var(--color-parchment-300);
        border: 1px solid var(--color-parchment-400);

        &:hover {
          background: var(--color-parchment-500);
          border-color: var(--color-parchment-500);
        }
      }
    }

    & .textarea {
      background: var(--color-parchment-75);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow);

      & textarea {
        box-shadow: none;
        background: none;
        border: 0;
      }

      &:hover, &:focus-within {
        background: var(--color-parchment-50);
      }
    }

    &.disabled {
      & .textarea {
        background: var(--background-color);
        border-color: var(--input-border-disabled-color);
        box-shadow: none;
      }
    }

    & .controls {
      & button {
        background: var(--color-parchment-300);
        border: 1px solid var(--color-parchment-400);

        &:hover {
          background: var(--color-parchment-500);
          border: 1px solid var(--color-parchment-500);
        }
      }

      & > div {
        & > .reasoning {
          & > button {
            & > .label {
              border-left: 0 solid #0000;
            }
          }

          &.presented > button {
            & > .label {
              border-left-color: var(--color-parchment-500);
            }

            &:hover .label {
              border-left-color: var(--color-parchment-600);
            }
          }
        }
      }
    }
  }
}

.theme-academia {
  & .view.conversation-view {
    &.disabled {
      & > .menu-bar {
        & .new-conversation-button {
          cursor: pointer;
          pointer-events: auto;
        }
      }
    }

    & > .conversation\/new-message {
      & > .fade {
        background-image: linear-gradient(to bottom in oklab,
                                          transparent 0%,
                                          var(--color-parchment-200) 90%,
                                          var(--color-parchment-200) 100%);
      }
    }
  }

  & .message {
    & .node-attachments {
      box-shadow: none;
    }

    &.person-message {
      & .text-contents {
        background: var(--color-parchment-300);
        border: 1px solid var(--color-parchment-400);
        border-radius: 2px;
      }

      & .content.text-content {
        & pre {
          background: none;
        }
      }
    }

    &.companion-message {
      & .action-contents {
        background: var(--color-parchment-100);

        & > header {
          background: var(--color-parchment-250);
          border: 1px solid var(--color-parchment-400);
          color: var(--color-parchment-700);
        }

        & > .body {
          & > .collection {
            & .content, & .tool-call-content {
              & figure {
                & div.line {
                  border-left: 1px solid var(--color-parchment-400);
                }
              }
            }

            & .tool-call-content {
              & .tool-call {
                border-radius: 999px;

                & img {
                  border-radius: 4px;
                }
              }
            }
          }
        }

        &.presented {
          & > header {
            border-bottom-color: #0000;
          }

          & > .body > .collection {
            background: var(--color-parchment-75);
            border: 1px solid var(--color-parchment-400);
            border-top: 0;
            border-bottom-right-radius: 2px;
            border-bottom-left-radius: 2px;
          }
        }
      }

      & .text-contents {
        background: var(--color-parchment-75);
        border: 1px solid var(--color-parchment-400);
        border-radius: 2px;
      }
    }
  }
}

.theme-academia {
  & .conversation-companion.tile {
    background: var(--color-parchment-300);
    border: 1px solid var(--color-parchment-400);
    border-radius: var(--border-radius);

    &:hover {
      background: var(--color-parchment-75);
      border-color: var(--color-parchment-400);
    }

    &:has( > input[type="radio"]:checked) {
      background: var(--background-selected-color);
      border-color: var(--border-selected-color);
    }
  }
}

.theme-academia {
  & .handbook-view {
    & .handbook {
      & .directives.collection {
        & .directive {
          & > article {
            & .directive-scopes-form {
              & .body {
                background: var(--color-parchment-250);
                border: 1px solid var(--color-parchment-400);
                border-top-left-radius: var(--border-radius);
                border-top-right-radius: var(--border-radius);
                border-bottom: 0;
              }
            }

            & .directive-text-form {
              & .textarea {
                background: var(--color-parchment-75);
                border: 1px solid var(--color-parchment-400);
                border-radius: 2px;

                &:hover, &:focus {
                  background: var(--color-parchment-50);
                }
              }
            }
          }

          & .directive-scopes {
            & .tags {
              & code {
                border-radius: var(--border-radius);
                background: var(--color-parchment-400);
              }
            }
          }
        }
      }
    }
  }
}

.theme-academia {
  & .mandate-view {
    & .mandate {
      & .provisions.collection {
        & .provision {
          & > article {
            & .textarea {
              background: var(--color-parchment-250);
              border: 1px solid var(--color-parchment-400);
              border-radius: 2px;

              &:hover {
                background: var(--color-parchment-75);
              }

              &:focus {
                background: var(--color-parchment-50);
              }
            }
          }
        }
      }
    }
  }
}

.theme-academia {
  & .view.showcase-view {
    & > .dismiss {
      background: var(--color-parchment-250);
      border: 1px solid var(--button-background-hover-color);
      border-radius: var(--border-radius);

      &:hover {
        background: var(--button-background-hover-color);
      }
    }

    & > .fade-left {
      background-image: linear-gradient(to right in oklab,
                                          var(--color-parchment-200) 0%,
                                          transparent 100%);
    }

    & > .fade-right {
      background-image: linear-gradient(to left in oklab,
                                          var(--color-parchment-200) 0%,
                                          transparent 100%);
    }

    & .showcase-group-header {
      color: var(--color-taupe-600);

      & hr {
        border: 0;
        border-top: 1px solid var(--color-parchment-500);
      }
    }

    &.showcase-guides-view {
      & .showcase-guides-note {
        color: var(--text-subtle-color);
      }

      & .showcase-guide-option > input:checked + .companion.card {
        background: var(--color-parchment-300);
        border-color: var(--button-border-hover-color);
      }

      & .showcase-guides-enter[aria-disabled="true"], & .showcase-guides-enter[aria-disabled="true"]:hover {
        color: var(--button-text-color);
        background: var(--button-background-color);
      }

      & .showcase-guides-enter.selected {
        color: var(--text-selected-color);
        background: var(--background-selected-color);
        border: 1px solid var(--border-selected-color);
      }
    }
  }
}

.theme-academia {
  & .showcase-companion-empty {
    color: var(--text-subtle-color);
  }

  & .showcase-companion.panel {
    box-shadow: none;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;

    & .showcase-companion-hero {
      background: linear-gradient(180deg, #5e4a381f, #483a2e08),
        var(--color-parchment-200);
      border-bottom: 1px solid var(--color-parchment-500);

      & .showcase-companion-monogram.avatar {
        border: 3px solid var(--color-taupe-700);
        background: var(--color-taupe-700);
        box-shadow: var(--shadow);

        & figcaption {
          color: var(--color-parchment-100);
        }
      }
    }

    & .showcase-companion-actions {
      & .button {
        border-radius: var(--border-radius);
      }

      & .button:not(.selected):hover {
        background: var(--button-background-hover-color);
      }
    }

    & .showcase-companion-close {
      background: var(--color-parchment-250);
      border: 1px solid var(--button-background-hover-color);
    }

    & .showcase-companion-add {
      background: var(--background-selected-color);
      border: 1px solid var(--border-selected-color);
      color: var(--text-selected-color);
      border-radius: var(--border-radius);
    }

    & .showcase-companion-tagline {
      color: var(--color-taupe-700);
    }

    & hr {
      border: 0;
      border-top: 1px solid var(--color-parchment-500);
    }

    & .showcase-companion-stats {
      color: var(--text-subtle-color);
    }
  }
}

.theme-academia {
  & .dock {
    background: var(--color-parchment-400);
    border-right: 1px solid var(--color-parchment-500);

    & .drawer {
      &:before {
        background: var(--color-parchment-500);
      }
    }

    & button, & a.button {
      color: var(--color-taupe-700);
      background: var(--color-parchment-250);
      border: 1px solid var(--color-parchment-500);
      border-radius: 2px;
    }

    & button:hover, & a.button:hover {
      color: var(--color-taupe-900);
      border-color: var(--color-parchment-600);
      background: var(--color-parchment-600) !important;
    }

    & a[aria-label="Account"] {
      box-shadow: none;
      background: none;
      border: 0;
      padding: 0;
    }

    & .workspace-dock-avatar {
      background: var(--color-taupe-700);
      border-color: var(--color-taupe-700);
      box-shadow: var(--shadow);

      & figcaption, & i {
        color: var(--color-parchment-100);
      }
    }

    & a[aria-label="Account"]:hover {
      & .workspace-dock-avatar {
        background: var(--color-taupe-800);
        border-color: var(--color-taupe-800);
      }
    }
  }

  & main {
    & > section {
      background: var(--color-parchment-200);
      box-shadow: var(--shadow);
    }
  }

  & .modal {
    background: rgb(from var(--color-parchment-200) r g b / 68%);

    & > .modal-content, & > .modal-content * {
      transition: none !important;
      animation: none !important;
    }

    & > .modal-content {
      & > turbo-frame, & > .modal-screen, & > .modal-dialog {
        box-shadow: none;
        background: none;
        border: 0;
      }
    }
  }

  & .indicator-view {
    justify-content: center;
    padding-block: 32px;
    display: flex;
  }
}

.theme-academia {
  & article .content {
    & table {
      & th {
        background: var(--color-parchment-300);
      }

      & tr:nth-child(2n) {
        background-color: var(--color-parchment-250);
      }
    }

    & blockquote {
      border-left: 2px solid var(--color-parchment-600);
      border-radius: 4px;
    }

    & code {
      background: #d6d2cd;
      border-radius: 2px;
    }

    & .code {
      & > header {
        background: var(--color-taupe-700);
        color: var(--color-parchment-200);
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
      }

      & .code-copy-button {
        color: inherit;
      }

      & pre, & .code-content {
        background: var(--color-taupe-900);
        color: var(--code-highlight-fg, inherit);
        border-radius: 0 0 2px 2px;
      }

      & .code-body {
        color: inherit;
        background: none;
        border-radius: 0;
      }
    }

    & .widget {
      border: 1px solid var(--border-color);
      background: var(--color-parchment-250);
      color: var(--text-color);
    }

    & .widget.widget-error {
      color: #8f2f24;
      background: #fff0ed;
      border-color: #c46a5c;
    }

    & img {
      border-radius: 2px;
    }

    & hr {
      background: var(--color-parchment-300);
    }
  }
}

@font-face {
  font-family: KaTeX_AMS;
  src: url("/assets/fonts/katex/KaTeX_AMS-Regular-34494743.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_AMS-Regular-99ada2de.woff") format("woff"), url("/assets/fonts/katex/KaTeX_AMS-Regular-1dfd0ee6.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Caligraphic;
  src: url("/assets/fonts/katex/KaTeX_Caligraphic-Bold-5bfa49ca.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Caligraphic-Bold-dd23ac0f.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Caligraphic-Bold-8fab738a.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Caligraphic;
  src: url("/assets/fonts/katex/KaTeX_Caligraphic-Regular-9f8077e0.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Caligraphic-Regular-1a6f39bd.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Caligraphic-Regular-26f26a13.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Fraktur;
  src: url("/assets/fonts/katex/KaTeX_Fraktur-Bold-f98f8927.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Fraktur-Bold-5bbafd50.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Fraktur-Bold-4e08dd00.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Fraktur;
  src: url("/assets/fonts/katex/KaTeX_Fraktur-Regular-a5764c6e.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Fraktur-Regular-6f756376.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Fraktur-Regular-17db4088.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Main;
  src: url("/assets/fonts/katex/KaTeX_Main-Bold-31050a1b.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Main-Bold-f69a3625.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Main-Bold-413ab3dc.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Main;
  src: url("/assets/fonts/katex/KaTeX_Main-BoldItalic-a4a4905b.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Main-BoldItalic-038bbdc8.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Main-BoldItalic-ba6464e4.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Main;
  src: url("/assets/fonts/katex/KaTeX_Main-Italic-c9b2b5ff.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Main-Italic-7c858921.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Main-Italic-1d5668a2.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Main;
  src: url("/assets/fonts/katex/KaTeX_Main-Regular-c884086c.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Main-Regular-fdcae54b.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Main-Regular-8744db6e.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Math;
  src: url("/assets/fonts/katex/KaTeX_Math-BoldItalic-8fcb9d2d.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Math-BoldItalic-d54e6480.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Math-BoldItalic-e80cc4c2.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Math;
  src: url("/assets/fonts/katex/KaTeX_Math-Italic-db4883d0.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Math-Italic-1c1b4873.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Math-Italic-9e9a10d8.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: KaTeX_SansSerif;
  src: url("/assets/fonts/katex/KaTeX_SansSerif-Bold-886e6179.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_SansSerif-Bold-a2beddc8.woff") format("woff"), url("/assets/fonts/katex/KaTeX_SansSerif-Bold-20b45f53.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_SansSerif;
  src: url("/assets/fonts/katex/KaTeX_SansSerif-Italic-3d5fa3cb.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_SansSerif-Italic-7564a366.woff") format("woff"), url("/assets/fonts/katex/KaTeX_SansSerif-Italic-991fbdc0.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: KaTeX_SansSerif;
  src: url("/assets/fonts/katex/KaTeX_SansSerif-Regular-e45d5f4f.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_SansSerif-Regular-804610f4.woff") format("woff"), url("/assets/fonts/katex/KaTeX_SansSerif-Regular-4a8e17a0.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Script;
  src: url("/assets/fonts/katex/KaTeX_Script-Regular-63b80959.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Script-Regular-6a05cdca.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Script-Regular-c6f675da.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Size1;
  src: url("/assets/fonts/katex/KaTeX_Size1-Regular-57fa5999.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Size1-Regular-aefe6674.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Size1-Regular-3280bacb.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Size2;
  src: url("/assets/fonts/katex/KaTeX_Size2-Regular-ee187136.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Size2-Regular-46698ff1.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Size2-Regular-faf73ff3.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Size3;
  src: url("/assets/fonts/katex/KaTeX_Size3-Regular-19a7caad.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Size3-Regular-1da1905a.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Size3-Regular-302a61b2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Size4;
  src: url("/assets/fonts/katex/KaTeX_Size4-Regular-9bed17fb.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Size4-Regular-8fdddb83.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Size4-Regular-3d8d9dd5.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: KaTeX_Typewriter;
  src: url("/assets/fonts/katex/KaTeX_Typewriter-Regular-7a08883f.woff2") format("woff2"), url("/assets/fonts/katex/KaTeX_Typewriter-Regular-f5e729fa.woff") format("woff"), url("/assets/fonts/katex/KaTeX_Typewriter-Regular-629b99fa.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.katex {
  text-indent: 0;
  text-rendering: auto;
  font: 1.21em / 1.2 KaTeX_Main, Times New Roman, serif;
  position: relative;
}

.katex * {
  border-color: currentColor;
  -ms-high-contrast-adjust: none !important;
}

.katex .katex-version:after {
  content: "0.16.44";
}

.katex .katex-mathml {
  clip: rect(1px, 1px, 1px, 1px);
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.katex .katex-html > .newline {
  display: block;
}

.katex .base {
  white-space: nowrap;
  width: min-content;
  display: inline-block;
  position: relative;
}

.katex .strut {
  display: inline-block;
}

.katex .textbf {
  font-weight: bold;
}

.katex .textit {
  font-style: italic;
}

.katex .textrm {
  font-family: KaTeX_Main;
}

.katex .textsf {
  font-family: KaTeX_SansSerif;
}

.katex .texttt {
  font-family: KaTeX_Typewriter;
}

.katex .mathnormal {
  font-family: KaTeX_Math;
  font-style: italic;
}

.katex .mathit {
  font-family: KaTeX_Main;
  font-style: italic;
}

.katex .mathrm {
  font-style: normal;
}

.katex .mathbf {
  font-family: KaTeX_Main;
  font-weight: bold;
}

.katex .boldsymbol {
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: bold;
}

.katex .amsrm, .katex .mathbb, .katex .textbb {
  font-family: KaTeX_AMS;
}

.katex .mathcal {
  font-family: KaTeX_Caligraphic;
}

.katex .mathfrak, .katex .textfrak {
  font-family: KaTeX_Fraktur;
}

.katex .mathboldfrak, .katex .textboldfrak {
  font-family: KaTeX_Fraktur;
  font-weight: bold;
}

.katex .mathtt {
  font-family: KaTeX_Typewriter;
}

.katex .mathscr, .katex .textscr {
  font-family: KaTeX_Script;
}

.katex .mathsf, .katex .textsf {
  font-family: KaTeX_SansSerif;
}

.katex .mathboldsf, .katex .textboldsf {
  font-family: KaTeX_SansSerif;
  font-weight: bold;
}

.katex .mathsfit, .katex .mathitsf, .katex .textitsf {
  font-family: KaTeX_SansSerif;
  font-style: italic;
}

.katex .mainrm {
  font-family: KaTeX_Main;
  font-style: normal;
}

.katex .vlist-t {
  table-layout: fixed;
  border-collapse: collapse;
  display: inline-table;
}

.katex .vlist-r {
  display: table-row;
}

.katex .vlist {
  vertical-align: bottom;
  display: table-cell;
  position: relative;
}

.katex .vlist > span {
  height: 0;
  display: block;
  position: relative;
}

.katex .vlist > span > span {
  display: inline-block;
}

.katex .vlist > span > .pstrut {
  width: 0;
  overflow: hidden;
}

.katex .vlist-t2 {
  margin-right: -2px;
}

.katex .vlist-s {
  vertical-align: bottom;
  width: 2px;
  min-width: 2px;
  font-size: 1px;
  display: table-cell;
}

.katex .vbox {
  flex-direction: column;
  align-items: baseline;
  display: inline-flex;
}

.katex .hbox {
  flex-direction: row;
  width: 100%;
  display: inline-flex;
}

.katex .thinbox {
  flex-direction: row;
  width: 0;
  max-width: 0;
  display: inline-flex;
}

.katex .msupsub {
  text-align: left;
}

.katex .mfrac > span > span {
  text-align: center;
}

.katex .mfrac .frac-line {
  border-bottom-style: solid;
  width: 100%;
  display: inline-block;
}

.katex .mfrac .frac-line, .katex .overline .overline-line, .katex .underline .underline-line, .katex .hline, .katex .hdashline, .katex .rule {
  min-height: 1px;
}

.katex .mspace {
  display: inline-block;
}

.katex .smash {
  line-height: 0;
  display: inline;
}

.katex .llap, .katex .rlap, .katex .clap {
  width: 0;
  position: relative;
}

.katex .llap > .inner, .katex .rlap > .inner, .katex .clap > .inner {
  position: absolute;
}

.katex .llap > .fix, .katex .rlap > .fix, .katex .clap > .fix {
  display: inline-block;
}

.katex .llap > .inner {
  right: 0;
}

.katex .rlap > .inner, .katex .clap > .inner {
  left: 0;
}

.katex .clap > .inner > span {
  margin-left: -50%;
  margin-right: 50%;
}

.katex .rule {
  border: 0 solid;
  display: inline-block;
  position: relative;
}

.katex .overline .overline-line, .katex .underline .underline-line, .katex .hline {
  border-bottom-style: solid;
  width: 100%;
  display: inline-block;
}

.katex .hdashline {
  border-bottom-style: dashed;
  width: 100%;
  display: inline-block;
}

.katex .sqrt > .root {
  margin-left: .277778em;
  margin-right: -.555556em;
}

.katex .sizing.reset-size1.size1, .katex .fontsize-ensurer.reset-size1.size1 {
  font-size: 1em;
}

.katex .sizing.reset-size1.size2, .katex .fontsize-ensurer.reset-size1.size2 {
  font-size: 1.2em;
}

.katex .sizing.reset-size1.size3, .katex .fontsize-ensurer.reset-size1.size3 {
  font-size: 1.4em;
}

.katex .sizing.reset-size1.size4, .katex .fontsize-ensurer.reset-size1.size4 {
  font-size: 1.6em;
}

.katex .sizing.reset-size1.size5, .katex .fontsize-ensurer.reset-size1.size5 {
  font-size: 1.8em;
}

.katex .sizing.reset-size1.size6, .katex .fontsize-ensurer.reset-size1.size6 {
  font-size: 2em;
}

.katex .sizing.reset-size1.size7, .katex .fontsize-ensurer.reset-size1.size7 {
  font-size: 2.4em;
}

.katex .sizing.reset-size1.size8, .katex .fontsize-ensurer.reset-size1.size8 {
  font-size: 2.88em;
}

.katex .sizing.reset-size1.size9, .katex .fontsize-ensurer.reset-size1.size9 {
  font-size: 3.456em;
}

.katex .sizing.reset-size1.size10, .katex .fontsize-ensurer.reset-size1.size10 {
  font-size: 4.148em;
}

.katex .sizing.reset-size1.size11, .katex .fontsize-ensurer.reset-size1.size11 {
  font-size: 4.976em;
}

.katex .sizing.reset-size2.size1, .katex .fontsize-ensurer.reset-size2.size1 {
  font-size: .833333em;
}

.katex .sizing.reset-size2.size2, .katex .fontsize-ensurer.reset-size2.size2 {
  font-size: 1em;
}

.katex .sizing.reset-size2.size3, .katex .fontsize-ensurer.reset-size2.size3 {
  font-size: 1.16667em;
}

.katex .sizing.reset-size2.size4, .katex .fontsize-ensurer.reset-size2.size4 {
  font-size: 1.33333em;
}

.katex .sizing.reset-size2.size5, .katex .fontsize-ensurer.reset-size2.size5 {
  font-size: 1.5em;
}

.katex .sizing.reset-size2.size6, .katex .fontsize-ensurer.reset-size2.size6 {
  font-size: 1.66667em;
}

.katex .sizing.reset-size2.size7, .katex .fontsize-ensurer.reset-size2.size7 {
  font-size: 2em;
}

.katex .sizing.reset-size2.size8, .katex .fontsize-ensurer.reset-size2.size8 {
  font-size: 2.4em;
}

.katex .sizing.reset-size2.size9, .katex .fontsize-ensurer.reset-size2.size9 {
  font-size: 2.88em;
}

.katex .sizing.reset-size2.size10, .katex .fontsize-ensurer.reset-size2.size10 {
  font-size: 3.45667em;
}

.katex .sizing.reset-size2.size11, .katex .fontsize-ensurer.reset-size2.size11 {
  font-size: 4.14667em;
}

.katex .sizing.reset-size3.size1, .katex .fontsize-ensurer.reset-size3.size1 {
  font-size: .714286em;
}

.katex .sizing.reset-size3.size2, .katex .fontsize-ensurer.reset-size3.size2 {
  font-size: .857143em;
}

.katex .sizing.reset-size3.size3, .katex .fontsize-ensurer.reset-size3.size3 {
  font-size: 1em;
}

.katex .sizing.reset-size3.size4, .katex .fontsize-ensurer.reset-size3.size4 {
  font-size: 1.14286em;
}

.katex .sizing.reset-size3.size5, .katex .fontsize-ensurer.reset-size3.size5 {
  font-size: 1.28571em;
}

.katex .sizing.reset-size3.size6, .katex .fontsize-ensurer.reset-size3.size6 {
  font-size: 1.42857em;
}

.katex .sizing.reset-size3.size7, .katex .fontsize-ensurer.reset-size3.size7 {
  font-size: 1.71429em;
}

.katex .sizing.reset-size3.size8, .katex .fontsize-ensurer.reset-size3.size8 {
  font-size: 2.05714em;
}

.katex .sizing.reset-size3.size9, .katex .fontsize-ensurer.reset-size3.size9 {
  font-size: 2.46857em;
}

.katex .sizing.reset-size3.size10, .katex .fontsize-ensurer.reset-size3.size10 {
  font-size: 2.96286em;
}

.katex .sizing.reset-size3.size11, .katex .fontsize-ensurer.reset-size3.size11 {
  font-size: 3.55429em;
}

.katex .sizing.reset-size4.size1, .katex .fontsize-ensurer.reset-size4.size1 {
  font-size: .625em;
}

.katex .sizing.reset-size4.size2, .katex .fontsize-ensurer.reset-size4.size2 {
  font-size: .75em;
}

.katex .sizing.reset-size4.size3, .katex .fontsize-ensurer.reset-size4.size3 {
  font-size: .875em;
}

.katex .sizing.reset-size4.size4, .katex .fontsize-ensurer.reset-size4.size4 {
  font-size: 1em;
}

.katex .sizing.reset-size4.size5, .katex .fontsize-ensurer.reset-size4.size5 {
  font-size: 1.125em;
}

.katex .sizing.reset-size4.size6, .katex .fontsize-ensurer.reset-size4.size6 {
  font-size: 1.25em;
}

.katex .sizing.reset-size4.size7, .katex .fontsize-ensurer.reset-size4.size7 {
  font-size: 1.5em;
}

.katex .sizing.reset-size4.size8, .katex .fontsize-ensurer.reset-size4.size8 {
  font-size: 1.8em;
}

.katex .sizing.reset-size4.size9, .katex .fontsize-ensurer.reset-size4.size9 {
  font-size: 2.16em;
}

.katex .sizing.reset-size4.size10, .katex .fontsize-ensurer.reset-size4.size10 {
  font-size: 2.5925em;
}

.katex .sizing.reset-size4.size11, .katex .fontsize-ensurer.reset-size4.size11 {
  font-size: 3.11em;
}

.katex .sizing.reset-size5.size1, .katex .fontsize-ensurer.reset-size5.size1 {
  font-size: .555556em;
}

.katex .sizing.reset-size5.size2, .katex .fontsize-ensurer.reset-size5.size2 {
  font-size: .666667em;
}

.katex .sizing.reset-size5.size3, .katex .fontsize-ensurer.reset-size5.size3 {
  font-size: .777778em;
}

.katex .sizing.reset-size5.size4, .katex .fontsize-ensurer.reset-size5.size4 {
  font-size: .888889em;
}

.katex .sizing.reset-size5.size5, .katex .fontsize-ensurer.reset-size5.size5 {
  font-size: 1em;
}

.katex .sizing.reset-size5.size6, .katex .fontsize-ensurer.reset-size5.size6 {
  font-size: 1.11111em;
}

.katex .sizing.reset-size5.size7, .katex .fontsize-ensurer.reset-size5.size7 {
  font-size: 1.33333em;
}

.katex .sizing.reset-size5.size8, .katex .fontsize-ensurer.reset-size5.size8 {
  font-size: 1.6em;
}

.katex .sizing.reset-size5.size9, .katex .fontsize-ensurer.reset-size5.size9 {
  font-size: 1.92em;
}

.katex .sizing.reset-size5.size10, .katex .fontsize-ensurer.reset-size5.size10 {
  font-size: 2.30444em;
}

.katex .sizing.reset-size5.size11, .katex .fontsize-ensurer.reset-size5.size11 {
  font-size: 2.76444em;
}

.katex .sizing.reset-size6.size1, .katex .fontsize-ensurer.reset-size6.size1 {
  font-size: .5em;
}

.katex .sizing.reset-size6.size2, .katex .fontsize-ensurer.reset-size6.size2 {
  font-size: .6em;
}

.katex .sizing.reset-size6.size3, .katex .fontsize-ensurer.reset-size6.size3 {
  font-size: .7em;
}

.katex .sizing.reset-size6.size4, .katex .fontsize-ensurer.reset-size6.size4 {
  font-size: .8em;
}

.katex .sizing.reset-size6.size5, .katex .fontsize-ensurer.reset-size6.size5 {
  font-size: .9em;
}

.katex .sizing.reset-size6.size6, .katex .fontsize-ensurer.reset-size6.size6 {
  font-size: 1em;
}

.katex .sizing.reset-size6.size7, .katex .fontsize-ensurer.reset-size6.size7 {
  font-size: 1.2em;
}

.katex .sizing.reset-size6.size8, .katex .fontsize-ensurer.reset-size6.size8 {
  font-size: 1.44em;
}

.katex .sizing.reset-size6.size9, .katex .fontsize-ensurer.reset-size6.size9 {
  font-size: 1.728em;
}

.katex .sizing.reset-size6.size10, .katex .fontsize-ensurer.reset-size6.size10 {
  font-size: 2.074em;
}

.katex .sizing.reset-size6.size11, .katex .fontsize-ensurer.reset-size6.size11 {
  font-size: 2.488em;
}

.katex .sizing.reset-size7.size1, .katex .fontsize-ensurer.reset-size7.size1 {
  font-size: .416667em;
}

.katex .sizing.reset-size7.size2, .katex .fontsize-ensurer.reset-size7.size2 {
  font-size: .5em;
}

.katex .sizing.reset-size7.size3, .katex .fontsize-ensurer.reset-size7.size3 {
  font-size: .583333em;
}

.katex .sizing.reset-size7.size4, .katex .fontsize-ensurer.reset-size7.size4 {
  font-size: .666667em;
}

.katex .sizing.reset-size7.size5, .katex .fontsize-ensurer.reset-size7.size5 {
  font-size: .75em;
}

.katex .sizing.reset-size7.size6, .katex .fontsize-ensurer.reset-size7.size6 {
  font-size: .833333em;
}

.katex .sizing.reset-size7.size7, .katex .fontsize-ensurer.reset-size7.size7 {
  font-size: 1em;
}

.katex .sizing.reset-size7.size8, .katex .fontsize-ensurer.reset-size7.size8 {
  font-size: 1.2em;
}

.katex .sizing.reset-size7.size9, .katex .fontsize-ensurer.reset-size7.size9 {
  font-size: 1.44em;
}

.katex .sizing.reset-size7.size10, .katex .fontsize-ensurer.reset-size7.size10 {
  font-size: 1.72833em;
}

.katex .sizing.reset-size7.size11, .katex .fontsize-ensurer.reset-size7.size11 {
  font-size: 2.07333em;
}

.katex .sizing.reset-size8.size1, .katex .fontsize-ensurer.reset-size8.size1 {
  font-size: .347222em;
}

.katex .sizing.reset-size8.size2, .katex .fontsize-ensurer.reset-size8.size2 {
  font-size: .416667em;
}

.katex .sizing.reset-size8.size3, .katex .fontsize-ensurer.reset-size8.size3 {
  font-size: .486111em;
}

.katex .sizing.reset-size8.size4, .katex .fontsize-ensurer.reset-size8.size4 {
  font-size: .555556em;
}

.katex .sizing.reset-size8.size5, .katex .fontsize-ensurer.reset-size8.size5 {
  font-size: .625em;
}

.katex .sizing.reset-size8.size6, .katex .fontsize-ensurer.reset-size8.size6 {
  font-size: .694444em;
}

.katex .sizing.reset-size8.size7, .katex .fontsize-ensurer.reset-size8.size7 {
  font-size: .833333em;
}

.katex .sizing.reset-size8.size8, .katex .fontsize-ensurer.reset-size8.size8 {
  font-size: 1em;
}

.katex .sizing.reset-size8.size9, .katex .fontsize-ensurer.reset-size8.size9 {
  font-size: 1.2em;
}

.katex .sizing.reset-size8.size10, .katex .fontsize-ensurer.reset-size8.size10 {
  font-size: 1.44028em;
}

.katex .sizing.reset-size8.size11, .katex .fontsize-ensurer.reset-size8.size11 {
  font-size: 1.72778em;
}

.katex .sizing.reset-size9.size1, .katex .fontsize-ensurer.reset-size9.size1 {
  font-size: .289352em;
}

.katex .sizing.reset-size9.size2, .katex .fontsize-ensurer.reset-size9.size2 {
  font-size: .347222em;
}

.katex .sizing.reset-size9.size3, .katex .fontsize-ensurer.reset-size9.size3 {
  font-size: .405093em;
}

.katex .sizing.reset-size9.size4, .katex .fontsize-ensurer.reset-size9.size4 {
  font-size: .462963em;
}

.katex .sizing.reset-size9.size5, .katex .fontsize-ensurer.reset-size9.size5 {
  font-size: .520833em;
}

.katex .sizing.reset-size9.size6, .katex .fontsize-ensurer.reset-size9.size6 {
  font-size: .578704em;
}

.katex .sizing.reset-size9.size7, .katex .fontsize-ensurer.reset-size9.size7 {
  font-size: .694444em;
}

.katex .sizing.reset-size9.size8, .katex .fontsize-ensurer.reset-size9.size8 {
  font-size: .833333em;
}

.katex .sizing.reset-size9.size9, .katex .fontsize-ensurer.reset-size9.size9 {
  font-size: 1em;
}

.katex .sizing.reset-size9.size10, .katex .fontsize-ensurer.reset-size9.size10 {
  font-size: 1.20023em;
}

.katex .sizing.reset-size9.size11, .katex .fontsize-ensurer.reset-size9.size11 {
  font-size: 1.43981em;
}

.katex .sizing.reset-size10.size1, .katex .fontsize-ensurer.reset-size10.size1 {
  font-size: .24108em;
}

.katex .sizing.reset-size10.size2, .katex .fontsize-ensurer.reset-size10.size2 {
  font-size: .289296em;
}

.katex .sizing.reset-size10.size3, .katex .fontsize-ensurer.reset-size10.size3 {
  font-size: .337512em;
}

.katex .sizing.reset-size10.size4, .katex .fontsize-ensurer.reset-size10.size4 {
  font-size: .385728em;
}

.katex .sizing.reset-size10.size5, .katex .fontsize-ensurer.reset-size10.size5 {
  font-size: .433944em;
}

.katex .sizing.reset-size10.size6, .katex .fontsize-ensurer.reset-size10.size6 {
  font-size: .48216em;
}

.katex .sizing.reset-size10.size7, .katex .fontsize-ensurer.reset-size10.size7 {
  font-size: .578592em;
}

.katex .sizing.reset-size10.size8, .katex .fontsize-ensurer.reset-size10.size8 {
  font-size: .694311em;
}

.katex .sizing.reset-size10.size9, .katex .fontsize-ensurer.reset-size10.size9 {
  font-size: .833173em;
}

.katex .sizing.reset-size10.size10, .katex .fontsize-ensurer.reset-size10.size10 {
  font-size: 1em;
}

.katex .sizing.reset-size10.size11, .katex .fontsize-ensurer.reset-size10.size11 {
  font-size: 1.19961em;
}

.katex .sizing.reset-size11.size1, .katex .fontsize-ensurer.reset-size11.size1 {
  font-size: .200965em;
}

.katex .sizing.reset-size11.size2, .katex .fontsize-ensurer.reset-size11.size2 {
  font-size: .241158em;
}

.katex .sizing.reset-size11.size3, .katex .fontsize-ensurer.reset-size11.size3 {
  font-size: .281351em;
}

.katex .sizing.reset-size11.size4, .katex .fontsize-ensurer.reset-size11.size4 {
  font-size: .321543em;
}

.katex .sizing.reset-size11.size5, .katex .fontsize-ensurer.reset-size11.size5 {
  font-size: .361736em;
}

.katex .sizing.reset-size11.size6, .katex .fontsize-ensurer.reset-size11.size6 {
  font-size: .401929em;
}

.katex .sizing.reset-size11.size7, .katex .fontsize-ensurer.reset-size11.size7 {
  font-size: .482315em;
}

.katex .sizing.reset-size11.size8, .katex .fontsize-ensurer.reset-size11.size8 {
  font-size: .578778em;
}

.katex .sizing.reset-size11.size9, .katex .fontsize-ensurer.reset-size11.size9 {
  font-size: .694534em;
}

.katex .sizing.reset-size11.size10, .katex .fontsize-ensurer.reset-size11.size10 {
  font-size: .833601em;
}

.katex .sizing.reset-size11.size11, .katex .fontsize-ensurer.reset-size11.size11 {
  font-size: 1em;
}

.katex .delimsizing.size1 {
  font-family: KaTeX_Size1;
}

.katex .delimsizing.size2 {
  font-family: KaTeX_Size2;
}

.katex .delimsizing.size3 {
  font-family: KaTeX_Size3;
}

.katex .delimsizing.size4 {
  font-family: KaTeX_Size4;
}

.katex .delimsizing.mult .delim-size1 > span {
  font-family: KaTeX_Size1;
}

.katex .delimsizing.mult .delim-size4 > span {
  font-family: KaTeX_Size4;
}

.katex .nulldelimiter {
  width: .12em;
  display: inline-block;
}

.katex .delimcenter, .katex .op-symbol {
  position: relative;
}

.katex .op-symbol.small-op {
  font-family: KaTeX_Size1;
}

.katex .op-symbol.large-op {
  font-family: KaTeX_Size2;
}

.katex .op-limits > .vlist-t, .katex .accent > .vlist-t {
  text-align: center;
}

.katex .accent .accent-body {
  position: relative;
}

.katex .accent .accent-body:not(.accent-full) {
  width: 0;
}

.katex .overlay {
  display: block;
}

.katex .mtable .vertical-separator {
  min-width: 1px;
  display: inline-block;
}

.katex .mtable .arraycolsep {
  display: inline-block;
}

.katex .mtable .col-align-c > .vlist-t {
  text-align: center;
}

.katex .mtable .col-align-l > .vlist-t {
  text-align: left;
}

.katex .mtable .col-align-r > .vlist-t {
  text-align: right;
}

.katex .svg-align {
  text-align: left;
}

.katex svg {
  width: 100%;
  height: inherit;
  fill: currentColor;
  stroke: currentColor;
  display: block;
  position: absolute;
}

.katex svg path {
  stroke: none;
}

.katex svg {
  fill-rule: nonzero;
  fill-opacity: 1;
  stroke-width: 1px;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-opacity: 1;
}

.katex img {
  border-style: none;
  min-width: 0;
  max-width: none;
  min-height: 0;
  max-height: none;
}

.katex .stretchy {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.katex .stretchy:before, .katex .stretchy:after {
  content: "";
}

.katex .hide-tail {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.katex .halfarrow-left {
  width: 50.2%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.katex .halfarrow-right {
  width: 50.2%;
  position: absolute;
  right: 0;
  overflow: hidden;
}

.katex .brace-left {
  width: 25.1%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.katex .brace-center {
  width: 50%;
  position: absolute;
  left: 25%;
  overflow: hidden;
}

.katex .brace-right {
  width: 25.1%;
  position: absolute;
  right: 0;
  overflow: hidden;
}

.katex .x-arrow-pad {
  padding: 0 .5em;
}

.katex .cd-arrow-pad {
  padding: 0 .55556em 0 .27778em;
}

.katex .x-arrow, .katex .mover, .katex .munder {
  text-align: center;
}

.katex .boxpad {
  padding: 0 .3em;
}

.katex .fbox, .katex .fcolorbox {
  box-sizing: border-box;
  border: .04em solid;
}

.katex .cancel-pad {
  padding: 0 .2em;
}

.katex .cancel-lap {
  margin-left: -.2em;
  margin-right: -.2em;
}

.katex .sout {
  border-bottom-style: solid;
  border-bottom-width: .08em;
}

.katex .angl {
  box-sizing: border-box;
  border-top: .049em solid;
  border-right: .049em solid;
  margin-right: .03889em;
}

.katex .anglpad {
  padding: 0 .03889em;
}

.katex .eqn-num:before {
  counter-increment: katexEqnNo;
  content: "(" counter(katexEqnNo) ")";
}

.katex .mml-eqn-num:before {
  counter-increment: mmlEqnNo;
  content: "(" counter(mmlEqnNo) ")";
}

.katex .mtr-glue {
  width: 50%;
}

.katex .cd-vert-arrow {
  display: inline-block;
  position: relative;
}

.katex .cd-label-left {
  text-align: left;
  display: inline-block;
  position: absolute;
  right: calc(50% + .3em);
}

.katex .cd-label-right {
  text-align: right;
  display: inline-block;
  position: absolute;
  left: calc(50% + .3em);
}

.katex-display {
  text-align: center;
  margin: 1em 0;
  display: block;
}

.katex-display > .katex {
  text-align: left;
  white-space: nowrap;
  display: block;
}

.katex-display > .katex > .katex-html {
  display: block;
  position: relative;
}

.katex-display > .katex > .katex-html > .tag {
  position: absolute;
  right: 0;
}

.katex-display.leqno > .katex > .katex-html > .tag {
  left: 0;
  right: auto;
}

.katex-display.fleqn > .katex {
  text-align: left;
  padding-left: 2em;
}

body {
  counter-reset: katexEqnNo mmlEqnNo;
}

.katex.katex {
  font: 1.21em / 1.2 KaTeX_Main, Times New Roman, serif;
}

.katex.katex * {
  font-size: inherit;
  line-height: inherit;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/400-7bd0eaea.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/500-182d632e.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/600-5df94879.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/700-cfd1cd82.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/italic-400-3ffa96a6.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/italic-500-8fcb7d0f.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/italic-600-61e401c5.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Text;
  src: url("/assets/fonts/tiempos/text/italic-700-2eb333e3.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/300-cc166b97.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/400-96c55b97.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/500-99a5b3b6.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/600-7e11af48.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/700-dfb4ada4.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/900-dfbebfd7.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-300-2dfba6e3.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-400-cbcde644.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-500-4878a03f.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-600-17a39e51.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-700-79817af6.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Tiempos Headline;
  src: url("/assets/fonts/tiempos/headline/italic-900-eb76593b.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
