/* Pricing v2 operator screens (dark graphite theme, aligned with approved mock). */

.pv2-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 1320px;
  margin-inline: auto;
  padding: 22px 26px 56px;
  overflow-wrap: anywhere;
}

.pv2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pv2-head__title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text, #e7e7e7);
}

.pv2-head__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted, #a3a3a3);
}

.pv2-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pv2-field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pv2-field__label {
  font-size: 11px;
  color: var(--muted, #a3a3a3);
}

.pv2-select,
.pv2-input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line, #373737);
  border-radius: 8px;
  background: var(--panel-raised, #272727);
  color: var(--text, #e7e7e7);
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
}

.pv2-input--narrow,
#settings-pricing input.pv2-input--narrow {
  width: 84px;
  min-width: 84px;
  padding: 0 8px;
}

.pv2-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text, #e7e7e7);
  cursor: pointer;
}

.pv2-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 9px 14px;
  border: 1px solid var(--line-subtle, #2c2c2c);
  border-radius: 10px;
  background: var(--panel, #202020);
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-strip:empty {
  display: none;
}

.pv2-strip__meta,
.pv2-strip__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

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

.pv2-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-subtle, #2c2c2c);
  border-radius: 12px;
  background: var(--panel, #202020);
  min-width: 0;
}

.pv2-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-subtle, #2c2c2c);
}

.pv2-card > :not(.pv2-card__head, .pv2-table-scroll, .pv2-note) {
  margin: 12px 18px;
}

.pv2-card > .pv2-note {
  padding: 11px 18px;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--line-subtle, #2c2c2c);
}

.pv2-card__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text, #e7e7e7);
}

.pv2-card__sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
}

.pv2-kpi-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}

.pv2-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-subtle, #2c2c2c);
  border-radius: 9px;
  background: var(--panel-raised, #272727);
  min-width: 0;
}

.pv2-kpi__label {
  font-size: 11.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-kpi__value {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text, #e7e7e7);
}

.pv2-kpi__sub {
  font-size: 11.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-metric {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.pv2-tone--success {
  color: var(--success, #a1d2b2);
}

.pv2-tone--danger {
  color: var(--danger, #edaaaa);
}

.pv2-tag {
  color: var(--muted, #a3a3a3);
  font-size: 11.5px;
  font-weight: 400;
}

.pv2-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line, #373737);
  background: var(--panel-raised, #272727);
  color: var(--text, #e7e7e7);
  white-space: nowrap;
}

.pv2-col-written .pv2-badge {
  max-width: 100%;
  white-space: normal;
}

.pv2-badge--success {
  border-color: rgba(161, 210, 178, 0.4);
  background: rgba(161, 210, 178, 0.12);
  color: var(--success, #a1d2b2);
}

.pv2-badge--warning {
  border-color: rgba(221, 194, 143, 0.4);
  background: rgba(221, 194, 143, 0.12);
  color: var(--warning, #ddc28f);
}

.pv2-badge--danger {
  border-color: rgba(237, 170, 170, 0.45);
  background: rgba(237, 170, 170, 0.14);
  color: var(--danger, #edaaaa);
}

.pv2-badge--info {
  border-color: rgba(159, 185, 232, 0.4);
  background: rgba(159, 185, 232, 0.12);
  color: var(--info, #9fb9e8);
}

.pv2-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pv2-table-scroll--sticky-header {
  max-height: min(58vh, 36rem);
  overflow: auto;
}

.pv2-table-scroll--sticky-header th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--panel);
  box-shadow: 0 1px var(--line);
}

.pv2-canary-form {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.pv2-canary-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
}

.pv2-canary-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.5rem 1rem;
  inline-size: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pv2-canary-fields legend {
  margin-block-end: 0.5rem;
  padding: 0;
}

.pv2-canary-fields label {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.25rem;
  min-inline-size: 0;
}

.pv2-canary-fields .pv2-canary-option {
  display: inline-flex;
  align-self: end;
}

.pv2-canary-form + .pv2-table-scroll {
  margin-block-start: 0.5rem;
}

.pv2-table-details summary {
  cursor: pointer;
}

.pv2-table-details ul {
  margin: 4px 0 0;
  padding-inline-start: 16px;
}

.pv2-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pv2-table th,
.pv2-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle, #2c2c2c);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.pv2-card .pv2-table th,
.pv2-card .pv2-table td {
  padding: 8px 12px;
}

#pricing-item-panel .side-panel__sheet {
  width: min(820px, 100vw);
}

#pricing-item-panel .side-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-block-end: 12px;
}

#pricing-item-panel .side-panel__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

#pricing-item-panel .side-panel__actions {
  flex: 0 0 auto;
}

#pricing-item-panel .pv2-item-cell {
  min-width: 0;
}

#pricing-item-panel .side-panel__title h2,
#pricing-item-panel .side-panel__title p {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pv2-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted, #a3a3a3);
  white-space: nowrap;
}

.pv2-table tbody th {
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.pv2-table th.pv2-num,
.pv2-table td.pv2-num {
  text-align: right;
}

.pv2-table td.pv2-num,
.pv2-table td.pv2-mono,
.pv2-table tbody td:first-child,
.pv2-table .pv2-link,
.pv2-table .button,
.pv2-table .pv2-badge {
  white-space: nowrap;
}

.pv2-table td.pv2-num .pv2-metric {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.pv2-partner-key {
  min-width: 9rem;
  max-width: 10.5rem;
}

.pv2-partner-key > * {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-table--clickable tbody tr {
  cursor: pointer;
}

.pv2-table--clickable tbody tr:hover,
.pv2-table--clickable tbody tr.is-selected {
  background: var(--panel-raised, #272727);
}

.pv2-row--muted {
  opacity: 0.72;
}

.pv2-mono {
  font-variant-numeric: tabular-nums;
}

.pv2-muted-small {
  font-size: 11.5px;
  color: var(--muted, #a3a3a3);
  margin-top: 2px;
}

.pv2-muted-inline {
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-muted-line {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-warn-line,
.pv2-warn-small {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--warning, #ddc28f);
}

.pv2-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel-raised, #272727);
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-empty {
  margin: 0;
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted, #a3a3a3);
}

.pv2-unavailable,
.pv2-not-wired {
  padding: 14px 16px;
  border: 1px dashed var(--line, #373737);
  border-radius: 10px;
  background: #1b1b1b;
}

.pv2-unavailable__title,
.pv2-not-wired__title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #e7e7e7);
}

.pv2-unavailable__body,
.pv2-not-wired__body {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-not-wired__route {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel-raised, #272727);
  font-size: 11.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-kv {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 12.5px;
}

.pv2-kv dt {
  color: var(--muted, #a3a3a3);
}

.pv2-kv dd {
  margin: 0;
  color: var(--text, #e7e7e7);
  word-break: break-word;
}

#settings-pricing .pv2-quote-config .pv2-kv {
  grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
  overflow-wrap: anywhere;
}

.pv2-quote-settings-details > summary {
  padding: 6px 0;
  cursor: pointer;
}

.pv2-quote-settings-details[open] > summary {
  margin-bottom: 8px;
}

.pv2-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pv2-item-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pv2-item-cell__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pv2-item-thumb {
  width: 34px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--panel-raised, #272727);
  flex-shrink: 0;
}

.pv2-item-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted, #a3a3a3);
  border: 1px solid var(--line, #373737);
}

.pv2-state-strip,
.pv2-conn-tabs,
.pv2-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pv2-state-strip__label,
.pv2-preset-bar__label {
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line, #373737);
  border-radius: 8px;
  background: var(--panel, #202020);
  color: var(--text, #e7e7e7);
  font-size: 12px;
  cursor: pointer;
}

.pv2-state-chip.is-active {
  border-color: var(--info, #9fb9e8);
  background: var(--panel-raised, #272727);
}

.pv2-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pv2-pager__buttons {
  display: flex;
  gap: 8px;
}

.pv2-sparkline {
  display: block;
}

.pv2-sparkline__line {
  fill: none;
  stroke: var(--info, #9fb9e8);
  stroke-width: 1.6;
}

.pv2-sparkline__dot {
  fill: var(--info, #9fb9e8);
}

.pv2-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pv2-chart-axis {
  stroke: var(--line, #373737);
  stroke-width: 1;
}

.pv2-chart-bar {
  fill: rgba(161, 210, 178, 0.72);
}

.pv2-chart-bar--info {
  fill: rgba(159, 185, 232, 0.72);
}

.pv2-chart-bar--danger {
  fill: rgba(237, 170, 170, 0.75);
}

.pv2-chart-line {
  fill: none;
  stroke-width: 2;
}

.pv2-chart-line--success {
  stroke: var(--success, #a1d2b2);
}

.pv2-chart-line--info {
  stroke: var(--info, #9fb9e8);
}

.pv2-chart-line--warning {
  stroke: var(--warning, #ddc28f);
}

.pv2-chart-line--danger {
  stroke: var(--danger, #edaaaa);
}

.pv2-chart-line--muted {
  stroke: var(--muted, #a3a3a3);
}

.pv2-chart-dot--success {
  fill: var(--success, #a1d2b2);
}

.pv2-chart-dot--info {
  fill: var(--info, #9fb9e8);
}

.pv2-chart-dot--warning {
  fill: var(--warning, #ddc28f);
}

.pv2-chart-dot--danger {
  fill: var(--danger, #edaaaa);
}

.pv2-chart-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv2-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11.5px;
  color: var(--muted, #a3a3a3);
}

.pv2-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pv2-chart-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pv2-chart-legend__swatch--info {
  background: var(--info, #9fb9e8);
}

.pv2-chart-legend__swatch--success {
  background: var(--success, #a1d2b2);
}

.pv2-chart-legend__swatch--warning {
  background: var(--warning, #ddc28f);
}

.pv2-chart-legend__swatch--danger {
  background: var(--danger, #edaaaa);
}

.pv2-chart-label,
.pv2-chart-value {
  fill: var(--muted, #a3a3a3);
  font-size: 10px;
}

.pv2-settings-form,
.pv2-band-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv2-band-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.pv2-band-form--add {
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle, #2c2c2c);
}

.pv2-setting-group {
  margin: 0;
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line-subtle, #2c2c2c);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv2-setting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-subtle, #2c2c2c);
}

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

.pv2-setting-row__info {
  flex: 1 1 240px;
  min-width: 0;
}

.pv2-setting-row__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #e7e7e7);
}

.pv2-setting-row__help {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-settings-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

.pv2-settings-notice strong {
  color: var(--text);
}

.pv2-setting-account-value {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.pv2-setting-row__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.pv2-setting-row__control select {
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .pv2-setting-row__info {
    flex-basis: 100%;
  }
}

.pv2-setting-row__unit {
  font-size: 12px;
  color: var(--muted, #a3a3a3);
}

.pv2-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pv2-form-feedback {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(237, 170, 170, 0.45);
  background: rgba(237, 170, 170, 0.1);
  color: var(--danger, #edaaaa);
  font-size: 12.5px;
}

.pv2-conn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv2-conn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-subtle, #2c2c2c);
  border-radius: 9px;
  background: var(--panel-raised, #272727);
}

.pv2-conn-row__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv2-stop-controls,
.pv2-recovery-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pv2-confirm-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(237, 170, 170, 0.45);
  border-radius: 8px;
  background: rgba(237, 170, 170, 0.08);
}

.pv2-confirm-inline__text {
  font-size: 12px;
  color: var(--text, #e7e7e7);
}

.pv2-manual-box {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(221, 194, 143, 0.35);
  border-radius: 9px;
  background: rgba(221, 194, 143, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv2-manual-box__text {
  margin: 0;
  font-size: 12.5px;
  color: var(--warning, #ddc28f);
}

.pv2-panel-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-subtle, #2c2c2c);
}

.pv2-panel-block__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e7e7e7);
}

.pv2-subhead {
  margin: 8px 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #e7e7e7);
}

.pv2-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text, #e7e7e7);
}

.pv2-writer-run-state {
  max-inline-size: 18rem;
}
.pv2-writer-run-state .pv2-run-reason {
  white-space: normal;
}
.pv2-writer-run-detail {
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle, #2c2c2c);
}

.pv2-load-more {
  margin-top: 10px;
}

.pv2-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 900px) {
  .pv2-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv2-kv {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .pv2-view {
    padding: 16px 14px 40px;
  }
  .pv2-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pv2-controls {
    width: 100%;
  }
  .pv2-controls .pv2-field {
    flex: 1 1 140px;
  }
}

.pv2-view > div[id$='-body'] {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.pv2-card > :is(.pv2-chart-svg, .pv2-sales-figure) {
  width: calc(100% - 36px);
}

.pv2-filter-bar {
  padding: 12px 16px;
}

#pv2-items-list-section > .pv2-filter-bar {
  flex-direction: row;
  gap: 10px;
}

#pv2-items-list-section > .pv2-filter-bar > * {
  margin: 0;
}

#pv2-items-list-section:not([hidden]) {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pv2-items-list > #pv2-items-body,
.pv2-items-list > .pv2-pager {
  margin: 0;
}

.pv2-items-list > .pv2-pager {
  padding: 10px 16px;
}

#pv2-items-body > .pv2-empty {
  padding-inline: 16px;
}

.pv2-link {
  color: var(--text);
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pv2-link[aria-pressed='true'] {
  color: var(--info, #9fb9e8);
}

.pv2-item-name {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.pv2-item-name:hover {
  text-decoration: underline;
}

.pv2-cell-sub {
  display: block;
}

.pv2-stop-notice {
  color: var(--warning, #ddc28f);
}

.pv2-items-table {
  width: 100%;
  table-layout: auto;
}

.pv2-items-table :is(th, td) {
  white-space: nowrap;
}

.pv2-items-table :is(th, td):not(.pv2-col-item) {
  width: 1%;
}

.pv2-items-table .pv2-col-item {
  min-width: 18rem;
}

@media (max-width: 640px) {
  .pv2-items-table :is(th, td).pv2-col-item {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    width: 9rem;
    min-width: 9rem;
    max-width: 9rem;
    color: var(--text);
    background: var(--panel);
    box-shadow: 1px 0 var(--line);
  }

  .pv2-items-table thead th.pv2-col-item {
    z-index: 2;
  }

  .pv2-items-table .pv2-col-item .pv2-item-thumb {
    display: none;
  }

  .pv2-items-table .pv2-col-item .pv2-item-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.pv2-items-table .pv2-item-cell__copy {
  flex: 1;
  min-width: 0;
  contain: inline-size;
}

.pv2-items-table .pv2-item-name {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.pv2-items-summary tbody th {
  font-size: inherit;
  color: var(--text);
}

.pv2-column-options {
  position: relative;
  align-self: end;
  font-size: 12.5px;
}

.pv2-column-options summary {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.pv2-column-options__list {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto auto;
  display: grid;
  gap: 6px;
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-raised);
}

.pv2-column-options__list label {
  display: flex;
  align-items: center;
  gap: 6px;
}

#pricing-item-panel:modal,
#pricing-item-panel .side-panel__body {
  overscroll-behavior: contain;
}

#pricing-item-panel .side-panel__body {
  flex: 1 1 0;
}

#pricing-item-panel .pv2-buy-comparison :is(th, td):last-child {
  min-inline-size: 13ch;
  max-inline-size: 30ch;
  white-space: normal;
  overflow-wrap: anywhere;
}

#pricing-item-panel .side-panel__body > [role='tabpanel']:not([hidden]) {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#pricing-item-panel .pv2-panel-block {
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  background: var(--panel);
  padding: 12px 14px;
  min-width: 0;
}

.pv2-trace {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pv2-trace summary {
  cursor: pointer;
}

@media (max-width: 520px) {
  .pv2-column-options__list {
    inset-inline: 0 auto;
  }

  .pv2-items-summary td:last-child,
  .pv2-items-summary th:last-child {
    display: none;
  }
}

.pv2-chart-dot.pv2-chart-dot--estimate {
  fill: var(--panel, #202020);
  stroke-width: 2;
  stroke: var(--success, #a1d2b2);
}

.pv2-chart-dot--danger.pv2-chart-dot--estimate {
  stroke: var(--danger, #edaaaa);
}

.pv2-table thead th,
.pv2-items-summary tbody th {
  background: var(--panel);
  letter-spacing: normal;
  text-transform: none;
}

.pv2-items-summary td.pv2-num,
.pv2-items-summary th.pv2-num {
  white-space: nowrap;
}

.pv2-items-table td,
.pv2-items-table th {
  padding-inline: 6px;
  overflow-wrap: normal;
}

.pv2-items-table td:first-child,
.pv2-items-table th:first-child,
.pv2-items-table td:last-child,
.pv2-items-table th:last-child {
  padding-inline: 12px;
}

#pricing-item-panel .pv2-panel-block:has(.pv2-detail-summary) {
  padding: 0;
  gap: 0;
}

#pricing-item-panel .pv2-detail-summary {
  padding: 0 14px 12px;
  grid-template-columns: minmax(100px, 30%) minmax(0, 1fr);
  gap: 14px;
}

#pricing-item-panel .pv2-detail-summary dd {
  overflow-wrap: anywhere;
  word-break: normal;
}

#pricing-item-panel .pv2-panel-block > h3 {
  padding: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

#pricing-item-panel #pv2-item-panel-thumb .pv2-item-thumb {
  width: 64px;
  height: 54px;
}

@media (max-width: 520px) {
  #pricing-item-panel .pv2-detail-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  #pricing-item-panel .pv2-detail-summary dd:not(:last-child) {
    margin-bottom: 9px;
  }

  .pv2-items-summary td,
  .pv2-items-summary th {
    padding: 7px 5px;
    overflow-wrap: normal;
  }
}

.pv2-card .pv2-items-summary tbody th {
  background: var(--panel);
  vertical-align: top;
}

@media (max-width: 520px) {
  .pv2-card .pv2-items-summary td,
  .pv2-card .pv2-items-summary th {
    padding: 7px 6px;
  }

  .pv2-items-summary td.pv2-num,
  .pv2-items-summary th.pv2-num {
    white-space: normal;
  }
}

.pv2-overview-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pv2-overview-stack .pv2-card > .pv2-summary-list,
.pv2-card > .pv2-summary-list {
  margin: 0;
}

.pv2-summary-row {
  display: grid;
  grid-template-columns: minmax(124px, 22%) minmax(0, 1fr);
  gap: 8px 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line-subtle);
  font-size: 13px;
}

.pv2-summary-row dt {
  color: var(--muted);
}

.pv2-summary-row dd {
  margin: 0;
}

.pv2-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.pv2-headline .pv2-metric__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pv2-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

details.pv2-technical {
  display: block;
}

.pv2-technical > summary {
  padding: 13px 18px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .pv2-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

#pv2-items-sections {
  margin-block: 0 1rem;
}

.pv2-source-bars {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv2-source-bars li {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 3fr) auto;
}

.pv2-source-meter {
  min-width: 0;
  width: 100%;
}

.pv2-setting-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

input.pv2-setting-switch[type='checkbox'] {
  appearance: none;
  flex: none;
  width: 2.125rem;
  height: 1.25rem;
  margin: 0;
  border: 1px solid var(--muted);
  border-radius: 1rem;
  background: var(--panel-raised);
  cursor: pointer;
}

.pv2-setting-switch::before {
  content: '';
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  margin: 0.1875rem;
  border-radius: 50%;
  background: var(--text);
}

input.pv2-setting-switch[type='checkbox']:checked {
  background: var(--success);
  border-color: var(--success);
}

.pv2-setting-switch:checked::before {
  margin-inline-start: 1.0625rem;
  background: var(--panel);
}

.pv2-setting-switch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.pv2-setting-row__control input.pv2-input:not(.pv2-setting-amount) {
  width: 6rem;
}

.pv2-setting-row__control .pv2-setting-amount {
  width: 8rem;
}

.pv2-setting-default {
  min-width: 6.75rem;
  color: var(--muted);
  font-size: 12px;
}

.pv2-table-scroll:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: -2px;
}

#trades-table {
  min-width: 56rem;
}

#trades-table :is(th, .trade-origin, .trade-bot__offer, .offer-state) {
  white-space: nowrap;
}

.pv2-view {
  max-width: none;
  gap: 14px;
}

.pv2-head {
  gap: 12px 20px;
  margin-bottom: 4px;
}

.pv2-head__title {
  line-height: 1.25;
}

.pv2-head__sub {
  line-height: 1.45;
}

.pv2-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.pv2-head > :first-child {
  flex: 1 1 22rem;
  min-width: 0;
}

.pv2-page-filters {
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  background: var(--panel);
}

.pv2-page-filters .pv2-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.pv2-page-filters .pv2-select {
  min-width: 0;
  text-overflow: ellipsis;
}

.pv2-strip {
  padding: 10px 14px;
  font-size: 12.5px;
}

.pv2-strip__meta {
  gap: 10px 18px;
}

.pv2-strip__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.pv2-strip__item strong {
  color: var(--text);
  font-weight: 500;
}

.pv2-status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.pv2-status-dot--active {
  background: var(--success);
}

.pv2-status-dot--stopped {
  background: var(--warning);
}

.pv2-calendar-notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1f1f1f;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12.5px;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #434343;
  border-radius: 7px;
  background: #292929;
  color: #dfdfdf;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button--sm {
  min-height: 26px;
  padding-inline: 9px;
  font-size: 12px;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button:hover:not(:disabled) {
  border-color: #5a5a5a;
  background: #333;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button--primary {
  border-color: #e4e4e4;
  background: #e4e4e4;
  color: #181818;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content)
  .button--primary:hover:not(:disabled) {
  border-color: #fff;
  background: #fff;
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content) .button--danger {
  border-color: #5d4141;
  background: #2d2223;
  color: var(--danger);
}

:where(.pv2-view, #pricing-item-panel, #settings-pricing-content)
  .button--danger:hover:not(:disabled) {
  border-color: #7c5252;
  background: #3d2a2c;
}

.pv2-preset-bar .button[aria-pressed='true'] {
  border-color: #6b6b6b;
  background: #363636;
  box-shadow: inset 0 -2px var(--text);
  color: #fff;
}

.pv2-card__sub {
  font-size: 12.5px;
  line-height: 1.45;
}

.pv2-card > .pv2-how-to-read,
.pv2-how-to-read {
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid var(--line-subtle);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pv2-how-to-read strong {
  color: #cfcfcf;
  font-weight: 500;
}

.pv2-tag {
  color: var(--faint, #787878);
  white-space: nowrap;
}

.pv2-table td,
.pv2-table th {
  vertical-align: middle;
  white-space: nowrap;
}

.pv2-table .pv2-attention-copy {
  min-width: 20ch;
  white-space: normal;
}

.pv2-table .pv2-purchase-method {
  min-width: 8ch;
  white-space: normal;
}

.pv2-source-without-cost {
  grid-column: 1 / -1;
}

.pv2-items-table :is(td, th):first-child {
  border-inline-end: 1px solid var(--line-subtle);
}

.pv2-attention-meter {
  display: inline-block;
  width: 50px;
  height: 4px;
  margin-inline-start: 9px;
  vertical-align: middle;
  border-radius: 3px;
  background: #363636;
  text-align: left;
}

.pv2-attention-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--warning);
}

.pv2-technical {
  min-width: 0;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  background: #1c1c1c;
}

.pv2-technical > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  list-style: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.pv2-technical > summary::-webkit-details-marker {
  display: none;
}

.pv2-technical > summary::before {
  flex: none;
  width: 16px;
  color: var(--muted);
  content: '+';
}

.pv2-technical[open] > summary {
  border-bottom: 1px solid var(--line-subtle);
}

.pv2-technical[open] > summary::before {
  content: '−';
}

.pv2-technical__body {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px 20px;
}

.pv2-setting-group {
  display: block;
  padding: 0;
}

.pv2-setting-group summary .pv2-tag {
  margin-inline-start: auto;
}

.pv2-setting-group__body {
  padding: 0 16px;
}

.pv2-setting-group .pv2-setting-row {
  padding-block: 10px;
}

.pv2-setting-row[hidden],
.pv2-setting-group[hidden] {
  display: none;
}

.pv2-setting-filters {
  align-items: center;
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
}

.pv2-setting-filters input[type='search'] {
  flex: 1 1 240px;
}

.pv2-setting-matches {
  margin-inline-start: auto;
}

.pv2-cohort-split {
  display: flex;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #414141;
}

.pv2-cohort-split__settled {
  background: var(--success);
}

.pv2-cohort-split__holding {
  background: var(--warning);
}

@media (max-width: 520px) {
  .pv2-head > :first-child {
    flex-basis: auto;
  }

  .pv2-head__actions {
    margin-inline-start: 0;
  }

  .pv2-page-filters .pv2-field {
    flex-wrap: wrap;
  }

  .pv2-technical__body {
    padding: 12px;
  }
}

.pv2-tone--warning {
  color: var(--warning);
}

#pricing-item-panel .pv2-panel-block {
  padding: 0;
  gap: 0;
  border-radius: 12px;
}

#pricing-item-panel .pv2-panel-block > :is(h3, h4) {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.pv2-item-projection .pv2-table td:first-child {
  min-inline-size: 9rem;
  max-inline-size: 15rem;
  white-space: normal;
}

#pricing-item-panel .pv2-panel-block > :not(h3, h4, .pv2-kv, .pv2-how-to-read, .pv2-table-scroll) {
  margin: 12px 18px;
}

#pricing-item-panel .pv2-panel-block .pv2-kv {
  display: block;
  padding: 0;
  margin: 0;
}

#pricing-item-panel .pv2-kv .pv2-summary-row {
  grid-template-columns: minmax(98px, 30%) minmax(0, 1fr);
  padding-block: 8px;
  font-size: 12.5px;
}

#pricing-item-panel .pv2-kv .pv2-summary-row:first-child {
  border-top: 0;
}

#pricing-item-panel .pv2-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

#pricing-item-panel #pv2-item-panel-thumb .pv2-item-thumb {
  width: clamp(66px, 18vw, 92px);
  height: clamp(54px, 15vw, 76px);
}

#pricing-item-panel .item-purchase-cost .pv2-how-to-read {
  margin: 10px 0 0;
  padding: 10px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.pv2-explanation {
  list-style: none;
  padding: 0 0 0 11px;
  border-inline-start: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
}

.pv2-explanation li + li {
  margin-top: 6px;
}

.pv2-strategy-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pv2-strategy-stack[hidden] {
  display: none;
}

.pv2-strategy-controls {
  flex-wrap: wrap;
}

.pv2-strategy-controls button[aria-pressed='true'] {
  border-color: var(--text);
  background: var(--panel-hover, #303030);
  color: var(--text);
}

.pv2-strategy-table {
  min-width: max-content;
}

.pv2-strategy-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--panel, #202020);
}

.pv2-strategy-table thead th:first-child {
  inset-inline-start: 0;
  z-index: 3;
}

.pv2-strategy-coverage {
  display: block;
  margin-block-start: 4px;
  max-inline-size: 24ch;
  white-space: normal;
}

.pv2-strategy-stress-cell {
  display: grid;
  gap: 4px;
  min-width: 9rem;
}

.pv2-strategy-stress-cell small {
  white-space: normal;
}

.pv2-chart-axis--reference {
  stroke-dasharray: 4 4;
}

@media (max-width: 520px) {
  .pv2-strategy-stack .pv2-chart-label,
  .pv2-strategy-stack .pv2-chart-value {
    font-size: 16px;
  }
}

.pv2-chart-legend__swatch--muted,
.pv2-chart-dot--muted {
  background: var(--text-muted, #aaa);
  fill: var(--text-muted, #aaa);
}

/* Overview and Attention */
.pv2-overview-source-amounts {
  display: grid;
  text-align: end;
}

.pv2-overview-progress,
.pv2-risk-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 8px 16px;
  padding: 0 18px 12px;
}

.pv2-overview-progress > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  font-size: 12px;
}

.pv2-overview-progress progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  accent-color: var(--success);
}

.pv2-overview-marker {
  stroke-dasharray: 4 3;
}

.pv2-overview-bar-muted {
  fill: var(--faint, #787878);
}

.pv2-overview-heat-cell {
  background: color-mix(in srgb, var(--success) var(--pv2-cell-strength), transparent);
}

.pv2-overview-decisions,
.pv2-exposure-bars,
.pv2-overview-risks,
.pv2-overview-slider,
.pv2-risk-heading {
  padding: 0 18px 12px;
}

.pv2-overview-slider {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 8px 12px;
}

.pv2-overview-slider input {
  width: 100%;
  accent-color: var(--success);
}

.pv2-overview-risks + .pv2-link {
  align-self: flex-start;
  margin: 0 18px 12px;
}

#pv2-attention-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pv2-attention-summary {
  margin: 0;
}

.pv2-attention-summary > span {
  display: block;
  margin-top: 4px;
}

.pv2-attention-table :is(th, td):first-child {
  min-width: 18ch;
  white-space: normal;
}

.pv2-risk-selector {
  padding-top: 12px;
}

.pv2-risk-selector button {
  min-height: 36px;
  white-space: normal;
  text-align: left;
}

.pv2-risk-selector [aria-pressed='true'] {
  border-color: var(--success);
  color: var(--text);
}

.pv2-risk-content,
.pv2-risk-content > *,
.pv2-view .pv2-grid-2 > * {
  min-width: 0;
}

.pv2-risk-table td:last-child {
  min-width: 22ch;
  white-space: normal;
}

.pv2-risk-table th[scope='row'],
.pv2-risk-table th[scope='row'] .pv2-link {
  max-width: 30ch;
  min-width: 18ch;
  white-space: normal;
  text-align: left;
}

.pv2-overview-detail-table :is(th, td):last-child {
  min-width: 12ch;
  white-space: normal;
}

.pv2-overview-detail-table th[scope='row'],
.pv2-risk-table th[scope='row'] {
  text-align: left;
}

.pv2-attention-exits-scroll {
  display: none;
}

.pv2-purchase-price-table :is(th, td) .pv2-muted-small {
  display: block;
}

.pv2-purchase-window {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
}

.pv2-purchase-cell-label {
  display: none;
}

.pv2-purchase-price-table th[scope='row'] {
  min-width: 17ch;
  white-space: normal;
  text-align: left;
}

#pv2-purchase-price-alerts {
  container-type: inline-size;
  scroll-margin-block-start: 1rem;
}

@container (width < 640px) {
  .pv2-purchase-price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .pv2-purchase-price-table tbody,
  .pv2-purchase-price-table {
    display: block;
    min-width: 0;
  }

  .pv2-purchase-price-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line-subtle);
  }

  .pv2-card .pv2-purchase-price-table tbody :is(th, td) {
    min-width: 0;
    padding: 6px 12px;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .pv2-card .pv2-purchase-price-table tbody th {
    grid-column: 1 / -1;
    padding-top: 12px;
  }

  .pv2-purchase-cell-label {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .pv2-overview-chart .pv2-chart-label {
    font-size: 14px;
  }

  :is(.pv2-stock-method-table, .pv2-cohort-method-table) {
    width: 100%;
    table-layout: fixed;
  }

  .pv2-card :is(.pv2-stock-method-table, .pv2-cohort-method-table) :is(thead, tbody) :is(th, td) {
    min-width: 0;
    padding-inline: 7px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :is(.pv2-stock-method-table, .pv2-cohort-method-table) thead th:first-child {
    width: 30%;
  }

  .pv2-attention-exits-scroll {
    display: block;
  }

  .pv2-attention-exits-table :is(th, td):nth-child(-n + 2) {
    min-width: 15ch;
    white-space: normal;
  }

  .pv2-attention-exits-table :is(th, td):first-child,
  .pv2-attention-exits-table .pv2-link {
    max-width: 19ch;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: left;
  }

  .pv2-attention-table :is(th, td):first-child {
    min-width: 12ch;
    max-width: 14ch;
  }

  .pv2-attention-table .pv2-link {
    white-space: normal;
    text-align: left;
  }

  .pv2-attention-table td:nth-child(3) .pv2-metric {
    flex-wrap: wrap;
    max-width: 13ch;
  }

  .pv2-attention-table .pv2-attention-meter {
    display: block;
    margin-inline: auto 0;
  }
}

.pv2-screen-verdict {
  margin-block: 0.75rem;
}

.pv2-card > .pv2-screen-verdict {
  margin-block: 0;
}

.pv2-sales-periods.pv2-table :is(th, td) {
  padding-inline: 8px;
}

.pv2-sales-periods.pv2-table :is(th, td):first-child {
  min-width: 16ch;
  white-space: normal;
}

.pv2-mobile-scroll-note {
  display: none;
}

@media (max-width: 520px) {
  .pv2-mobile-scroll-note {
    display: block;
  }

  .pv2-page-filters .pv2-field--screen-version {
    flex-basis: 100%;
  }

  .pv2-field--screen-version :is(.inventory-select, .inventory-select-trigger) {
    width: 100%;
    max-width: 100%;
  }

  .pv2-field--screen-version .inventory-select-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pv2-field--screen-version .inventory-select-sizer {
    display: none;
  }
}

.pv2-margin-share {
  display: grid;
  gap: 0.5rem;
  max-width: 38rem;
}

.pv2-margin-share__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(4rem, 3fr) minmax(5rem, auto);
  gap: 0.5rem;
  align-items: center;
}

.pv2-margin-share meter {
  width: 100%;
}

.pv2-loss-reasons .pv2-margin-share__row {
  grid-template-columns: minmax(8rem, 1.6fr) minmax(3rem, 2fr) minmax(1.5rem, auto);
}

.pv2-modes-controls,
.pv2-mode-slider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0 0.75rem;
}

.pv2-modes-controls [aria-pressed='true'] {
  outline: 1px solid var(--info, #9fb9e8);
}

.pv2-mode-slider input {
  flex: 1 1 9rem;
  max-width: 19rem;
  accent-color: var(--info, #9fb9e8);
}

@media (max-width: 520px) {
  .pv2-screen-chart .pv2-chart-label {
    font-size: 16px;
  }
}

.pv2-items-table .pv2-item-flag {
  display: block;
  color: var(--warning);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv2-items-table .pv2-money-pair {
  white-space: nowrap;
}

.pv2-items-table .pv2-col-marketplace .pv2-item-flag {
  max-inline-size: 20ch;
  white-space: normal;
}

.pv2-items-gap-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pv2-items-gap-bar meter {
  inline-size: min(100%, 20rem);
}

.pv2-csv-schema {
  overflow-wrap: anywhere;
}

.pv2-chart-line--buff {
  stroke: #d0a2e5;
}
.pv2-chart-dot--buff,
.pv2-chart-legend__swatch--buff {
  fill: #d0a2e5;
  background: #d0a2e5;
}
.pv2-chart-line--youpin {
  stroke: #68c9c1;
}
.pv2-chart-dot--youpin,
.pv2-chart-legend__swatch--youpin {
  fill: #68c9c1;
  background: #68c9c1;
}
.pv2-chart-line--csfloat {
  stroke: #efa87d;
}
.pv2-chart-dot--csfloat,
.pv2-chart-legend__swatch--csfloat {
  fill: #efa87d;
  background: #efa87d;
}

#pv2-items-extra-section:not([hidden]) {
  display: grid;
  min-inline-size: 0;
  gap: 12px;
}

.pv2-items-gap-scale {
  position: relative;
  inline-size: min(54%, 20rem);
  block-size: 12px;
  background: var(--line);
  border-radius: 2px;
}

.pv2-items-gap-scale::after {
  content: '';
  position: absolute;
  inset-block: -4px;
  inset-inline-start: 50%;
  border-inline-start: 1px solid var(--muted);
}

.pv2-items-gap-fill {
  position: absolute;
  inset-block: 0;
  background: var(--success);
  border-radius: 2px;
}

.pv2-items-gap-fill--higher {
  background: var(--warning);
}

#pricing-item-panel .pv2-panel-block > .pv2-empty {
  padding-block: 8px;
}

@media (max-width: 600px) {
  #pricing-item-panel .pv2-buy-comparison .pv2-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #pricing-item-panel .pv2-buy-comparison :is(thead, tbody) {
    display: block;
  }

  #pricing-item-panel .pv2-buy-comparison tr {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  #pricing-item-panel .pv2-buy-comparison :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #pricing-item-panel .pv2-buy-comparison th:last-child {
    display: none;
  }

  #pricing-item-panel .pv2-buy-comparison td:last-child {
    grid-column: 1 / -1;
    min-inline-size: 0;
    max-inline-size: none;
    border-top: 0;
    padding-block-start: 0;
    color: var(--muted);
  }
}

.pv2-settings-impact-layout {
  align-items: start;
}

.pv2-settings-impact-layout > *,
.pv2-settings-preview-results {
  min-width: 0;
}

.pv2-setting-revision-changes {
  margin: 0;
  padding-inline-start: 1rem;
  white-space: normal;
  min-inline-size: 18ch;
}

.pv2-run-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  min-inline-size: 13ch;
}

@media (max-width: 600px) {
  .pv2-card
    :is(.pv2-settings-preview-totals, .pv2-settings-preview-samples, .pv2-rules-history)
    .pv2-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  .pv2-card
    :is(.pv2-settings-preview-totals, .pv2-settings-preview-samples, .pv2-rules-history)
    .pv2-table
    :is(th, td) {
    padding-inline: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pv2-settings-preview-totals :is(th, td):first-child {
    width: 50%;
  }

  .pv2-settings-preview-samples :is(th, td):first-child {
    width: 29%;
  }

  .pv2-rules-history :is(th, td):last-child {
    width: 34%;
  }

  .pv2-rules-history .pv2-setting-revision-changes {
    min-inline-size: 0;
  }
}

.pv2-acquisition-link {
  display: grid;
  gap: 0.3rem;
}

.pv2-acquisition-link :is(small, summary, a) {
  font-size: 0.78rem;
}

.pv2-acquisition-link details li {
  white-space: normal;
}

.pv2-card .pv2-settings-preview-samples .pv2-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.pv2-card .pv2-settings-preview-samples .pv2-table :is(th, td) {
  white-space: normal;
}

.pv2-preview-price-pair {
  display: grid;
  gap: 0.2rem;
}

.pv2-preview-price-pair span {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .pv2-settings-preview-samples :is(table, thead, tbody) {
    display: block;
  }

  .pv2-settings-preview-samples tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pv2-settings-preview-samples .pv2-table :is(th, td):first-child {
    width: auto;
  }

  .pv2-settings-preview-samples th:first-child {
    display: none;
  }

  .pv2-settings-preview-samples td:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
  }
}

#pv2-acquisition-dialog:modal,
#pv2-acquisition-dialog::backdrop {
  overscroll-behavior: contain;
}

#pv2-acquisition-dialog::backdrop {
  overflow: hidden;
}

/* The mock's Sell/Buy tabs, shared by every dashboard tablist. */
.panel-tabs[role='tablist']:not([hidden]) {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid #393939;
  border-radius: 9px;
  background: #181818;
  box-shadow: none;
  scrollbar-width: thin;
}

.panel-tabs[role='tablist'] button[role='tab'] {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  padding: 5px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.panel-tabs[role='tablist'] button[role='tab']:hover:not(:disabled),
.panel-tabs[role='tablist'] button[role='tab'][aria-selected='true'] {
  background: #333;
  color: var(--text);
}

@media (max-width: 480px) {
  .panel-tabs[role='tablist']:not([hidden]) {
    flex-wrap: wrap;
  }

  .panel-tabs[role='tablist'] button[role='tab'] {
    min-height: 36px;
  }
}

.panel-tabs [role='tab']:focus-visible {
  outline-offset: -2px;
}

#pricing-item-panel .panel-tabs {
  margin-block-start: 12px;
}

@media (forced-colors: active) {
  .panel-tabs [role='tab'][aria-selected='true'],
  .workspace-nav [aria-current='page'] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* Keep the drawer's full evidence readable within the sheet. */
#pricing-item-panel .pv2-table {
  width: 100%;
  min-width: 0;
}

#pricing-item-panel .pv2-table :is(th, td) {
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

#pricing-item-panel .pv2-item-projection .pv2-table :first-child {
  min-inline-size: 0;
}

#pricing-item-panel .pv2-table-scroll {
  overflow: visible;
}

@media (max-width: 600px) {
  #pricing-item-panel .pv2-table {
    table-layout: fixed;
  }

  #pricing-item-panel .pv2-table :is(th, td) {
    padding-inline: 5px;
  }

  #pricing-item-panel .pv2-table .pv2-metric {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  #pricing-item-panel .pv2-table .pv2-tag {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

#pricing-item-panel .pv2-item-chart .pv2-chart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pv2-item-chart .pv2-chart-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.pv2-item-chart .pv2-chart-legend button[aria-pressed='true'] {
  border-color: var(--muted);
  background: #292929;
  color: var(--text);
}

.pv2-item-chart .pv2-chart-legend button[aria-pressed='false'] .pv2-chart-legend__swatch {
  opacity: 0.5;
}

.pv2-item-chart .pv2-chart-legend__swatch {
  height: 3px;
  border-radius: 1px;
}

.pv2-item-chart .pv2-chart-label {
  font-size: 12px;
}

.pv2-item-chart__points .pv2-chart-legend__swatch {
  height: 10px;
  border-radius: 50%;
}

.pv2-exposure {
  display: grid;
  gap: 12px;
}

.pv2-exposure__category {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(5rem, 5fr) 4.5rem;
  align-items: center;
  gap: 12px;
}

.pv2-exposure__category > strong {
  text-align: right;
}

.pv2-exposure__track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.pv2-exposure__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.pv2-exposure__fill--warning {
  background: var(--warning);
}

.pv2-exposure__fill--danger {
  background: var(--danger);
}

.pv2-exposure__marker {
  position: absolute;
  inset-block: -3px;
  border-inline-start: 2px dashed var(--warning);
}

.pv2-exposure__marker--cap {
  border-inline-start: 2px solid var(--danger);
}

.pv2-exposure__daily {
  padding-block-start: 10px;
  border-top: 1px solid var(--line);
}

.pv2-exposure__daily progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-block: 8px;
  accent-color: var(--success);
}

.pv2-exposure__daily progress.pv2-tone--danger {
  accent-color: var(--danger);
}

.pv2-term-help {
  display: inline-grid;
  place-items: center;
  inline-size: 16px;
  block-size: 16px;
  margin-inline-start: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}

.pv2-term-help::before {
  display: grid;
  place-items: center;
  inline-size: 10px;
  block-size: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: '?' / '';
}

.pv2-term-help:hover,
.pv2-term-help:focus-visible {
  color: var(--text);
}

@media (pointer: coarse) {
  .pv2-term-help {
    inline-size: 24px;
    block-size: 24px;
  }
}

.hint-bubble.hint-bubble--term {
  pointer-events: auto;
}

.pv2-term-tail {
  white-space: nowrap;
}

.pv2-paired-filter .pv2-field__label {
  font-size: inherit;
}

.pv2-falling-filter {
  flex-basis: 100%;
}

.pv2-evidence-cell__label {
  display: none;
}

@media (max-width: 600px) {
  #pricing-item-panel .pv2-evidence-table--stacked,
  #pricing-item-panel .pv2-evidence-table--stacked tbody {
    display: block;
  }

  #pricing-item-panel .pv2-evidence-table--stacked thead {
    display: none;
  }

  #pricing-item-panel .pv2-evidence-table--stacked tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    border-bottom: 1px solid var(--line);
  }

  #pricing-item-panel .pv2-evidence-table--stacked td {
    display: block;
    border: 0;
    padding-block: 4px;
  }

  .pv2-evidence-cell__label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }

  #pricing-item-panel .pv2-evidence-table--stacked td:last-child {
    grid-column: 1 / -1;
  }
}
