/* Shared cards, buttons, chips, drawers, news widgets, quick dock, and reusable panels. */

.n-chip {
        min-height: 30px;
        padding: 0 10px;
        border: 0.5px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        color: rgba(255, 255, 255, 0.5);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
      }

.n-chip.simulated {
        border-color: rgba(255, 176, 32, 0.22);
        color: rgba(255, 176, 32, 0.86);
      }

.live-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        display: inline-block;
        animation: liveBlink 1.1s ease-in-out infinite;
      }

@keyframes liveBlink {
        0%,
        100% {
          opacity: 0.38;
          transform: scale(0.82);
        }
        50% {
          opacity: 1;
          transform: scale(1.08);
        }
      }

.event-subnav {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 12px;
      }

.event-subtab {
        border: 0.5px solid rgba(255, 176, 32, 0.18);
        background: rgba(255, 176, 32, 0.055);
        color: rgba(232, 237, 248, 0.7);
        padding: 7px 10px;
        font-size: 11px;
        font-weight: 800;
      }

.event-subtab.active {
        border-color: rgba(255, 176, 32, 0.58);
        background: rgba(255, 176, 32, 0.14);
        color: #ffd27a;
      }

.subpage-panel {
        display: none;
      }

.subpage-panel.active {
        display: block;
      }

.terminal-card {
        min-height: 260px;
        border: 0.5px solid var(--line);
        border-radius: 12px;
        background: var(--panel);
        padding: 14px;
      }

.scroll-panel {
        min-height: 0;
        -ms-overflow-style: none;
        overscroll-behavior: auto !important;
        scrollbar-width: none !important;
      }

.scroll-panel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
      }

.scroll-panel::-webkit-scrollbar-track {
        background: transparent !important;
      }

.scroll-panel::-webkit-scrollbar-thumb {
        background: transparent !important;
      }

.scroll-panel.drag-scroll-active {
        cursor: grabbing !important;
        scroll-snap-type: none !important;
        user-select: none;
      }

.scroll-hint {
        position: fixed;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(219, 224, 232, 0.22);
        background: rgba(178, 184, 194, var(--hint-bg, 0.18));
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.14),
          0 8px 22px rgba(0, 0, 0, 0.18);
        color: rgba(246, 248, 252, 0.68);
        font-size: 18px;
        font-weight: 950;
        line-height: 1;
        opacity: var(--hint-opacity, 0);
        pointer-events: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
        transition:
          opacity 140ms ease,
          background-color 140ms ease;
        user-select: none;
      }

.scroll-hint-left,
      .scroll-hint-right {
        width: 34px;
        min-height: 42px;
      }

.scroll-hint-top,
      .scroll-hint-bottom {
        min-width: 64px;
        height: 30px;
        font-size: 16px;
      }

.scroll-hint-left {
        border-left-color: rgba(219, 224, 232, 0.1);
      }

.scroll-hint-right {
        border-right-color: rgba(219, 224, 232, 0.1);
      }

.scroll-hint-top {
        border-top-color: rgba(219, 224, 232, 0.1);
      }

.scroll-hint-bottom {
        border-bottom-color: rgba(219, 224, 232, 0.1);
      }

.terminal-card.wide {
        grid-column: span 2;
      }

.terminal-card h2 {
        margin: 0 0 12px;
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
      }

.global-ai-brief {
        display: grid;
        gap: 8px;
      }

.global-ai-brief-line {
        border-left: 2px solid rgba(255, 176, 32, 0.5);
        background: rgba(255, 255, 255, 0.024);
        padding: 9px 10px;
        color: rgba(232, 237, 248, 0.64);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.5;
      }

.global-ai-brief-line b {
        display: block;
        margin-bottom: 3px;
        color: rgba(232, 237, 248, 0.92);
        font-size: 11px;
      }

.terminal-kicker {
        margin-bottom: 8px;
        color: var(--faint);
        font-size: 10px;
        letter-spacing: 0.6px;
      }

.terminal-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 10px;
        min-height: 38px;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.58);
        font-size: 12px;
      }

.terminal-row:last-child {
        border-bottom: 0;
      }

.terminal-row b {
        overflow: hidden;
        color: var(--text);
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.terminal-metric {
        color: var(--text);
        font-variant-numeric: tabular-nums;
        font-weight: 700;
      }

.terminal-badge {
        min-width: 46px;
        border-radius: 5px;
        padding: 3px 7px;
        background: rgba(255, 255, 255, 0.055);
        color: var(--faint);
        text-align: center;
        font-size: 10px;
        font-weight: 700;
      }

.terminal-badge.good {
        background: rgba(43, 196, 138, 0.13);
        color: var(--green);
      }

.terminal-badge.bad {
        background: rgba(224, 82, 82, 0.13);
        color: var(--red);
      }

.terminal-note {
        margin-top: 12px;
        border-left: 2px solid var(--blue);
        background: rgba(91, 156, 246, 0.08);
        padding: 11px 12px;
        color: rgba(255, 255, 255, 0.62);
        font-size: 12px;
        line-height: 1.55;
      }

.cal-item {
        display: block;
        margin-top: 7px;
        border-radius: 6px;
        padding: 5px 6px;
        overflow: hidden;
        color: rgba(221, 225, 236, 0.72);
        font-size: 10px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.cal-item.better,
      .event-card.better {
        border-color: rgba(224, 82, 82, 0.34);
        background: rgba(224, 82, 82, 0.12);
      }

.cal-item.worse,
      .event-card.worse {
        border-color: rgba(91, 156, 246, 0.38);
        background: rgba(91, 156, 246, 0.13);
      }

.cal-item.pending,
      .event-card.pending {
        border-color: rgba(255, 255, 255, 0.09);
        background: rgba(255, 255, 255, 0.04);
      }

@keyframes focusPulse {
        0% {
          box-shadow: 0 0 0 0 rgba(255, 176, 32, 0);
        }
        34% {
          box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.26);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(255, 176, 32, 0);
        }
      }

.event-card {
        border: 0.5px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 10px;
        cursor: pointer;
        transition:
          border-color 0.16s ease,
          background 0.16s ease,
          transform 0.16s ease;
      }

.event-card:hover {
        border-color: rgba(255, 176, 32, 0.36);
        transform: translateY(-1px);
      }

.event-card:focus-visible {
        outline: 2px solid rgba(255, 176, 32, 0.72);
        outline-offset: 2px;
      }

.event-card.selected {
        border-color: rgba(255, 176, 32, 0.7);
        box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.14);
      }

.event-day-divider {
        position: sticky;
        top: 0;
        z-index: 1;
        margin-top: 2px;
        border-top: 0.5px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, rgba(19, 23, 32, 0.98), rgba(19, 23, 32, 0.88));
        padding: 8px 0 4px;
        color: rgba(221, 225, 236, 0.52);
        font-size: 10px;
        font-weight: 800;
      }

.event-empty {
        border: 0.5px dashed rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 16px;
        color: var(--faint);
        font-size: 11px;
        line-height: 1.5;
      }

.event-top {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        margin-bottom: 8px;
      }

.event-time {
        color: rgba(221, 225, 236, 0.72);
        font-size: 11px;
        font-weight: 800;
      }

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

.event-name b {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.importance {
        margin-bottom: 3px;
        color: #ffb020;
        font-size: 10px;
        letter-spacing: 1px;
      }

.event-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
      }

.event-metrics span {
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.16);
        padding: 6px;
        color: var(--faint);
        font-size: 10px;
        line-height: 1.35;
      }

.event-metrics strong {
        display: block;
        margin-top: 2px;
        color: rgba(221, 225, 236, 0.76);
        font-size: 11px;
      }

.event-metrics strong.actual-worse {
        color: #9fc3ff;
      }

.event-metrics strong.actual-better {
        color: #ff8f8f;
      }

.event-metrics strong.actual-pending {
        color: rgba(221, 225, 236, 0.52);
      }

.event-result {
        display: inline-flex;
        margin-top: 8px;
        border-radius: 6px;
        padding: 4px 7px;
        color: rgba(221, 225, 236, 0.8);
        font-size: 10px;
        font-weight: 800;
      }

.event-card.better .event-result {
        background: rgba(224, 82, 82, 0.18);
        color: #ff8f8f;
      }

.event-card.worse .event-result {
        background: rgba(91, 156, 246, 0.18);
        color: #9fc3ff;
      }

.event-card.pending .event-result {
        background: rgba(255, 255, 255, 0.06);
        color: var(--faint);
      }

.quick-dock {
        position: fixed;
        right: 18px;
        bottom: 14px;
        z-index: 30;
        display: flex;
        align-items: flex-end;
        gap: 8px;
        pointer-events: none;
      }

.breaking-ticker {
        width: min(420px, calc(100vw - 152px));
        height: 34px;
        margin-bottom: 7px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 80%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 80%, transparent 100%);
        pointer-events: auto;
      }

.ticker-track {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        height: 100%;
        white-space: nowrap;
        color: rgba(255, 213, 94, 0.92);
        font-size: 13px;
        animation: breakingFlow 13s linear infinite;
      }

.ticker-track b {
        background: rgba(0, 0, 0, 0.34);
        border-radius: 2px;
        color: #ffd84f;
        font-size: 12px;
        letter-spacing: 0.8px;
        line-height: 1.35;
        padding: 3px 6px;
      }

.ticker-track span {
        background: rgba(0, 0, 0, 0.34);
        border-radius: 2px;
        color: #ffd84f;
        font-weight: 800;
        line-height: 1.35;
        padding: 3px 7px;
      }

.quick-shell {
        position: relative;
        display: grid;
        justify-items: end;
        pointer-events: auto;
      }

.quick-utility-stack {
        position: relative;
        display: grid;
        align-self: flex-end;
        gap: 6px;
        justify-items: center;
        margin-bottom: 2px;
        pointer-events: auto;
      }

.quick-help-wrap {
        position: relative;
        display: grid;
      }

.quick-help-bubble,
      .quick-settings-bubble {
        width: 25px;
        height: 25px;
        border: 0.5px solid rgba(255, 216, 79, 0.34);
        border-radius: 50%;
        background: rgba(7, 10, 15, 0.86);
        color: rgba(255, 216, 79, 0.96);
        cursor: pointer;
        display: grid;
        place-items: center;
        font-size: 13px;
        font-weight: 950;
        line-height: 1;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
        transition:
          background 140ms ease,
          border-color 140ms ease,
          color 140ms ease,
          transform 140ms ease;
      }

.quick-settings-bubble {
        font-size: 14px;
      }

.quick-help-bubble:hover,
      .quick-help-bubble:focus-visible,
      .quick-settings-bubble:hover,
      .quick-settings-bubble:focus-visible,
      .quick-settings-bubble.active {
        border-color: rgba(255, 216, 79, 0.72);
        background: rgba(255, 176, 32, 0.16);
        color: #ffe08a;
        transform: translateY(-1px);
      }

.quick-help-tooltip {
        position: absolute;
        right: 32px;
        top: -3px;
        z-index: 8;
        width: 210px;
        border: 0.5px solid rgba(255, 216, 79, 0.22);
        background: rgba(7, 10, 15, 0.94);
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
        color: rgba(232, 237, 248, 0.78);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.5;
        padding: 8px 9px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(8px);
        transition:
          opacity 140ms ease,
          transform 140ms ease;
        visibility: hidden;
      }

.quick-help-tooltip strong {
        color: rgba(255, 216, 79, 0.96);
      }

.quick-help-wrap:hover .quick-help-tooltip,
      .quick-help-wrap:focus-within .quick-help-tooltip {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
      }

.quick-settings-panel {
        position: absolute;
        right: 0;
        bottom: 64px;
        z-index: 7;
        width: 204px;
        border: 0.5px solid rgba(255, 216, 79, 0.22);
        background: rgba(7, 10, 15, 0.95);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.44);
        padding: 9px;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(10px, 10px, 0) scale(0.96);
        transform-origin: right bottom;
        transition:
          opacity 150ms ease,
          transform 150ms ease,
          visibility 150ms ease;
        visibility: hidden;
      }

.quick-settings-panel.open {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        visibility: visible;
      }

.quick-settings-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
        color: rgba(255, 216, 79, 0.94);
        font-size: 11px;
        font-weight: 950;
      }

.quick-setting-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-top: 0.5px solid rgba(255, 255, 255, 0.07);
        color: rgba(232, 237, 248, 0.62);
        font-size: 10px;
        font-weight: 800;
        padding: 8px 0 0;
      }

.quick-setting-row + .quick-setting-row {
        margin-top: 8px;
      }

.quick-setting-value {
        color: rgba(255, 216, 79, 0.82);
        white-space: nowrap;
      }

.quick-settings-panel .quick-stock-switch {
        margin: 8px 0 0;
      }

.quick-breaking-alert {
        position: absolute;
        right: 0;
        bottom: 64px;
        z-index: 4;
        width: min(306px, calc(100vw - 28px));
        border: 0.5px solid rgba(255, 216, 79, 0.2);
        border-left: 2px solid rgba(255, 216, 79, 0.82);
        background: rgba(7, 10, 15, 0.92);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
        color: var(--text);
        padding: 10px 11px;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(16px, 10px, 0) scale(0.96);
        transform-origin: right bottom;
        transition:
          opacity 170ms ease,
          transform 170ms ease;
        visibility: hidden;
      }

.quick-breaking-alert.visible {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        visibility: visible;
      }

.quick-breaking-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px;
        color: rgba(255, 216, 79, 0.94);
        font-size: 10px;
        font-weight: 900;
      }

.quick-breaking-top span:last-child {
        color: rgba(232, 237, 248, 0.44);
        font-size: 9px;
        white-space: nowrap;
      }

.quick-breaking-alert p {
        margin: 0;
        color: rgba(255, 232, 185, 0.96);
        font-size: 12px;
        font-weight: 850;
        line-height: 1.42;
      }

.quick-breaking-meta {
        margin-top: 7px;
        overflow: hidden;
        color: rgba(232, 237, 248, 0.46);
        font-size: 10px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.quick-menu {
        position: absolute;
        right: 0;
        bottom: 60px;
        z-index: 5;
        width: 214px;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        background: rgba(16, 20, 29, 0.94);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
        padding: 8px;
        display: grid;
        gap: 4px;
        opacity: 0;
        transform: translateY(12px) scale(0.96);
        transform-origin: right bottom;
        visibility: hidden;
        transition:
          opacity 160ms ease,
          transform 160ms ease,
          visibility 160ms ease;
      }

.quick-dock.open .quick-menu,
      .quick-shell:hover .quick-menu,
      .quick-shell:focus-within .quick-menu {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
      }

.quick-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 30px;
        padding: 0 3px 4px 7px;
        color: rgba(221, 225, 236, 0.54);
        font-size: 11px;
        font-weight: 700;
      }

.quick-stock-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        margin-bottom: 4px;
        padding: 2px;
        border: 0.5px solid rgba(255, 176, 32, 0.18);
        background: rgba(255, 176, 32, 0.045);
      }

.quick-stock-switch button {
        min-height: 25px;
        border: 0;
        background: transparent;
        color: rgba(221, 225, 236, 0.56);
        cursor: pointer;
        font-size: 10px;
        font-weight: 800;
      }

.quick-stock-switch button.active {
        background: rgba(255, 176, 32, 0.18);
        color: #ffd27a;
      }

.quick-list {
        display: grid;
        gap: 4px;
      }

.quick-link {
        min-height: 34px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: rgba(221, 225, 236, 0.66);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
        text-align: left;
        font-size: 12px;
      }

.quick-link.hidden {
        display: none;
      }

.quick-link::after {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
      }

.quick-link:hover,
      .quick-link.active {
        background: rgba(91, 156, 246, 0.12);
        color: var(--text);
      }

.quick-link.active::after {
        background: var(--blue);
      }

.quick-link.quick-favorite {
        min-height: 30px;
        color: rgba(255, 211, 122, 0.82);
        font-size: 11px;
      }

.quick-link.quick-favorite::after {
        background: rgba(255, 176, 32, 0.54);
      }

.quick-empty {
        min-height: 34px;
        border: 0.5px dashed rgba(255, 176, 32, 0.2);
        border-radius: 10px;
        color: rgba(221, 225, 236, 0.6);
        display: flex;
        align-items: center;
        padding: 0 10px;
        font-size: 11px;
      }

.quick-toggle {
        width: 50px;
        height: 50px;
        border: 0.5px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;
        background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 34%),
          #2459d8;
        box-shadow:
          0 12px 30px rgba(36, 89, 216, 0.3),
          0 0 0 5px rgba(91, 156, 246, 0.06);
        cursor: grab;
        display: grid;
        place-items: center;
        touch-action: none;
      }

.quick-toggle.dragging {
        cursor: grabbing;
      }

.quick-toggle span,
      .quick-toggle span::before,
      .quick-toggle span::after {
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        display: block;
        transition:
          transform 160ms ease,
          opacity 160ms ease;
      }

.quick-toggle span {
        position: relative;
      }

.quick-toggle span::before,
      .quick-toggle span::after {
        content: "";
        position: absolute;
        left: 0;
      }

.quick-toggle span::before {
        top: -6px;
      }

.quick-toggle span::after {
        top: 6px;
      }

.quick-dock.open .quick-toggle span {
        transform: rotate(45deg);
      }

.quick-dock.open .quick-toggle span::before {
        opacity: 0;
      }

.quick-dock.open .quick-toggle span::after {
        transform: translateY(-6px) rotate(-90deg);
      }

@keyframes breakingFlow {
        0% {
          opacity: 0;
          transform: translateX(96%);
        }

        12%,
        72% {
          opacity: 1;
        }

        100% {
          opacity: 0;
          transform: translateX(-34%);
        }
      }

.home-dashboard {
        display: grid;
        gap: 9px;
      }

.home-top-row {
        display: grid;
        grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
        gap: 10px;
        align-items: stretch;
      }

.home-lower-row {
        display: grid;
        grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.72fr);
        gap: 10px;
        align-items: stretch;
      }

.home-market-column {
        display: grid;
        gap: 10px;
        min-width: 0;
        align-content: start;
      }

.home-news-panel,
      .home-sector-panel {
        min-width: 0;
        padding: 12px;
      }

.home-news-panel {
        display: grid;
        grid-template-rows: auto auto auto;
      }

.home-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
        border-bottom: 0.5px solid rgba(255, 176, 32, 0.16);
        padding-bottom: 8px;
      }

.home-panel-title {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--text);
        font-size: 13px;
        font-weight: 800;
      }

.home-panel-sub {
        color: var(--faint);
        font-size: 10px;
        white-space: nowrap;
      }

.action-queue {
        border-top: 0.5px solid rgba(255, 176, 32, 0.14);
        padding-top: 9px;
      }

.action-queue-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 7px;
      }

.action-queue-head span {
        color: rgba(232, 237, 248, 0.9);
        font-size: 12px;
        font-weight: 900;
      }

.action-queue-head small {
        color: rgba(232, 237, 248, 0.36);
        font-size: 10px;
        font-weight: 800;
      }

.action-queue-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
      }

.action-cue-item {
        min-width: 0;
        border: 0.5px solid rgba(255, 255, 255, 0.065);
        background: rgba(255, 255, 255, 0.022);
        padding: 8px;
      }

.action-cue-item.primary {
        border-color: rgba(255, 176, 32, 0.25);
        background: rgba(255, 176, 32, 0.07);
      }

.action-cue-item.tone-positive {
        border-color: rgba(45, 210, 128, 0.28);
        background: linear-gradient(180deg, rgba(45, 210, 128, 0.18), rgba(45, 210, 128, 0.075));
      }

.action-cue-item.tone-negative {
        border-color: rgba(255, 77, 90, 0.3);
        background: linear-gradient(180deg, rgba(255, 77, 90, 0.18), rgba(255, 77, 90, 0.075));
      }

.action-cue-item.tone-positive b {
        color: rgba(205, 255, 225, 0.96);
      }

.action-cue-item.tone-negative b {
        color: rgba(255, 214, 218, 0.96);
      }

.action-cue-item b {
        display: block;
        overflow: hidden;
        color: rgba(232, 237, 248, 0.9);
        font-size: 11px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.action-cue-item span {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        color: rgba(232, 237, 248, 0.48);
        font-size: 10px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.news-digest-list {
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }

.home-news-panel .news-digest-list {
        max-height: 350px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: auto;
        padding-right: 0;
      }

.news-action-card {
        display: grid;
        gap: 6px;
        border: 0.5px solid rgba(255, 255, 255, 0.065);
        background: rgba(255, 255, 255, 0.024);
        padding: 8px;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.045);
      }

.news-action-card.api {
        border-color: rgba(255, 176, 32, 0.24);
        background: linear-gradient(90deg, rgba(255, 176, 32, 0.055), rgba(255, 255, 255, 0.02));
      }

.news-action-top {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
      }

.news-action-time {
        color: rgba(255, 176, 32, 0.78);
        font-size: 10px;
        font-weight: 800;
      }

.news-action-flow {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        color: rgba(232, 237, 248, 0.62);
        font-size: 10px;
        font-weight: 800;
      }

.news-action-flow b {
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-size: 11px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.news-action-flow span {
        color: rgba(255, 176, 32, 0.5);
      }

.news-action-tag {
        border: 0.5px solid rgba(255, 176, 32, 0.18);
        background: rgba(255, 176, 32, 0.08);
        color: #ffd27a;
        padding: 3px 6px;
        font-size: 10px;
        font-weight: 800;
      }

.news-action-meta {
        display: grid;
        grid-template-columns: 1.08fr 0.78fr 0.92fr 0.78fr 1fr;
        gap: 6px;
      }

.news-action-meta span {
        min-width: 0;
        overflow: hidden;
        border: 0.5px solid rgba(255, 255, 255, 0.055);
        background: rgba(0, 0, 0, 0.12);
        color: rgba(232, 237, 248, 0.68);
        padding: 5px 6px;
        font-size: 10px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.news-action-meta span:first-child {
        color: rgba(255, 216, 79, 0.78);
      }

.news-action-meta strong {
        color: rgba(232, 237, 248, 0.42);
        font-weight: 900;
      }

.news-api-line {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
        color: rgba(232, 237, 248, 0.48);
        font-size: 10px;
        font-weight: 800;
      }

.news-copilot.compact {
        border-left: 2px solid rgba(91, 156, 246, 0.48);
        background: rgba(91, 156, 246, 0.06);
        padding: 6px 7px;
        color: rgba(232, 237, 248, 0.58);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.4;
      }

.news-api-pill {
        flex: 0 0 auto;
        border: 0.5px solid rgba(255, 176, 32, 0.26);
        background: rgba(255, 176, 32, 0.1);
        color: #ffd27a;
        padding: 2px 5px;
      }

.news-api-labels {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.news-api-link {
        flex: 0 0 auto;
        color: #ffd27a;
        text-decoration: none;
      }

.news-api-link:hover {
        color: #ffe6aa;
        text-decoration: underline;
      }

.news-copilot {
        display: grid;
        gap: 5px;
        border-left: 2px solid rgba(255, 176, 32, 0.58);
        background: rgba(0, 0, 0, 0.16);
        padding: 7px 8px;
      }

.news-copilot.positive {
        border-left-color: rgba(66, 211, 146, 0.72);
      }

.news-copilot.negative {
        border-left-color: rgba(255, 77, 90, 0.72);
      }

.news-copilot.watch {
        border-left-color: rgba(91, 156, 246, 0.72);
      }

.news-copilot-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        color: rgba(255, 176, 32, 0.78);
        font-size: 10px;
        font-weight: 900;
      }

.news-copilot-top span:last-child {
        color: rgba(232, 237, 248, 0.44);
        font-size: 9px;
      }

.news-copilot p {
        margin: 0;
        color: rgba(232, 237, 248, 0.78);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
      }

.news-copilot-meta {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 6px;
      }

.news-copilot-meta span {
        min-width: 0;
        overflow: hidden;
        color: rgba(232, 237, 248, 0.62);
        font-size: 9px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.news-copilot-meta strong {
        color: rgba(255, 176, 32, 0.62);
      }

.sector-sparkline {
        width: 74px;
        height: 42px;
        align-self: center;
      }

.sector-label {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 18px;
        padding: 1px 4px;
        overflow: hidden;
        background: rgba(11, 13, 18, 0.52);
        color: rgba(255, 255, 255, 0.82);
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

.up3 {
        background: #2fc95f;
      }

.up2 {
        background: #29a953;
      }

.up1 {
        background: #247a48;
      }

.flat0 {
        background: #434856;
      }

.down1 {
        background: #76464f;
      }

.down2 {
        background: #b33f49;
      }

.down3 {
        background: #ef303a;
      }

.sec-label {
        margin-bottom: 10px;
        color: var(--faint);
        font-size: 10px;
        letter-spacing: 0.7px;
      }

.home-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 0;
      }

canvas {
        width: 100%;
        height: 100%;
      }

.stock-row canvas {
        height: 28px;
      }

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

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

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

.muted {
        color: var(--faint);
      }

.layout {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 14px;
      }

.split-row {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 14px;
      }

.panel {
        padding: 18px;
      }

.panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }

.panel-title {
        display: flex;
        align-items: center;
        gap: 7px;
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
      }

.panel-badge {
        padding: 3px 9px;
        border-radius: 20px;
        background: rgba(61, 126, 245, 0.14);
        color: var(--blue);
        font-size: 10px;
        white-space: nowrap;
      }

.large-chart {
        height: 310px;
        padding-top: 8px;
      }

.legend {
        display: flex;
        gap: 12px;
        margin-top: 12px;
        color: var(--faint);
        font-size: 10px;
      }

.legend span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
      }

.legend i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
      }

.signal-list,
      .news-list,
      .stock-list {
        display: grid;
      }

.signal {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
      }

.signal:last-child {
        border-bottom: 0;
      }

.tag {
        padding: 3px 7px;
        border-radius: 5px;
        background: rgba(61, 126, 245, 0.12);
        color: var(--blue);
        font-size: 10px;
        font-weight: 600;
      }

.tag.good {
        background: rgba(43, 196, 138, 0.12);
        color: var(--green);
      }

.tag.warn {
        background: rgba(212, 160, 23, 0.12);
        color: var(--amber);
      }

.signal b,
      .stock-name,
      .news-title {
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
      }

.signal small,
      .stock-code,
      .news-meta {
        display: block;
        margin-top: 3px;
        color: var(--faint);
        font-size: 10px;
      }

.stock-row,
      .news-item {
        padding: 10px 0;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
      }

.stock-row {
        display: grid;
        grid-template-columns: 1fr 70px auto;
        align-items: center;
        gap: 10px;
      }

.stock-row:last-child,
      .news-item:last-child {
        border-bottom: 0;
      }

.stock-left {
        display: flex;
        align-items: center;
        gap: 9px;
      }

.stock-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        font-size: 10px;
        font-weight: 700;
      }

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

.stock-price {
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
      }

.stock-pct {
        margin-top: 2px;
        font-size: 11px;
      }

.sector-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

.sector-tile {
        min-height: 58px;
        padding: 10px;
        border: 0.5px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.025);
      }

.sector-tile b {
        display: block;
        margin-bottom: 7px;
        color: var(--text);
        font-size: 12px;
      }

.sector-tile span {
        font-size: 12px;
        font-weight: 600;
      }

.roadmap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

.phase {
        min-height: 78px;
        padding: 10px;
        border: 0.5px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.025);
      }

.phase b {
        color: var(--blue);
        font-size: 11px;
      }

.phase p {
        margin-top: 7px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 11px;
        line-height: 1.45;
      }
