iframe {
  display: block;
}

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

.square,
.round {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.square {
  border-radius: 8px;
}

.round {
  border-radius: 50%;
}

.height-36 {
  height: 36px;
}

.height-48 {
  height: 48px;
}

.height-56 {
  height: 56px;
}

.display-block {
  display: block;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.isolate {
  isolation: isolate;
}

/* Alpine removes x-cloak after it initializes the component. */
[x-cloak] {
  display: none !important;
}

.inset-0 {
  inset: 0;
}

/* z-index layers
base content: 0
background decorations: -1
sticky cells/labels: 1
sticky headers: 2
active tabs: 4
tooltips: 8
company sub-nav and modal nav: 900
top nav, mobile search and bottom nav: 1000
dropdowns: 1100
modal container: 1201
*/
:root {
  --z-background: -1;
  --z-sticky: 1;
  --z-sticky-header: 2;
  --z-tab-active: 4;
  --z-tooltip: 8;
  --z-sub-nav: 900;
  --z-nav: 1000;
  --z-dropdown: 1100;
  --z-modal: 1201;
}

/* Color utilities */
.ink-900 {
  color: var(--ink-900);
}

.ink-700 {
  color: var(--ink-700);
}

.ink-600 {
  color: var(--ink-600);
}

.sub {
  color: var(--ink-700);
}

.sub-link {
  color: var(--link-mute);
}

.ink-600-link {
  color: var(--ink-600);
}

.hover-link:hover {
  color: var(--link);
}

.hover-link:hover .sub-link,
.hover-link:hover .ink-600-link,
.sub-link:hover {
  color: var(--link);
}

.bg-none {
  background: none;
}

.bg-base {
  background: var(--base);
}

/* Keep artwork colours intact on a light surface in either theme. */
.bg-white {
  background: var(--white);
}

.bg-page {
  background-color: var(--page-base);
  background-image: var(--page-base-gradient);
}

.bg-blur {
  pointer-events: none;
  position: absolute;
  z-index: var(--z-background);
  width: 100vw;
  max-width: 590px;
  height: 100vw;
  max-height: 590px;
  margin: 0 auto;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  background: conic-gradient(
    from 180deg at 50% 50%,
    #645df9 -86.4deg,
    #645df9 28.8deg,
    #ff6778 108deg,
    #aa6eee 151.2deg,
    #8d99ff 230.4deg,
    #645df9 273.6deg,
    #645df9 388.8deg
  );
  opacity: 0.15;
  filter: blur(25vw);
  border-radius: 50%;
}

@media (min-width: 590px) {
  .bg-blur {
    filter: blur(136px);
  }
}

.bg-stripes {
  background: var(--stripes);
}

/* A line starts a new group of table rows.
   An inset shadow, unlike a border, keeps the row as tall as the others. */
.data-table tr.row-group-start td {
  box-shadow: inset 0 1px 0 var(--border-color);
}

/* One cell spans the similar peers' empty Key Insights, with the label centred */
.data-table td.row-group-label {
  vertical-align: middle;
  white-space: normal;
}

/* The label wraps to its columns' width, instead of widening them,
   e.g. when there are only 2 key metrics */
.data-table td.row-group-label > span {
  contain: inline-size;
}

/* It spans several rows, so hovering its first row must not outline it */
.data-table.highlight-on-hover tbody tr:hover td.row-group-label {
  border-top: 0;
  border-bottom: 0;
}

/* The row of group names goes once all its groups are hidden */
thead[data-column-group-names]:not(:has(th:not([hidden]))) {
  display: none;
}

/* Keeps row stripes visible across highlighted columns */
.striped tbody tr:nth-child(even) .bg-stripes {
  background: var(--stripes-dark);
}

.bg-stripes-light {
  background: var(--stripes-light);
}

.outline-stripes {
  outline: 2px solid var(--stripes);
}

.bg-light-blue,
input.bg-light-blue {
  background: var(--bg-light-blue);
}

.bg-light-blue-border,
input.bg-light-blue-border {
  border: 1px solid var(--bg-light-blue);
}

.bg-error {
  background: var(--error-bg);
}

.bg-grey {
  background: var(--partition);
}

.bg-primary {
  background: var(--button-primary);
  color: var(--base);
}

.bg-gold {
  background-image: linear-gradient(219deg, #fff5af 0%, #ffd11a 100%);
  color: #715a00;
}

.bg-ai {
  background: linear-gradient(219deg, #b87bff 0%, #9f9ea3 100%);
  color: #fff;
}

.bg-ai:hover {
  background: linear-gradient(19deg, #b87bff 0%, #9f9ea3 100%);
  color: #fff;
}

.inserts-text {
  color: var(--inserts-text);
}

.white-700 {
  color: var(--white-700);
}

.blue-icon {
  color: var(--link-icons);
}

.up-arrow::before {
  content: "⇡ ";
}

.down-arrow::before {
  content: "⇣ ";
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

/* % change led by a trend arrow, e.g. ↗ 4.1%; pair with .up / .down */
/* Arrow a bit larger to match the digits, flush left */
.price-change i {
  font-size: 1.2em;
}

.price-change i::before {
  margin-left: 0;
}

.blur {
  filter: blur(4px);
  opacity: 0.6;
}

/* Utilities */
.box-sizing {
  box-sizing: border-box;
}

.overflow-hidden {
  overflow: hidden;
}

/* Fill the available flex space and scroll overflowing content. */
.overflow-expand {
  flex: 1 1 200px;
  justify-content: start;
  overflow: auto;
}

.min-width-0 {
  min-width: 0;
}

.overflow-wrap {
  overflow-wrap: break-word;
}

.overflow-wrap-anywhere {
  overflow-wrap: anywhere;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.nowrap {
  white-space: nowrap;
}

/* Same-width digits, so numbers line up and don't shift as they change */
.tabular-nums {
  font-feature-settings: "tnum" on;
}

.pre-wrap {
  white-space: pre-wrap;
}

.upper {
  text-transform: uppercase;
  font-feature-settings: "cpsp" on;
}

.normal-case {
  text-transform: none;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
}

.strike-through {
  text-decoration: line-through;
}

.letter-spacing {
  letter-spacing: 0.125em;
}

.letter-spacing-0 {
  letter-spacing: 0;
}

.rounded,
.rounded-6 {
  border-radius: 6px;
}

.rounded-40 {
  border-radius: 40px;
}

.bordered {
  border: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-left {
  border-left: 1px solid var(--border-color);
}

.border-right {
  border-right: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.box-shadow {
  background: var(--base);
  box-shadow: 0 16px 20px -24px hsla(219, 37%, 18%, 0.24);
  border-radius: 8px;
}

.large-shadow {
  box-shadow: 0 2px 10px 0 hsla(0, 0%, 0%, 0.1);
}

.box-shadow-drop {
  box-shadow: 0px 6px 20px 0px hsla(219, 37%, 18%, 0.24);
}

.padded {
  padding: 20px;
}

.img-32 {
  max-width: 32px;
  height: auto;
}

.img-150 {
  max-width: 150px;
  height: auto;
}

.img-250 {
  max-width: 250px;
  height: auto;
}

.object-fit-contain {
  object-fit: contain;
}

.max-width-450 {
  max-width: 450px;
}

.inline-image {
  height: 1.3em;
  vertical-align: text-bottom;
}

.bigger,
.larger {
  font-size: larger;
}

.smaller,
.small {
  font-size: 0.875em;
}

/* Margins */
.no-margin,
h1.margin-0,
h2.margin-0,
h3.margin-0,
.data-table.margin-0,
.options.margin-0,
.margin-0 {
  margin: 0;
}

.margin-4-0 {
  margin: 4px 0;
}

.margin-bottom {
  margin-bottom: var(--margin-medium);
}

.data-table.margin-bottom-0,
.margin-bottom-0 {
  margin-bottom: 0;
}

.margin-bottom-12 {
  margin-bottom: 12px;
}

.margin-bottom-24 {
  margin-bottom: 24px;
}

.margin-bottom-36 {
  margin-bottom: 36px;
}

.margin-bottom-48 {
  margin-bottom: 48px;
}

.margin-top-0 {
  margin-top: 0;
}

.margin-top-4 {
  margin-top: 4px;
}

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

.margin-top-12 {
  margin-top: 12px;
}

.margin-top-16 {
  margin-top: 16px;
}

.margin-top-20 {
  margin-top: 20px;
}

.margin-top-24 {
  margin-top: 24px;
}

.margin-top-32 {
  margin-top: 32px;
}

.margin-top-56 {
  margin-top: 56px;
}

.margin-right-4 {
  margin-right: 4px;
}

.margin-right-8 {
  margin-right: 8px;
}

.margin-right-16 {
  margin-right: 16px;
}

.margin-bottom-8 {
  margin-bottom: 8px;
}

.margin-bottom-16 {
  margin-bottom: 16px;
}

.margin-bottom-80 {
  margin-bottom: 80px;
}

.margin-left-4 {
  margin-left: 4px;
}

.margin-left-8 {
  margin-left: 8px;
}

.margin-left-12 {
  margin-left: 12px;
}

.margin-left-16 {
  margin-left: 16px;
}

.margin-left-24 {
  margin-left: 24px;
}

.border-0,
.no-border {
  border: none;
}

.border-radius-4 {
  border-radius: 4px;
}

.border-radius-6 {
  border-radius: 6px;
}

.border-radius-8 {
  border-radius: 8px;
}

.border-radius-12 {
  border-radius: 12px;
}

.border-radius-28 {
  border-radius: 28px;
}

.border-radius-50p {
  border-radius: 50%;
}

.border-bottom-radius-unset {
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
}

.border-left-radius-unset {
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
}

.border-right-radius-unset {
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
}

.border-right-unset {
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
  border-right: unset;
}

/* Thin divider between items in a toolbar */
.vertical-separator {
  width: 1px;
  height: 16px;
  background: var(--border-color);
}

/* Pushes a toolbar's last group right; on phones it starts the wrapped line */
.toolbar-end {
  margin-left: auto;
}

@media (max-width: 576px) {
  .toolbar-end {
    margin-left: 0;
  }
}

.no-select {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.underline-link {
  border-bottom: 1px dotted;
  border-bottom-color: currentColor;
}

.dashed-link {
  border-bottom: 1px dashed;
  border-bottom-color: currentColor;
}

a.normal {
  color: hsl(0, 0%, 13%);
  font-weight: 600;
}

a.normal .sub {
  font-weight: 400;
}

.red {
  color: var(--red);
}

.button.red,
button.red {
  border-color: var(--red);
}

.gold {
  color: gold;
}

/* typographies */
.quiet {
  color: var(--ink-600);
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.data-table td.text-align-center,
.data-table th.text-align-center,
.text-align-center {
  text-align: center;
}

.data-table td.text-align-left,
.data-table th.text-align-left,
.text-align-left {
  text-align: left;
}

.text-align-right {
  text-align: right;
}

.vertical-align-top {
  vertical-align: top;
}

.text-wrap-balance {
  text-wrap: balance;
}

.sticky,
.sticky-2 {
  position: sticky;
  left: 0;
  top: 0;
  z-index: var(--z-sticky);
}

.sticky.sticky-page-top {
  top: 0;
}

/* Hidden checkbox */
/* Hide checkbox and reset styles */
.chart-checkbox {
  /* removes the square box */
  -webkit-appearance: initial;
  -moz-appearance: initial;
  appearance: initial;
  outline: 0;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  color: var(--white);
}

.chart-checkbox ~ span {
  color: var(--ink-700);
}

.chart-checkbox::after {
  content: "";
  display: block;
  font-size: 15px;
  height: 16px;
  line-height: 1;
  text-indent: 1px;
  background: var(--base);
  border: 1px solid var(--ink-700);
  border-radius: 3px;
}

.chart-checkbox:checked::after {
  content: "✓";
  background: transparent;
  border-color: transparent;
}

/* Skeleton over-rides */
b,
strong,
.strong {
  font-weight: 600;
}

.line-height-1 {
  line-height: 1;
}

.line-height-12 {
  line-height: 1.2;
}

.data-table td.line-height-14,
.line-height-14 {
  line-height: 1.4;
}

.font-size-em-72 {
  font-size: 0.72em;
}

.font-size-9 {
  font-size: 0.9rem;
}

.font-size-11 {
  font-size: 1.1rem;
}

.font-size-12 {
  font-size: 1.2rem;
}

.font-size-13 {
  font-size: 1.3rem;
}

.font-size-14 {
  font-size: 1.4rem;
}

.font-size-15 {
  font-size: 1.5rem;
}

.font-size-16 {
  font-size: 1.6rem;
}

.font-size-17 {
  font-size: 1.7rem;
}

.font-size-18 {
  font-size: 1.8rem;
}

.font-size-19 {
  font-size: 1.9rem;
}

.font-size-20 {
  font-size: 2rem;
}

.font-size-24 {
  font-size: 2.4rem;
}

.font-size-30 {
  font-size: 3rem;
}

.font-weight-400 {
  font-weight: 400;
}

.font-weight-500 {
  font-weight: 500;
}

/* Compact numeric control with an optional unit and explicit steppers on all devices. */
.number-input {
  display: inline-flex;
  align-items: center;
  vertical-align: top;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--base);
}

.number-input:focus-within {
  border-color: var(--link);
}

.number-input:has(input:invalid) {
  border-color: var(--red);
}

.number-input input {
  appearance: textfield;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: calc(var(--input-characters, 6) * 1ch);
  min-width: 0;
  padding: 0;
  height: 1.25em;
  font: inherit;
}

/* Keep the focus border on the wrapper, not inside it. */
.number-input input:focus {
  border: 0;
}

.number-input input::-webkit-inner-spin-button,
.number-input input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input-stepper {
  display: grid;
  /* Include the divider in the width so it cannot cover the input's right border. */
  box-sizing: border-box;
  width: 24px;
  border-left: 1px solid var(--border-color);
  border-radius: 0 3px 3px 0;
  background: var(--stripes);
}

.number-input-stepper button {
  display: grid;
  place-items: center;
  height: 10px;
  font-size: 10px;
  line-height: 1;
}

.number-input-stepper button + button {
  border-top: 1px solid var(--border-color);
}

/* Django forms */
.form-field label {
  margin: 0;
  line-height: 1.25;
}

.form-field input[readonly] {
  color: var(--ink-600);
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field textarea,
.form-field .pseudo-textarea,
.form-field select,
.form-field:has([type="checkbox"]),
.form-field .input {
  margin: 8px 0 16px;
}

.form-field input[type="email"],
.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="password"],
.form-field textarea {
  width: 100%;
}

.form-field textarea,
.form-field .pseudo-textarea {
  line-height: 1.3;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--red);
}

.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--red);
  font-weight: 500;
}

.errorlist li {
  margin: 0;
}

.errorlist.nonfield {
  padding: 8px 16px;
  border: 1px solid var(--red);
  border-radius: 8px;
  margin-bottom: 16px;
}

/* checkbox that looks like a button */
.button-checkbox {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 1.4rem;
  font-weight: 500;
}

.button-checkbox input {
  margin: 0 8px 0 0;
  height: 1.5rem;
  width: 1.5rem;
}

.button-checkbox input ~ label {
  margin: -8px -12px -8px -36px;
  padding: 8px 12px 8px 36px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--ink-700);
  cursor: pointer;
}

.button-checkbox input:checked ~ label {
  border-color: var(--button-primary);
  color: var(--button-primary);
}

#query-builder {
  height: 100%;
  margin: 0;
}

.query-help {
  /* min-width: 25rem; */
  width: 250px;
  flex-grow: 1;
}

/* growing textarea */
.growing-textarea {
  display: grid;
  margin: 8px 0 16px;
}

.growing-textarea::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  visibility: hidden;
}

.growing-textarea > textarea {
  resize: none;
  overflow: hidden;
  margin: 0;
}

.growing-textarea > textarea,
.growing-textarea::after {
  line-height: 1.3;
  padding: 8px 14px;
  grid-area: 1 / 1 / 2 / 2;
}

@media (max-width: 576px) {
  .query-help {
    width: auto;
  }
}

.form-field .errorlist {
  margin: 0;
}

.helptext {
  color: var(--ink-700);
  font-weight: normal;
  font-size: 1.4rem;
}

/* Items Holders */
div.items,
ul.items li {
  padding: 8px 0px;
}

.items button,
.items .button,
.items input[type="button"],
.items input[type="submit"] {
  margin-top: 0;
  margin-bottom: 0;
}

ul.list-style-none {
  list-style: none;
}

ul.items {
  list-style: none;
  padding-left: 0;
}

ul.no-style,
summary.no-style {
  list-style: none;
}

/* Older Safari draws the marker with this, not list-style */
summary.no-style::-webkit-details-marker {
  display: none;
}

summary {
  cursor: pointer;
}

ul.no-style li {
  padding: 0;
  margin: 0;
}

ul.items li {
  margin-bottom: 0;
}

/* list of links */
ul.list-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.list-links > li {
  padding: 8px 0;
  margin: 0;
}

/* Tags are clickable, badges are not */
.tag {
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 32px;
  padding: 8px 12px;
  background-color: var(--success-bg);
  color: var(--link);
  line-height: 1;
  display: inline-block;
}

.tag.tag-small {
  border-radius: 18px;
  padding: 4px 6px;
}

/* Border takes the tag's text colour */
.tag.tag-outline {
  border: 1px solid;
  background: none;
}

.waveform {
  width: 1.2em;
  height: 1.2em;
  margin-right: 4px;
  vertical-align: -0.25em;
}

.waveform path {
  transform-box: fill-box;
  transform-origin: center;
  animation: waveform 1s ease-in-out infinite;
}

.waveform path:nth-child(2n) {
  animation-delay: -0.3s;
}

.waveform path:nth-child(3n) {
  animation-delay: -0.6s;
}

@keyframes waveform {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform path {
    animation: none;
  }
}

.badge {
  font-weight: 500;
  font-size: smaller;
  border-radius: 6px;
  border: 1px solid var(--success-border);
  background-color: var(--success-bg);
  padding: 3px 7px;
  margin: 2px;
}

.badge.border-0,
.badge.no-border {
  border: none;
  padding: 4px 8px;
}

.badge.small {
  padding: 4px 8px;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 400;
}

.badge.small.compact {
  padding: 2px 4px;
}

.badge.active {
  font-weight: 600;
  border: 1px solid var(--button-primary);
}

/* Compact counts inside buttons; inherit the button's text colour. */
.badge-count {
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  background: var(--bg-light-blue);
  border-radius: 10px;
  padding: 0 4px;
  font-size: 1.1rem;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}

.badge.inserts {
  border: 1px solid var(--inserts-text);
  background: var(--inserts-bg);
  color: var(--inserts-text);
}

.badge.badge-delta {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: 12px;
  padding: 3px 8px;
  margin: 0;
}

.badge.badge-delta-up {
  color: var(--link);
  background: var(--bg-light-blue);
}

.badge.badge-delta-down {
  color: var(--down);
  background: var(--deletes-bg);
}

.badge.badge-delta-flat {
  color: var(--ink-700);
  background: var(--stripes);
}

/* Compact outlined actions */
.button-chip {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  color: var(--link);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--button-primary);
}

div.button-chip {
  opacity: 0.25;
  pointer-events: none;
}

/* Ratio Gallery */
#ratio-gallery .gallery-button {
  text-transform: none;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  margin: 4px 0;
  font-weight: 400;
  white-space: normal;
}

#ratio-gallery .title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Read more component */
.show-more-box,
.always-show-more-box {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 220px;
  position: relative;
  overflow: hidden;
}

/* Short content keeps its own height from the start, rather than growing
   until JS shrinks it, which moved the sections below on load */
.show-more-box {
  max-height: max-content;
}

.show-more-box .show-more-button,
.always-show-more-box .show-more-button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  background-image: linear-gradient(
    to bottom,
    hsla(var(--base-hsl), 82%),
    hsl(var(--base-hsl))
  );
}

/* Input box addons */
.has-addon {
  position: relative;
}

.has-addon .addon {
  position: absolute;
  /* same padding as input */
  padding: 12px 14px;
  font-size: inherit;
  line-height: inherit;
  pointer-events: none;
  color: hsl(0, 0%, 40%);
  /* z-index: 1; */
}

.left-addon .addon {
  left: 0px;
}

.right-addon .addon {
  right: 0px;
}

.left-addon input {
  padding-left: 48px;
}

.right-addon input {
  padding-right: 48px;
}

/* navigation */
nav {
  width: 100%;
  color: var(--ink-700);
}

nav .container {
  padding: 0 8px;
}

@media (min-width: 992px) {
  nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    margin-bottom: 24px;
  }

  .sticky.sticky-page-top {
    top: 45px;
  }

  :target {
    scroll-margin-top: 68px;
  }

  @supports not (scroll-margin-top: 68px) {
    :target {
      padding-top: 98px;
    }
  }

  nav .container,
  footer .container {
    padding: 0;
  }
}

nav .logo-holder {
  line-height: 1;
}

nav .logo {
  padding-top: 4px;
  max-height: 26px;
}

@media (min-width: 768px) {
  nav .logo {
    max-height: 28px;
  }
}

nav .search {
  flex-grow: 1;
  max-width: 250px;
}

nav .search input {
  font-size: 1.5rem;
  line-height: 1.45;
  padding: 5px 5px 5px 46px;
  width: 100%;
  border-radius: 6px;
}

nav .search .addon {
  font-size: 1.5rem;
  padding: 6px 14px;
}

nav .account {
  padding: 10px 12px;
  color: var(--ink-900);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* bottom navigation */
.bottom-menu-bar {
  list-style: none;
  margin: 0;
  padding: 8px 0;

  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: var(--base);
  border-top: 1px solid var(--partition);
  display: flex;
  justify-content: space-around;
}

.bottom-menu-bar li {
  margin: 0;
  padding: 0;
  width: 56px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-menu-bar li > a,
.bottom-menu-bar li > button:not(.button-primary) {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--ink-700);
  font-weight: 600;
}

.bottom-menu-bar i {
  font-size: 1.8rem;
}

.bottom-menu-bar i::before {
  margin: 0;
  padding: 0;
}

.bottom-menu-bar li.active {
  background-color: var(--stripes-light);
}

.bottom-menu-bar li.active > a,
.bottom-menu-bar li.active > button {
  color: var(--link);
}

/* top navigation */
.top-nav-holder {
  background: var(--top-nav-bg);
  color: var(--top-nav-text);
  border-bottom: 1px solid var(--partition);
}

.top-navigation {
  height: 50px;
}

.top-navigation .desktop-links {
  display: none;
}

#desktop-search {
  min-width: 175px;
}

#account-dropdown {
  min-width: 60px;
  max-width: fit-content;
  flex-grow: 1;
}

#account-dropdown button.account {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

/* show from tablet landscape */
@media (min-width: 992px) {
  .top-navigation .desktop-links {
    display: flex;
    align-items: center;
  }

  .top-navigation .desktop-links > a,
  .top-navigation .desktop-links .dropdown-menu button {
    box-sizing: border-box;
    line-height: 1;
    padding-top: 22px;
    padding-bottom: calc(50px - 14px - 22px);
  }
}

.top-navigation .desktop-links > a,
.top-navigation .desktop-links .dropdown-menu button {
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 1.5px;

  color: inherit;
  text-transform: uppercase;
  font-feature-settings: "cpsp" on;
}

.top-navigation .desktop-links > * + * {
  padding-left: 48px;
}

ul#nav-tools-menu.dropdown-content.tools-menu {
  left: -100px;
}

ul.dropdown-content.tools-menu li a.flex {
  padding: 10px 16px;
  display: flex;
}

ul.dropdown-content.tools-menu li:hover .square {
  background: var(--base);
}

.tools-menu .premium-indicator {
  display: flex;
  text-transform: none;
  padding: 4px 8px;
  margin: 0 16px;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Scroll Aid */
.company-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sub-nav);
}

.sub-nav-holder {
  width: 100%;
  box-sizing: border-box;
  color: var(--sub-nav-text);
  font-size: 1.4rem;
  font-weight: 500;
}

@media (min-width: 992px) {
  .sub-nav-holder {
    background: var(--sub-nav-bg);
    color: var(--sub-nav-text);
    box-shadow: 0 14px 12px -17px rgba(29, 40, 62, 0.4);
    font-weight: normal;
  }

  .sub-nav {
    width: var(--container-width);
    margin: auto;
  }
}

.sub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-nav-tabs {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-nav-tabs::-webkit-scrollbar {
  display: none;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sub-nav a,
.sub-nav .a {
  color: inherit;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 8px 16px 4px;
  margin: 0;
  border-bottom: 2px solid transparent;
}

.sub-nav a.active {
  color: var(--link);
  font-weight: 500;
  border-color: var(--link);
}

.sub-nav a.bg-ai {
  padding: 4px 8px;
  border: 1px solid var(--button-border);
  color: #fff;
}

/* Mobile navigation */
#mobile-search {
  position: absolute;
  left: 0;
  top: 45px;
  width: 100%;
  padding: 8px;
  display: none;
  box-sizing: border-box;
  z-index: var(--z-nav);
}

#mobile-search.visible {
  display: block;
}

/* notification dot */
.notification-dot {
  position: relative;
}

.notification-dot::after {
  content: " ";
  position: absolute;
  top: 12px;
  right: 0;
  transform: translate(50%, 50%);

  /* Rounded border */
  border-radius: 50%;
  height: 8px;
  width: 8px;

  /* Background color */
  background-color: var(--red);
}

/* Options and active */
.options {
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  border: 1px solid var(--button-border);
  border-radius: 3px;

  background: var(--base);
}

.options a,
.options button {
  padding: 8px 12px;
  border: 0;

  border-radius: unset;
  color: var(--ink-700);
  font-size: 1.4rem;
  letter-spacing: normal;
  font-weight: 500;
  text-transform: none;
  font-feature-settings: "cpsp" off;
}

.options > *:first-child {
  border-radius: 3px 0 0 3px;
}

.options > *:last-child {
  border-radius: 0 3px 3px 0;
}

.options a:hover,
.options button:hover {
  color: var(--link-hover);
}

@media (min-width: 768px) {
  .options a,
  .options button {
    padding: 8px 16px;
  }
}

.options a.active,
.options button.active {
  color: var(--link);
  background: var(--bg-light-blue);
  border-color: var(--bg-light-blue-border);
  outline: none;
}

.options.small a,
.options.small button {
  padding: 6px 12px;
  font-size: 1.2rem;
}

/* Breadcrumb */
.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  font-feature-settings: "cpsp" off;
  color: var(--ink-700);
}

.breadcrumb ul li {
  padding: 0;
  margin: 0;
}

.breadcrumb ul li + li::before {
  content: "/";
  color: var(--ink-600);
  margin: 0 12px;
}

/* utilities */
.drop-shadow {
  box-shadow: 0 2px 4px 0 hsla(0, 0%, 0%, 0.2);
}

.radius-4 {
  border-radius: 4px;
}

.radius-6 {
  border-radius: 6px;
}

.no-padding,
.padding-0 {
  padding: 0;
}

.padding-small {
  padding: var(--margin-small);
}

.padding-2 {
  padding: 2px;
}

.padding-8 {
  padding: 8px;
}

.padding-10 {
  padding: 10px;
}

.padding-16 {
  padding: 16px;
}

.padding-20 {
  padding: 20px;
}

.padding-5-7 {
  padding: 5px 7px;
}

.padding-6-0 {
  padding: 6px 0;
}

.padding-2-6 {
  padding: 2px 6px;
}

.padding-6-8 {
  padding: 6px 8px;
}

.padding-4-6 {
  padding: 4px 6px;
}

.padding-4-8 {
  padding: 4px 8px;
}

.padding-4-12 {
  padding: 4px 12px;
}

.padding-8-0 {
  padding: 8px 0;
}

.padding-8-16 {
  padding: 8px 16px;
}

.padding-10-12 {
  padding: 10px 12px;
}

.padding-12-18 {
  padding: 12px 18px;
}

.padding-16-12 {
  padding: 16px 12px;
}

.padding-16-20 {
  padding: 16px 20px;
}

.padding-20-0 {
  padding: 20px 0;
}

.padding-32-24 {
  padding: 32px 24px;
}

.padding-left-8 {
  padding-left: 8px;
}

.padding-top-48 {
  padding-top: 48px;
}

.padding-top-tiny {
  padding-top: var(--margin-tiny);
}

.padding-bottom-tiny {
  padding-bottom: var(--margin-tiny);
}

.padding-top-small {
  padding-top: var(--margin-small);
}

.padding-top-medium {
  padding-top: var(--margin-medium);
}

.padding-right-small {
  padding-right: var(--margin-small);
}

.padding-bottom-small {
  padding-bottom: var(--margin-small);
}

.padding-left-small {
  padding-left: var(--margin-small);
}

.margin-small {
  margin: var(--margin-small);
}

.margin-top-tiny {
  margin-top: var(--margin-tiny);
}

.margin-bottom-tiny {
  margin-bottom: var(--margin-tiny);
}

.margin-left-neg-small {
  margin-left: calc(var(--margin-small) * -1);
}

.margin-right-neg-small {
  margin-right: calc(var(--margin-small) * -1);
}

/* Tables */
.responsive-holder {
  overflow: auto;
}

.responsive-tables table {
  display: block;
  overflow-x: auto;
}

.responsive-holder-mobile {
  overflow: auto;
}

@media (min-width: 576px) {
  .responsive-holder-mobile {
    overflow: unset;
  }
}

table {
  width: 100%;
  font-size: 1.4rem;
}

table.collapsed {
  /* collapsing will hide borders on sticky */
  border-collapse: separate;
  border-spacing: 0;
}

tr {
  background-color: var(--base);
}

th {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-700);
}

tfoot {
  color: var(--ink-700);
}

tfoot td {
  border-top: 1px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
  font-weight: bold;
}

.data-table tfoot td {
  border-top: 1px solid var(--border-color);
  font-size: 1.3rem;
  font-weight: 500;
}

ul.striped li:nth-child(even),
.striped tbody tr:nth-child(even),
ul.striped-first li:nth-child(odd),
.striped-first tbody tr:nth-child(odd),
tr.stripe {
  background-color: var(--stripes);
}

tr.stripe-light {
  background-color: var(--stripes-light);
}

tr.strong:not(.compare) td {
  border-top: 2px solid var(--lines);
}

table .highlight-cell {
  background-color: var(--stripes);
}

table .stripe .highlight-cell {
  background-color: var(--stripes-dark);
}

table th.highlight-cell {
  border-radius: 4px 4px 0 0;
}

table tbody tr:last-child .highlight-cell {
  border-radius: 0 0 4px 4px;
}

/* Numerical tables */
.data-table {
  margin-top: 8px;
  margin-bottom: 8px;
  /* collapsing will hide borders on sticky */
  border-collapse: separate;
  border-spacing: 0;
}

.data-table td {
  border-bottom: 0;
  font-feature-settings: "tnum" on;
}

.data-table th,
.data-table td {
  text-align: right;
  --cell-padding: 9px;
  padding: var(--cell-padding);
  line-height: 1.25;
}

/* Tables repeating their header row in the body, e.g. every 15 rows of screen
   results. Scoped, as other tables use th for row labels, e.g. forecast notes.
   Labels line up on top, whether or not a unit line follows them. */
.repeated-headers th {
  vertical-align: top;
}

/* Sets each repeated header apart from the rows above it */
.repeated-headers tbody tr:not(:first-child) th {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.data-table.compact th,
.data-table.compact td,
.data-table tr.compact th,
.data-table tr.compact td {
  --cell-padding: 4px;
}

.data-table.highlight-on-hover tbody tr:hover td {
  border-top: 1px solid var(--link);
  border-bottom: 1px solid var(--link);
  padding-top: 8px;
  padding-bottom: 8px;
}

.data-table.text-nowrap .text {
  white-space: nowrap;
  text-overflow: ellipsis;
  /* Required for text-overflow to do anything */
  overflow: hidden;
}

@media (min-width: 992px) {
  .responsive-text-nowrap .text {
    white-space: nowrap;
    text-overflow: ellipsis;
    /* Required for text-overflow to do anything */
    overflow: hidden;
  }
}

.data-table .text {
  text-align: left;
  max-width: 20%;
  /* freeze column */
  position: sticky;
  left: 0;
  z-index: var(--z-sticky);
  background: inherit;
}

.data-table.break-large-texts .text {
  min-width: 150px;
  word-break: break-word;
}

/* Second-level breakdown rows: an arrow ties them to the row above, and a
   line closes each group */
.data-table tr.sub-schedule td.text::before {
  content: "↳";
  margin-right: 0.5em;
}

.data-table tr.sub-schedule-last td {
  border-bottom: 1px solid var(--border-color);
}

.data-table tr.strong a {
  color: inherit;
}

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

.sorted.descending .text::after,
.asc::after {
  content: " ⇣";
}

.sorted.ascending .text::after,
.desc::after {
  content: " ⇡";
}

/* Anchor the introduction to the rightmost forecast period, outside the table's scroll clip. */
.forecast-cell:last-child [data-forecast-year] {
  anchor-name: --forecast-period;
}

.forecast-intro {
  width: min(300px, calc(100vw - 32px));
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Older browsers keep the native popover centered instead of clipping it in the table. */
@supports (position-area: top) {
  .forecast-intro {
    position-anchor: --forecast-period;
    position-area: top span-left;
    position-try-fallbacks: flip-block, flip-inline;
    inset: auto;
    margin: 8px 0;
  }
}

.forecast-status {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: max-content;
  /* The toolbar can sit at the left edge after wrapping on mobile. */
  max-width: 100%;
  line-height: 1;
  background: var(--base);
  /* Keep feedback above sticky table cells when the mobile toolbar wraps. */
  z-index: var(--z-tooltip);
}

/* User estimates remain distinct from the reported financial columns. */
.data-table .forecast-cell {
  padding: 6px 8px;
  /* Keep estimates compact while allowing their contents to widen the column. */
  width: 1%;
  border-left: 1px dashed var(--border-color);
}

/* Right-align complete values; only the stepper needs a fixed-width track. */
.forecast-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  padding-left: 4px;
  /* Match the input's inner height so plain outputs share its vertical alignment. */
  min-height: 20px;
  /* Add the stepper track; padding and borders already sit outside this width. */
  min-width: calc(var(--input-characters, 6) * 1ch + 28px);
  white-space: nowrap;
}

/* Reserve the input border's space on plain values to retain numeric alignment. */
.forecast-value:not(.number-input) {
  border: 1px solid transparent;
}

.forecast-value input {
  width: 100%;
}

.forecast-value input,
.forecast-number {
  grid-column: 1;
  text-align: right;
}

.forecast-value .number-input-stepper {
  grid-column: 3;
  /* Leave a small gap after the value, whether or not it includes a unit. */
  justify-self: end;
}

/* The CAGR hint needs an extra line without making its row taller. */
.data-table .forecast-cell:has(.input-hint) {
  padding-top: 2px;
  padding-bottom: 2px;
}

.forecast-cell .input-hint {
  display: block;
  font-size: 10px;
  line-height: 1;
  /* Align with the number, before the 28px stepper track and 1px border. */
  padding-right: 29px;
}

/* Let a guide accept input outside its highlighted target, above Driver's overlay. */
.driver-active .driver-extra-input {
  position: relative;
  z-index: 10001;
}

.driver-active .driver-extra-input,
.driver-active .driver-extra-input * {
  pointer-events: auto;
}

/* show on hovers */
.has-hover .show-on-hover {
  display: none;
}

.has-hover:hover .show-on-hover {
  display: inline-block;
}

/* hover and micro-spacing utilities */
.hover-parent:hover .hover-opacity-100,
.hover-opacity-100:hover {
  opacity: 1;
}

/* Row tooltip icons, e.g. sources, show only on the hovered row of a table.
   Without hover (touch screens) they stay, as the only way to find them. */
@media (hover: hover) {
  .row-hover-tooltips tr:not(:hover, :focus-within) td .has-tooltip {
    opacity: 0;
  }
}

.translate-y-1px {
  transform: translateY(1px);
}

/* footer */
footer {
  margin-top: var(--margin-x-large);
  background: var(--base);
}

footer p {
  font-size: 1.4rem;
}

footer .title {
  font-weight: 500;
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  margin-bottom: 8px;
}

footer ul {
  font-size: 1.4rem;
}

footer ul.items li {
  padding: 4px 0;
}

footer a,
footer button.button-plain {
  color: var(--ink-700);
}

footer#large-footer {
  padding-top: 24px;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  footer#large-footer {
    padding-top: 48px;
  }
}

@media (min-width: 1200px) {
  footer#large-footer {
    padding-bottom: 32px;
  }
}

/* Company page */
.icon-dot::before {
  width: 36px;
}

.company-info,
.company-profile {
  display: flex;
  flex-direction: column;
}

.company-profile .title {
  margin-top: 16px;
}

.company-profile .about {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 100px;
}

.company-profile .commentary {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 80px;
  max-height: 140px;
  overflow: hidden;
}

.company-profile .commentary p:last-child {
  margin-bottom: 0.5em;
}

#top-ratios {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  color: var(--ink-700);
}

#top-ratios li {
  margin: 0;
  padding: 9px 0;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
}

#top-ratios .value {
  color: var(--ink-600);
}

#top-ratios .value .number {
  color: var(--ink-900);
  font-weight: 500;
}

@media (min-width: 768px) {
  #top-ratios {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 24px;
  }

  #top-ratios li {
    background: var(--stripes);
    border-radius: 6px;
    border: none;
    padding: 8px;
  }

  #top-ratios li:nth-child(6n + 1),
  #top-ratios li:nth-child(6n + 2),
  #top-ratios li:nth-child(6n + 3) {
    background: var(--base);
  }
}

@media (min-width: 992px) {
  .company-info {
    flex-direction: row-reverse;
  }

  .company-profile {
    width: 244px;
    padding: 12px 0 16px 24px;
    box-sizing: border-box;
    font-size: 1.4rem;
  }

  .company-profile .about {
    flex-basis: 90px;
  }

  .company-profile .commentary {
    flex-basis: 74px;
  }

  .company-ratios {
    flex-grow: 1;
  }

  #top-ratios {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .company-profile {
    width: 33%;
    max-width: 650px;
    padding: 24px 16px 16px 48px;
    font-size: 1.5rem;
  }

  .company-profile .about {
    flex-basis: 72px;
  }

  .company-profile .commentary {
    flex-basis: 68px;
  }

  #top-ratios li {
    padding: 12px;
  }
}

.company-ratios {
  margin-top: 24px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 24px 16px;

  font-size: 1.5rem;
}

/* Pros & Cons */
#analysis ul {
  color: var(--ink-700);
}

#analysis ul li {
  margin-bottom: 4px;
}

#analysis ul li:last-child {
  margin-bottom: 0;
}

#analysis .pros,
#analysis .cons {
  padding: 8px 16px 0;
  border-radius: 8px;
}

.pros {
  border: 2px solid var(--pros);
}

.cons {
  border: 2px solid var(--cons);
}

@media (max-width: 450px) {
  .pros {
    margin-bottom: 20px;
  }
}

/* company documents */
.documents {
  max-width: 425px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
}

/* Features */
.feature {
  text-align: center;
  padding: 2.5rem;
}

.feature a {
  color: inherit;
}

.feature img {
  height: 100px;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.feature .title {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Ranges Tables */
.ranges-table {
  max-width: 325px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  line-height: 1;
  box-sizing: border-box;
}

.ranges-table th {
  padding: 0 0 4px;
  border: none;
  text-align: left;
  font-size: 1.6rem;
  color: var(--ink-900);
}

.ranges-table td {
  text-align: right;
  padding: 4px 0;
  font-weight: 500;
  border: none;
  font-feature-settings: "tnum" on;
}

.ranges-table tr td:first-child {
  text-align: left;
  color: var(--ink-700);
  font-weight: 400;
}

/* Dropdowns */
.dropdown-typeahead,
.dropdown-menu,
.dropdown-filter {
  position: relative;
}

.dropdown-content {
  /* Position it right below the trigger element */
  position: absolute;
  top: 100%;
  /* use left: 0 or right: 0 as needed */

  z-index: var(--z-dropdown);

  /* hide by default */
  visibility: hidden;
  opacity: 0;
  transform: translateY(17px);

  /* looks */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
  background: var(--base);
  color: var(--ink-900);
  padding: 8px 0;
  margin: 0;
}

.dropdown-content.visible,
.dropdown-filter.open .dropdown-content,
.dropdown-menu.open .dropdown-content {
  transition:
    transform 0.27s ease,
    opacity 0.27s ease,
    visibility 0.27s ease;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content hr {
  height: 1px;
  margin: 2px 0;
  padding: 0;
}

.dropdown-content > *:not(.no-hover) {
  margin: 0;
  padding: 4px 16px;
  cursor: pointer;
}

.dropdown-content > *:hover:not(.active):not(.no-hover) {
  background-color: var(--stripes);
  color: var(--link-hover);
}

ul.dropdown-content {
  list-style: none;
}

.dropdown-content:empty {
  display: none;
}

.dropdown-content-up {
  top: auto;
  bottom: calc(100% + 8px);
}

/* Typeahead menus */
.dropdown-typeahead .dropdown-content {
  font-size: 1.4rem;
}

.dropdown-typeahead .dropdown-content li.active {
  background-color: var(--button-primary);
  color: var(--white);
}

/* Filter Dropdown */
.dropdown-filter .dropdown-content {
  max-height: 250px;
  overflow: auto;
}

.industry-filter-menu {
  left: 0;
  max-width: calc(100vw - 32px);
  padding-top: 0;
  width: 225px;
}

.industry-filter-menu [data-idx="all"] {
  border-bottom: 1px solid var(--border-color);
}

.dropdown-filter .dropdown-content li {
  cursor: default;
}

.dropdown-filter .dropdown-content label {
  cursor: default;
  display: flex;
  align-items: baseline;
}

.dropdown-filter .dropdown-content input,
.dropdown-filter .dropdown-content label {
  margin: 0;
}

/* Dropdown menus */
.dropdown-menu .dropdown-content {
  min-width: 100%;
  /* overwrite as needed */
  width: 200px;
}

.dropdown-menu .dropdown-content a {
  color: var(--ink-900);
}

.dropdown-menu .dropdown-content i {
  color: var(--link);
  margin-right: 12px;
}

.dropdown-menu ul.dropdown-content > li {
  padding: 0;
}

.dropdown-menu ul.dropdown-content > li > a {
  padding: 4px 16px;
  display: block;
}

/* nav dropdowns rendered in modals */
.show-in-modal .modal-content .dropdown-content {
  top: unset;
  visibility: visible;
  opacity: 1;
  min-width: 100%;
  position: relative;
  transform: none;
}

.show-in-modal .modal-content .dropdown-content hr {
  margin: 2px 0;
}

/* Dragable menu */
ul li.draggable-row.dragged-upon {
  border: 1px dashed var(--ink-900);
}

ul li.draggable-row i {
  color: var(--ink-700);
}

ul li.draggable-row .icon-drag {
  visibility: hidden;
}

ul li.draggable-row:hover .icon-drag {
  visibility: visible;
}

ul li.draggable-row {
  box-sizing: border-box;
  cursor: grab;
  background-color: var(--stripes);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  padding: 6px 7px 6px 1px;
  margin: 3px;
}

/* Modals */
.noScroll {
  overflow: hidden;
}

dialog.modal:not([open]) {
  display: none;
}

dialog.modal::backdrop {
  background: hsla(208, 16%, 16%, 0.4);
}

body.dark dialog.modal::backdrop {
  background: hsla(208, 16%, 6%, 0.6);
}

@media (prefers-color-scheme: dark) {
  body.auto dialog.modal::backdrop {
    background: hsla(208, 16%, 6%, 0.6);
  }
}

dialog.modal {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  position: fixed;
  top: auto;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: var(--z-modal);

  border: 0;
  border-radius: 16px 16px 0 0;
  padding: 0;
  margin: 0;

  background: var(--base);
  box-shadow: 0 22px 20px 0 hsla(0, 0%, 0%, 0.16);
  color: var(--ink-900);

  height: auto;
  width: 100%;
  /* override default max-width of dialog in browser */
  max-width: 100%;
  /* use common max-height for all browsers taken from chrome */
  max-height: calc((100% - 6px) - 2em);

  /* on mobiles, let the children overflow */
  /* on desktops, control overflow in modal-body */
  overflow: auto;
}

.modal-header .modal-title {
  font-weight: 500;
  font-size: 2rem;
}

.modal-content {
  --modal-horizontal-padding: 16px;
  --modal-vertical-padding: 16px;
  padding: var(--modal-vertical-padding) var(--modal-horizontal-padding);
  flex-grow: 1;
  /* visible is the default value of overflow */
  overflow: visible;
}

.modal-content hr {
  margin: var(--modal-vertical-padding)
    calc(-1 * var(--modal-horizontal-padding));
}

.modal-content .sticky {
  /* on mobile we need to provide offset for header too */
  top: 56px;
  z-index: var(--z-sticky-header);
}

.modal-content .sticky-2 {
  /* multiple sticks for scrolling tables with headers */
  top: 90px;
  z-index: var(--z-sticky-header);
}

@media (min-width: 992px) {
  dialog.modal {
    position: fixed;
    top: 72px;

    border-radius: 16px;

    height: calc(100% - 144px);
    width: calc(100% - 144px);
    margin: 0 auto;

    max-width: 852px;
    padding: 0;
    overflow: hidden;
  }

  dialog.modal.small {
    top: unset;
    bottom: 50%;
    height: unset;
    max-width: 500px;
    border-radius: 8px;
  }

  .modal-body {
    overflow: auto;
  }

  .modal-header .modal-title {
    font-size: 2.4rem;
  }

  .modal-content .sticky {
    /* height of the modal header */
    top: 62px;
  }

  dialog.modal.modal-right {
    top: 0px;
    height: 100%;
    border-radius: 0;
    max-height: unset;
    left: unset;
    right: 0;
    width: 100%;
    max-width: 460px;
    margin: 0;
    animation: slide-in 0.5s forwards;
  }

  dialog.modal.modal-bottom {
    top: unset;
    bottom: 0;
    height: 85vh;
    border-radius: 24px 24px 0 0;
    max-height: unset;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: slide-up 0.5s forwards;
  }

  .modal-right .modal-body,
  .modal-bottom .modal-body {
    flex-grow: 1;
  }

  @keyframes slide-in {
    0% {
      transform: translateX(100%);
    }

    100% {
      transform: translateX(0%);
    }
  }

  @keyframes slide-up {
    0% {
      transform: translateY(100%);
    }

    100% {
      transform: translateY(0%);
    }
  }
}

.modal-body {
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-header,
.modal-content {
  background: var(--base);
}

.modal-header {
  padding: 12px 16px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: var(--z-sub-nav);
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
  width: 100%;
}

.modal .form-actions {
  position: sticky;

  margin: 16px calc(-1 * var(--modal-horizontal-padding))
    calc(-1 * var(--modal-vertical-padding));
  padding: var(--modal-vertical-padding) var(--modal-horizontal-padding);

  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--base);
  border-top: 1px solid var(--partition);
}

.modal-header button {
  margin-top: 0;
  border: none;
  background: none;
  color: var(--ink-900);
  padding: 0;
  outline: none;
}

/* Callouts */
ul.messages {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.messages li {
  margin: 0;
  border-radius: 0;
}

@media (min-width: 992px) {
  ul.messages {
    margin-bottom: 16px;
  }

  ul.messages li {
    border-radius: 8px;
  }
}

.callout,
ul.messages li {
  padding: 16px 32px;
  border: 1px solid;
}

.callout {
  border-radius: 6px;
}

.callout.success,
ul.messages .success,
ul.messages .info {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--ink-900);
}

.callout.error,
.callout.warning,
ul.messages .error,
ul.messages .warning {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--ink-900);
}

/* Visual cue for additions on page */
.highlight {
  animation: highlight 700ms ease-out;
}

/* avoid chrome paint glitches on animated table cells */
.data-table th.highlight,
.data-table td.highlight {
  animation-name: table-cell-highlight;
}

@keyframes highlight {
  0% {
    background-color: hsla(78, 100%, 88%, 0.95);
  }
  45% {
    background-color: hsla(78, 100%, 90%, 0.35);
  }
  100% {
    background-color: hsla(78, 100%, 90%, 0);
  }
}

@keyframes table-cell-highlight {
  0% {
    box-shadow: inset 0 0 0 9999px hsla(78, 100%, 88%, 0.95);
  }
  45% {
    box-shadow: inset 0 0 0 9999px hsla(78, 100%, 90%, 0.35);
  }
  100% {
    box-shadow: inset 0 0 0 9999px transparent;
  }
}

@keyframes attention-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

.highlight-click {
  outline: 3px solid #ff9800;
  outline-offset: 2px;
  animation: attention-pulse 1s ease-in-out 0s 5;
}

.loading {
  height: 3px;
  width: 100%;
}

.loading:before {
  content: "";
  display: block;
  background-color: var(--link-icons);
  height: 3px;
  width: 0;
  animation: loadingBar 30s ease-in infinite;
}

@keyframes loadingBar {
  5% {
    width: 14%;
  }

  10% {
    width: 28%;
  }

  25% {
    width: 56%;
  }

  100% {
    width: 80%;
  }
}

.fade-out {
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s 0.5s,
    opacity 0.5s linear,
    transform 0.5s ease-out;
  transform: translateY(-8px);
}

/* Grid boxes */
.grid-boxes {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .grid-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .grid-boxes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.grid-boxes .box {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  background: var(--base);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 180ms ease;
}

.grid-boxes .box:hover {
  border-color: var(--link);
}

.grid-boxes .box-header {
  min-height: 64px;
}

.grid-boxes .box-title {
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-boxes .box-chart {
  height: 62px;
  margin-top: 6px;
}

.box-sparkline-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lines);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 80ms ease;
  z-index: var(--z-sticky);
}

.box-sparkline-hover-label {
  position: absolute;
  top: 1px;
  transform: translateX(-50%);
  font-size: 1.1rem;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink-700);
  background: hsla(var(--base-hsl), 0.92);
  padding: 1px 4px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 80ms ease;
  z-index: var(--z-tooltip);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .grid-boxes .box {
    padding: 14px;
  }

  .grid-boxes .box-header {
    min-height: 58px;
  }

  .grid-boxes .box-chart {
    height: 56px;
  }
}

/* Company notes */
#user-company-notes {
  position: fixed;
  bottom: 0;
  right: 20px;
  max-width: 350px;
}

/* Chart Area */
canvas {
  max-width: 100%;
}

#chart-area {
  position: relative;
  top: 0;
  left: 0;
}

/* Period return: the last item in the period buttons (see chart.js), with
   the % on the same line as the period labels. Under .options to win over its
   button reset (border: 0), yet lose to the later .hidden-if-empty. */
.options .chart-return {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-left: 1px solid var(--button-border);
}

/* Phones have no room beside the buttons: a full-width row below them */
@media (max-width: 576px) {
  .options .chart-return {
    flex-basis: 100%;
    padding: 8px 12px;
    border-left: 0;
    border-top: 1px solid var(--button-border);
  }
}

/* Range dragged across the price chart (see chart.js) */
#chart-selection {
  position: absolute;
  background: var(--chart-price);
  opacity: 0.12;
  pointer-events: none;
}

#chart-crosshair {
  position: absolute;
  width: 1px;
  height: 315px;
  background: var(--ink-900);
  opacity: 0.2;
  pointer-events: none;
}

#chart-tooltip {
  position: absolute;
  background-color: var(--base);
  padding: 8px 14px;
  top: 10px;
  left: 45px;
  pointer-events: none;

  border: 1.5px solid var(--border-color);
  box-shadow: 0 7px 5px -8px rgba(0, 0, 0, 0.24);
  border-radius: 8px;
}

/* Tooltip and crosshair, hidden while not hovered (see chart.js). The latest
   values are atop the page; opacity keeps the space, so the plot doesn't shift */
#chart-info {
  transition: opacity 0.15s;
}

#chart-info.resting {
  opacity: 0;
}

/* Columns of label over value, wrapping to more lines when out of width */
.label-value-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  /* Same-width digits, so values don't shift while hovering across dates */
  font-feature-settings: "tnum" on;
  /* Own width even when positioned near an edge, but never wider than the parent */
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Each column is 34px: a 10px label over a 12px value. Fixed line heights keep
   columns level, leaving smaller values more room under their label. */
.label-value-columns .label {
  font-size: 1rem;
  line-height: 14px;
}

.label-value-columns .value {
  font-size: 1.2rem;
  line-height: 20px;
}

/* The headline column (e.g. date and price): larger, set apart */
.label-value-columns .headline {
  margin-right: 8px;
}

.label-value-columns .headline .value {
  font-size: 1.4rem;
  font-weight: 600;
}

.chart-label {
  color: #8c8c8c;
  font-size: 1.3rem;
  line-height: 1;
  width: 14px;
  word-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

#chart-label-left {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
}

#chart-label-right {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(90deg);
}

#chart-legend {
  text-align: center;
}

/* Sidebar panels */
.sidebar-panel .title {
  text-transform: unset;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  font-weight: 500;
  padding-bottom: 16px;
  font-size: 1.6rem;
}

.sidebar-panel .content {
  background: var(--base);
  border-radius: 8px;
  padding: 16px;
}

/* Change List */
.change-list #toolbar-wrapper {
  margin-bottom: 0;

  display: flex;
  align-items: flex-start;
}

.change-list nav {
  position: unset;
  z-index: unset;
}

.card.change-list #toolbar-wrapper {
  margin: calc(-1 * var(--card-padding));
  margin-bottom: 0;
  padding: 12px;

  border-bottom: 1px solid var(--border-color);
  background: var(--stripes-light);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.change-list #toolbar {
  font-size: 1.4rem;
  flex-grow: 1;
}

.card.change-list #toolbar {
  background: var(--stripes-light);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

#changelist-search > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#changelist-search > div label {
  margin: 0;
  margin-right: -27px;
  z-index: var(--z-sticky);
  padding-left: 12px;
  line-height: 1;
}

#changelist-search > div #searchbar {
  font-size: 1.4rem;
  line-height: 17px;
  padding: 7px 12px;
  padding-left: 36px;
  border-width: 1px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;

  width: 110px;
  flex-grow: 1;
}

.card #changelist-search > div #searchbar {
  max-width: 450px;
}

@media (min-width: 768px) {
  .no-card #changelist-search > div #searchbar {
    width: 200px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

#changelist-search > div input[type="submit"] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

.change-list #toolbar-wrapper input[type="submit"],
.change-list #toolbar-wrapper button {
  font-size: 1.2rem;
  margin-right: 4px;
  padding: 8px 12px;
}

@media (min-width: 768px) {
  .no-card.change-list #toolbar-wrapper input[type="submit"],
  .no-card.change-list #toolbar-wrapper button {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.change-list #toolbar .quiet {
  margin: 4px;
}

.change-list .toplinks {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  list-style: none;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.card.change-list .toplinks {
  margin: 0 var(--card-margin);
  background: var(--bg-light-blue);
  padding: 6px 32px 6px 16px;
}

.change-list .toplinks .date-back a {
  color: var(--ink-700);
}

.change-list .toplinks li {
  margin: 6px 0 6px 12px;
}

.change-list br.clear {
  display: none;
}

.change-list table#result_list .sortremove,
.change-list table#result_list .sortpriority {
  display: none;
}

.change-list table#result_list {
  border-collapse: collapse;
}

.change-list-filter {
  font-size: 1.5rem;
}

.change-list-filter + .change-list-filter {
  margin-top: 16px;
}

.change-list-filter summary {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  font-size: 1.4rem;
  font-weight: 500;
  list-style: none;
}

.change-list-filter summary::-webkit-details-marker {
  display: none;
}

.change-list-filter summary::after {
  color: var(--ink-600);
  content: "\E81B";
  font-family: "fontello", sans-serif;
}

.change-list-filter details[open] summary::after {
  color: var(--ink-600);
  content: "\E836";
  font-family: "fontello", sans-serif;
}

.change-list-filter details ul {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 0px;
  margin: 0px;
  list-style: none;
}

.change-list-filter .filter-options {
  border: 0;
  border-radius: 0;
  max-height: 182px;
  overflow: auto;
  padding: 0 0 8px;
}

.change-list-filter details ul li {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.change-list-filter li a,
.change-list-filter li form {
  display: block;
  color: var(--ink-700);
  padding: 8px 16px;
  line-height: 1;
}

.change-list-filter li a {
  padding: 5px 16px;
  line-height: 1.4;
}

.change-list-filter li.selected a {
  color: var(--link);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--stripes);
}

.change-list-filter li.selected form {
  background: var(--stripes);
}

.change-list-filter li.selected a::after,
.change-list-filter li.selected form::after {
  content: "\E823";
  font-family: "fontello", sans-serif;
  color: var(--link);
}

/* paginator rendered by change list */
.paginator {
  font-size: 1.4rem;
  color: var(--ink-700);
}

.paginator a {
  padding: 2px 6px;
  background: var(--bg-light-blue);
}

.paginator .this-page {
  padding: 2px 6px;
  font-weight: 500;
  color: var(--ink-900);
}

.paginator .end {
  margin-right: 8px;
}

/* our pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 36px;
}

.pagination:empty {
  display: none;
}

/* feed */
.dropdown-watchlist > button {
  background: none;
  border: none;
  padding: 0;
  text-transform: none;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
  color: var(--ink-900);
}

.dropdown-watchlist > .dropdown-content {
  border-radius: 8px;
  border: none;
  padding: 8px;
}

.dropdown-watchlist > .dropdown-content > li {
  border-radius: 8px;
}

.dropdown-watchlist > ul.dropdown-content > li > * {
  padding: 8px 16px;
  border-radius: 8px;
}

@media (min-width: 576px) {
  .dropdown-watchlist > button {
    font-size: 2rem;
  }
}

.news-item-section-title {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-600);
  margin: 10px 0 0;
}

.news-item {
  padding: 12px 0;
  margin: 0;
  overflow-wrap: break-word;
}

.news-item + .news-item {
  border-top: 1px solid var(--border-color);
}

@media (min-width: 576px) {
  .news-item-section-title {
    margin: 20px 0 12px;
  }

  .news-item {
    background: var(--base);
    padding: 16px;
    border: none;
    border-radius: 8px;
    margin-top: 8px;
  }
}

/* Guides */
figcaption {
  font-size: 1.2rem;
  color: var(--ink-600);
  text-align: center;
}

.example {
  padding: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

.grid-example .column,
.grid-example .columns {
  background: hsl(0, 0%, 97%);
  border: 1px solid white;
  border-radius: 3px;
  padding: 5px 10px;
  margin-bottom: 2rem;
}

.markdown h2 {
  margin-top: 5rem;
}

.markdown h3 {
  margin-top: 3rem;
}

#pricing-faq p {
  margin-bottom: 1.5rem;
}

/* Layering */
.layer-holder {
  position: relative;
}

.layer {
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  top: 0;
  left: 0;
}

/* wiki */
ins {
  text-decoration: none;
}

.inserts {
  background: var(--inserts-bg);
  color: var(--inserts-text);
}

.deletes {
  background: var(--deletes-bg);
  color: var(--deletes-text);
}

/* trix editor night mode */
body.dark .trix-button {
  filter: invert(0.5) brightness(2);
}

@media (prefers-color-scheme: dark) {
  body.auto .trix-button {
    filter: invert(0.5) brightness(2);
  }
}

body trix-editor {
  border: 1.5px solid var(--border-color);
  background-color: var(--button-background);
}

trix-editor:focus {
  border: 1.5px solid var(--link);
}

body trix-toolbar .trix-button.trix-active {
  background-color: var(--button-background);
  filter: none;
}

/* Devices */

label.hidden,
.hidden {
  display: none;
}

.show-hidden .hidden {
  display: unset;
}

/* The inverse of .hidden: hidden when the parent shows its .hidden parts */
.show-hidden .hide-if-show-hidden {
  display: none;
}

.hidden-if-empty:empty {
  display: none;
}

.invisible {
  visibility: hidden;
}

.opacity-45 {
  opacity: 0.45;
}

.opacity-67 {
  opacity: 0.67;
}

.opacity-90 {
  opacity: 0.9;
}

@media (min-width: 576px) {
  .show-on-mobile {
    display: none;
  }
}

@media (max-width: 576px) {
  .hide-on-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .hide-from-tablet {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .show-from-tablet {
    display: none;
  }
}

@media (min-width: 992px) {
  .hide-from-tablet-landscape {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .show-from-tablet-landscape {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hide-from-desktop {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .show-from-desktop {
    display: none;
  }
}

/* sizes 
* mobile: 576px
* tablet: 768px
* table-landscape: 992px
* desktop: 1200px
* hd: 1400px
*/

/*folder tabs*/
.folder-tabs + .card {
  border: 2px solid var(--link);
}

.folder-tabs {
  display: flex;
  margin: 0 4px;
  overflow-x: auto;
  margin-left: calc(-1 * var(--container-padding));
  margin-right: calc(-1 * var(--container-padding));
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.folder-tabs .tab {
  flex-grow: 1;
  max-width: min-content;
  line-height: 1;
  margin: 0 12px;
  border: none;
  border-top: 2px solid var(--link);
  border-radius: 6px 6px 0 0;
  position: relative;
  background: var(--base);
}

.folder-tabs .tab span {
  display: block;
  position: relative;
  padding: 12px 6px;
  white-space: nowrap;
  z-index: var(--z-sticky);
}

.folder-tabs .tab.active-tab {
  z-index: var(--z-tab-active) !important;
  background: var(--link);
}

.folder-tabs .tab span [class^="icon-"]:before {
  margin-left: 0;
}

.folder-tabs .tab.active-tab:before,
.folder-tabs .tab.active-tab:after {
  background: var(--link);
}

.folder-tabs .tab:before,
.folder-tabs .tab:after {
  background: var(--base);
  border-top: 2px solid var(--link);
  content: "";
  height: 100%;
  position: absolute;
  top: -2px;
  width: 26px;
}

.folder-tabs .tab:before {
  border-left: 2px solid var(--link);
  border-radius: 8px 0 0 0;
  transform: skew(-25deg);
  left: -16px;
}

.folder-tabs .tab:after {
  right: -16px;
  transform: skew(25deg);
  border-radius: 0 8px 0 0;
  border-right: 2px solid var(--link);
}

.folder-tabs .tab.active-tab {
  color: var(--base);
}

.avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  font-size: 0.8em;
  border-radius: 50%;
}

.llm-response ul,
.llm-response ol {
  font-size: unset;
}

.screener-ai-logo {
  border-radius: 16px;
  padding: 6px 13px 6px 11px;
  pointer-events: none;
  background: linear-gradient(
    219deg,
    hsl(229.29deg 100% 97.65%) 0%,
    hsl(244.95deg 100% 89.61%) 100%
  );
  color: var(--black);
}

/* Stocks AI chat */
.ai-chat {
  max-width: 1000px;
  margin: 0 auto;
}

.ai-chat > .bg-blur {
  top: auto;
  bottom: 60px;
}

.chat-input {
  min-height: auto;
  max-height: min(40vh, 220px);
  padding: 12px 56px 56px 16px;
  overflow-y: auto;
  border-radius: 20px;
  resize: none;
}

.chat-avatar {
  margin-top: 6px;
}

.chat-message {
  min-width: 0;
  padding: 12px 16px 16px;
}

/* Compact source link placed after a claim, e.g. "p. 6".
   Not .tag, as its background is barely visible on the chat card. */
.citation-chip {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--bg-light-blue);
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1.6;
  vertical-align: 0.1em;
}

.citation-chip:hover {
  background: var(--link);
  color: var(--base);
}

.prompt-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .prompt-buttons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards only; nested controls such as a saved prompt's delete stay plain. */
.prompt-buttons > div > button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  text-align: left;
  text-transform: none;
  white-space: normal;
  outline: 6px solid var(--base);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--base);
  color: var(--link);
  font-size: inherit;
  font-weight: 350;
  line-height: 1.4;
  letter-spacing: normal;
  font-feature-settings: "cpsp" off;
}

/* An action, not a question: no fill or ring, so it stands apart from the cards. */
.prompt-buttons > div > button.prompt-add {
  justify-content: center;
  outline: none;
  border: 1px dashed var(--link-mute);
  background: transparent;
}

.ai-chat details {
  padding: 12px;
  margin: 12px 0;
}

.ai-chat details[open] summary .icon-down::before {
  transform: rotate(180deg);
}

.shining {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    120deg,
    var(--ink-900),
    var(--ink-900) 40%,
    var(--base),
    var(--ink-900) 60%,
    var(--ink-900)
  );
  background-size: 400%;
  background-clip: text;
  animation: ai-shine 3s linear infinite;
}

@keyframes ai-shine {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.loading-text::after {
  content: "";
  display: inline-block;
  width: 1ch;
  animation: ai-ellipsis steps(4, end) 1s infinite;
}

@keyframes ai-ellipsis {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

/* Keep messages scrolling above the fixed chat composer. */
dialog.modal:has(#ai-chat) .modal-content {
  display: flex;
  flex-direction: column;
}

dialog.modal:has(#ai-chat) .modal-body {
  overflow: hidden;
}


/* persistent-messages */
.persistent-messages:has(.show-on-company-page) {
  display: none;
}

.tool-header {
  border-radius: 12px 12px 0 0;
  background: var(--bg-light-blue);
  width: 80%;
  margin: 0 auto -12px auto;
  padding: 12px 20px;
  max-height: 150px;
  overflow: auto;
}
