.hisse-header {
  align-items: flex-start;
}

.hisse-header .header__brand {
  align-items: center;
}

.hisse-header .header__actions {
  align-items: flex-start;
}

.hisse-header__title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.hisse-header__title-row .header__title {
  margin: 0;
  line-height: 1.1;
  flex: 0 1 auto;
  min-width: 0;
}

.hisse-header__title-row .hisse-header__watchlist-btn.watchlist-add__btn {
  width: auto;
  height: auto;
  min-width: 0;
  flex: 0 0 auto;
  margin-left: 0.15rem;
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.hisse-header__watchlist-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.hisse-header-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hisse-quote__price {
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--hisse-ink, var(--text, #172033));
}

.hisse-quote__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.12rem;
  padding-top: 0.28rem;
}

.hisse-quote__change {
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hisse-ink, var(--text, #172033));
}

.hisse-quote__change--up {
  color: var(--hisse-positive, var(--positive, #0f9f7f));
}

.hisse-quote__change--down {
  color: var(--hisse-negative, var(--negative, #e05267));
}

.hisse-quote__updated {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--hisse-muted, var(--text-muted, #69758c));
}

.hisse-company {
  margin-bottom: 0.85rem;
}

.header__meta-item {
  white-space: nowrap;
}

.header__meta-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.85;
}

.header__meta-sep {
  opacity: 0.45;
  user-select: none;
}

.hisse-header .header__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
  max-width: none;
  line-height: 1.45;
}

.header__meta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.header__meta-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hisse-rs {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hisse-rs__block + .hisse-rs__block {
  margin-top: 0.85rem;
}

.hisse-rs__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hisse-rs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.hisse-rs__item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.hisse-rs__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hisse-rs__value {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hisse-section-title {
  margin-bottom: 0.85rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hisse-chart-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hisse-chart-frame {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
  background: var(--hisse-chart-bg, var(--bg-elevated, #fff));
}

.hisse-chart-hud {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--hisse-chart-bg, #fff) 92%, var(--hisse-panel-soft, #f7f8fc));
  position: relative;
  z-index: 30;
  overflow: visible;
}

.hisse-chart-hud__values.nbt-chart__tooltip {
  position: static;
  left: auto;
  top: auto;
  max-width: none;
  flex: 1 1 auto;
  min-width: 8rem;
  pointer-events: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hisse-chart-hud__values.nbt-chart__tooltip.hidden {
  display: flex;
}

.hisse-chart-hud__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  position: relative;
  z-index: 31;
}

.hisse-indicators-dropdown,
.hisse-sr-dropdown {
  position: relative;
  z-index: 32;
}

.hisse-indicators-dropdown__btn.hisse-overlay-btn {
  min-height: 1.85rem;
}

.hisse-indicators-dropdown__btn.hisse-overlay-btn::after {
  content: '▾';
  margin-left: 0.25rem;
  opacity: 0.75;
}

.hisse-indicators-dropdown--open .hisse-indicators-dropdown__btn.hisse-overlay-btn::after,
.hisse-indicators-dropdown__btn.hisse-overlay-btn[aria-expanded='true']::after {
  content: '▴';
}

.hisse-indicators-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 10.5rem;
  padding: 0.35rem;
  background: var(--hisse-panel, var(--bg-surface, #fff));
  border: 1px solid var(--hisse-line, var(--border));
  border-radius: 8px;
  box-shadow: var(--hisse-shadow-sm, 0 8px 24px rgba(15, 23, 42, 0.12));
}

.hisse-indicators-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hisse-ink, var(--text));
  cursor: pointer;
  user-select: none;
}

.hisse-indicators-dropdown__item:hover {
  background: var(--hisse-panel-hover, var(--bg-hover, #eef1f7));
}

.hisse-indicators-dropdown__item span::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--ov, var(--accent));
  vertical-align: middle;
}

.hisse-indicators-dropdown__item input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--ov, var(--accent));
  cursor: pointer;
}

.hisse-indicators-dropdown__sep {
  height: 1px;
  margin: 0.3rem 0.35rem;
  background: var(--hisse-line, var(--border));
}

.hisse-range-btns,
.hisse-interval-btns,
.hisse-draw-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hisse-range-btn,
.hisse-draw-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.hisse-range-btn:hover,
.hisse-draw-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.hisse-range-btn--active,
.hisse-draw-btn--active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.hisse-draw-btn--danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.hisse-overlay-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.hisse-overlay-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.hisse-indicators-dropdown__btn.hisse-overlay-btn {
  min-width: 7.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-color: var(--hisse-brand, var(--accent));
  color: var(--hisse-brand, var(--accent));
  background: color-mix(in srgb, var(--hisse-brand, var(--accent)) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--hisse-brand, var(--accent));
}

.hisse-indicators-dropdown__btn.hisse-overlay-btn:hover,
.hisse-indicators-dropdown--open .hisse-indicators-dropdown__btn.hisse-overlay-btn,
.hisse-indicators-dropdown__btn.hisse-overlay-btn[aria-expanded='true'] {
  background: color-mix(in srgb, var(--hisse-brand, var(--accent)) 18%, transparent);
}

.hisse-indicators-dropdown__menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hisse-indicators-dropdown__menu.hidden {
  display: none;
}

.hisse-sr-dropdown__btn.hisse-overlay-btn {
  --ov: var(--hisse-positive, #0f9f7f);
  min-width: 8.75rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-width: 1.5px;
  border-color: var(--hisse-positive, #0f9f7f);
  color: var(--hisse-positive, #0f9f7f);
  background: color-mix(in srgb, var(--hisse-positive, #0f9f7f) 16%, transparent);
  box-shadow:
    inset 3px 0 0 var(--hisse-positive, #0f9f7f),
    0 1px 2px color-mix(in srgb, var(--hisse-positive, #0f9f7f) 18%, transparent);
}

.hisse-sr-dropdown__btn.hisse-overlay-btn::after {
  content: '▾';
  margin-left: 0.35rem;
  font-size: 0.7rem;
  opacity: 0.9;
}

.hisse-sr-dropdown__btn.hisse-overlay-btn:hover {
  color: var(--hisse-positive, #0f9f7f);
  border-color: var(--hisse-positive, #0f9f7f);
  background: color-mix(in srgb, var(--hisse-positive, #0f9f7f) 24%, transparent);
}

.hisse-sr-dropdown--open .hisse-sr-dropdown__btn.hisse-overlay-btn,
.hisse-sr-dropdown__btn.hisse-overlay-btn[aria-expanded='true'] {
  border-color: var(--hisse-positive, #0f9f7f);
  color: #fff;
  background: var(--hisse-positive, #0f9f7f);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--hisse-positive, #0f9f7f) 35%, transparent);
}

.hisse-sr-dropdown--open .hisse-sr-dropdown__btn.hisse-overlay-btn::after,
.hisse-sr-dropdown__btn.hisse-overlay-btn[aria-expanded='true']::after {
  content: '▴';
}

.hisse-sr-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  min-width: 9.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border, var(--hisse-line, #e8ecf3));
  border-radius: 8px;
  background: var(--bg-surface, var(--hisse-panel, #fff));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hisse-sr-dropdown__menu.hidden {
  display: none;
}

.hisse-sr-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, var(--hisse-ink, #1a2333));
  cursor: pointer;
}

.hisse-sr-dropdown__item:hover {
  background: var(--bg-hover, rgba(15, 23, 42, 0.05));
}

.hisse-sr-dropdown__item input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--accent, var(--hisse-brand, #3478d4));
  cursor: pointer;
}

.nbt-chart__sr-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.nbt-chart__sr-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transform: translate(0, -50%);
  margin-left: 4px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--hisse-chart-bg, #ffffff) 88%, transparent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
}

.nbt-chart__sr-label--critical {
  font-weight: 700;
}

.nbt-chart__sr-label--hidden {
  opacity: 0.55;
}

.nbt-chart__sr-label input {
  width: 0.8rem;
  height: 0.8rem;
  margin: 0;
  accent-color: currentColor;
  cursor: pointer;
}

.hisse-chart {
  width: 100%;
  height: 460px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  border: none;
  position: relative;
  z-index: 1;
}

.hisse-chart-hint {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nbt-chart__tooltip {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  pointer-events: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.nbt-chart__tip-sep {
  opacity: 0.45;
  flex-shrink: 0;
}

.nbt-chart__tooltip.hidden,
.nbt-chart__note-prompt.hidden,
.nbt-chart__edit-panel.hidden {
  display: none;
}

.nbt-chart__edit-panel {
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 8px;
  right: auto;
  max-width: min(280px, calc(100% - 16px));
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.nbt-chart__edit-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.nbt-chart__edit-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  font-size: 0;
  color: transparent;
}

.nbt-chart__edit-field--grow {
  flex: 1;
  min-width: 0;
}

.nbt-chart__edit-color {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nbt-chart__edit-text {
  font-family: var(--font, 'DM Sans', sans-serif);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  width: 100%;
  height: 22px;
}

.nbt-chart__edit-apply,
.nbt-chart__edit-delete {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  height: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.nbt-chart__edit-apply {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.nbt-chart__edit-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.nbt-chart__edit-hint {
  display: none;
}

.nbt-chart__tip-date {
  color: var(--text-muted);
  flex-shrink: 0;
}

.nbt-chart__note-prompt {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 90%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nbt-chart__note-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nbt-chart__note-input {
  font-family: var(--font, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  resize: vertical;
  min-height: 72px;
}

.nbt-chart__note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.nbt-chart__note-cancel,
.nbt-chart__note-save {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.nbt-chart__note-save {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.hisse-scores {
  margin-bottom: 1.5rem;
}

.hisse-scores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}

.hisse-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hisse-details__block,
.hisse-details__col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.hisse-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.35rem 1.25rem;
}

.hisse-info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  font-size: 0.8rem;
}

.hisse-info-row:last-child {
  border-bottom: 1px solid var(--border);
}

.hisse-info-row__label {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hisse-info-row__value {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: left;
  word-break: break-word;
}

.hisse-peers {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.hisse-peers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 4.6rem;
  overflow: hidden;
}

.hisse-peer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3.5rem;
  padding: 0.35rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.hisse-peer:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.hisse-peer--active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 1024px) {
  .hisse-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .hisse-rs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hisse-chart {
    height: 300px;
  }

  .hisse-rs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Appica-inspired stock detail theme */
:root,
[data-theme='dark'] {
  --hisse-canvas: #0b1120;
  --hisse-panel: #111a2c;
  --hisse-panel-soft: #162136;
  --hisse-panel-hover: #1c2942;
  --hisse-line: #273550;
  --hisse-line-soft: rgba(148, 163, 184, 0.12);
  --hisse-ink: #f1f5f9;
  --hisse-muted: #91a0b8;
  --hisse-brand: #7c8cff;
  --hisse-brand-strong: #6374ee;
  --hisse-brand-soft: rgba(124, 140, 255, 0.14);
  --hisse-positive: #2dd4a7;
  --hisse-negative: #fb7185;
  --hisse-warning: #fbbf24;
  --hisse-chart-bg: #0e1728;
  --hisse-chart-grid: #24324a;
  --hisse-crosshair: #a8b4c8;
  --hisse-shadow-sm: 0 8px 24px rgba(2, 6, 23, 0.18);
  --hisse-shadow-lg: 0 18px 50px rgba(2, 6, 23, 0.32);
  --hisse-radius-sm: 10px;
  --hisse-radius: 16px;
  --hisse-radius-lg: 20px;
  --hisse-overlay-ma10: #b39cff;
  --hisse-overlay-ma21: #3ddbd9;
  --hisse-overlay-ma50: #6ea8fe;
  --hisse-overlay-ma100: #f472b6;
  --hisse-overlay-ma200: #fbbf24;
  --hisse-overlay-volume: #8492a9;
  --hisse-overlay-volume10: #38bdf8;
  --hisse-overlay-volume20: #9b87f5;
  --hisse-overlay-volume30: #34d399;
}

[data-theme='light'] {
  --hisse-canvas: #f5f7fb;
  --hisse-panel: #ffffff;
  --hisse-panel-soft: #f7f8fc;
  --hisse-panel-hover: #eef1f7;
  --hisse-line: #e2e7f0;
  --hisse-line-soft: rgba(100, 116, 139, 0.12);
  --hisse-ink: #172033;
  --hisse-muted: #69758c;
  --hisse-brand: #5865e8;
  --hisse-brand-strong: #4652ca;
  --hisse-brand-soft: rgba(88, 101, 232, 0.1);
  --hisse-positive: #0f9f7f;
  --hisse-negative: #e05267;
  --hisse-warning: #d99400;
  --hisse-chart-bg: #ffffff;
  --hisse-chart-grid: #e8ecf3;
  --hisse-crosshair: #8490a5;
  --hisse-shadow-sm: 0 8px 24px rgba(31, 41, 55, 0.06);
  --hisse-shadow-lg: 0 20px 50px rgba(31, 41, 55, 0.1);
  --hisse-overlay-ma10: #8069d8;
  --hisse-overlay-ma21: #159d9a;
  --hisse-overlay-ma50: #3478d4;
  --hisse-overlay-ma100: #d34f91;
  --hisse-overlay-ma200: #c98300;
  --hisse-overlay-volume: #748197;
  --hisse-overlay-volume10: #168bc2;
  --hisse-overlay-volume20: #7658cf;
  --hisse-overlay-volume30: #15956b;
}

.hisse-header-quote {
  gap: 0.75rem;
}

.hisse-quote__price {
  color: var(--hisse-ink);
}

.hisse-quote__change {
  color: var(--hisse-ink);
}

.hisse-quote__change--up {
  color: var(--hisse-positive);
}

.hisse-quote__change--down {
  color: var(--hisse-negative);
}

.hisse-quote__updated {
  color: var(--hisse-muted);
}

.header__meta-label {
  color: var(--hisse-muted);
}

.header__meta-link {
  color: var(--hisse-brand);
}

.header__meta-link:hover {
  color: var(--hisse-brand-strong);
}

.hisse-rs {
  margin-top: 0.85rem;
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hisse-line-soft);
}

.hisse-rs__grid {
  gap: 0.7rem;
}

.hisse-rs__item {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 0.9rem 1rem;
  background: linear-gradient(145deg, var(--hisse-panel), var(--hisse-panel-soft));
  border-color: var(--hisse-line);
  border-radius: var(--hisse-radius);
  box-shadow: var(--hisse-shadow-sm);
}

.hisse-rs__item::after {
  position: absolute;
  inset: auto -20px -34px auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hisse-brand-soft);
  content: '';
}

.hisse-rs__value {
  position: relative;
  z-index: 1;
  color: var(--hisse-ink);
  font-size: 1.3rem;
}

.hisse-rs__label {
  color: var(--hisse-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}

.hisse-section-title {
  color: var(--hisse-ink);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hisse-chart-section,
.hisse-details__col {
  background: var(--hisse-panel);
  border-color: var(--hisse-line);
  border-radius: var(--hisse-radius-lg);
  box-shadow: var(--hisse-shadow-sm);
}

.hisse-chart-section {
  padding: 1rem;
  overflow: visible;
  z-index: 2;
}

.hisse-range-btns,
.hisse-interval-btns,
.hisse-draw-btns {
  gap: 0.2rem;
  padding: 0.25rem;
  background: var(--hisse-panel-soft);
  border: 1px solid var(--hisse-line);
  border-radius: 12px;
}

.hisse-range-btn,
.hisse-draw-btn,
.hisse-overlay-btn {
  background: transparent;
  border-color: transparent;
  color: var(--hisse-muted);
  font-weight: 600;
}

.hisse-range-btn,
.hisse-draw-btn {
  min-height: 31px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.hisse-range-btn:hover,
.hisse-draw-btn:hover,
.hisse-overlay-btn:hover {
  background: var(--hisse-panel-hover);
  color: var(--hisse-ink);
}

.hisse-range-btn--active,
.hisse-draw-btn--active {
  background: var(--hisse-panel);
  border-color: var(--hisse-line);
  color: var(--hisse-brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.hisse-draw-btn--danger:hover,
.nbt-chart__edit-delete:hover {
  border-color: var(--hisse-negative);
  color: var(--hisse-negative);
}

.hisse-chart-frame {
  border-color: var(--hisse-line);
  border-radius: 14px;
  overflow: visible;
  background: var(--hisse-chart-bg);
  box-shadow: inset 0 0 0 1px var(--hisse-line-soft);
}

.hisse-chart-hud {
  border-bottom-color: var(--hisse-line);
  border-radius: 14px 14px 0 0;
  background: color-mix(in srgb, var(--hisse-chart-bg) 88%, var(--hisse-panel-soft));
}

.hisse-overlay-btn {
  min-height: 27px;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}

.hisse-chart {
  height: clamp(390px, 48vw, 540px);
  background: var(--hisse-chart-bg);
  border: none;
  border-radius: 0 0 14px 14px;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.hisse-chart-hint {
  padding: 0.1rem 0.25rem 0;
  color: var(--hisse-muted);
}

.nbt-chart__tooltip,
.nbt-chart__edit-panel,
.nbt-chart__note-prompt {
  background: color-mix(in srgb, var(--hisse-panel) 94%, transparent);
  border-color: var(--hisse-line);
  box-shadow: var(--hisse-shadow-lg);
  backdrop-filter: blur(14px);
}

.nbt-chart__tooltip {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  color: var(--hisse-ink);
  background: color-mix(in srgb, var(--hisse-panel) 88%, transparent);
}

.nbt-chart__edit-panel {
  border-radius: 10px;
  padding: 0.45rem;
}

.nbt-chart__edit-color,
.nbt-chart__edit-text,
.nbt-chart__edit-apply,
.nbt-chart__edit-delete,
.nbt-chart__note-input,
.nbt-chart__note-cancel,
.nbt-chart__note-save {
  border-color: var(--hisse-line);
  background: var(--hisse-panel-soft);
  color: var(--hisse-ink);
}

.nbt-chart__edit-apply,
.nbt-chart__note-save {
  background: var(--hisse-brand-soft);
  border-color: color-mix(in srgb, var(--hisse-brand) 55%, var(--hisse-line));
  color: var(--hisse-brand);
}

.nbt-chart__note-prompt {
  width: min(340px, 90%);
  padding: 1rem;
  border-radius: 14px;
}

.nbt-chart__tip-date,
.nbt-chart__note-label {
  color: var(--hisse-muted);
}

.hisse-scores__grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.hisse-scores .score-chip {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--hisse-panel);
  border: 1px solid var(--hisse-line);
  border-radius: var(--hisse-radius);
  box-shadow: var(--hisse-shadow-sm);
}

.hisse-scores .score-chip__label {
  color: var(--hisse-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hisse-scores .score-chip__value {
  color: var(--hisse-ink);
  font-size: 1.25rem;
  font-weight: 600;
}

.hisse-details {
  gap: 1rem;
}

.hisse-details__block,
.hisse-details__col,
.hisse-peers {
  background: var(--hisse-panel);
  border-color: var(--hisse-line);
  border-radius: var(--hisse-radius-lg);
  box-shadow: var(--hisse-shadow-sm);
}

.hisse-details__block,
.hisse-details__col,
.hisse-peers {
  padding: 1.15rem 1.25rem;
}

.hisse-info-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.45rem;
}

.hisse-info-row {
  padding: 0.55rem 0.7rem;
  border-color: var(--hisse-line-soft);
  background: var(--hisse-panel-soft);
  border-radius: 10px;
}

.hisse-info-row__label {
  color: var(--hisse-muted);
  font-weight: 600;
}

.hisse-info-row__value {
  color: var(--hisse-ink);
  font-weight: 500;
}

.hisse-peers__list {
  max-height: 4.75rem;
  gap: 0.4rem;
}

.hisse-peer {
  min-width: 3.25rem;
  padding: 0.32rem 0.5rem;
  color: var(--hisse-ink);
  background: var(--hisse-panel-soft);
  border-color: var(--hisse-line);
  border-radius: 8px;
}

.hisse-peer:hover,
.hisse-peer--active {
  color: var(--hisse-brand);
  border-color: color-mix(in srgb, var(--hisse-brand) 55%, var(--hisse-line));
  background: var(--hisse-brand-soft);
}

@media (max-width: 1180px) {
  .hisse-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 820px) {
  .hisse-header-quote {
    width: 100%;
  }

  .hisse-draw-btns {
    flex: 0 0 auto;
  }

  .hisse-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

@media (max-width: 640px) {
  .hisse-rs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hisse-chart-section {
    padding: 0.7rem;
    border-radius: 14px;
  }

  .hisse-chart {
    height: 340px;
    border-radius: 0 0 10px 10px;
  }

  .hisse-range-btns,
  .hisse-interval-btns,
  .hisse-draw-btns {
    width: auto;
  }

  .hisse-draw-btn {
    flex: 0 0 auto;
  }

  .hisse-chart-hud__actions {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hisse-rs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hisse-chart {
    height: 310px;
  }
}
