:root {
    color-scheme: dark;
    --bg: #000000;
    --panel: #0b0f14;
    --panel-2: #11161d;
    --border: rgba(255, 255, 255, 0.08);
    --grid: rgba(255, 255, 255, 0.06);
    --text: #d1d4dc;
    --muted: #6b7280;
    --green: #089981;
    --red: #f23645;
    --cyan: #00c2a8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, 'Segoe UI', sans-serif;
}

button,
input,
select {
    font: inherit;
}

.app {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
}

.dashboard-shell {
    display: grid;
    gap: 10px;
}

.dashboard-shell-watchlist {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.dashboard-main-column {
    display: grid;
    gap: 10px;
}

.portal-shell,
.analysis-shell,
.lab-shell {
    display: grid;
    gap: 10px;
}

.app-chrome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    margin-bottom: 8px;
}

.app-primary-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 999px;
    background: rgba(12, 17, 23, 0.9);
}

.app-primary-nav-btn {
    min-height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7c8796;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.app-primary-nav-btn.is-active {
    background: #f3f4f6;
    color: #0b1016;
}

.app-chrome-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subtle-login-btn,
.app-user-pill {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.subtle-login-btn {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.05);
    color: #9fb0c4;
    cursor: pointer;
}

.subtle-login-btn:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.app-user-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(8, 153, 129, 0.14);
    color: #bbf7d0;
    border: 1px solid rgba(45, 212, 191, 0.16);
}

.login-dialog-shell {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.login-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.login-dialog-title {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
}

.login-dialog-subtitle {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.login-dialog-body {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.login-qr-card.compact {
    gap: 10px;
    padding: 10px;
}

.login-qr-card.compact .login-qr-frame {
    width: 176px;
    height: 176px;
    padding: 10px;
}

.login-dialog-copy {
    display: grid;
    gap: 8px;
    align-content: start;
}

.login-dialog-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.login-dialog-copy h3 {
    margin: 0;
    font-size: 18px;
    color: #f8fafc;
}

.login-dialog-copy p {
    margin: 0;
    color: #9fb0c4;
    font-size: 12px;
    line-height: 1.6;
}

.login-dialog-meta {
    color: #cbd5e1;
    font-size: 12px;
}

.login-qr-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.login-qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.login-qr-caption {
    color: #7c8ea5;
    font-size: 11px;
}

.login-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.1);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.login-status-badge.is-pending {
    color: #bfdbfe;
    background: rgba(29, 78, 216, 0.18);
}

.login-status-badge.is-scanned {
    color: #fde68a;
    background: rgba(217, 119, 6, 0.18);
}

.login-status-badge.is-confirmed,
.login-status-badge.is-success {
    color: #bbf7d0;
    background: rgba(8, 153, 129, 0.2);
}

.login-status-badge.is-expired,
.login-status-badge.is-cancelled {
    color: #fecaca;
    background: rgba(242, 54, 69, 0.16);
}

.login-qr-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(6, 10, 15, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.login-qr-frame {
    width: 250px;
    height: 250px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.login-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-topbar {
    overflow: visible;
}

.lab-shell {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: start;
}

.lab-config-panel,
.lab-results-panel {
    min-height: calc(100vh - 84px);
}

.lab-panel-header {
    align-items: flex-start;
}

.lab-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lab-intro-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 14, 19, 0.92), rgba(12, 17, 23, 0.88));
}

.lab-intro-chip,
.lab-summary-chip {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(17, 22, 29, 0.72);
}

.lab-intro-chip span,
.lab-summary-chip span,
.lab-parameter-copy small,
.lab-parameter-field small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.02em;
}

.lab-intro-chip strong,
.lab-summary-chip strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.lab-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.lab-config-grid label,
.lab-parameter-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lab-config-grid .input-field,
.lab-parameter-grid .input-field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lab-config-grid label span,
.lab-parameter-grid label span,
.lab-parameter-toggle span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.lab-parameter-section,
.lab-failures-block {
    padding: 12px;
}

.lab-parameter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

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

.lab-parameter-field {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 20, 27, 0.62);
}

.lab-parameter-field.is-modified,
.lab-parameter-toggle.is-modified {
    border-color: rgba(59, 130, 246, 0.36);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.lab-parameter-label-row,
.lab-parameter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lab-parameter-copy {
    display: grid;
    gap: 3px;
}

.lab-reset-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.lab-reset-link:hover {
    color: #dbeafe;
}

.lab-parameter-toggle {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border-radius: 8px;
    background: #0f141b;
    border: 1px solid var(--border);
}

.lab-empty-state {
    display: grid;
    gap: 6px;
    padding: 16px;
    margin: 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: #0f141b;
    color: var(--muted);
    font-size: 12px;
}

.lab-empty-state-error {
    border-style: solid;
    border-color: rgba(242, 54, 69, 0.18);
    background: rgba(127, 29, 29, 0.12);
}

.lab-results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.lab-results-list {
    display: grid;
}

.lab-result-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 376px;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.lab-result-row:hover {
    background: rgba(148, 163, 184, 0.05);
}

.lab-result-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.lab-result-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.lab-result-title-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #f8fafc;
}

.lab-result-title-row span,
.lab-result-subtitle {
    color: #7c8796;
    font-size: 11px;
}

.lab-result-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-result-levels {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.lab-result-levels span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.lab-result-levels strong {
    color: #cbd5e1;
    font-weight: 600;
}

.lab-result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.lab-result-metric {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(17, 22, 29, 0.76);
}

.lab-result-metric span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lab-result-metric strong {
    color: #f8fafc;
    font-size: 13px;
}

.lab-failure-list {
    display: grid;
    gap: 8px;
}

.lab-failure-row {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.18);
    border: 1px solid rgba(242, 54, 69, 0.16);
}

.lab-failure-row strong {
    color: #fecaca;
    font-size: 12px;
}

.lab-failure-row span {
    color: #cbd5e1;
    font-size: 11px;
}

.analysis-topbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.analysis-topbar-copy {
    min-width: 0;
}

.analysis-topbar-copy h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
}

.analysis-symbol-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.analysis-symbol-code {
    color: #7c8796;
    font-size: 12px;
    font-weight: 500;
}

.analysis-topbar-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analysis-snapshot-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.analysis-snapshot-meta span {
    max-width: 100%;
    padding: 2px 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    color: #9fb2c8;
    font-size: 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analysis-back-btn {
    min-width: auto;
    padding: 0 10px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.panel-price {
    min-height: 560px;
}

.panel-report {
    min-height: 520px;
}

.panel-watchlist {
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    background: #0a0e13;
    --watchlist-symbol-col: 96px;
    --watchlist-badge-col: 64px;
    --watchlist-confidence-col: 52px;
    --watchlist-strategy-col: 60px;
    --watchlist-date-col: 84px;
    --watchlist-binding-actions-col: 108px;
}

.panel-toolbar,
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #0c1117;
}

.toolbar-left,
.toolbar-right,
.panel-stats,
.panel-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field {
    background: #0f141b;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 7px;
    outline: none;
}

.input-compact,
.flatpickr-input {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 32px;
}

.input-field:focus,
.flatpickr-input:focus {
    border-color: rgba(59, 130, 246, 0.45);
}

.symbol-input {
    width: 76px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.strategy-select {
    width: 200px;
}

.interval-select {
    width: 58px;
}

.date-input,
.flatpickr-input {
    width: 118px;
}

.toolbar-label,
.panel-subtle,
.panel-caption,
.panel-stats,
.metric-label,
th,
.mini-stat span,
.empty-table,
.chart-placeholder {
    color: var(--muted);
}

.toolbar-label,
.panel-stats span,
.panel-caption,
.metric-label,
th,
td,
.mini-stat span,
.mini-stat strong,
.chart-placeholder,
.compact-loading,
.compact-error {
    font-size: 12px;
}

.compact-btn {
    height: 32px;
    min-width: 56px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: #1d4ed8;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.compact-btn:hover {
    background: #2563eb;
}

.compact-btn:disabled,
.ghost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ghost-btn {
    height: 30px;
    min-width: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #11161d;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.ghost-btn:hover {
    background: #17202a;
}

.ghost-btn.danger:hover {
    color: #fecaca;
    border-color: rgba(242, 54, 69, 0.28);
}

.compact-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
}

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

.chart-box {
    position: relative;
    background: var(--panel);
}

.tv-chart-box {
    padding: 0;
}

.chart {
    width: 100%;
}

.chart-market {
    height: 460px;
}

.chart-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 15, 20, 0.72);
}

.prediction-strip {
    display: grid;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.96), rgba(15, 20, 27, 0.96));
}

.prediction-strip-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.prediction-strip-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.prediction-strip-copy strong {
    font-size: 12px;
    font-weight: 600;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prediction-strip-copy span {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prediction-strip-levels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.prediction-level-chip {
    display: grid;
    gap: 4px;
    padding: 8px 9px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(17, 22, 29, 0.76);
}

.prediction-level-chip span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prediction-level-chip strong {
    font-size: 12px;
    font-weight: 600;
    color: #f3f4f6;
}

.inline-message {
    margin: 10px 12px 0;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
}

.compact-loading {
    color: #93c5fd;
    background: rgba(30, 64, 175, 0.14);
}

.compact-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.24);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.compact-metric {
    padding: 12px 10px;
    border-right: 1px solid var(--border);
    background: #0b0f14;
    min-height: 74px;
    justify-content: center;
}

.compact-metric:last-child {
    border-right: none;
}

.metric-label {
    display: block;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
}

.compact-metric.positive .metric-value {
    color: var(--cyan);
}

.compact-metric.negative .metric-value {
    color: #fda4af;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}

.compact-data-panel {
    padding: 12px;
    min-height: 220px;
}

.compact-data-panel:first-child {
    border-right: 1px solid var(--border);
}

.compact-subsection {
    margin-bottom: 10px;
}

.compact-subsection h3,
h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--grid);
}

th {
    font-weight: 500;
}

td {
    color: var(--text);
}

.empty-table {
    text-align: center;
    padding: 22px 0;
}

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

.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.watchlist-header {
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: #0b1016;
}

.watchlist-header-copy {
    min-width: 0;
    display: block;
}

.watchlist-tab-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.watchlist-market-tab {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7c8796;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}

.watchlist-market-tab.is-active {
    color: #f3f4f6;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.watchlist-symbol-copy {
    display: block;
    min-width: 0;
    width: var(--watchlist-symbol-col);
}

.watchlist-symbol-copy strong {
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.watchlist-market-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #7c8796;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.watchlist-market-bar span {
    white-space: nowrap;
}

.watchlist-market-bar strong {
    margin-right: 3px;
    color: #dbe2ea;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.watchlist-market-bar .is-long strong {
    color: #86efac;
}

.watchlist-market-bar .is-short strong {
    color: #fca5a5;
}

.watchlist-scroll {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: auto;
}

.watchlist-list-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.add-product-entry {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.add-product-entry:hover {
    background: rgba(148, 163, 184, 0.03);
}

.add-product-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 auto;
}

.add-product-text {
    font-size: 12px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1;
}

.watchlist-item {
    padding: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    cursor: pointer;
    transition: background 140ms ease;
    position: relative;
}

.watchlist-item:last-child {
    border-bottom: none;
}

.watchlist-item:hover {
    background: rgba(148, 163, 184, 0.05);
}

.watchlist-row-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 72px 106px;
    align-items: center;
    column-gap: 14px;
    min-width: 0;
    min-height: 56px;
    padding: 0 16px;
}

.watchlist-row-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.watchlist-row-main-inline {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.watchlist-row-title {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.watchlist-row-symbol-inline {
    flex: 0 0 auto;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    border: none;
    background: transparent;
    color: #7f8a9b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.watchlist-row-symbol-inline:hover {
    color: #bfdbfe;
}

.item-confidence,
.item-strategy-count {
    font-size: 10px;
    color: #aeb8c6;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-confidence {
    text-align: right;
    font-weight: 700;
    color: #e5e7eb;
    font-variant-numeric: tabular-nums;
}

.item-strategy-count.compact {
    text-align: left;
    color: #9aa4b2;
    font-weight: 600;
}

.watchlist-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    opacity: 0;
    pointer-events: none;
    justify-self: end;
    transition: opacity 120ms ease;
}

.watchlist-item:hover .watchlist-item-actions,
.watchlist-item:focus-within .watchlist-item-actions {
    opacity: 1;
    pointer-events: auto;
}

.watchlist-footer {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    background: #0c1117;
}

.watchlist-add-btn {
    width: 100%;
    height: 36px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.watchlist-empty,
.watchlist-empty-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: #0f141b;
    color: var(--muted);
    font-size: 12px;
}

.watchlist-tree-node {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    padding: 1px 0;
}

.watchlist-tree-row {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 120ms ease;
}

.watchlist-tree-row:hover,
.watchlist-binding-row:hover {
    background: rgba(148, 163, 184, 0.06);
}

.watchlist-tree-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 12px var(--watchlist-symbol-col) var(--watchlist-badge-col) var(--watchlist-confidence-col) var(--watchlist-strategy-col);
    align-items: center;
    gap: 6px;
}

.watchlist-tree-caret {
    width: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    line-height: 1;
}

.watchlist-binding-topline,
.watchlist-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.watchlist-tree-main strong {
    font-size: 13px;
    color: #f3f4f6;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.watchlist-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
}

.watchlist-meta-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-inline-meta {
    display: inline-flex;
    align-items: center;
    color: #7c8796;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
}

.watchlist-inline-confidence {
    font-weight: 600;
    color: #9aa4b2;
    min-width: var(--watchlist-confidence-col);
    text-align: right;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.watchlist-inline-strategy-count {
    min-width: var(--watchlist-strategy-col);
    justify-content: flex-start;
    font-variant-numeric: tabular-nums;
}

.watchlist-card-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    z-index: 2;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(10, 14, 19, 0), rgba(10, 14, 19, 0.92) 22%, rgba(10, 14, 19, 1) 100%);
}

.watchlist-tree-node:hover .watchlist-card-actions,
.watchlist-tree-node:focus-within .watchlist-card-actions {
    opacity: 1;
    pointer-events: auto;
}

.watchlist-row-actions {
    opacity: 1;
    pointer-events: auto;
}

.watchlist-badge,
.watchlist-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    width: fit-content;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.watchlist-tree-main .watchlist-badge {
    min-width: var(--watchlist-badge-col);
}

.watchlist-row-compact .watchlist-badge {
    min-width: 88px;
    justify-self: start;
}

.watchlist-badge.long {
    color: #bbf7d0;
    background: rgba(8, 153, 129, 0.18);
}

.watchlist-badge.short,
.watchlist-badge.error {
    color: #fecaca;
    background: rgba(242, 54, 69, 0.16);
}

.watchlist-badge.mixed {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
}

.watchlist-badge.neutral,
.watchlist-tag {
    color: #d1d5db;
    background: rgba(148, 163, 184, 0.14);
}

.watchlist-binding-tree {
    display: grid;
    gap: 1px;
    margin-left: 11px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.watchlist-binding-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(13, 18, 25, 0.52);
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 120ms ease;
}

.watchlist-binding-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "summary actions"
        "meta actions";
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
}

.watchlist-binding-summary {
    grid-area: summary;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--watchlist-badge-col) var(--watchlist-confidence-col);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.watchlist-binding-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.watchlist-binding-topline strong {
    font-size: 11px;
    font-weight: 600;
    color: #dbe2ea;
}

.watchlist-binding-title strong {
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    color: #dbe2ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-binding-confidence {
    font-size: 11px;
    font-weight: 600;
    color: #a8b1bf;
    white-space: nowrap;
    min-width: var(--watchlist-confidence-col);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.watchlist-binding-summary .watchlist-badge,
.watchlist-binding-title .watchlist-tag {
    min-height: 16px;
    padding: 0 5px;
    font-size: 9px;
}

.watchlist-binding-row .watchlist-meta-row {
    grid-area: meta;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) var(--watchlist-date-col);
    gap: 10px;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.watchlist-binding-row .watchlist-meta-row span:last-child {
    text-align: right;
}

.watchlist-binding-row .watchlist-row-actions {
    grid-area: actions;
    padding-top: 0;
    position: static;
    background: transparent;
    padding-left: 0;
    justify-content: flex-end;
    align-self: center;
    flex-wrap: nowrap;
}

.watchlist-binding-error {
    grid-column: 1 / -1;
    color: #fca5a5;
    font-size: 10px;
}

.icon-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-primary {
    color: #c7d2fe;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(29, 78, 216, 0.16);
}

.icon-btn-primary:hover {
    background: rgba(37, 99, 235, 0.22);
}

.watchlist-card-actions,
.watchlist-row-actions {
    gap: 4px;
    flex: 0 0 auto;
}

.watchlist-tree-row .watchlist-card-actions {
    align-self: center;
}

.panel-watchlist .compact-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.panel-watchlist .inline-message {
    margin: 6px 8px 0;
    padding: 6px 8px;
    font-size: 11px;
}

.watchlist-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.watchlist-modal {
    width: min(520px, 100%);
    background: #0f141b;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.watchlist-modal.login-modal {
    width: min(440px, 100%);
    border-radius: 18px;
}

.watchlist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.watchlist-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #f3f4f6;
}

.watchlist-form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.watchlist-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.watchlist-form .input-field,
.watchlist-form .watchlist-textarea {
    width: 100%;
    padding: 10px 12px;
}

.watchlist-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.watchlist-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.watchlist-form-note {
    color: var(--muted);
    font-size: 12px;
}

.watchlist-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.watchlist-textarea {
    resize: vertical;
    min-height: 82px;
}

.detail-shell {
    display: grid;
    gap: 10px;
}

.detail-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.detail-nav-btn {
    min-width: auto;
}

.detail-stack {
    display: grid;
    gap: 10px;
}

.hero-card {
    padding: 12px 14px;
    background: #121827;
    border: 1px solid rgba(37, 52, 77, 0.9);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 7px;
    color: #97a4b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.hero-chip {
    min-height: 64px;
    padding: 8px 10px 7px;
    border: 1px solid rgba(43, 57, 82, 0.95);
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.96);
}

.hero-chip-label {
    color: #9aa6bb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-chip-value {
    margin-top: 7px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card .watchlist-badge {
    min-width: 94px;
    min-height: 28px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 700;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-headline {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.compact-add-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-binding-list {
    display: grid;
    gap: 10px;
    padding: 0;
}

.binding-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 4px;
    background: rgba(15, 20, 27, 0.86);
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.binding-card:hover {
    border-color: rgba(96, 165, 250, 0.18);
    background: rgba(17, 24, 35, 0.92);
    transform: translateY(-1px);
}

.strategy-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

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

.binding-side {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.strategy-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.binding-title {
    min-width: 0;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.strategy-subtitle {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
}

.strategy-icon-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.strategy-icon-actions {
    display: inline-flex;
    gap: 6px;
}

.strategy-icon-actions.compact {
    justify-content: flex-end;
}

.binding-grid,
.prediction-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.binding-label {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.binding-value {
    margin-top: 2px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.binding-value.small {
    font-size: 11px;
    font-weight: 700;
}

.prediction-subpanel {
    padding: 10px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(11, 15, 20, 0.62);
}

.prediction-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.prediction-title {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.prediction-time {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.binding-card .watchlist-badge {
    min-width: 108px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 11px;
}

.binding-card .watchlist-tag {
    min-height: 20px;
    padding: 0 8px;
    font-size: 9px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.2);
    color: #dbeafe;
}

.binding-card .icon-btn {
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 11px;
}

.detail-error {
    color: #fca5a5;
    font-size: 12px;
}

.detail-binding-table-card {
    overflow: hidden;
}

.detail-binding-table {
    display: grid;
    grid-template-columns: minmax(0, 2.8fr) 96px 118px 96px 64px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    box-sizing: border-box;
}

.detail-binding-table:last-child {
    border-bottom: none;
}

.detail-binding-table-head {
    background: rgba(15, 23, 42, 0.38);
}

.detail-binding-table-head div {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.detail-binding-table-row {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.detail-binding-table-row:hover {
    background: rgba(148, 163, 184, 0.03);
}

.detail-binding-table-row:focus-visible {
    outline: 1px solid rgba(96, 165, 250, 0.7);
    outline-offset: -1px;
    background: rgba(148, 163, 184, 0.04);
}

.detail-binding-name,
.detail-binding-value,
.detail-binding-signal,
.detail-binding-actions {
    min-width: 0;
}

.detail-binding-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.detail-binding-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.detail-binding-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.detail-binding-subtitle {
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-binding-value {
    width: 100%;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.detail-binding-value.positive {
    color: #86efac;
}

.detail-binding-value.negative {
    color: #fca5a5;
}

.detail-binding-value.neutral {
    color: #e2e8f0;
}

.detail-binding-signal {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.detail-compact-badge {
    min-width: 72px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
}

.detail-binding-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.detail-inline-tag {
    flex: 0 0 auto;
    min-height: 18px;
    padding: 0 8px;
    font-size: 9px;
}

.detail-binding-name .detail-error {
    margin-top: 4px;
    font-size: 10px;
}

.analysis-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.analysis-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    min-height: 28px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.16);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mini-stat strong {
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
}

.compact-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wave-details-stack {
    display: grid;
    gap: 10px;
}

.flatpickr-calendar,
.flatpickr-months,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: #11161d;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 1100px) {
    .login-dialog-body {
        grid-template-columns: 1fr;
    }

    .dashboard-shell-watchlist {
        grid-template-columns: 1fr;
    }

    .toolbar-left {
        flex-wrap: wrap;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-detail-grid {
        grid-template-columns: 1fr;
    }

    .compact-data-panel:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .panel-watchlist {
        min-height: auto;
    }

    .lab-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-config-panel,
    .lab-results-panel {
        min-height: auto;
    }

    .lab-result-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .lab-intro-strip,
    .lab-results-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-result-metrics,
    .lab-config-grid,
    .lab-parameter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .login-dialog-shell {
        padding: 20px 18px;
    }

    .login-qr-card {
        padding: 16px;
    }

    .login-qr-frame {
        width: 216px;
        height: 216px;
    }

    .login-dialog-header {
        align-items: stretch;
        flex-direction: column;
    }

    .login-dialog-body {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        gap: 12px;
        padding: 12px 14px 16px;
    }

    .panel-watchlist {
        --watchlist-symbol-col: 88px;
        --watchlist-badge-col: 60px;
        --watchlist-confidence-col: 48px;
        --watchlist-strategy-col: 56px;
        --watchlist-date-col: 76px;
        --watchlist-binding-actions-col: 102px;
    }

    .app {
        padding: 0;
    }

    .panel-toolbar,
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right,
    .panel-stats,
    .toolbar-left {
        flex-wrap: wrap;
    }

    .strategy-select,
    .date-input,
    .flatpickr-input {
        width: 100%;
    }

    .metrics-grid,
    .mini-stat-grid,
    .compact-table-grid,
    .watchlist-form-row,
    .prediction-strip-levels {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .watchlist-row-compact {
        grid-template-columns: minmax(0, 1fr) 74px 58px 88px;
        column-gap: 10px;
        row-gap: 0;
        padding: 0 12px;
        min-height: 52px;
    }

    .add-product-entry {
        gap: 8px;
        padding: 10px 12px;
    }

    .add-product-icon {
        width: 16px;
        height: 16px;
        font-size: 11px;
    }

    .add-product-text {
        font-size: 11px;
    }

    .strategy-header-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .hero-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }

    .section-row {
        align-items: center;
    }

    .hero-card {
        padding: 14px 14px 12px;
        border: 1px solid rgba(37, 52, 77, 0.9);
        border-radius: 4px;
        border-left: 1px solid rgba(37, 52, 77, 0.9);
        border-right: 1px solid rgba(37, 52, 77, 0.9);
    }

    .section-title {
        font-size: 16px;
    }

    .section-subtitle {
        margin-top: 8px;
        font-size: 10px;
    }

    .hero-chip {
        min-height: 58px;
        padding: 8px 10px 7px;
        border-radius: 10px;
    }

    .hero-chip-label {
        font-size: 9px;
    }

    .hero-chip-value {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.1;
    }

    .hero-card .watchlist-badge {
        min-width: 82px;
        min-height: 26px;
        padding: 0 10px;
        font-size: 10px;
        flex: 0 0 auto;
    }

    .binding-card {
        padding: 12px;
        gap: 8px;
    }

    .detail-binding-table,
    .detail-binding-table-head {
        grid-template-columns: minmax(0, 1fr) 56px 68px 60px 48px;
        gap: 6px;
        padding: 14px 10px;
    }

    .detail-binding-table-head div {
        font-size: 10px;
    }

    .detail-binding-title-line {
        gap: 6px;
    }

    .detail-binding-title {
        font-size: 12px;
    }

    .detail-binding-subtitle,
    .detail-binding-name .detail-error {
        font-size: 9px;
    }

    .detail-binding-value {
        font-size: 11px;
    }

    .detail-compact-badge {
        min-width: 56px;
        min-height: 22px;
        padding: 0 5px;
        font-size: 8px;
    }

    .detail-inline-tag {
        min-height: 16px;
        padding: 0 6px;
        font-size: 8px;
    }

    .detail-binding-actions .strategy-icon-actions.compact {
        gap: 4px;
    }

    .detail-binding-actions .icon-btn {
        width: 20px;
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .binding-side {
        gap: 6px;
    }

    .binding-card .watchlist-badge {
        min-width: 96px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 11px;
    }

    .binding-card .watchlist-tag {
        min-height: 20px;
        padding: 0 8px;
        font-size: 9px;
    }

    .binding-title {
        font-size: 13px;
    }

    .strategy-subtitle {
        font-size: 10px;
    }

    .binding-grid,
    .prediction-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .binding-label {
        font-size: 9px;
    }

    .binding-value {
        font-size: 12px;
        margin-top: 2px;
    }

    .binding-value.small {
        font-size: 11px;
    }

    .prediction-subpanel {
        padding: 10px;
    }

    .prediction-heading-row {
        flex-direction: row;
        align-items: center;
        margin-bottom: 10px;
    }

    .prediction-title {
        font-size: 11px;
    }

    .prediction-time {
        font-size: 9px;
    }

    .compact-add-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .watchlist-row-main {
        grid-column: auto;
        gap: 8px;
    }

    .watchlist-row-title {
        font-size: 11px;
    }

    .watchlist-row-symbol-inline,
    .item-confidence,
    .item-strategy-count {
        font-size: 9px;
    }

    .watchlist-row-compact .watchlist-badge {
        min-width: 74px;
        min-height: 24px;
        padding: 0 8px;
        font-size: 9px;
    }

    .item-strategy-count.compact {
        justify-self: start;
        text-align: left;
    }

    .analysis-topbar-inner {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .analysis-topbar-actions {
        justify-self: end;
    }

    .chart-market {
        height: 320px;
    }

    .watchlist-binding-summary {
        grid-template-columns: minmax(0, 1fr) auto auto;
        justify-items: stretch;
    }

    .watchlist-binding-main {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "summary"
            "meta"
            "actions";
    }

    .watchlist-binding-row .watchlist-row-actions {
        justify-content: flex-start;
    }

    .watchlist-market-bar {
        gap: 8px;
        font-size: 9px;
    }

    .portal-shell,
    .analysis-shell,
    .lab-shell,
    .detail-shell {
        gap: 0;
    }

    .panel,
    .panel-watchlist,
    .analysis-topbar {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .panel-watchlist {
        min-height: 100vh;
    }

    .analysis-back-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .analysis-topbar-copy h1 {
        font-size: 16px;
    }

    .analysis-topbar-copy p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-chrome-bar {
        gap: 8px;
        padding: 8px 10px 0;
    }

    .app-primary-nav {
        width: 100%;
        justify-content: stretch;
    }

    .app-primary-nav-btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .lab-config-grid,
    .lab-parameter-grid,
    .lab-result-metrics,
    .lab-intro-strip,
    .lab-results-summary {
        grid-template-columns: 1fr;
    }

    .lab-header-actions,
    .lab-parameter-header {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}
