:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #687381;
  --line: #d9e0e7;
  --accent: #176b87;
  --red: #c93232;
  --green: #158456;
  --soft-panel: #f8fafc;
  --soft-accent: #e8f3f7;
  --input-bg: #ffffff;
  --chart-axis: #9aa6b2;
  --chart-grid: #edf1f5;
  --tooltip-bg: #ffffff;
  --metric-body-size: 14px;
  --metrics-height: 170px;
  --side-nav-row-gap: 0px;
  --side-nav-subrow-gap: 0px;
  --side-nav-link-height: 34px;
  --side-nav-sublink-height: 30px;
  --side-nav-link-padding-y: 6px;
  --side-nav-sublink-padding-y: 5px;
  --side-nav-indent: 16px;
  --side-nav-child-indent: 0.85em;
  --side-nav-caret-left: 5px;
  --directory-tree-row-gap: 6px;
  --directory-tree-row-height: 44px;
  --directory-tree-row-padding-y: 8px;
  --directory-tree-indent-base: 4px;
  --directory-tree-indent-step: 20px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111c2b;
  --ink: #e8eef7;
  --muted: #9aa8ba;
  --line: #26384b;
  --accent: #38a8c7;
  --red: #f06565;
  --green: #34c98a;
  --soft-panel: #162335;
  --soft-accent: #19354a;
  --input-bg: #0f1a28;
  --chart-axis: #637489;
  --chart-grid: #1f3041;
  --tooltip-bg: #101a27;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-layout {
  --nav-width: 150px;
  --nav-min-width: 128px;
  --nav-max-width: 280px;
  --nav-gap: 4px;
  --nav-collapsed-width: 16px;
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0 10px 10px calc(var(--nav-width) + var(--nav-gap));
  overflow-x: hidden;
  transition: padding-left 0.12s ease;
}

.app-layout.nav-collapsed {
  padding-left: calc(var(--nav-collapsed-width) + var(--nav-gap));
}

.side-nav {
  --side-nav-item-color: #334763;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: var(--nav-width);
  min-width: 0;
  height: calc(100vh - 10px);
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(23, 107, 135, 0.13), transparent 32%),
    radial-gradient(circle at 112% 16%, rgba(21, 132, 86, 0.10), transparent 34%);
  box-shadow: 0 12px 30px rgba(33, 54, 73, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.side-nav::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #176b87, #158456);
  opacity: 0.92;
}

.side-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 42%);
  pointer-events: none;
}

.side-nav-resize-handle {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 4;
  width: 10px;
  height: calc(100% - 16px);
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.side-nav-resize-handle::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(83, 102, 125, 0);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-resize-handle:hover::before,
.side-nav-resize-handle:focus-visible::before,
body.side-nav-resizing .side-nav-resize-handle::before {
  background: rgba(23, 107, 135, 0.58);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

body.side-nav-resizing {
  cursor: ew-resize;
  user-select: none;
}

body.side-nav-resizing * {
  cursor: ew-resize !important;
}

.side-nav-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: visible;
  transition: opacity 0.14s ease;
}

.nav-collapsed .side-nav {
  width: var(--nav-collapsed-width);
  padding: 0;
  background: linear-gradient(180deg, rgba(248, 252, 254, 0.96), rgba(232, 243, 247, 0.9));
  box-shadow: inset 0 0 0 1px rgba(203, 217, 225, 0.72);
}

.nav-collapsed .side-nav::before,
.nav-collapsed .side-nav::after {
  display: none;
}

.nav-collapsed .side-nav-resize-handle {
  display: none;
}

.nav-collapsed .side-nav-content {
  opacity: 0;
  pointer-events: none;
}

.side-nav-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 5;
  width: 14px;
  height: 58px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #f8fafc;
  color: #aab4bf;
  cursor: pointer;
}

.side-nav-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid currentColor;
}

.nav-collapsed .side-nav-toggle {
  right: 0;
}

.nav-collapsed .side-nav-toggle::before {
  border-right: 0;
  border-left: 6px solid currentColor;
}

.side-nav-title {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 9px;
  padding: 2px 8px 6px;
  border-bottom: 1px solid rgba(203, 217, 225, 0.58);
  color: #526477;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.side-nav-brand {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 2px 8px 8px;
  letter-spacing: 0;
}

.side-nav-brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #ffffff;
  object-fit: contain;
}

.side-nav-brand-text {
  min-width: 0;
  overflow: hidden;
  color: #2f435c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0 -10px;
  padding: 0 10px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.side-nav-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.side-nav nav {
  display: grid;
  gap: var(--side-nav-row-gap);
  width: 100%;
  min-width: 0;
  overflow: visible;
  margin: 0;
}

.side-nav-link {
  position: relative;
  z-index: 0;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--side-nav-link-height);
  overflow: visible;
  padding: var(--side-nav-link-padding-y) 11px var(--side-nav-link-padding-y) var(--side-nav-indent);
  border: 0;
  border-radius: 0;
  color: var(--side-nav-item-color);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-link::before {
  content: "";
  position: absolute;
  inset: 0 -11px;
  z-index: -1;
  width: auto;
  background: transparent;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-link > *,
.side-nav-sublink > * {
  position: relative;
  z-index: 1;
}

.side-nav .side-nav-link,
.side-nav .side-nav-sublink {
  color: var(--side-nav-item-color);
}

.side-nav-link.active,
.side-nav-link:hover {
  border-color: transparent;
  background: transparent;
  color: var(--side-nav-item-color);
  box-shadow: none;
}

.side-nav-link.active::before,
.side-nav-link:hover::before {
  background: #d7dee7;
  box-shadow: inset 4px 0 0 rgba(23, 107, 135, 0.88);
}

.side-nav-group {
  display: grid;
  gap: var(--side-nav-subrow-gap);
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.side-nav-parent {
  padding-left: var(--side-nav-indent);
}

.side-nav-parent::after {
  display: none;
}

.side-nav-group.is-collapsed .side-nav-submenu {
  display: none;
}

.side-nav-group.active .side-nav-parent {
  color: var(--side-nav-item-color);
}

.side-nav-group.active .side-nav-parent::before {
  background: #d7dee7;
  box-shadow: inset 4px 0 0 rgba(23, 107, 135, 0.88);
}

.side-nav-group:has(.side-nav-sublink.active) .side-nav-parent::before {
  background: transparent;
  box-shadow: none;
}

.side-nav-caret {
  position: absolute;
  left: var(--side-nav-caret-left);
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  opacity: 0.88;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.14s ease;
}

.side-nav-group.is-expanded .side-nav-caret {
  transform: translateY(-50%) rotate(90deg);
}

.side-nav-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-submenu {
  position: relative;
  display: grid;
  gap: var(--side-nav-subrow-gap);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.side-nav-submenu::before {
  display: none;
}

.side-nav-sublink {
  position: relative;
  z-index: 0;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--side-nav-sublink-height);
  overflow: visible;
  padding: var(--side-nav-sublink-padding-y) 8px var(--side-nav-sublink-padding-y) calc(var(--side-nav-indent) + var(--side-nav-child-indent));
  border-radius: 0;
  color: var(--side-nav-item-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-subicon {
  position: absolute;
  left: calc(var(--side-nav-indent) - 3px);
  top: 50%;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  color: #53667d;
  opacity: 0.96;
  pointer-events: none;
}

.side-nav-subicon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.side-nav-sublink:hover .side-nav-subicon,
.side-nav-sublink.active .side-nav-subicon {
  color: #334763;
}

.side-nav-sublink::before {
  content: "";
  position: absolute;
  inset: 0 -11px;
  z-index: -1;
  background: transparent;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-sublink:hover,
.side-nav-sublink.active {
  background: transparent;
  color: var(--side-nav-item-color);
  box-shadow: none;
}

.side-nav-sublink:hover::before {
  background: rgba(215, 222, 231, 0.42);
}

.side-nav-sublink.active::before {
  background: #d7dee7;
  box-shadow: inset 4px 0 0 rgba(23, 107, 135, 0.88);
}

.side-nav-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
  padding-top: 8px;
}

.side-nav-system,
.side-nav-theme {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-system {
  margin-top: 0;
}

.side-nav-system + .side-nav-theme {
  margin-top: 0;
}

.side-nav-system {
  text-decoration: none;
}

.side-nav-system:hover,
.side-nav-theme:hover {
  border-color: var(--accent);
  background: #eef7fb;
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.12);
}

.side-nav-system-icon,
.side-nav-theme-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 999px;
  background: #e8f3f7;
  color: #176b87;
}

.side-nav-system-icon svg,
.side-nav-theme-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.theme-icon-moon {
  display: none;
}

.side-nav-system-text,
.side-nav-theme-text {
  min-width: 0;
  overflow: hidden;
  color: #40515f;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-user {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 0;
  padding: 6px 8px;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.side-nav-user:hover {
  border-color: var(--accent);
  background: #eef7fb;
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.12);
}

.side-nav-user.logged {
  border-color: rgba(22, 163, 74, 0.32);
  background: linear-gradient(180deg, #f5fff8 0%, #eaf8ef 100%);
}

.side-nav-user.logged .side-nav-avatar {
  background: #16814a;
}

.side-nav-user.logged .side-nav-user-text {
  color: #166534;
}

.side-nav-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #176b87;
  color: #fff;
}

.side-nav-avatar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.side-nav-user-text {
  min-width: 0;
  overflow: hidden;
  color: #40515f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-system.active {
  border-color: rgba(23, 107, 135, 0.38);
  background: #eef7fb;
  box-shadow: inset 4px 0 0 rgba(23, 107, 135, 0.88);
}

.system-shell {
  --system-menu-width: 230px;
  --system-menu-min-width: 168px;
  --system-menu-max-width: 360px;
  display: grid;
  grid-template-columns: var(--system-menu-width) minmax(0, 1fr);
  min-height: calc(100vh - 10px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(33, 54, 73, 0.08);
}

.system-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
}

.system-menu-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  z-index: 4;
  width: 10px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.system-menu-resize-handle::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(83, 102, 125, 0);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.system-menu-resize-handle:hover::before,
.system-menu-resize-handle:focus-visible::before,
body.system-menu-resizing .system-menu-resize-handle::before {
  background: rgba(23, 107, 135, 0.58);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

body.system-menu-resizing {
  cursor: ew-resize;
  user-select: none;
}

body.system-menu-resizing * {
  cursor: ew-resize !important;
}

.system-menu-title,
.system-menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: #334763;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
}

.system-menu-title svg,
.system-menu-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.system-menu-item {
  cursor: pointer;
}

.system-menu-item.active,
.system-menu-item:hover {
  background: #d7dee7;
}

.system-workspace {
  min-width: 0;
  background: #f8fafc;
}

.system-panel {
  min-width: 0;
  min-height: calc(100vh - 10px);
}

.system-panel[hidden] {
  display: none;
}

.system-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.system-workspace-header h1 {
  margin: 0 0 4px;
  color: #334763;
  font-size: 20px;
  font-weight: 800;
}

.system-workspace-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.system-primary-action,
.directory-panel-title button,
.directory-actions button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #cbd9e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334763;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.system-primary-action {
  border-color: rgba(23, 107, 135, 0.38);
  background: #176b87;
  color: #ffffff;
}

.system-primary-action:hover,
.directory-panel-title button:hover,
.directory-actions button:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.12);
}

.system-primary-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.design-qa-admin {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
}

.design-qa-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.design-qa-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #ffffff;
  color: #718096;
}

.design-qa-search svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.design-qa-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334763;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.design-qa-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.design-qa-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: calc(100vh - 156px);
}

.design-qa-list-panel,
.design-qa-detail-panel {
  min-width: 0;
  border: 1px solid #d9e7f4;
  background: #ffffff;
}

.design-qa-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.design-qa-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-bottom: 1px solid #d9e7f4;
  color: #334763;
  font-size: 13px;
  font-weight: 800;
}

.design-qa-panel-title span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.design-qa-list {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding: 6px;
}

.design-qa-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  width: 100%;
  height: auto;
  min-height: 40px;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #40516a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.design-qa-item:hover,
.design-qa-item.active {
  background: #eef5fb;
}

.design-qa-item-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #dceaf5;
  color: #176b87;
  font-size: 12px;
  font-weight: 900;
}

.design-qa-item-question {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: #334763;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.design-qa-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.design-qa-detail-panel {
  overflow: auto;
  padding: 0 16px 16px;
}

.design-qa-detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid #d9e7f4;
  background: #ffffff;
}

.design-qa-detail-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.design-qa-detail-header h2 {
  margin: 2px 0 0;
  color: #334763;
  font-size: 18px;
  font-weight: 850;
}

.design-qa-detail-section {
  display: grid;
  gap: 8px;
  padding: 14px 0 0;
}

.design-qa-detail-section h3 {
  margin: 0;
  color: #526477;
  font-size: 13px;
  font-weight: 850;
}

.design-qa-detail-section p,
.design-qa-answer p {
  margin: 0;
  color: #40516a;
  font-size: 13px;
  line-height: 1.6;
}

.design-qa-answer {
  display: grid;
  gap: 8px;
}

.design-qa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.design-qa-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #d9e7f4;
  border-radius: 999px;
  background: #f4f8fb;
  color: #40516a;
  font-size: 12px;
  font-weight: 750;
}

.design-qa-sources {
  display: grid;
  gap: 6px;
}

.design-qa-source {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d9e7f4;
  background: #fbfdff;
  color: #40516a;
  font-size: 12px;
}

.design-qa-source strong,
.design-qa-source span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .design-qa-admin {
    padding: 14px 12px;
  }

  .design-qa-toolbar,
  .design-qa-layout,
  .design-qa-source {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-qa-layout {
    min-height: auto;
  }
}

.performance-admin {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
}

.performance-toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 10px 22px;
  min-width: 0;
}

.performance-field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #334763;
  font-size: 12px;
  font-weight: 800;
}

.performance-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.performance-field input,
.performance-field select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  background: #ffffff;
  color: #334763;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.performance-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.performance-actions button {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #40516a;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.performance-actions button:hover {
  color: var(--accent);
}

.performance-actions-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.performance-actions .performance-clear-records {
  grid-template-columns: 14px auto;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(220, 38, 38, 0.36);
  border-radius: 4px;
  background: #fff5f5;
  color: #b42318;
}

.performance-actions .performance-clear-records:hover {
  border-color: rgba(220, 38, 38, 0.68);
  background: #ffe8e8;
  color: #991b1b;
}

.performance-actions .performance-clear-records:disabled {
  cursor: wait;
  opacity: 0.62;
}

.performance-actions .performance-clear-records[hidden] {
  display: none;
}

.performance-actions svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.performance-detail-toggle {
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  color: #40516a;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.performance-detail-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.performance-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  border: 1px solid #d9e7f4;
  background: #ffffff;
}

.performance-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: #40516a;
  font-size: 12px;
  line-height: 1.25;
  table-layout: fixed;
}

.performance-table th,
.performance-table td {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border-bottom: 1px solid #d9e7f4;
  text-align: left;
  vertical-align: middle;
}

.performance-table th {
  overflow: hidden;
  background: #eaf2fd;
  color: #526477;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-table .performance-col-name {
  width: 16%;
}

.performance-table .performance-col-path {
  width: 20%;
}

.performance-table .performance-col-api {
  width: 26%;
}

.performance-table .performance-col-metric {
  width: 16%;
}

.performance-table .performance-col-count {
  width: 7%;
  text-align: center;
}

.performance-table.is-detail .performance-col-detail-path {
  width: 24%;
}

.performance-table.is-detail .performance-col-name {
  width: 13%;
}

.performance-table.is-detail .performance-col-user {
  width: 14%;
}

.performance-table.is-detail .performance-col-ip {
  width: 12%;
}

.performance-table.is-detail .performance-col-time {
  width: 18%;
}

.performance-table.is-detail .performance-col-metric {
  width: 9%;
}

.performance-table.is-detail .performance-col-memory {
  width: 10%;
}

.performance-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.performance-table tbody tr:nth-child(even) {
  background: #f7fbff;
}

.performance-table tbody tr:hover {
  background: #eef5fc;
}

.performance-table td {
  max-width: 280px;
  overflow: hidden;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.performance-sort span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performance-sort svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.performance-empty {
  height: 96px;
  color: var(--muted);
  text-align: center !important;
}

.performance-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.access-admin {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
}

.access-toolbar,
.access-detail-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: end;
  gap: 10px 16px;
  min-width: 0;
}

.access-toolbar {
  grid-template-columns: minmax(220px, 320px);
}

.access-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.access-metric {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  background: #f5f7fa;
  color: #40516a;
  text-align: center;
}

.access-metric strong {
  color: #2878e5;
  font-size: 28px;
  font-weight: 780;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.access-metric:nth-child(2) strong {
  color: #16b861;
}

.access-metric:nth-child(3) strong {
  color: #f59e0b;
}

.access-metric:nth-child(4) strong {
  color: #176b87;
}

.access-metric span {
  margin-top: 6px;
  color: #526477;
  font-size: 12px;
  font-weight: 750;
}

.access-chart-section,
.access-online-section,
.access-detail-section {
  min-width: 0;
  border-top: 1px solid #d9e0e7;
  padding-top: 10px;
}

.access-chart-title,
.access-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 24px;
  margin-bottom: 8px;
  color: #40516a;
  font-size: 12px;
  font-weight: 800;
}

.access-chart-title span:last-child,
.access-section-title span:last-child {
  color: #6c7d91;
  font-weight: 700;
}

.access-trend-chart {
  width: 100%;
  height: 280px;
  min-width: 0;
  border: 1px solid #d9e7f4;
  background: #ffffff;
}

.access-trend-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.access-chart-grid line {
  stroke: #e5ebf2;
  stroke-width: 1;
}

.access-chart-grid text,
.access-chart-labels text {
  fill: #8a96a3;
  font-size: 11px;
  font-weight: 650;
}

.access-chart-axis {
  stroke: #cbd6e2;
  stroke-width: 1.2;
}

.access-chart-series polyline {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.access-table .access-col-resource {
  width: 24%;
}

.access-table .access-col-page {
  width: 26%;
}

.access-table .access-col-user {
  width: 18%;
}

.access-table .access-col-ip {
  width: 13%;
}

.access-table .access-col-time {
  width: 19%;
}

.access-detail-table .access-col-resource {
  width: 25%;
}

.access-detail-table .access-col-page {
  width: 25%;
}

.access-detail-table .access-col-user {
  width: 12%;
}

.access-detail-table .access-col-ip {
  width: 11%;
}

.access-detail-table .access-col-time {
  width: 15%;
}

.access-detail-table .access-col-operation {
  width: 12%;
}

.directory-admin {
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(320px, 1fr);
  min-height: calc(100vh - 82px);
}

.directory-tree-panel,
.directory-detail-panel {
  min-width: 0;
  padding: 18px 20px;
}

.directory-tree-panel {
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.directory-detail-panel {
  background: #f8fafc;
}

.directory-panel-title,
.directory-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #334763;
  font-size: 17px;
  font-weight: 800;
}

.directory-detail-title span:last-child {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #ffffff;
  color: #334763;
}

.directory-search svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.directory-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.directory-tree {
  display: grid;
  gap: var(--directory-tree-row-gap);
}

.directory-node,
.directory-children {
  display: grid;
  gap: var(--directory-tree-row-gap);
}

.directory-node-main {
  display: grid;
  grid-template-columns: 12px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--directory-tree-row-height);
  padding: var(--directory-tree-row-padding-y) 8px var(--directory-tree-row-padding-y) calc(var(--directory-tree-indent-base) + var(--depth) * var(--directory-tree-indent-step));
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #334763;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.directory-node-main:hover,
.directory-node-main.active {
  background: #dce8f8;
}

.directory-node-caret {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  opacity: 0;
}

.directory-node-caret.expanded {
  opacity: 0.9;
  transform: rotate(90deg);
}

.directory-node-icon {
  display: grid;
  place-items: center;
  color: #f28a13;
}

.directory-node-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.directory-node-name {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-node-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.directory-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-form label {
  display: grid;
  gap: 6px;
  color: #334763;
  font-size: 13px;
  font-weight: 750;
}

.directory-form input,
.directory-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 7px 10px;
}

.directory-switch {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-self: end;
}

.directory-switch input {
  width: 16px;
  min-height: 16px;
}

.directory-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.directory-actions .danger {
  border-color: rgba(201, 50, 50, 0.28);
  color: #b72f2f;
}

.permission-admin {
  display: grid;
  grid-template-columns: minmax(220px, 28%) minmax(360px, 1fr);
  min-height: calc(100vh - 82px);
}

.permission-role-panel,
.permission-directory-panel {
  min-width: 0;
  padding: 18px 20px;
}

.permission-role-panel {
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.permission-directory-panel {
  background: #f8fafc;
}

.permission-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #334763;
  font-size: 17px;
  font-weight: 800;
}

.permission-panel-title span:last-child {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #ffffff;
  color: #334763;
}

.permission-search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.permission-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.permission-role-list {
  display: grid;
  gap: 6px;
}

.permission-empty {
  min-height: 70px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.permission-role-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #334763;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.permission-role-item:hover,
.permission-role-item.active {
  background: #dce8f8;
}

.permission-role-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-role-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.permission-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.permission-toolbar button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cbd9e1;
  border-radius: 5px;
  background: #ffffff;
  color: #334763;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.permission-toolbar button:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.12);
}

.permission-toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.permission-directory-tree {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.permission-node,
.permission-children {
  display: grid;
  gap: 4px;
}

.permission-node-main {
  display: grid;
  grid-template-columns: 18px 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px 5px calc(10px + var(--depth) * 22px);
  border-radius: 4px;
  color: #334763;
}

.permission-node-main:hover {
  background: #eef5fc;
}

.permission-lock-button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #cbd9e1;
  border-radius: 4px;
  background: #ffffff;
  color: #7b8794;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.permission-lock-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.permission-lock-button:hover,
.permission-lock-button:focus-visible {
  border-color: var(--accent);
  outline: 0;
  color: var(--accent);
}

.permission-lock-button.is-locked {
  border-color: #2d7fdc;
  background: #2d7fdc;
  color: #ffffff;
}

.permission-lock-button.is-partial {
  border-color: #8db9e8;
  background: #e7f1ff;
  color: #2d7fdc;
}

.permission-node-icon {
  display: grid;
  place-items: center;
  color: #176b87;
}

.permission-node-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.permission-node-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-node-path {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-user-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(160px, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.role-user-toolbar input {
  min-width: 0;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #d9e0e7;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.role-user-toolbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-user-list {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 130px;
}

.role-user-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  min-height: 34px;
  padding: 6px 8px 6px 11px;
  border-radius: 4px;
  background: #eaf2fd;
  color: #40516a;
  font-size: 13px;
  font-weight: 700;
}

.role-user-chip.is-available {
  border: 1px solid #d8e3ec;
  background: #ffffff;
}

.role-user-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-user-chip button {
  border: 0;
  background: transparent;
  color: #8c3b3b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.role-user-chip .role-user-action.add {
  color: #176b87;
}

.role-user-chip button:hover {
  color: #b42318;
}

.role-user-chip .role-user-action.add:hover {
  color: #0f766e;
}

html[data-theme="dark"] .side-nav {
  --side-nav-item-color: #d9e4ef;
  border-color: #26384b;
  background:
    linear-gradient(180deg, rgba(17, 28, 43, 0.98), rgba(13, 24, 37, 0.98)),
    radial-gradient(circle at 18% 0%, rgba(56, 168, 199, 0.16), transparent 32%),
    radial-gradient(circle at 112% 16%, rgba(52, 201, 138, 0.10), transparent 34%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .side-nav::before {
  background: linear-gradient(180deg, #38a8c7, #34c98a);
  opacity: 0.78;
}

html[data-theme="dark"] .side-nav::after {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.08), transparent 44%);
}

html[data-theme="dark"] .nav-collapsed .side-nav {
  background: linear-gradient(180deg, rgba(17, 28, 43, 0.98), rgba(13, 24, 37, 0.98));
  box-shadow: inset 0 0 0 1px rgba(38, 56, 75, 0.9);
}

html[data-theme="dark"] .side-nav-title {
  border-bottom-color: rgba(49, 70, 90, 0.82);
  color: #9aa8ba;
}

html[data-theme="dark"] .side-nav-brand-logo {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .side-nav-brand-text {
  color: #d9e4ef;
}

html[data-theme="dark"] .side-nav-link {
  color: var(--side-nav-item-color);
}

html[data-theme="dark"] .side-nav-link.active,
html[data-theme="dark"] .side-nav-link:hover {
  border-color: transparent;
  background: transparent;
  color: var(--side-nav-item-color);
  box-shadow: none;
}

html[data-theme="dark"] .side-nav-link.active::before,
html[data-theme="dark"] .side-nav-link:hover::before {
  background: #22344a;
  box-shadow: inset 4px 0 0 rgba(56, 168, 199, 0.9);
}

html[data-theme="dark"] .side-nav-group.active .side-nav-parent {
  color: var(--side-nav-item-color);
}

html[data-theme="dark"] .side-nav-group.active .side-nav-parent::before {
  background: #22344a;
  box-shadow: inset 4px 0 0 rgba(56, 168, 199, 0.9);
}

html[data-theme="dark"] .side-nav-group:has(.side-nav-sublink.active) .side-nav-parent::before {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .side-nav-submenu::before {
  display: none;
}

html[data-theme="dark"] .side-nav-resize-handle:hover::before,
html[data-theme="dark"] .side-nav-resize-handle:focus-visible::before,
html[data-theme="dark"] body.side-nav-resizing .side-nav-resize-handle::before {
  background: rgba(56, 168, 199, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 168, 199, 0.16);
}

html[data-theme="dark"] .side-nav-sublink {
  color: var(--side-nav-item-color);
}

html[data-theme="dark"] .side-nav-subicon {
  color: #9aa8ba;
}

html[data-theme="dark"] .side-nav-sublink:hover,
html[data-theme="dark"] .side-nav-sublink.active {
  color: var(--side-nav-item-color);
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .side-nav-sublink:hover::before {
  background: rgba(34, 52, 74, 0.48);
}

html[data-theme="dark"] .side-nav-sublink.active::before {
  background: #22344a;
  box-shadow: inset 4px 0 0 rgba(56, 168, 199, 0.9);
}

html[data-theme="dark"] .side-nav-toggle,
html[data-theme="dark"] .side-nav-system,
html[data-theme="dark"] .side-nav-theme,
html[data-theme="dark"] .side-nav-user {
  border-color: #2a4055;
  background: linear-gradient(180deg, #142033 0%, #101a28 100%);
  color: var(--ink);
}

html[data-theme="dark"] .side-nav-toggle {
  color: #66778a;
}

html[data-theme="dark"] .side-nav-system:hover,
html[data-theme="dark"] .side-nav-theme:hover,
html[data-theme="dark"] .side-nav-user:hover {
  border-color: var(--accent);
  background: #16293a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .side-nav-system-icon,
html[data-theme="dark"] .side-nav-theme-icon {
  background: #19354a;
  color: #6bd3ed;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

html[data-theme="dark"] .side-nav-system-text,
html[data-theme="dark"] .side-nav-theme-text,
html[data-theme="dark"] .side-nav-user-text {
  color: #c6d2df;
}

html[data-theme="dark"] .side-nav-user.logged {
  border-color: rgba(52, 201, 138, 0.42);
  background: linear-gradient(180deg, rgba(20, 61, 45, 0.92), rgba(15, 42, 35, 0.94));
}

html[data-theme="dark"] .side-nav-user.logged .side-nav-user-text {
  color: #a8f0c9;
}

html[data-theme="dark"] .side-nav-system.active {
  border-color: rgba(56, 168, 199, 0.44);
  background: #16293a;
  box-shadow: inset 4px 0 0 rgba(56, 168, 199, 0.9);
}

html[data-theme="dark"] .system-shell {
  border-color: #26384b;
  background: #111c2b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .system-menu {
  border-right-color: #26384b;
  background: linear-gradient(180deg, #132033 0%, #101a28 100%);
}

html[data-theme="dark"] .system-menu-resize-handle:hover::before,
html[data-theme="dark"] .system-menu-resize-handle:focus-visible::before,
html[data-theme="dark"] body.system-menu-resizing .system-menu-resize-handle::before {
  background: rgba(56, 168, 199, 0.68);
  box-shadow: 0 0 0 3px rgba(56, 168, 199, 0.14);
}

html[data-theme="dark"] .system-menu-title,
html[data-theme="dark"] .system-menu-item,
html[data-theme="dark"] .system-workspace-header h1,
html[data-theme="dark"] .directory-panel-title,
html[data-theme="dark"] .directory-detail-title,
html[data-theme="dark"] .directory-node-main,
html[data-theme="dark"] .directory-form label,
html[data-theme="dark"] .permission-panel-title,
html[data-theme="dark"] .permission-role-item,
html[data-theme="dark"] .permission-node-main {
  color: #d9e4ef;
}

html[data-theme="dark"] .system-menu-item.active,
html[data-theme="dark"] .system-menu-item:hover,
html[data-theme="dark"] .directory-node-main:hover,
html[data-theme="dark"] .directory-node-main.active,
html[data-theme="dark"] .permission-role-item:hover,
html[data-theme="dark"] .permission-role-item.active,
html[data-theme="dark"] .permission-node-main:hover {
  background: #22344a;
}

html[data-theme="dark"] .permission-role-panel,
html[data-theme="dark"] .permission-directory-panel {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .permission-search,
html[data-theme="dark"] .permission-toolbar button,
html[data-theme="dark"] .role-user-toolbar input {
  border-color: #26384b;
  background: #0f1a28;
  color: #d9e4ef;
}

html[data-theme="dark"] .permission-search input {
  color: #d9e4ef;
}

html[data-theme="dark"] .design-qa-list-panel,
html[data-theme="dark"] .design-qa-detail-panel,
html[data-theme="dark"] .design-qa-detail-header {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .design-qa-search,
html[data-theme="dark"] .design-qa-source,
html[data-theme="dark"] .design-qa-tags span {
  border-color: #26384b;
  background: #0f1a28;
  color: #d9e4ef;
}

html[data-theme="dark"] .design-qa-search input,
html[data-theme="dark"] .design-qa-panel-title,
html[data-theme="dark"] .design-qa-item strong,
html[data-theme="dark"] .design-qa-detail-header h2,
html[data-theme="dark"] .design-qa-detail-section p,
html[data-theme="dark"] .design-qa-answer p,
html[data-theme="dark"] .design-qa-source {
  color: #d9e4ef;
}

html[data-theme="dark"] .design-qa-panel-title,
html[data-theme="dark"] .design-qa-detail-header {
  border-bottom-color: #26384b;
}

html[data-theme="dark"] .design-qa-item:hover,
html[data-theme="dark"] .design-qa-item.active {
  background: #22344a;
}

html[data-theme="dark"] .design-qa-item-badge {
  background: #173a52;
  color: #75d1dc;
}

html[data-theme="dark"] .permission-lock-button {
  border-color: #334861;
  background: #0f1a28;
  color: #9fb0c2;
}

html[data-theme="dark"] .permission-lock-button:hover,
html[data-theme="dark"] .permission-lock-button:focus-visible {
  border-color: #75d1dc;
  color: #75d1dc;
}

html[data-theme="dark"] .permission-lock-button.is-locked {
  border-color: #4094ef;
  background: #1d6fbd;
  color: #ffffff;
}

html[data-theme="dark"] .permission-lock-button.is-partial {
  border-color: #315d88;
  background: #17314b;
  color: #75b9ff;
}

html[data-theme="dark"] .role-user-chip {
  background: #1b2a3f;
  color: #d9e4ef;
}

html[data-theme="dark"] .role-user-chip.is-available {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .role-user-chip button {
  color: #fecaca;
}

html[data-theme="dark"] .role-user-chip .role-user-action.add {
  color: #75d1dc;
}

html[data-theme="dark"] .performance-field,
html[data-theme="dark"] .performance-actions button,
html[data-theme="dark"] .performance-detail-toggle,
html[data-theme="dark"] .performance-table,
html[data-theme="dark"] .performance-sort {
  color: #d9e4ef;
}

html[data-theme="dark"] .performance-actions .performance-clear-records {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

html[data-theme="dark"] .performance-actions .performance-clear-records:hover {
  border-color: rgba(248, 113, 113, 0.64);
  background: rgba(127, 29, 29, 0.28);
  color: #fee2e2;
}

html[data-theme="dark"] .performance-field input,
html[data-theme="dark"] .performance-field select {
  border-color: #26384b;
  background: #0f1a28;
  color: #d9e4ef;
}

html[data-theme="dark"] .performance-table-wrap {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .performance-table th {
  background: #1b2a3f;
  color: #c6d2df;
}

html[data-theme="dark"] .performance-table th,
html[data-theme="dark"] .performance-table td {
  border-bottom-color: #26384b;
}

html[data-theme="dark"] .performance-table tbody tr:nth-child(odd) {
  background: #111c2b;
}

html[data-theme="dark"] .performance-table tbody tr:nth-child(even) {
  background: #0f1a28;
}

html[data-theme="dark"] .performance-table tbody tr:hover {
  background: #16293a;
}

html[data-theme="dark"] .access-metric,
html[data-theme="dark"] .access-trend-chart {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .access-metric span,
html[data-theme="dark"] .access-chart-title,
html[data-theme="dark"] .access-section-title {
  color: #c6d2df;
}

html[data-theme="dark"] .access-chart-section,
html[data-theme="dark"] .access-online-section,
html[data-theme="dark"] .access-detail-section {
  border-color: #26384b;
}

html[data-theme="dark"] .access-chart-title span:last-child,
html[data-theme="dark"] .access-section-title span:last-child {
  color: #94a3b8;
}

html[data-theme="dark"] .access-chart-grid line {
  stroke: #26384b;
}

html[data-theme="dark"] .access-chart-grid text,
html[data-theme="dark"] .access-chart-labels text {
  fill: #94a3b8;
}

html[data-theme="dark"] .access-chart-axis {
  stroke: #475569;
}

@media (max-width: 1180px) {
  .access-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-detail-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .access-admin {
    padding: 10px;
  }

  .access-toolbar,
  .access-detail-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-chart-title,
  .access-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

html[data-theme="dark"] .system-workspace,
html[data-theme="dark"] .directory-detail-panel {
  background: #0f1a28;
}

html[data-theme="dark"] .system-workspace-header,
html[data-theme="dark"] .directory-tree-panel {
  border-color: #26384b;
  background: #111c2b;
}

html[data-theme="dark"] .directory-search,
html[data-theme="dark"] .directory-form input,
html[data-theme="dark"] .directory-form select,
html[data-theme="dark"] .directory-panel-title button,
html[data-theme="dark"] .directory-actions button {
  border-color: #31465a;
  background: #101a28;
  color: var(--ink);
}

html[data-theme="dark"] .directory-node-icon {
  color: #ffb454;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.auth-modal-backdrop[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid #cdd9e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  outline: none;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #f8fafc;
  color: #687381;
  cursor: pointer;
}

.auth-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.auth-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding-right: 34px;
  margin-bottom: 16px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8f3f7;
  color: var(--accent);
}

.auth-brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.auth-hero h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

.auth-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-hero .auth-contact {
  margin-top: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.auth-contact strong {
  color: var(--ink);
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  background: #f6f8fa;
}

.auth-tabs button {
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5a6775;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.auth-tabs[hidden],
.auth-logged-panel[hidden] {
  display: none;
}

.auth-logged-panel {
  display: grid;
  gap: 12px;
}

.auth-logged-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cde4d6;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6fff9 0%, #eef9f2 100%);
}

.auth-logged-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #16814a;
  color: #fff;
}

.auth-logged-avatar svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.auth-logged-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.auth-logged-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logged-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logged-main .auth-logged-status {
  color: #16814a;
  font-weight: 800;
}

.auth-logout {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e3c6c6;
  border-radius: 8px;
  background: #fff7f7;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-logout:hover {
  border-color: var(--red);
  background: #fff1f1;
  box-shadow: 0 8px 18px rgba(201, 50, 50, 0.12);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #52606f;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-form input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.auth-form input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 50, 50, 0.1);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.auth-code-row button {
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #bdd3dd;
  border-radius: 8px;
  background: #eef7fb;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-code-row button:disabled {
  border-color: #d9e0e7;
  background: #f1f4f7;
  color: #8b97a4;
  cursor: not-allowed;
}

.auth-agreement {
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px !important;
  color: #52606f !important;
  font-weight: 500 !important;
}

.auth-agreement input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  padding: 0;
}

.auth-agreement a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-primary {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.auth-primary:hover {
  background: #125a72;
  box-shadow: 0 8px 18px rgba(23, 107, 135, 0.2);
}

.auth-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-message.error {
  color: var(--red);
}

.auth-message.ok {
  color: var(--green);
}

.auth-doc-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100% - 36px));
  max-height: min(78vh, 720px);
  border: 1px solid #cdd9e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  color: var(--ink);
  outline: none;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.auth-doc-modal[hidden] {
  display: none;
}

.auth-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #d9e4ee;
  background: #f7fafc;
}

.auth-doc-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.auth-doc-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.auth-doc-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
  color: #687381;
  cursor: pointer;
}

.auth-doc-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-doc-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.auth-doc-content {
  min-height: 0;
  padding: 20px 24px 24px;
  overflow-y: auto;
  color: #3e4d5d;
  font-size: 14px;
  line-height: 1.8;
}

.auth-doc-section + .auth-doc-section {
  margin-top: 22px;
}

.auth-doc-section h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.auth-doc-section p {
  margin: 0 0 9px;
}

.auth-doc-section strong {
  color: var(--ink);
}

.shell {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 4px;
}

.bullish-query-toast {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 90;
  max-width: min(360px, 52vw);
  padding: 8px 14px;
  border: 1px solid rgba(23, 107, 135, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.96), rgba(21, 132, 86, 0.94)),
    #176b87;
  box-shadow: 0 12px 26px rgba(23, 107, 135, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.bullish-query-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.bullish-query-toast.is-hiding {
  opacity: 0;
  transform: translateX(10px) scale(0.98);
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar > div:first-child {
  min-width: 0;
}

.page-seo-summary {
  max-width: min(760px, calc(100vw - 260px));
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bullish2-page .page-seo-summary,
.emotion-topbar .page-seo-summary,
.minute-page-header .page-seo-summary {
  max-width: min(680px, calc(100vw - 260px));
}

.status {
  min-width: 92px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.status.ok {
  color: var(--green);
}

.status.error {
  color: var(--red);
}

.stock-data-shell {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-bottom: 18px;
}

.stock-data-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: stretch;
  min-height: 320px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 254, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(23, 107, 135, 0.16), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(21, 132, 86, 0.12), transparent 30%);
  box-shadow: 0 12px 28px rgba(33, 54, 73, 0.08);
}

.stock-data-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.stock-data-eyebrow,
.stock-data-section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.stock-data-hero h1 {
  max-width: 760px;
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.12;
}

.stock-data-hero p {
  max-width: 760px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
}

.stock-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stock-data-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 107, 135, 0.24);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stock-data-actions a:first-child {
  background: linear-gradient(135deg, #176b87, #158456);
  color: #fff;
}

.stock-data-actions a:hover,
.stock-data-actions a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(23, 107, 135, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.stock-data-hero-panel {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.stock-data-hero-panel > div {
  padding: 16px;
  border: 1px solid rgba(23, 107, 135, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.stock-data-hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.stock-data-hero-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.stock-data-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stock-data-section-head {
  max-width: 760px;
}

.stock-data-section-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
}

.stock-data-section-head p {
  line-height: 1.7;
}

.stock-data-feature-grid,
.stock-data-copy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stock-data-copy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-data-feature-grid article,
.stock-data-copy-grid article,
.stock-data-list-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
}

.stock-data-feature-grid h3,
.stock-data-copy-grid h3,
.stock-data-list-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.stock-data-feature-grid p,
.stock-data-copy-grid p {
  line-height: 1.7;
}

.stock-data-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.stock-data-list-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.stock-data-docs-head {
  max-width: none;
}

.stock-data-docs-panel {
  margin-top: 20px;
  padding: 2px 0 10px;
  overflow-x: visible;
}

.stock-data-doc-tree,
.stock-data-doc-pages,
.stock-data-doc-charts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-data-doc-parent + .stock-data-doc-parent {
  margin-top: 28px;
}

.stock-data-doc-parent {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(23, 107, 135, 0.12), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.09), transparent 34%);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
  isolation: isolate;
}

.stock-data-doc-parent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 6% 16%, rgba(56, 189, 248, 0.12), transparent 26%),
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.36) 48%, transparent 78%);
  opacity: 0.72;
  pointer-events: none;
}

.stock-data-doc-parent-row,
.stock-data-doc-page-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.stock-data-doc-parent-row {
  position: relative;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 96px;
  padding: 28px 32px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.26)),
    radial-gradient(circle at 7% 8%, rgba(23, 107, 135, 0.12), transparent 26%);
  box-shadow: none;
  overflow: hidden;
}

.stock-data-doc-parent-row::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 107, 135, 0.28), rgba(203, 213, 225, 0.76), transparent);
  box-shadow: 0 0 14px rgba(23, 107, 135, 0.16);
}

.stock-data-doc-parent-marker {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2f3b49;
}

.stock-data-doc-parent-badge {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #176b87 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 107, 135, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.64) inset;
}

.stock-data-doc-parent-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.stock-data-doc-parent-name {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-size: 28px;
  font-weight: 840;
  line-height: 1.35;
  letter-spacing: 0;
}

.stock-data-doc-pages {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 26px 32px 32px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.52), rgba(255, 255, 255, 0.3));
}

.stock-data-doc-page {
  min-width: 0;
}

.stock-data-doc-page + .stock-data-doc-page {
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.54);
}

.stock-data-doc-page-row {
  position: relative;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.58);
}

.stock-data-doc-page-row::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 118px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 107, 135, 0.86), transparent);
  box-shadow: 0 0 12px rgba(23, 107, 135, 0.22);
}

.stock-data-doc-page-marker {
  flex: 0 0 auto;
  width: 5px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #176b87;
  box-shadow: 0 0 10px rgba(23, 107, 135, 0.24);
}

.stock-data-doc-page-link {
  flex: 1 1 auto;
  min-width: 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.38;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.16s ease;
}

.stock-data-doc-page-link:hover,
.stock-data-doc-page-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.stock-data-doc-charts {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.74)),
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.08), transparent 34%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  overflow: hidden;
  isolation: isolate;
}

.stock-data-doc-charts::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.58) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 0.24s ease, transform 0.34s ease;
}

.stock-data-doc-page:hover .stock-data-doc-charts::before {
  opacity: 1;
  transform: translateX(18%);
}

.stock-data-doc-chart {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stock-data-doc-chart:last-child {
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.stock-data-doc-chart:hover {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  transform: translateX(6px);
}

.stock-data-doc-chart-title-wrap {
  display: flex;
  flex: 0 0 240px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stock-data-doc-chart-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.stock-data-doc-chart:hover .stock-data-doc-chart-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 0 12px rgba(37, 99, 235, 0.42);
}

.stock-data-doc-chart-title {
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stock-data-doc-chart-desc {
  flex: 1 1 auto;
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.stock-data-doc-chart:hover .stock-data-doc-chart-title {
  color: #176b87;
}

.stock-data-doc-chart:hover .stock-data-doc-chart-desc {
  color: #475569;
}

.toolbar {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 140px 92px;
  gap: 10px;
  align-items: end;
  width: 100%;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stock-toolbar {
  grid-template-columns: 180px minmax(220px, 1fr) 140px minmax(138px, 160px) 92px;
}

.bullish-toolbar {
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 0;
  overflow-x: visible;
  overflow-y: visible;
  align-items: end;
}

.bullish-toolbar-scroll {
  display: grid;
  grid-template-columns:
    minmax(150px, 150px)
    minmax(140px, 150px)
    minmax(70px, 80px)
    minmax(118px, 140px)
    repeat(13, minmax(115px, 140px));
  grid-template-rows: auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(115px, 140px);
  column-gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  min-width: 0;
  padding-left: 2px;
  scrollbar-width: none;
  cursor: grab;
}

.bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns:
    minmax(150px, 150px)
    minmax(140px, 150px)
    minmax(70px, 80px)
    minmax(118px, 140px)
    repeat(18, minmax(115px, 140px));
}

.launch-consolidation-page .bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns:
    minmax(150px, 150px)
    minmax(140px, 150px)
    minmax(70px, 80px)
    minmax(118px, 140px)
    minmax(118px, 140px)
    repeat(7, minmax(115px, 140px))
    repeat(5, minmax(162px, 168px))
    repeat(6, minmax(115px, 140px));
  grid-auto-columns: minmax(115px, 140px);
}

.bullish-param-warning {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(198, 116, 36, 0.24);
  border-radius: 8px;
  background: #fff6e5;
  color: #9a4d10;
  font-size: 13px;
  font-weight: 750;
}

.bullish-param-warning[hidden] {
  display: none;
}

.bullish-toolbar [data-bullish-param-control].has-param-error .city-multi-button {
  border-color: rgba(198, 116, 36, 0.56);
  box-shadow: 0 0 0 3px rgba(198, 116, 36, 0.12);
}

.bullish-toolbar [data-bullish-param-control].has-param-error .finance-threshold-input {
  border-color: rgba(198, 116, 36, 0.56);
  box-shadow: 0 0 0 3px rgba(198, 116, 36, 0.12);
}

.bullish-toolbar-scroll:has([data-bullish-param-control="end_date"][hidden]) {
  grid-template-columns:
    minmax(140px, 150px)
    minmax(70px, 80px)
    minmax(118px, 140px)
    repeat(13, minmax(115px, 140px));
}

.bullish-toolbar-scroll.has-period-gain-filters:has([data-bullish-param-control="end_date"][hidden]) {
  grid-template-columns:
    minmax(140px, 150px)
    minmax(70px, 80px)
    minmax(118px, 140px)
    repeat(18, minmax(115px, 140px));
}

.stock-fund-bullish-page .bullish-toolbar-scroll,
.stock-fund-bullish-page .bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns: 150px 86px 128px repeat(5, 116px);
  grid-auto-columns: 116px;
  column-gap: 8px;
}

.stock-fund-bullish-page:not(.stock-fund-stock-etfs-page) .bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns: 150px 86px 128px repeat(5, 136px);
  grid-auto-columns: 136px;
}

.stock-fund-bullish-page:not(.stock-fund-stock-etfs-page) .bullish-toolbar-scroll.has-period-gain-filters:has([data-bullish-param-control="ma_lines"].is-param-hidden) {
  grid-template-columns: 150px 86px repeat(5, 148px);
  grid-auto-columns: 148px;
}

.stock-fund-bullish-page .bullish-toolbar input,
.stock-fund-bullish-page .bullish-toolbar .period-input,
.stock-fund-bullish-page .city-multi-button {
  padding-right: 8px;
  padding-left: 8px;
}

.stock-fund-bullish-page .city-multi-button {
  padding-right: 22px;
}

.stock-fund-bullish-page .period-input span {
  padding-right: 8px;
}

.stock-fund-bullish-page .period-gain-threshold-input input {
  padding-right: 6px;
  padding-left: 8px;
}

.stock-fund-bullish-page .period-gain-threshold-input span {
  padding-right: 8px;
}

.stock-fund-bullish-page .period-gain-range-input {
  grid-template-columns: minmax(44px, 1fr) 12px minmax(44px, 1fr) 24px;
}

.stock-fund-bullish-page .period-gain-range-input > span:last-child {
  min-width: 24px;
  padding-right: 6px;
  text-align: center;
}

.stock-fund-stock-etfs-page .bullish-toolbar-scroll,
.stock-fund-stock-etfs-page .bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns: 150px 150px 136px 86px 128px repeat(5, 116px);
  grid-auto-columns: 116px;
  column-gap: 8px;
}

.stock-fund-stock-etfs-page [data-bullish-param-control="holding_period"] select {
  padding-right: 22px;
}

.stock-fund-heavy-stocks-page .bullish-toolbar-scroll,
.stock-fund-heavy-stocks-page .bullish-toolbar-scroll.has-period-gain-filters {
  grid-template-columns:
    150px
    142px
    136px
    72px
    112px
    118px
    repeat(18, minmax(112px, 128px));
  grid-auto-columns: minmax(112px, 128px);
  column-gap: 8px;
}

.stock-fund-heavy-stocks-page .bullish-toolbar input,
.stock-fund-heavy-stocks-page .bullish-toolbar select,
.stock-fund-heavy-stocks-page .bullish-toolbar .period-input,
.stock-fund-heavy-stocks-page .city-multi-button {
  padding-right: 8px;
  padding-left: 8px;
}

.stock-fund-heavy-stocks-page [data-bullish-param-control="holding_period"] select {
  padding-right: 22px;
}

.stock-fund-heavy-stocks-page [data-bullish-param-control="limit"] .period-input {
  grid-template-columns: minmax(28px, 1fr) auto;
}

.stock-fund-heavy-stocks-page [data-bullish-param-control="limit"] .period-input input {
  padding-right: 2px;
  padding-left: 8px;
  text-align: left;
}

.stock-fund-heavy-stocks-page [data-bullish-param-control="limit"] .period-input span {
  padding-right: 6px;
}

.bullish-toolbar-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.bullish-toolbar-scroll::-webkit-scrollbar {
  display: none;
}

.bullish-toolbar-scroll > * {
  min-width: 0;
}

.bullish-toolbar input,
.bullish-toolbar select,
.bullish-toolbar .period-input,
.bullish-toolbar .finance-threshold-input,
.bullish-toolbar .param-switch-input {
  min-width: 0;
  max-width: 100%;
}

.bullish-toolbar label:nth-child(2) {
  min-width: 0;
}

.bullish-toolbar label:nth-child(1),
.bullish-toolbar label:nth-child(3) {
  max-width: none;
}

.bullish-toolbar button {
  min-width: 92px;
}

.bullish-toolbar #bullishQueryBtn {
  z-index: 4;
  min-width: 68px;
  padding-right: 8px;
  padding-left: 8px;
}

.bullish-toolbar select {
  overflow: hidden;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-multi-select {
  position: relative;
  min-width: 0;
}

.city-multi-button {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding-right: 24px;
  border-color: #cbd5df;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: var(--ink);
  font-weight: 400;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.city-multi-button:hover,
.city-multi-button[aria-expanded="true"] {
  border-color: #8fb4c6;
  background: #f4f9fc;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.08);
}

.city-multi-button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-35%);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid #687381;
}

.city-multi-panel {
  position: absolute;
  z-index: 140;
  top: calc(100% + 4px);
  left: 0;
  width: min(260px, 70vw);
  padding: 8px;
  border: 1px solid #bfd0dc;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98)),
    radial-gradient(circle at 10% 0%, rgba(23, 107, 135, 0.08), transparent 28%);
  box-shadow: 0 18px 38px rgba(23, 32, 42, 0.16), 0 4px 12px rgba(23, 107, 135, 0.08);
}

.city-multi-panel.is-floating {
  position: fixed;
  z-index: 260;
}

.city-multi-panel input[type="text"] {
  height: 30px;
  margin-bottom: 8px;
  border-color: #b8cbd8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.city-multi-panel input[type="text"]:focus {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.city-multi-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.city-multi-actions button {
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #bfd0dc;
  border-radius: 8px;
  background: #f7fbfd;
  color: #526477;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.city-multi-actions button:hover {
  border-color: #176b87;
  background: #e8f5fa;
  color: #176b87;
  box-shadow: 0 4px 10px rgba(23, 107, 135, 0.1);
}

.city-multi-options {
  display: grid;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: #b8cbd8 transparent;
  scrollbar-width: thin;
}

.city-multi-options::-webkit-scrollbar {
  width: 5px;
}

.city-multi-options::-webkit-scrollbar-track {
  background: transparent;
}

.city-multi-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8cbd8;
}

.city-multi-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.city-multi-option:hover {
  border-color: rgba(23, 107, 135, 0.12);
  background: #eef7fb;
  color: #12364a;
}

.city-multi-option.is-selected {
  border-color: rgba(23, 107, 135, 0.18);
  background: linear-gradient(180deg, #e6f4fa, #dff0f7);
  color: #0f526b;
  font-weight: 750;
}

.city-multi-option input[type="checkbox"],
.city-multi-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #7d8790;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.city-multi-option input[type="checkbox"]:checked,
.city-multi-option input[type="radio"]:checked {
  border-color: #176b87;
  background:
    linear-gradient(135deg, transparent 54%, #fff 54% 64%, transparent 64%) 2px 1px / 9px 9px no-repeat,
    linear-gradient(45deg, transparent 46%, #fff 46% 58%, transparent 58%) 4px 6px / 8px 6px no-repeat,
    #176b87;
}

.city-multi-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-page-panel {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.empty-page-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bullish-results-panel {
  padding: 10px;
}

.bullish-results-panel.is-empty {
  display: none;
}

.bullish-results-panel h2 {
  display: none;
}

.bullish-results-panel p {
  display: none;
  margin: 0;
}

.bullish-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.bullish-chart-card {
  position: relative;
  min-width: 0;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.bullish-chart-card-header {
  position: relative;
  display: grid;
  gap: 1px;
  min-height: 74px;
  padding: 8px 10px 4px;
}

.bullish-card-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  color: #8a96a3;
  cursor: pointer;
  box-shadow: none !important;
  filter: none !important;
  outline: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.bullish-card-favorite:hover,
.bullish-card-favorite:focus,
.bullish-card-favorite:focus-visible,
.bullish-card-favorite:active {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none;
  color: #d99821;
}

.bullish-card-favorite::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  max-width: 210px;
  padding: 6px 8px;
  border: 1px solid rgba(203, 217, 225, 0.9);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(33, 54, 73, 0.16);
  color: #334763;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.bullish-card-favorite:hover::after,
.bullish-card-favorite:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.bullish-favorite-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(260px, calc(100vw - 16px));
  padding: 6px 8px;
  border: 1px solid rgba(203, 217, 225, 0.95);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(33, 54, 73, 0.16);
  color: #334763;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

.bullish-favorite-tooltip[hidden] {
  display: none;
}

html[data-theme="dark"] .bullish-card-favorite::after {
  border-color: #31465a;
  background: #101a28;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  color: #d9e4ef;
}

html[data-theme="dark"] .bullish-favorite-tooltip {
  border-color: #31465a;
  background: #101a28;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  color: #d9e4ef;
}

.bullish-card-favorite:disabled {
  cursor: wait;
  opacity: 0.68;
}

.bullish-card-favorite svg {
  width: 20px;
  height: 20px;
  fill: transparent;
  filter: none !important;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.bullish-card-favorite.is-liked {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffd21f;
  filter: none !important;
}

.bullish-card-favorite.is-liked svg {
  fill: currentColor;
  filter: none !important;
  stroke: currentColor;
}

.bullish-chart-card-header strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  padding-right: 30px;
}

.stock-fund-heavy-link {
  color: inherit;
  text-decoration: none;
}

.stock-fund-heavy-link:hover {
  color: #176b87;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bullish-chart-card-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bullish-chart-card-period-return,
.bullish-chart-card-profile,
.bullish-chart-card-concepts,
.bullish-chart-card-financials,
.bullish-chart-card-fund-holdings {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  color: #7b8794;
  cursor: grab;
  font-size: 10px;
  line-height: 1.35;
  scrollbar-width: none;
  white-space: nowrap;
  user-select: none;
}

.bullish-chart-card-period-return {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px 2px 5px;
  border: 1px solid rgba(76, 102, 164, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #546274;
}

.bullish-chart-card-header strong > .bullish-chart-card-period-return {
  display: inline-flex;
  margin: 0 0 0 5px;
  overflow-x: hidden;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  vertical-align: middle;
}

.bullish-chart-card-period-return-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 102, 164, 0.15), rgba(23, 107, 135, 0.12));
  color: #446098;
}

.bullish-chart-card-period-return-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.bullish-chart-card-period-return-text {
  flex: 0 0 auto;
}

.bullish-chart-card-period-return-value {
  font-size: inherit;
  font-weight: 750;
  line-height: inherit;
}

.bullish-chart-card-period-return .bullish-chart-card-period-return-text .bullish-chart-card-period-return-fund-label {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.bullish-chart-card-period-return .bullish-chart-card-period-return-text,
.bullish-chart-card-period-return .bullish-chart-card-period-return-value {
  color: inherit;
}

.bullish-chart-card-period-return.period-return-up {
  border-color: rgba(201, 50, 50, 0.12);
  background:
    linear-gradient(90deg, rgba(201, 50, 50, 0.065), rgba(201, 50, 50, 0.03)),
    rgba(255, 250, 250, 0.9);
  color: #b72f2f;
}

.bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-icon {
  background: linear-gradient(135deg, rgba(201, 50, 50, 0.13), rgba(201, 50, 50, 0.06));
  color: #c93232;
}

.bullish-chart-card-period-return.period-return-down {
  border-color: rgba(21, 132, 86, 0.12);
  background:
    linear-gradient(90deg, rgba(21, 132, 86, 0.065), rgba(21, 132, 86, 0.03)),
    rgba(250, 255, 252, 0.9);
  color: #13734c;
}

.bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-icon {
  background: linear-gradient(135deg, rgba(21, 132, 86, 0.13), rgba(21, 132, 86, 0.06));
  color: #158456;
}

.bullish-chart-card-period-return.period-return-flat {
  color: #687381;
}

.bullish-chart-card-financials {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px 2px 5px;
  border: 1px solid rgba(76, 102, 164, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #546274;
}

.bullish-chart-card-profile {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px 2px 5px;
  border: 1px solid rgba(76, 102, 164, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #546274;
}

.bullish-chart-card-profile-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 102, 164, 0.15), rgba(23, 107, 135, 0.12));
  color: #446098;
}

.bullish-chart-card-profile-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.bullish-chart-card-profile-text {
  flex: 0 0 auto;
}

.bullish-chart-card-concepts {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px 2px 5px;
  border: 1px solid rgba(76, 102, 164, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #546274;
}

.bullish-chart-card-concepts-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 102, 164, 0.15), rgba(23, 107, 135, 0.12));
  color: #446098;
}

.bullish-chart-card-concepts-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.bullish-chart-card-concepts-text {
  flex: 0 0 auto;
}

.bullish-chart-card-financials-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 102, 164, 0.15), rgba(23, 107, 135, 0.12));
  color: #446098;
}

.bullish-chart-card-financials-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.bullish-chart-card-financials-text {
  flex: 0 0 auto;
}

.bullish-chart-card-fund-holdings {
  width: 100%;
  max-width: 100%;
  margin-top: 1px;
  padding: 3px 0 1px;
  cursor: grab;
}

.stock-fund-bullish-page .bullish-chart-card-header strong,
.stock-fund-bullish-page .bullish-chart-card-fund-holdings,
.stock-fund-bullish-page .bullish-chart-card-fund-holdings-row,
.stock-fund-bullish-page .bullish-chart-card-fund-holdings-row span {
  user-select: text;
}

.stock-fund-bullish-page .bullish-chart-card-header strong,
.stock-fund-bullish-page .bullish-chart-card-fund-holdings-row {
  cursor: text;
}

.bullish-chart-card-fund-holdings-columns {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.bullish-chart-card-fund-holdings-period {
  position: relative;
  width: max-content;
  min-width: 300px;
  max-width: none;
  padding: 4px 6px;
  border: 1px solid rgba(23, 107, 135, 0.13);
  border-radius: 6px;
  background: rgba(248, 252, 254, 0.78);
  overflow: visible;
}

.bullish-chart-card-fund-holdings-period::before {
  content: attr(data-period);
  position: absolute;
  right: 8px;
  bottom: -5px;
  z-index: 0;
  color: rgba(23, 107, 135, 0.14);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
}

.bullish-chart-card-fund-holdings-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0;
  overflow: visible;
  color: #536274;
  font-size: inherit;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
}

.bullish-chart-card-fund-holdings-row + .bullish-chart-card-fund-holdings-row {
  margin-top: 1px;
}

.bullish-chart-card-fund-holdings-row .fund-holding-rank {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border: 1px solid rgba(107, 125, 146, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(246, 250, 254, 0.98), rgba(232, 239, 247, 0.9)),
    rgba(242, 247, 252, 0.96);
  color: #5d6f82;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.bullish-chart-card-fund-holdings-row .fund-holding-stock {
  flex: 0 0 auto;
  color: #415165;
  font-size: inherit;
  line-height: 1.35;
}

.bullish-chart-card-fund-holdings-row .fund-holding-name {
  cursor: text;
  user-select: text;
}

.bullish-chart-card-fund-holdings-row .fund-holding-name.is-highlighted-fund-holding-name {
  padding: 0 4px;
  border: 1px solid rgba(198, 116, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 213, 126, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #26384c;
}

.bullish-chart-card-fund-holdings-row .fund-holding-metric {
  flex: 0 0 auto;
  color: #647386;
  font-size: inherit;
  line-height: 1.35;
}

.bullish-chart-card-fund-holdings-row b {
  color: #26384c;
  font-weight: 820;
}

.bullish-chart-card-fund-holdings-row .fund-holding-value,
.bullish-chart-card-fund-holdings-row .fund-holding-change-value {
  color: #26384c;
  font-weight: 820;
}

.bullish-chart-card-fund-holdings-row .fund-holding-change-badge {
  min-width: 0;
  margin-left: 1px;
  padding: 0 4px;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.25;
  vertical-align: 0;
}

.bullish-chart-card-fund-holdings-row .fund-holding-change-unit {
  font-weight: 500;
}

.bullish-section-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin: 0 4px;
  border-radius: 999px;
  background: rgba(76, 102, 164, 0.08);
  color: #6e7f98;
  vertical-align: -2px;
}

.bullish-section-separator svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.financial-amount {
  font-size: inherit;
  font-weight: 700;
}

.financial-yoy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  margin: 0 1px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: baseline;
}

.financial-yoy-up {
  border-color: rgba(201, 50, 50, 0.12);
  background: rgba(201, 50, 50, 0.075);
  color: #b72f2f;
}

.financial-yoy-down {
  border-color: rgba(21, 132, 86, 0.12);
  background: rgba(21, 132, 86, 0.075);
  color: #13734c;
}

.financial-yoy-flat {
  border-color: rgba(104, 115, 129, 0.12);
  background: rgba(104, 115, 129, 0.075);
  color: #687381;
}

.bullish-chart-card-period-return.is-dragging,
.bullish-chart-card-profile.is-dragging,
.bullish-chart-card-concepts.is-dragging,
.bullish-chart-card-financials.is-dragging,
.bullish-chart-card-fund-holdings.is-dragging {
  cursor: grabbing;
}

.bullish-chart-card-period-return::-webkit-scrollbar,
.bullish-chart-card-profile::-webkit-scrollbar,
.bullish-chart-card-concepts::-webkit-scrollbar,
.bullish-chart-card-financials::-webkit-scrollbar,
.bullish-chart-card-fund-holdings::-webkit-scrollbar {
  display: none;
}

.bullish-chart-card-quote {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px 2px 5px;
  border: 1px solid rgba(76, 102, 164, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #546274;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bullish-chart-card-quote-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 102, 164, 0.15), rgba(23, 107, 135, 0.12));
  color: #446098;
}

.bullish-chart-card-quote-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.bullish-chart-card-quote-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bullish-chart-card-quote.quote-bg-up {
  border-color: rgba(201, 50, 50, 0.1);
  background:
    linear-gradient(90deg, rgba(201, 50, 50, 0.055), rgba(201, 50, 50, 0.025)),
    rgba(255, 250, 250, 0.9);
}

.bullish-chart-card-quote.quote-bg-up .bullish-chart-card-quote-icon {
  background: linear-gradient(135deg, rgba(201, 50, 50, 0.13), rgba(201, 50, 50, 0.06));
  color: #c93232;
}

.bullish-chart-card-quote.quote-bg-down {
  border-color: rgba(21, 132, 86, 0.1);
  background:
    linear-gradient(90deg, rgba(21, 132, 86, 0.055), rgba(21, 132, 86, 0.025)),
    rgba(250, 255, 252, 0.9);
}

.bullish-chart-card-quote.quote-bg-down .bullish-chart-card-quote-icon {
  background: linear-gradient(135deg, rgba(21, 132, 86, 0.13), rgba(21, 132, 86, 0.06));
  color: #158456;
}

.bullish-chart-card-quote.quote-flat {
  border-color: rgba(76, 102, 164, 0.14);
  background:
    linear-gradient(90deg, rgba(239, 245, 255, 0.9), rgba(247, 250, 255, 0.66)),
    rgba(248, 250, 252, 0.9);
}

.quote-up {
  color: var(--red);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.quote-down {
  color: var(--green);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.bullish-chart-canvas {
  width: 100%;
  height: 242px;
}

.bullish-chart-loading {
  position: absolute;
  inset: 100px 0 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 13px;
}

.bullish-chart-card.has-error .bullish-chart-loading {
  color: var(--red);
}

.bullish-chart-card-placeholder {
  pointer-events: none;
}

.bullish-chart-card-placeholder .bullish-chart-card-header strong,
.bullish-chart-card-placeholder .bullish-chart-card-header span,
.bullish-chart-card-placeholder .bullish-chart-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  color: transparent;
  background: linear-gradient(90deg, rgba(219, 231, 239, 0.72), rgba(246, 250, 252, 0.95), rgba(219, 231, 239, 0.72));
  background-size: 220% 100%;
  animation: bullish-placeholder-shimmer 1.1s linear infinite;
}

.bullish-chart-card-placeholder .bullish-chart-card-header strong {
  width: 48%;
  height: 22px;
}

.bullish-chart-card-placeholder .bullish-chart-card-header span {
  width: 72%;
  height: 18px;
}

@keyframes bullish-placeholder-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.bullish2-page {
  background:
    linear-gradient(180deg, rgba(232, 243, 247, 0.94) 0%, rgba(246, 249, 252, 0.98) 34%, #f7fafc 100%),
    radial-gradient(circle at 18% 8%, rgba(23, 107, 135, 0.12), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(21, 132, 86, 0.1), transparent 28%);
}

.bullish2-page .shell {
  padding: 0 6px 8px 0;
}

.bullish2-page .topbar {
  position: relative;
  align-items: center;
  padding: 4px 8px 8px;
}

.bullish2-page .topbar::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 107, 135, 0.32), rgba(21, 132, 86, 0.18), transparent);
}

.bullish2-page h1 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #142231;
  letter-spacing: 0;
}

.bullish2-page h1::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.96), rgba(21, 132, 86, 0.92)),
    linear-gradient(90deg, transparent 35%, rgba(255, 255, 255, 0.88) 35% 47%, transparent 47% 58%, rgba(255, 255, 255, 0.88) 58% 70%, transparent 70%);
  box-shadow: 0 8px 20px rgba(23, 107, 135, 0.18);
}

.bullish2-page .bullish-toolbar {
  position: relative;
  border-color: rgba(169, 190, 206, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 254, 0.94)),
    linear-gradient(90deg, rgba(23, 107, 135, 0.07), transparent 36%, rgba(21, 132, 86, 0.05));
  box-shadow: 0 12px 28px rgba(33, 54, 73, 0.08);
}

.bullish2-page .bullish-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #176b87, #158456);
}

.bullish2-page .bullish-toolbar label > span:first-child {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  color: #526477;
  font-weight: 800;
  white-space: nowrap;
}

.bullish2-page .bullish-toolbar label > span:first-child::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #176b87;
  opacity: 0.92;
}

.bullish2-page .bullish-toolbar label.is-required-param > span:first-child::after,
.param-required-mark {
  content: "(必选)";
  color: #d93025;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.bullish2-page .bullish-toolbar label.is-period-gain-choice-param > span:first-child::after {
  content: "(五选二)";
}

.bullish2-page .bullish-toolbar input,
.bullish2-page .bullish-toolbar select,
.bullish2-page .bullish-toolbar .period-input,
.bullish2-page .bullish-toolbar .finance-threshold-input,
.bullish2-page .bullish-toolbar .param-switch-input,
.bullish2-page .city-multi-button {
  border-color: #bfd0dc;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.bullish2-page .bullish-toolbar input:focus,
.bullish2-page .bullish-toolbar select:focus,
.bullish2-page .bullish-toolbar .period-input:focus-within,
.bullish2-page .bullish-toolbar .finance-threshold-input:focus-within,
.bullish2-page .bullish-toolbar .param-switch-input:focus-within,
.bullish2-page .city-multi-button:focus-visible {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.bullish2-page #bullishQueryBtn {
  background: linear-gradient(135deg, #176b87, #157b72);
  box-shadow: 0 9px 18px rgba(23, 107, 135, 0.18);
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.bullish2-page #bullishQueryBtn:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(23, 107, 135, 0.24);
}

.bullish2-page #bullishQueryBtn.is-querying {
  opacity: 1;
  filter: saturate(1.08);
  animation: query-button-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes query-button-pulse {
  from {
    box-shadow: 0 8px 16px rgba(23, 107, 135, 0.18);
  }
  to {
    box-shadow: 0 12px 24px rgba(23, 107, 135, 0.3);
  }
}

.bullish2-page .city-multi-panel {
  border-color: rgba(169, 190, 206, 0.82);
  box-shadow: 0 18px 46px rgba(33, 54, 73, 0.16);
}

.bullish2-page .bullish-results-panel {
  margin-top: 2px;
  padding: 4px;
  border-color: rgba(169, 190, 206, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 254, 0.96)),
    radial-gradient(circle at 98% 4%, rgba(23, 107, 135, 0.08), transparent 26%);
  box-shadow: 0 14px 34px rgba(33, 54, 73, 0.08);
}

.bullish2-page .bullish-chart-grid {
  gap: 4px;
}

.bullish2-page .bullish-results-panel p {
  color: #5f6f80;
  font-weight: 700;
}

.bullish2-page .bullish-chart-card {
  position: relative;
  border-color: rgba(169, 190, 206, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  box-shadow: 0 10px 24px rgba(33, 54, 73, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bullish2-page .bullish-chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #176b87, #158456, rgba(217, 152, 33, 0.72));
  pointer-events: none;
}

.bullish2-page .bullish-chart-card:hover {
  border-color: rgba(23, 107, 135, 0.4);
  box-shadow: 0 14px 30px rgba(33, 54, 73, 0.12);
}

.bullish2-page .bullish-chart-card-header {
  background: linear-gradient(180deg, rgba(248, 252, 254, 0.86), rgba(255, 255, 255, 0));
}

.bullish2-page .bullish-chart-card-header strong {
  color: #142231;
}

.bullish2-page .bullish-chart-card-header span,
.bullish2-page .bullish-chart-card-profile,
.bullish2-page .bullish-chart-card-concepts,
.bullish2-page .bullish-chart-card-financials,
.bullish2-page .bullish-chart-card-fund-holdings,
.bullish2-page .bullish-chart-card-quote {
  color: #5f6f80;
}

.bullish2-page .bullish-chart-card-period-return.period-return-up,
.bullish2-page .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-icon,
.bullish2-page .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-text,
.bullish2-page .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-value {
  color: #b72f2f;
}

.bullish2-page .bullish-chart-card-period-return.period-return-down,
.bullish2-page .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-icon,
.bullish2-page .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-text,
.bullish2-page .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-value {
  color: #13734c;
}

.bullish2-page .bullish-chart-card-period-return.period-return-flat,
.bullish2-page .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-icon,
.bullish2-page .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-text,
.bullish2-page .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-value {
  color: #687381;
}

.echarts-tooltip,
div[style*="echarts-tooltip"] {
  font-size: 10px !important;
  line-height: 1.4 !important;
}

html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .metrics-panel,
html[data-theme="dark"] .chart-frame,
html[data-theme="dark"] .empty-page-panel,
html[data-theme="dark"] .stock-data-hero,
html[data-theme="dark"] .stock-data-section,
html[data-theme="dark"] .bullish-chart-card,
html[data-theme="dark"] .auth-modal,
html[data-theme="dark"] .auth-tablist,
html[data-theme="dark"] .auth-logged-card {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

html[data-theme="dark"] .stock-data-page {
  background:
    linear-gradient(180deg, #0b1220 0%, #0d1724 45%, #0b1220 100%),
    radial-gradient(circle at 18% 10%, rgba(56, 168, 199, 0.12), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(52, 201, 138, 0.1), transparent 28%);
}

html[data-theme="dark"] .stock-data-hero {
  background:
    linear-gradient(135deg, rgba(18, 30, 45, 0.96), rgba(14, 24, 37, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(56, 168, 199, 0.13), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(52, 201, 138, 0.1), transparent 30%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .stock-data-hero-panel > div,
html[data-theme="dark"] .stock-data-feature-grid article,
html[data-theme="dark"] .stock-data-copy-grid article,
html[data-theme="dark"] .stock-data-list-panel {
  border-color: #2a4055;
  background: #101a28;
}

html[data-theme="dark"] .stock-data-actions a {
  border-color: #31465a;
  background: #101a28;
}

html[data-theme="dark"] .stock-data-actions a:first-child {
  border-color: rgba(56, 168, 199, 0.42);
  background: linear-gradient(135deg, #1f8aa7, #178e62);
  color: #fff;
}

html[data-theme="dark"] .stock-data-doc-parent-marker {
  background: #a8b6c7;
}

html[data-theme="dark"] .stock-data-doc-parent {
  border-color: #26384b;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.1), transparent 34%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28), 0 0 44px rgba(56, 189, 248, 0.04);
}

html[data-theme="dark"] .stock-data-doc-parent::before {
  background:
    radial-gradient(circle at 6% 16%, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(110deg, transparent 0%, rgba(56, 189, 248, 0.05) 48%, transparent 78%);
  opacity: 1;
}

html[data-theme="dark"] .stock-data-doc-parent-row {
  border: 0;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.18)),
    radial-gradient(circle at 7% 8%, rgba(56, 189, 248, 0.11), transparent 27%);
  box-shadow: none;
}

html[data-theme="dark"] .stock-data-doc-parent-row::after {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.38), rgba(148, 163, 184, 0.18), transparent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}

html[data-theme="dark"] .stock-data-doc-parent-badge {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

html[data-theme="dark"] .stock-data-doc-parent-name {
  color: #e8eef7;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .stock-data-doc-pages {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.08));
}

html[data-theme="dark"] .stock-data-doc-page + .stock-data-doc-page {
  border-top-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .stock-data-doc-page-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .stock-data-doc-page-row::after {
  background: linear-gradient(90deg, #38bdf8, transparent);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.52);
}

html[data-theme="dark"] .stock-data-doc-page-marker {
  background: #38bdf8;
  box-shadow: 0 0 9px rgba(56, 189, 248, 0.56);
}

html[data-theme="dark"] .stock-data-doc-page-link {
  color: #e8eef7;
}

html[data-theme="dark"] .stock-data-doc-charts {
  border-color: #23364a;
  background:
    linear-gradient(135deg, rgba(15, 25, 38, 0.78), rgba(11, 18, 32, 0.7)),
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.11), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.1), transparent 34%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .stock-data-doc-charts::before {
  background: linear-gradient(110deg, transparent 0%, rgba(56, 189, 248, 0.1) 45%, transparent 72%);
}

html[data-theme="dark"] .stock-data-doc-chart {
  border-color: rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.018);
}

html[data-theme="dark"] .stock-data-doc-chart:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: #132235;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.12);
}

html[data-theme="dark"] .stock-data-doc-chart-dot {
  background: #526579;
}

html[data-theme="dark"] .stock-data-doc-chart:hover .stock-data-doc-chart-dot {
  background: #6cc5e0;
  box-shadow: 0 0 0 3px rgba(108, 197, 224, 0.14), 0 0 10px rgba(108, 197, 224, 0.46);
}

html[data-theme="dark"] .stock-data-doc-chart-title {
  color: #e8eef7;
}

html[data-theme="dark"] .stock-data-doc-chart-desc {
  color: #9aa8ba;
}

html[data-theme="dark"] .stock-data-doc-chart:hover .stock-data-doc-chart-title {
  color: #6cc5e0;
}

html[data-theme="dark"] .stock-data-doc-chart:hover .stock-data-doc-chart-desc {
  color: #cbd5e1;
}

html[data-theme="dark"] .bullish2-page {
  background:
    linear-gradient(180deg, #0b1220 0%, #0d1724 42%, #0b1220 100%),
    radial-gradient(circle at 16% 9%, rgba(56, 168, 199, 0.14), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(52, 201, 138, 0.12), transparent 28%);
}

html[data-theme="dark"] .bullish2-page .bullish-toolbar,
html[data-theme="dark"] .bullish2-page .bullish-results-panel,
html[data-theme="dark"] .bullish2-page .bullish-chart-card {
  border-color: #2a4055;
  background:
    linear-gradient(180deg, rgba(18, 30, 45, 0.98), rgba(14, 24, 37, 0.98)),
    radial-gradient(circle at 98% 4%, rgba(56, 168, 199, 0.08), transparent 26%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .bullish2-page .bullish-chart-card-header {
  background:
    linear-gradient(180deg, rgba(20, 35, 52, 0.94), rgba(16, 28, 43, 0.82) 72%, rgba(14, 24, 37, 0));
}

html[data-theme="dark"] .bullish-chart-card-financials {
  border-color: rgba(125, 152, 214, 0.18);
  background:
    linear-gradient(90deg, rgba(125, 152, 214, 0.13), rgba(56, 168, 199, 0.08)),
    rgba(16, 28, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 14px rgba(125, 152, 214, 0.04);
  color: #b9c5d7;
}

html[data-theme="dark"] .bullish-chart-card-profile {
  border-color: rgba(125, 152, 214, 0.18);
  background:
    linear-gradient(90deg, rgba(125, 152, 214, 0.13), rgba(56, 168, 199, 0.08)),
    rgba(16, 28, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 14px rgba(125, 152, 214, 0.04);
  color: #b9c5d7;
}

html[data-theme="dark"] .bullish-chart-card-profile-icon {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.24), rgba(56, 168, 199, 0.16));
  color: #a8c4ff;
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-period {
  border-color: rgba(125, 152, 214, 0.18);
  background: rgba(16, 28, 43, 0.72);
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-period::before {
  color: rgba(120, 211, 231, 0.13);
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-row,
html[data-theme="dark"] .bullish-chart-card-fund-holdings-row .fund-holding-stock,
html[data-theme="dark"] .bullish-chart-card-fund-holdings-row .fund-holding-metric {
  color: #aeb9c8;
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-row .fund-holding-rank {
  border-color: rgba(125, 152, 214, 0.24);
  background:
    linear-gradient(180deg, rgba(30, 45, 65, 0.98), rgba(20, 33, 50, 0.94)),
    rgba(16, 28, 43, 0.96);
  color: #b7c6d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-row b {
  color: #d7e3f1;
}

html[data-theme="dark"] .bullish-chart-card-fund-holdings-row .fund-holding-name.is-highlighted-fund-holding-name {
  border-color: rgba(242, 184, 86, 0.24);
  background: rgba(242, 184, 86, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f0f5fb;
}

html[data-theme="dark"] .bullish-chart-card-concepts {
  border-color: rgba(125, 152, 214, 0.18);
  background:
    linear-gradient(90deg, rgba(125, 152, 214, 0.13), rgba(56, 168, 199, 0.08)),
    rgba(16, 28, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 14px rgba(125, 152, 214, 0.04);
  color: #b9c5d7;
}

html[data-theme="dark"] .bullish-chart-card-concepts-icon {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.24), rgba(56, 168, 199, 0.16));
  color: #a8c4ff;
}

html[data-theme="dark"] .bullish-chart-card-quote {
  color: #b9c5d7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 14px rgba(125, 152, 214, 0.04);
}

html[data-theme="dark"] .bullish-chart-card-quote-icon {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.24), rgba(56, 168, 199, 0.16));
  color: #a8c4ff;
}

html[data-theme="dark"] .bullish-chart-card-quote.quote-bg-up {
  border-color: rgba(240, 101, 101, 0.14);
  background:
    linear-gradient(90deg, rgba(240, 101, 101, 0.09), rgba(240, 101, 101, 0.04)),
    rgba(16, 28, 43, 0.72);
}

html[data-theme="dark"] .bullish-chart-card-quote.quote-bg-up .bullish-chart-card-quote-icon {
  background: linear-gradient(135deg, rgba(240, 101, 101, 0.2), rgba(240, 101, 101, 0.09));
  color: #ff9a9a;
}

html[data-theme="dark"] .bullish-chart-card-quote.quote-bg-down {
  border-color: rgba(52, 201, 138, 0.14);
  background:
    linear-gradient(90deg, rgba(52, 201, 138, 0.08), rgba(52, 201, 138, 0.035)),
    rgba(16, 28, 43, 0.72);
}

html[data-theme="dark"] .bullish-chart-card-quote.quote-bg-down .bullish-chart-card-quote-icon {
  background: linear-gradient(135deg, rgba(52, 201, 138, 0.2), rgba(52, 201, 138, 0.09));
  color: #76e0b1;
}

html[data-theme="dark"] .bullish-chart-card-quote.quote-flat {
  border-color: rgba(125, 152, 214, 0.18);
  background:
    linear-gradient(90deg, rgba(125, 152, 214, 0.13), rgba(56, 168, 199, 0.08)),
    rgba(16, 28, 43, 0.72);
}

html[data-theme="dark"] .bullish-chart-card-financials-icon {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.24), rgba(56, 168, 199, 0.16));
  color: #a8c4ff;
}

html[data-theme="dark"] .bullish-section-separator {
  background: rgba(125, 152, 214, 0.14);
  color: #93a8c5;
}

html[data-theme="dark"] .financial-yoy-up {
  border-color: rgba(240, 101, 101, 0.18);
  background: rgba(240, 101, 101, 0.12);
  color: #ff9a9a;
}

html[data-theme="dark"] .financial-yoy-down {
  border-color: rgba(52, 201, 138, 0.18);
  background: rgba(52, 201, 138, 0.11);
  color: #76e0b1;
}

html[data-theme="dark"] .financial-yoy-flat {
  border-color: rgba(154, 168, 186, 0.16);
  background: rgba(154, 168, 186, 0.09);
  color: #b3bfcd;
}

html[data-theme="dark"] .bullish2-page .topbar::after {
  background: linear-gradient(90deg, rgba(56, 168, 199, 0.35), rgba(52, 201, 138, 0.16), transparent);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] .bullish2-page h1,
html[data-theme="dark"] .bullish-chart-card-header strong {
  color: var(--ink);
}

html[data-theme="dark"] p,
html[data-theme="dark"] label,
html[data-theme="dark"] .side-nav-title,
html[data-theme="dark"] .stock-data-hero-panel span,
html[data-theme="dark"] .stock-data-list-panel ul,
html[data-theme="dark"] .bullish2-page .bullish-toolbar label > span:first-child,
html[data-theme="dark"] .bullish-chart-card-header span,
html[data-theme="dark"] .bullish-chart-card-profile,
html[data-theme="dark"] .bullish-chart-card-concepts,
html[data-theme="dark"] .bullish-chart-card-financials,
html[data-theme="dark"] .bullish-chart-card-fund-holdings,
html[data-theme="dark"] .bullish-chart-card-quote {
  color: var(--muted);
}

html[data-theme="dark"] .bullish-chart-card-period-return {
  border-color: rgba(125, 152, 214, 0.18);
  background:
    linear-gradient(90deg, rgba(125, 152, 214, 0.13), rgba(56, 168, 199, 0.08)),
    rgba(16, 28, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 14px rgba(125, 152, 214, 0.04);
  color: #b9c5d7;
}

html[data-theme="dark"] .bullish-chart-card-period-return-icon {
  background: linear-gradient(135deg, rgba(125, 152, 214, 0.24), rgba(56, 168, 199, 0.16));
  color: #a8c4ff;
}

html[data-theme="dark"] .bullish-chart-card-period-return.period-return-up {
  border-color: rgba(240, 101, 101, 0.18);
  background:
    linear-gradient(90deg, rgba(240, 101, 101, 0.1), rgba(240, 101, 101, 0.045)),
    rgba(16, 28, 43, 0.72);
  color: #ff9a9a;
}

html[data-theme="dark"] .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-icon,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-text,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-up .bullish-chart-card-period-return-value {
  color: #ff9a9a;
}

html[data-theme="dark"] .bullish-chart-card-period-return.period-return-down {
  border-color: rgba(52, 201, 138, 0.18);
  background:
    linear-gradient(90deg, rgba(52, 201, 138, 0.095), rgba(52, 201, 138, 0.04)),
    rgba(16, 28, 43, 0.72);
  color: #76e0b1;
}

html[data-theme="dark"] .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-icon,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-text,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-down .bullish-chart-card-period-return-value {
  color: #76e0b1;
}

html[data-theme="dark"] .bullish-chart-card-period-return.period-return-flat,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-icon,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-text,
html[data-theme="dark"] .bullish-chart-card-period-return.period-return-flat .bullish-chart-card-period-return-value {
  color: #b3bfcd;
}

html[data-theme="dark"] .bullish2-page .bullish-toolbar label.is-required-param > span:first-child::after,
html[data-theme="dark"] .param-required-mark {
  color: #ff8a8a;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] .period-input,
html[data-theme="dark"] .param-switch-input,
html[data-theme="dark"] .city-multi-button,
html[data-theme="dark"] .auth-form input {
  border-color: #31465a;
  background: var(--input-bg);
  color: var(--ink);
}

html[data-theme="dark"] input::placeholder {
  color: #6f8194;
}

html[data-theme="dark"] .period-input span {
  color: var(--ink);
}

html[data-theme="dark"] .city-multi-button:hover,
html[data-theme="dark"] .city-multi-button[aria-expanded="true"] {
  border-color: var(--accent);
  background: #14283a;
  box-shadow: 0 0 0 3px rgba(56, 168, 199, 0.12);
}

html[data-theme="dark"] .city-multi-button::after {
  border-top-color: #92a4b8;
}

html[data-theme="dark"] .city-multi-panel {
  border-color: #31465a;
  background:
    linear-gradient(180deg, rgba(17, 28, 43, 0.99), rgba(13, 24, 37, 0.99)),
    radial-gradient(circle at 10% 0%, rgba(56, 168, 199, 0.1), transparent 28%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .city-multi-panel input[type="text"] {
  border-color: #31465a;
  background: #0d1724;
  color: var(--ink);
}

html[data-theme="dark"] .city-multi-actions button {
  border-color: #31465a;
  background: #142033;
  color: #b9c6d4;
}

html[data-theme="dark"] .city-multi-actions button:hover,
html[data-theme="dark"] .city-multi-option:hover {
  border-color: rgba(56, 168, 199, 0.32);
  background: #183149;
  color: #d8f3fb;
}

html[data-theme="dark"] .city-multi-option.is-selected {
  border-color: rgba(56, 168, 199, 0.38);
  background: linear-gradient(180deg, #143a52, #112f44);
  color: #9cecff;
}

html[data-theme="dark"] .city-multi-option input[type="checkbox"],
html[data-theme="dark"] .city-multi-option input[type="radio"] {
  border-color: #7890a5;
  background: #0d1724;
}

html[data-theme="dark"] .city-multi-option input[type="checkbox"]:checked,
html[data-theme="dark"] .city-multi-option input[type="radio"]:checked {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, transparent 54%, #0b1220 54% 64%, transparent 64%) 2px 1px / 9px 9px no-repeat,
    linear-gradient(45deg, transparent 46%, #0b1220 46% 58%, transparent 58%) 4px 6px / 8px 6px no-repeat,
    var(--accent);
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .metric-card.expandable {
  background: #101a28;
}

html[data-theme="dark"] .auth-modal-backdrop {
  background: rgba(3, 7, 18, 0.62);
}

html[data-theme="dark"] .auth-doc-modal {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

html[data-theme="dark"] .auth-doc-header {
  border-color: var(--line);
  background: #101a28;
}

html[data-theme="dark"] .auth-doc-close {
  border-color: #31465a;
  background: #101a28;
  color: var(--ink);
}

html[data-theme="dark"] .auth-doc-content {
  color: var(--muted);
}

html[data-theme="dark"] .auth-contact strong {
  color: #f8fafc;
}

html[data-theme="dark"] .bullish-card-favorite {
  color: #66778a;
}

html[data-theme="dark"] .bullish-card-favorite:hover,
html[data-theme="dark"] .bullish-card-favorite:focus,
html[data-theme="dark"] .bullish-card-favorite:focus-visible,
html[data-theme="dark"] .bullish-card-favorite:active {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none;
  color: #ffd21f;
}

html[data-theme="dark"] .bullish-card-favorite.is-liked {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffd21f;
  filter: none !important;
}

html[data-theme="dark"] .bullish-chart-loading {
  background: rgba(13, 23, 36, 0.78);
}

html[data-theme="dark"] .bullish2-page .bullish-toolbar input,
html[data-theme="dark"] .bullish2-page .bullish-toolbar select,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .period-input,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .finance-threshold-input,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .param-switch-input,
html[data-theme="dark"] .bullish2-page .city-multi-button {
  border-color: #31465a;
  background: var(--input-bg);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .bullish2-page .bullish-toolbar input:focus,
html[data-theme="dark"] .bullish2-page .bullish-toolbar select:focus,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .period-input:focus-within,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .finance-threshold-input:focus-within,
html[data-theme="dark"] .bullish2-page .bullish-toolbar .param-switch-input:focus-within,
html[data-theme="dark"] .bullish2-page .city-multi-button:focus-visible {
  border-color: var(--accent);
  background: #14283a;
  box-shadow: 0 0 0 3px rgba(56, 168, 199, 0.12);
}

html[data-theme="dark"] .bullish-param-warning {
  border-color: rgba(237, 169, 74, 0.34);
  background: rgba(104, 65, 18, 0.36);
  color: #ffd89c;
}

html[data-theme="dark"] .bullish2-page .period-input input {
  background: transparent;
  color: var(--ink);
}

html[data-theme="dark"] .bullish2-page .finance-threshold-input input {
  background: transparent;
  color: var(--ink);
}

html[data-theme="dark"] .bullish2-page .period-input span {
  background: transparent;
  color: var(--ink);
}

html[data-theme="dark"] .bullish2-page .bullish-toolbar input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
  opacity: 0.82;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
button {
  width: 100%;
  height: 32px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

input,
select {
  padding: 0 10px;
}

.period-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  height: 32px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.period-input input {
  height: 30px;
  border: 0;
  border-radius: 0;
}

.period-input input:focus {
  outline: none;
}

.period-input input::-webkit-outer-spin-button,
.period-input input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.period-input input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.period-input span {
  padding-right: 10px;
  color: var(--ink);
  font-size: 14px;
}

.finance-threshold-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  height: 32px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.finance-threshold-input.range-threshold-input {
  grid-template-columns: minmax(52px, 1fr) 12px minmax(52px, 1fr) auto;
}

.finance-threshold-input input {
  height: 30px;
  border: 0;
  border-radius: 0;
}

.finance-threshold-input.range-threshold-input input {
  min-width: 0;
  padding: 0 4px;
  font-size: 14px;
  text-align: center;
}

.finance-threshold-input input:focus {
  outline: none;
}

.finance-threshold-input input::-webkit-outer-spin-button,
.finance-threshold-input input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.finance-threshold-input input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.finance-threshold-input span {
  padding-right: 10px;
  color: var(--ink);
  font-size: 14px;
}

.finance-threshold-input .range-threshold-separator {
  width: 12px;
  padding-right: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.param-switch-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.param-switch-input input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #176b87;
}

.param-switch-input span {
  color: inherit;
  white-space: nowrap;
}

button {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 650;
}

.system-workspace-header [data-design-qa-refresh] {
  width: auto;
  min-width: 96px;
  padding-inline: 18px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.metrics-panel {
  position: relative;
  z-index: 4;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: var(--panel);
}

.metrics-panel.has-expanded-card {
  z-index: 100;
}

.chart-area {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.chart-frame {
  position: relative;
}

.ma-legend {
  position: absolute;
  top: 6px;
  right: 98px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  max-width: calc(100% - 180px);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
}

.ma-legend-item {
  white-space: nowrap;
  font-weight: 650;
}

.range-controls {
  position: absolute;
  top: 6px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.range-button {
  width: 22px;
  height: 22px;
  padding: 0;
  border-color: #cbd5df;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 760;
}

.range-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.range-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.chart-divider {
  position: absolute;
  left: 42px;
  right: 24px;
  z-index: 3;
  height: 12px;
  transform: translateY(-6px);
  cursor: ns-resize;
}

.chart-divider::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(154, 166, 178, 0.8);
}

.chart-divider:hover::before,
body.resizing-chart .chart-divider::before {
  height: 2px;
  background: var(--accent);
}

body.resizing-chart {
  cursor: ns-resize;
  user-select: none;
}

.metrics {
  position: relative;
  z-index: 4;
  display: flex;
  height: var(--metrics-height);
  min-height: var(--metrics-height);
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 8px;
  background: #dce5ed;
}

.metrics-panel.has-expanded-card .metrics {
  overflow: visible;
}

.metrics-panel.has-expanded-card + .chart-area {
  z-index: 0;
}

.metric {
  position: relative;
  flex: 0 0 220px;
  min-height: 0;
  min-width: 150px;
  padding: 12px 14px;
  overflow: hidden;
  background: var(--panel);
  border-right: 1px solid var(--line);
  cursor: grab;
  user-select: none;
}

.metric.dragging {
  opacity: 0.72;
  outline: 2px solid rgba(23, 107, 135, 0.35);
  cursor: grabbing;
}

.resize-handle {
  position: absolute;
  top: 0;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
}

.resize-left {
  left: -4px;
}

.resize-right {
  right: -4px;
}

.metric:first-child .resize-left,
.metric:last-child .resize-right {
  display: none;
}

body.resizing-card {
  cursor: ew-resize;
  user-select: none;
}

body.dragging-card {
  cursor: grabbing;
  user-select: none;
}

.metric.info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 0;
}

.metric.info-card.expanded {
  z-index: 120;
  height: auto;
  min-height: max-content;
  overflow: visible;
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.12);
}

.metric.info-card.expanded .profile {
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}

.metric.info-card .expand-button {
  margin-top: auto;
}

.metric-label {
  display: block;
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 12px;
}

.metric-label.accented {
  padding-left: 10px;
}

.metric-label.accented::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: #176b87;
}

.stock-code-inline {
  font-size: var(--metric-body-size);
  font-weight: 650;
  line-height: 1.35;
}

.metric strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 6px;
  font-size: var(--metric-body-size);
}

.metric strong.stock-name-main {
  font-size: var(--metric-body-size);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.metric strong.industry {
  font-size: var(--metric-body-size);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.metric strong.profile {
  display: block;
  flex: 0 0 auto;
  min-height: calc(var(--metric-body-size) * 1.35 * 2);
  max-height: calc(var(--metric-body-size) * 1.35 * 2);
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--metric-body-size);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.metric strong.concepts {
  flex: 1 1 auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.concept-token {
  display: inline-block;
  margin: 0 4px 5px 0;
  padding: 1px 0;
  border-radius: 6px;
  cursor: pointer;
  user-select: text;
}

.concept-token:hover {
  color: var(--accent);
}

.concept-token.selected {
  padding: 2px 8px;
  background: #dbeeff;
  color: #135f7a;
  font-weight: 700;
}

.expand-button {
  position: relative;
  left: 50%;
  z-index: 3;
  flex: 0 0 auto;
  width: 72px;
  height: 8px;
  margin-bottom: 0;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
  color: #aab4bf;
  cursor: pointer;
}

.expand-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

.metric.info-card.expanded .expand-button {
  position: relative;
  left: 50%;
  margin-top: auto;
  margin-bottom: 0;
}

.metric.info-card.expanded .expand-button::before {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}

.metric-sub-label {
  margin-top: 12px;
}

.chart {
  width: 100%;
  height: min(720px, calc(100vh - 255px));
  min-height: 460px;
}

.up {
  color: var(--red);
}

.down {
  color: var(--green);
}

@media (max-width: 1180px) {
  .bullish-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .bullish-toolbar label:nth-child(2) {
    min-width: min(220px, 100%);
  }

  .bullish-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-layout {
    display: block;
    width: 100%;
    padding: 0 10px 10px 0;
  }

  .side-nav {
    position: static;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0 0 6px 0;
    padding: 8px;
  }

  .side-nav-resize-handle {
    display: none;
  }

  .side-nav-toggle {
    top: auto;
    right: 12px;
    bottom: -12px;
    width: 72px;
    height: 12px;
    transform: none;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }

  .side-nav-toggle::before {
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 5px solid currentColor;
    border-bottom: 0;
  }

  .nav-collapsed .side-nav {
    width: auto;
    height: 20px;
    padding: 0;
  }

  .nav-collapsed .side-nav-toggle::before {
    border-top: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid currentColor;
  }

  .side-nav-title {
    display: none;
  }

  .side-nav-link {
    display: inline-flex;
    padding: 7px 10px;
  }

  .side-nav-link::before {
    inset: 0;
    width: 100%;
  }

  .side-nav-parent {
    padding-left: 10px;
  }

  .side-nav-caret {
    left: 0;
  }

  .side-nav-group {
    display: inline-grid;
    vertical-align: top;
  }

  .side-nav-scroll {
    margin: 0;
    padding: 0;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .side-nav-submenu {
    margin: 2px 0 0 0;
    padding-left: 0;
  }

  .side-nav-submenu::before {
    left: 0;
  }

  .side-nav-sublink {
    padding: 6px 8px 6px calc(10px + 1em);
  }

  .side-nav-content {
    min-height: auto;
    height: auto;
  }

  .side-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 0;
  }

  .side-nav-system,
  .side-nav-theme,
  .side-nav-user {
    display: inline-grid;
    width: auto;
    margin-top: 8px;
  }

  .side-nav-theme {
    margin-top: 8px;
  }

  .nav-collapsed .side-nav-system,
  .nav-collapsed .side-nav-theme,
  .nav-collapsed .side-nav-user {
    display: none;
  }

  .shell {
    width: 100%;
  }

  .system-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .system-menu {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-menu-resize-handle {
    display: none;
  }

  .system-workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-panel {
    min-height: auto;
  }

  .performance-admin {
    padding: 14px 12px;
  }

  .performance-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .performance-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .performance-date-range {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .performance-date-range > span {
    display: none;
  }

  .performance-detail-toggle {
    margin-left: 0;
  }

  .directory-admin {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .directory-tree-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .directory-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .long-title-stock-page .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .long-title-stock-page .bullish-query-toast {
    position: static;
    justify-self: end;
    max-width: 100%;
    margin-top: 4px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .stock-data-hero,
  .stock-data-two-column,
  .stock-data-feature-grid,
  .stock-data-copy-grid {
    grid-template-columns: 1fr;
  }

  .stock-data-hero {
    min-height: auto;
    padding: 18px;
  }

  .stock-data-hero h1 {
    font-size: 30px;
  }

  .stock-data-docs-panel {
    overflow-x: visible;
  }

  .stock-data-doc-parent {
    border-radius: 10px;
  }

  .stock-data-doc-parent-row {
    gap: 12px;
    min-height: 0;
    padding: 20px 16px;
  }

  .stock-data-doc-parent-badge {
    width: 38px;
    height: 38px;
  }

  .stock-data-doc-parent-name {
    font-size: 18px;
  }

  .stock-data-doc-pages {
    gap: 22px;
    margin-left: 0;
    padding: 20px 16px 18px;
    border-left: 0;
  }

  .stock-data-doc-page-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .stock-data-doc-page-link {
    flex: 1 1 calc(100% - 18px);
    font-size: 17px;
  }

  .stock-data-doc-charts {
    margin-left: 0;
    padding: 6px;
  }

  .stock-data-doc-chart {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 12px;
    transform: none;
  }

  .stock-data-doc-chart:hover {
    transform: none;
  }

  .stock-data-doc-chart-title-wrap {
    flex-basis: auto;
    width: 100%;
  }

  .stock-data-doc-chart-desc {
    padding-left: 14px;
  }

  .bullish-toolbar {
    grid-template-columns: 1fr;
  }

  .bullish-chart-grid {
    grid-template-columns: 1fr;
  }

  .chart {
    height: 540px;
    min-height: 420px;
  }

  .range-controls {
    top: 8px;
    right: 10px;
  }

  .ma-legend {
    top: 46px;
    right: 10px;
    left: 12px;
    max-width: none;
    justify-content: flex-start;
  }

  .auth-modal {
    padding: 18px;
  }

  .auth-doc-modal {
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
  }

  .auth-doc-header {
    padding: 14px 16px;
  }

  .auth-doc-content {
    padding: 16px;
    font-size: 13px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
}

button.bullish-card-favorite,
button.bullish-card-favorite:hover,
button.bullish-card-favorite:focus,
button.bullish-card-favorite:focus-visible,
button.bullish-card-favorite:active,
button.bullish-card-favorite.is-liked,
html[data-theme="dark"] button.bullish-card-favorite,
html[data-theme="dark"] button.bullish-card-favorite:hover,
html[data-theme="dark"] button.bullish-card-favorite:focus,
html[data-theme="dark"] button.bullish-card-favorite:focus-visible,
html[data-theme="dark"] button.bullish-card-favorite:active,
html[data-theme="dark"] button.bullish-card-favorite.is-liked {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
}

[data-bullish-param-control][hidden],
[data-bullish-param-control].is-param-hidden {
  display: none !important;
}

.bullish-toolbar {
  grid-template-columns: 78px minmax(0, 1fr);
}

.bullish-query-actions {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 5px;
  align-self: end;
  width: 78px;
}

.bullish-toolbar .bullish-query-actions > button {
  width: 100%;
  min-width: 0;
}

.bullish-param-edit-btn {
  display: inline-grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #bfd0dc;
  border-radius: 6px;
  background: #f7fbfd;
  color: #334763;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.bullish-param-edit-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.bullish-param-edit-btn:hover,
.bullish-param-edit-btn[aria-expanded="true"] {
  border-color: #176b87;
  background: #eef7fb;
  color: #176b87;
}

.param-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.28);
}

.param-dialog-backdrop[hidden] {
  display: none;
}

.param-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(169, 190, 206, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.param-dialog-header,
.param-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e7ee;
}

.param-dialog-header h2 {
  margin: 0;
  color: #334763;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.param-dialog-close {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d5e0e8;
  border-radius: 6px;
  background: #f7fbfd;
  color: #526477;
}

.param-dialog-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.param-dialog-close:hover {
  border-color: #176b87;
  color: #176b87;
}

.param-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 8px;
}

.param-dialog-actions button,
.param-dialog-footer button {
  height: 32px;
  min-width: 0;
  border: 1px solid #bfd0dc;
  border-radius: 6px;
  background: #f7fbfd;
  color: #334763;
  font-weight: 800;
}

.param-dialog-actions button:hover {
  border-color: #176b87;
  background: #eef7fb;
  color: #176b87;
}

.param-dialog-options {
  display: grid;
  gap: 6px;
  max-height: min(440px, calc(100vh - 240px));
  overflow: auto;
  padding: 8px 16px 16px;
}

.param-dialog-option {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d9e4ec;
  border-radius: 6px;
  background: #fbfdfe;
  color: #334763;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.param-dialog-option:hover {
  border-color: #8fb4c6;
  background: #f4f9fc;
}

.param-dialog-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #176b87;
}

.param-dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid #e0e7ee;
  border-bottom: 0;
}

.param-dialog-footer button {
  width: 88px;
  background: #176b87;
  color: #ffffff;
}

.param-dialog-footer button:hover {
  background: #157b72;
}

html[data-theme="dark"] .bullish-param-edit-btn,
html[data-theme="dark"] .param-dialog-close,
html[data-theme="dark"] .param-dialog-actions button {
  border-color: #31465a;
  background: #101a28;
  color: #d9e4ef;
  box-shadow: none;
}

html[data-theme="dark"] .param-dialog-backdrop {
  background: rgba(3, 7, 18, 0.58);
}

html[data-theme="dark"] .param-dialog {
  border-color: #31465a;
  background: #111c2b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .param-dialog-header,
html[data-theme="dark"] .param-dialog-footer {
  border-color: #26384b;
}

html[data-theme="dark"] .param-dialog-header h2,
html[data-theme="dark"] .param-dialog-option {
  color: #d9e4ef;
}

html[data-theme="dark"] .param-dialog-option {
  border-color: #31465a;
  background: #101a28;
}

html[data-theme="dark"] .bullish-param-edit-btn:hover,
html[data-theme="dark"] .bullish-param-edit-btn[aria-expanded="true"],
html[data-theme="dark"] .param-dialog-close:hover,
html[data-theme="dark"] .param-dialog-actions button:hover,
html[data-theme="dark"] .param-dialog-option:hover {
  border-color: #38a8c7;
  background: #16293a;
  color: #d9e4ef;
}

@media (max-width: 760px) {
  .bullish-toolbar {
    grid-template-columns: 1fr;
  }

  .bullish-query-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.emotion-page .shell {
  display: grid;
  gap: 8px;
}

.emotion-topbar {
  min-height: 34px;
}

.emotion-topbar h1 {
  margin: 0;
  max-width: min(520px, calc(100vw - 240px));
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emotion-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.emotion-filter-row {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.emotion-filter-row label {
  display: grid;
  gap: 4px;
  width: 160px;
  min-width: 140px;
  color: #52606f;
  font-size: 12px;
  font-weight: 760;
}

.emotion-filter-row input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.emotion-filter-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.emotion-filter-row button {
  height: 34px;
  min-width: 74px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.emotion-filter-row button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.emotion-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(350px, auto);
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.emotion-card {
  position: relative;
  display: grid;
  grid-template-rows: 42px 308px;
  min-width: 0;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.emotion-card-kline {
  grid-column: auto;
  grid-template-rows: 42px 308px;
  min-height: 350px;
}

.emotion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-panel);
}

.emotion-card-header[data-chart-drag-handle] {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.emotion-card-header[data-chart-drag-handle]:active {
  cursor: grabbing;
}

.emotion-card.is-reordering {
  z-index: 5;
  border-color: rgba(23, 107, 135, 0.48);
  box-shadow: 0 14px 26px rgba(33, 54, 73, 0.14);
  opacity: 0.92;
}

.emotion-grid.is-reordering .emotion-card:not(.is-reordering) {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

body.emotion-card-reordering {
  cursor: grabbing;
  user-select: none;
}

.emotion-card-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emotion-card-header h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e85c61 0%, #4a8fe3 100%);
}

.emotion-card-header h2 a {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emotion-card-header h2 a:hover {
  color: var(--accent);
}

.emotion-like-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #a8b2bd;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.emotion-like-btn:hover {
  border-color: #d8c273;
  background: #fff9db;
  color: #b48a00;
}

.emotion-like-btn.liked {
  color: #d5a100;
}

.emotion-add-btn {
  position: relative;
  color: #d5a100;
  font-size: 0;
  font-weight: 780;
}

.emotion-add-btn::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1;
  transform: translateY(-1px);
}

.emotion-add-btn:hover {
  border-color: #d8c273;
  background: #fff9db;
  color: #b48a00;
}

.emotion-add-btn.liked,
.emotion-add-btn[aria-pressed="true"] {
  border-color: #d8c273;
  background: #fff9db;
  color: #d5a100;
}

.emotion-chart {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.emotion-chart.is-empty {
  display: none;
}

.emotion-chart-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.emotion-chart-empty[hidden] {
  display: none;
}

.emotion-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.emotion-detail-page .market-toolbar-scroll {
  grid-template-columns: repeat(2, minmax(150px, 150px));
}

.market-collection-shell {
  align-content: start;
}

.market-collection-grid:empty {
  display: none;
}

.market-collection-card {
  grid-template-rows: 42px 320px;
}

.market-collection-hot-card {
  grid-template-rows: 42px 28px 292px;
}

.market-collection-hot-card .hot-concept-chart,
.market-collection-hot-card .hot-concept-chart-empty {
  grid-row: 3;
}

.market-collection-c2-card {
  grid-template-rows: 42px 320px;
}

.market-collection-c2-body {
  min-height: 0;
}

.market-collection-card-header {
  align-items: stretch;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 7px;
}

.market-collection-title {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.market-collection-title h2 {
  max-width: 100%;
  font-size: 15px;
}

.market-collection-card[data-page-id="P0005"] .market-collection-title h2::before {
  background: linear-gradient(180deg, #b8dbbd 0%, #33ad7a 100%);
}

.market-collection-card[data-page-id="P0006"] .market-collection-title h2::before {
  background: linear-gradient(180deg, #ffc7cc 0%, #e05c66 100%);
}

.market-collection-hot-card .market-collection-title h2::before,
.market-collection-c2-card .market-collection-title h2::before {
  background: #4a8fe3;
}

.market-collection-state {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.market-collection-state strong {
  color: var(--ink);
  font-size: 16px;
}

.market-collection-state span {
  font-size: 13px;
}

.market-collection-state button {
  height: 34px;
  margin-top: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.market-collection-state[hidden] {
  display: none;
}

html[data-theme="dark"] .emotion-filter-row label {
  color: #9aa8ba;
}

html[data-theme="dark"] .emotion-filter-row input {
  border-color: #31465a;
  background: #101a28;
}

html[data-theme="dark"] .emotion-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .emotion-card-header {
  background: #142134;
}

html[data-theme="dark"] .emotion-like-btn:hover {
  border-color: rgba(213, 161, 0, 0.42);
  background: rgba(213, 161, 0, 0.12);
  color: #f3c84b;
}

html[data-theme="dark"] .emotion-like-btn.liked {
  color: #f3c84b;
}

html[data-theme="dark"] .emotion-add-btn {
  color: #f3c84b;
}

html[data-theme="dark"] .emotion-add-btn:hover {
  border-color: rgba(213, 161, 0, 0.42);
  background: rgba(213, 161, 0, 0.12);
  color: #f3c84b;
}

html[data-theme="dark"] .emotion-add-btn.liked,
html[data-theme="dark"] .emotion-add-btn[aria-pressed="true"] {
  border-color: rgba(213, 161, 0, 0.42);
  background: rgba(213, 161, 0, 0.12);
  color: #f3c84b;
}

html[data-theme="dark"] .market-collection-state {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.minute-gain-loss-page .shell,
.minute-gain-range-page .shell,
.minute-loss-range-page .shell {
  display: grid;
  align-content: start;
  gap: 8px;
}

.minute-page-header {
  align-items: flex-end;
  min-height: 32px;
  margin: 0;
  color: var(--ink);
}

.minute-page-header h1 {
  margin: 0;
  max-width: min(520px, calc(100vw - 240px));
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minute-date-panel,
.market-date-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.minute-filter-row {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.minute-filter-field {
  display: grid;
  gap: 4px;
  width: 160px;
  min-width: 140px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.minute-date-input-wrap {
  position: relative;
  display: grid;
}

.minute-date-panel input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.minute-date-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.minute-date-panel button {
  flex: 0 0 auto;
  width: auto;
  height: 34px;
  min-width: 74px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.minute-date-panel button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.minute-date-panel p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-param-toolbar {
  position: relative;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 0;
  align-items: end;
  min-height: 50px;
  overflow-x: visible;
  overflow-y: visible;
  padding: 6px 10px;
  border-color: rgba(169, 190, 206, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 254, 0.94)),
    linear-gradient(90deg, rgba(23, 107, 135, 0.07), transparent 36%, rgba(21, 132, 86, 0.05));
  box-shadow: 0 12px 28px rgba(33, 54, 73, 0.08);
}

.market-param-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #176b87, #158456);
}

.market-query-actions {
  position: relative;
  z-index: 5;
  display: grid;
  align-self: end;
  width: 78px;
  min-width: 0;
}

.market-query-actions > button {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #176b87, #157b72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 9px 18px rgba(23, 107, 135, 0.18);
  cursor: pointer;
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.market-query-actions > button:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(23, 107, 135, 0.24);
}

.market-query-actions > button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.market-toolbar-scroll {
  display: grid;
  grid-template-columns: minmax(150px, 150px);
  column-gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-left: 2px;
  scrollbar-width: none;
}

.market-toolbar-scroll::-webkit-scrollbar {
  display: none;
}

.market-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #526477;
  font-size: 12px;
  font-weight: 800;
}

.market-filter-field > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-filter-field > span:first-child::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: #176b87;
  opacity: 0.92;
}

.market-filter-field input {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #bfd0dc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.market-filter-field input:focus {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
}

.market-param-status {
  display: none;
  align-self: center;
  margin: 0;
  max-width: min(260px, 24vw);
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emotion-param-status:not([hidden]) {
  display: block;
}

.minute-chart-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding-bottom: 10px;
}

.minute-chart-card {
  position: relative;
  display: grid;
  grid-template-rows: 42px 308px;
  min-width: 0;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.minute-chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-panel);
}

.minute-chart-card-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minute-chart-card-header h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e85c61 0%, #4a8fe3 100%);
}

.minute-gain-range-page .minute-chart-card-header h2::before {
  background: linear-gradient(180deg, #ffc7cc 0%, #e05c66 100%);
}

.minute-loss-range-page .minute-chart-card-header h2::before {
  background: linear-gradient(180deg, #b8dbbd 0%, #33ad7a 100%);
}

.minute-like-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #a8b2bd;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.minute-like-btn:hover {
  border-color: #d8c273;
  background: #fff9db;
  color: #b48a00;
}

.minute-like-btn.liked {
  color: #d5a100;
}

.minute-chart {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.minute-chart.is-empty {
  display: none;
}

.minute-chart-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  color: var(--muted);
  font-size: 13px;
}

.minute-chart-empty[hidden] {
  display: none;
}

.minute-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(122, 137, 153, 0.25);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: minute-spin 0.8s linear infinite;
}

@keyframes minute-spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-theme="dark"] .minute-date-panel input,
html[data-theme="dark"] .market-date-panel input {
  border-color: #31465a;
  background: #101a28;
}

html[data-theme="dark"] .market-param-toolbar {
  border-color: rgba(49, 70, 90, 0.92);
  background:
    linear-gradient(180deg, rgba(16, 28, 43, 0.96), rgba(12, 23, 37, 0.96)),
    linear-gradient(90deg, rgba(56, 168, 199, 0.11), transparent 38%, rgba(33, 178, 123, 0.08));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .market-param-toolbar::before {
  background: linear-gradient(180deg, #38a8c7, #21b27b);
}

html[data-theme="dark"] .market-filter-field {
  color: #aab8c8;
}

html[data-theme="dark"] .market-filter-field > span:first-child::before {
  background: #38a8c7;
}

html[data-theme="dark"] .market-filter-field input {
  border-color: #31465a;
  background: #101a28;
  color: #eef5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .market-filter-field input:focus {
  border-color: #38a8c7;
  box-shadow: 0 0 0 3px rgba(56, 168, 199, 0.16);
}

html[data-theme="dark"] .market-query-actions > button {
  background: linear-gradient(135deg, #1b7f9b, #12836f);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .minute-chart-card,
html[data-theme="dark"] .minute-date-panel,
html[data-theme="dark"] .market-date-panel {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .minute-chart-card-header {
  background: #142134;
}

html[data-theme="dark"] .minute-like-btn:hover {
  background: rgba(213, 161, 0, 0.12);
  color: #f3c84b;
}

html[data-theme="dark"] .minute-like-btn.liked {
  color: #f3c84b;
}

.hot-concept-page .shell {
  display: grid;
  align-content: start;
  gap: 8px;
}

.hot-concept-chart-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding-bottom: 10px;
}

.hot-concept-card {
  position: relative;
  display: grid;
  grid-template-rows: 42px 28px 280px;
  min-width: 0;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.hot-concept-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-panel);
}

.hot-concept-card-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-concept-card-header h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: #4a8fe3;
}

.hot-concept-legend {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  background: var(--panel);
}

.hot-concept-legend-unit {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hot-concept-legend-scroll {
  min-width: 0;
  height: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
}

.hot-concept-legend-scroll::-webkit-scrollbar {
  display: none;
}

.hot-concept-legend-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.hot-concept-legend-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  height: 100%;
}

.hot-concept-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hot-concept-legend-item i {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.hot-concept-chart {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.hot-concept-chart.is-empty {
  display: none;
}

.hot-concept-chart-empty {
  min-height: 260px;
}

html[data-theme="dark"] .hot-concept-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .hot-concept-card-header {
  background: #142134;
}

.c2-three-day-gain-shell {
  display: grid;
  align-content: start;
  gap: 8px;
}

.c2-three-day-gain-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding-bottom: 10px;
}

.c2-three-day-gain-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(33, 54, 73, 0.06);
}

.c2-three-day-gain-chart-card {
  display: grid;
  grid-template-rows: 46px 259px;
  min-height: 305px;
}

.c2-three-day-gain-table-card {
  display: grid;
  grid-template-rows: 46px auto;
  min-height: 305px;
}

.c2-three-day-gain-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px 10px 6px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-panel);
}

.c2-three-day-gain-card-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c2-three-day-gain-card-header h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: #4a8fe3;
}

.c2-three-day-gain-chart-body {
  position: relative;
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding-top: 4px;
}

.c2-three-day-gain-legend {
  display: grid;
  align-items: center;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  background: var(--panel);
}

.c2-three-day-gain-legend-scroll {
  min-width: 0;
  height: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
}

.c2-three-day-gain-legend-scroll::-webkit-scrollbar {
  display: none;
}

.c2-three-day-gain-legend-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.c2-three-day-gain-legend-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  height: 100%;
}

.c2-three-day-gain-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.c2-three-day-gain-legend-item i {
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.c2-three-day-gain-chart {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.c2-three-day-gain-chart.is-empty {
  display: none;
}

.c2-three-day-gain-empty {
  min-height: 230px;
}

.c2-three-day-gain-chart-body .c2-three-day-gain-empty {
  position: absolute;
  inset: 30px 0 0;
  background: var(--panel);
}

.c2-three-day-gain-empty[hidden] {
  display: none;
}

.c2-three-day-gain-table {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
}

.c2-three-day-gain-table[hidden] {
  display: none;
}

.c2-three-day-gain-table-shell {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.c2-three-day-gain-fixed {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  background: var(--panel);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.c2-three-day-gain-rank-column,
.c2-three-day-gain-date-group {
  display: grid;
  grid-template-rows: 30px;
  grid-auto-rows: 32px;
  align-content: start;
  flex: 0 0 auto;
}

.c2-three-day-gain-rank-column {
  width: 50px;
}

.c2-three-day-gain-date-group {
  width: 136px;
  grid-template-columns: 1fr;
}

.c2-three-day-gain-rank-header,
.c2-three-day-gain-date-header {
  display: grid;
  place-items: center;
  height: 30px;
  border-right: 0.6px solid rgba(138, 150, 163, 0.35);
  border-bottom: 0.6px solid rgba(138, 150, 163, 0.35);
  background: #e1eaf5;
  color: #1a478c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: pre-line;
}

.c2-three-day-gain-rank-cell {
  display: grid;
  place-items: center;
  height: 32px;
  border-right: 0.6px solid rgba(138, 150, 163, 0.35);
  border-bottom: 0.6px solid rgba(138, 150, 163, 0.35);
  background: var(--panel);
  font-size: 11px;
  font-weight: 600;
}

.c2-three-day-gain-rank-cell.is-alt {
  background: #f2f6ff;
}

.c2-three-day-gain-pair {
  display: grid;
  grid-template-columns: 78px 58px;
  width: 136px;
  height: 32px;
  background: var(--panel);
}

.c2-three-day-gain-pair.is-alt {
  background: #f2f6ff;
}

.c2-three-day-gain-name-cell,
.c2-three-day-gain-value-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 32px;
  border: 0;
  border-right: 0.6px solid rgba(138, 150, 163, 0.35);
  border-bottom: 0.6px solid rgba(138, 150, 163, 0.35);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.14;
  text-align: center;
}

.c2-three-day-gain-name-cell {
  appearance: none;
  padding: 0 4px;
  border-radius: 0;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}

.c2-three-day-gain-name-cell.is-drill-link {
  color: var(--ink);
  text-decoration: none;
}

.c2-three-day-gain-name-cell:disabled {
  cursor: default;
}

.c2-three-day-gain-name-cell:not(:disabled):hover,
.c2-three-day-gain-name-cell.is-selected {
  color: #4a8fe3;
}

.c2-three-day-gain-name-cell.is-static,
.c2-three-day-gain-name-cell.is-static:hover {
  color: var(--ink);
  cursor: default;
}

.c2-three-day-gain-name-cell.is-static.is-selected {
  color: #4a8fe3;
}

.c2-three-day-gain-value-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.c2-three-day-gain-value-cell[data-c2-industry] {
  appearance: none;
  padding: 0;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
}

.c2-three-day-gain-value-cell[data-c2-industry]:disabled {
  cursor: default;
}

.c2-three-day-gain-value-cell[data-c2-industry]:not(:disabled):hover,
.c2-three-day-gain-value-cell.is-selected {
  color: #4a8fe3;
}

.c2-three-day-gain-table-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.c2-three-day-gain-table-scroll-content {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
}

html[data-theme="dark"] .c2-three-day-gain-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .c2-three-day-gain-card-header {
  background: #142134;
}

html[data-theme="dark"] .c2-three-day-gain-rank-header,
html[data-theme="dark"] .c2-three-day-gain-date-header {
  border-color: rgba(255, 255, 255, 0.12);
  background: #293547;
  color: #94baff;
}

html[data-theme="dark"] .c2-three-day-gain-rank-cell,
html[data-theme="dark"] .c2-three-day-gain-pair {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171f2d;
}

html[data-theme="dark"] .c2-three-day-gain-rank-cell.is-alt,
html[data-theme="dark"] .c2-three-day-gain-pair.is-alt {
  background: #111827;
}

html[data-theme="dark"] .c2-three-day-gain-name-cell,
html[data-theme="dark"] .c2-three-day-gain-value-cell {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .minute-chart-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emotion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .emotion-toolbar {
    grid-template-columns: 1fr;
  }

  .emotion-filter-row {
    width: 100%;
  }

  .emotion-filter-row label {
    flex: 1 1 auto;
    width: auto;
  }

  .emotion-filter-row button {
    flex: 0 0 72px;
  }

  .emotion-status {
    text-align: left;
  }

  .emotion-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emotion-card,
  .emotion-card-kline {
    grid-column: auto;
    grid-template-rows: 42px 300px;
    min-height: 342px;
  }

  .market-collection-card {
    grid-template-rows: 42px 312px;
  }

  .market-collection-hot-card {
    grid-template-rows: 42px 28px 284px;
  }

  .market-collection-c2-card {
    grid-template-rows: 42px 312px;
  }

  .minute-date-panel,
  .market-date-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .minute-page-header {
    align-items: flex-start;
  }

  .minute-page-header h1 {
    max-width: 100%;
    font-size: 17px;
  }

  .emotion-topbar h1 {
    max-width: 100%;
    font-size: 17px;
  }

  .minute-filter-row {
    width: 100%;
  }

  .minute-filter-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .minute-date-panel button {
    flex: 0 0 72px;
  }

  .minute-date-panel p {
    text-align: left;
  }

  .market-param-toolbar {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    align-items: stretch;
    min-height: 0;
    padding: 6px 10px;
  }

  .market-toolbar-scroll {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .emotion-detail-page .market-toolbar-scroll {
    grid-template-columns: repeat(2, minmax(150px, 150px));
  }

  .market-query-actions {
    order: 2;
    width: 100%;
  }

  .market-param-status {
    order: 3;
    max-width: none;
    text-align: left;
  }

  .minute-chart-card {
    grid-template-rows: 42px 300px;
    min-height: 342px;
  }

  .minute-chart,
  .minute-chart-empty {
    height: 300px;
  }

  .c2-three-day-gain-shell {
    gap: 6px;
  }

  .c2-three-day-gain-card-header h2 {
    font-size: 15px;
  }

  .c2-three-day-gain-fixed {
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 760px) {
  .minute-chart-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
