@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans+KR:wght@300;400&family=IBM+Plex+Mono:wght@300;400&display=swap');

/* ============================================================
   Stacker Journal — Linear-Inspired Dark Theme
   3-Pane Layout: Sidebar | Inbox | Content
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-app: #0f0f17;
    --bg-sidebar: #131320;
    --bg-inbox: #17172a;
    --bg-content: #1a1a2e;
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-active: rgba(99, 102, 241, 0.12);
    --bg-selected: rgba(99, 102, 241, 0.08);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --text-primary: #E6EDF3;
    --text-secondary: #CDD9E5;
    --text-tertiary: #8B949E;
    --text-muted: #6E7681;
    --accent: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.3);
    --green: #34d399;
    --red: #f87171;
    --orange: #fbbf24;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-w: 200px;
    --sidebar-collapsed-w: 56px;
    --inbox-w: 340px;
    --t: 0.15s ease;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-app);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* ============================================================ SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 30;
    transition: width var(--t), border-color var(--t);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px 8px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.brand-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.pane-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
    flex-shrink: 0;
}

.pane-toggle-btn svg {
    transition: transform var(--t);
}

.pane-toggle-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-search {
    position: relative;
    margin: 6px 10px 8px;
}

.search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    padding: 6px 8px 6px 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: var(--font);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--t);
}

.sidebar-search input:focus {
    border-color: var(--accent-dim);
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
}

.nav-group-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: 12px 8px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--t);
    margin-bottom: 1px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    font-weight: 450;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    border-radius: 1px;
    background: var(--accent);
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: color var(--t);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: var(--text-secondary);
}

.nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Auth */
.sidebar-auth {
    padding: 8px 10px;
    border-top: 1px solid var(--border);
}

.sidebar-auth.auth-highlight {
    animation: authPulse 1.2s ease;
}

.google-signin-container {
    min-height: 36px;
}

.auth-fallback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t);
    margin-bottom: 6px;
}

.auth-fallback-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.auth-fallback-btn svg {
    flex-shrink: 0;
}

@keyframes authPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.45);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(129, 140, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
    }
}

.auth-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t);
}

.auth-login-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-user-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-name {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-logout-btn {
    font-size: 0.58rem;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-family: var(--font);
    transition: color var(--t);
}

.auth-logout-btn:hover {
    color: var(--red);
}

body.sidebar-collapsed .sidebar-auth {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.sidebar-footer-text {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.sidebar-footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.sidebar-footer-links a {
    font-size: 0.58rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--t);
}

.sidebar-footer-links a:hover {
    color: var(--text-secondary);
}

.sidebar-footer-sep {
    font-size: 0.5rem;
    color: var(--text-muted);
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-w);
}

body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 12px 6px 8px;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-search,
body.sidebar-collapsed .nav-group-label,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-footer-text,
body.sidebar-collapsed .sidebar-footer-links {
    display: none;
}

body.sidebar-collapsed #btn-sidebar-collapse svg {
    transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-nav {
    padding: 8px 4px;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    gap: 0;
    padding: 9px 4px;
}

body.sidebar-collapsed .nav-item.active::before {
    left: 3px;
}

/* ============================================================ INBOX PANE */
.inbox-pane {
    width: var(--inbox-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-inbox);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    transition: width var(--t), border-color var(--t);
    overflow: hidden;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    transition: opacity var(--t);
}

.inbox-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inbox-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-count {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 10px;
}

.inbox-list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: opacity var(--t);
}

.inbox-list::-webkit-scrollbar {
    width: 3px;
}

.inbox-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

body.inbox-collapsed .inbox-pane {
    width: 0;
    border-right-color: transparent;
}

body.inbox-collapsed .inbox-header,
body.inbox-collapsed .inbox-list {
    opacity: 0;
    pointer-events: none;
}

body.inbox-collapsed #btn-inbox-collapse svg {
    transform: rotate(180deg);
}

/* Inbox Items */
.inbox-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--t);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.inbox-item:hover {
    background: var(--bg-hover);
}

.inbox-item.active {
    background: var(--bg-selected);
}

.inbox-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.inbox-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.inbox-item-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.inbox-item-category {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.inbox-item-date {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.inbox-item-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inbox-item-summary {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 3px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inbox-item.folded .inbox-item-summary {
    display: none;
}

.item-fold-btn,
.section-fold-btn {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d9def2;
    font-size: 0.62rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.item-fold-btn:hover,
.section-fold-btn:hover {
    border-color: rgba(255, 255, 255, 0.34);
    color: #f2f5ff;
}

.inbox-date-filter {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-date-group {
    border-bottom: 1px solid var(--border);
}

.inbox-date-group:last-child {
    border-bottom: 0;
}

.inbox-date-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #99acd5;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    text-align: left;
}

.inbox-date-group-head:hover {
    background: rgba(255, 255, 255, 0.04);
}

.inbox-date-group-label {
    color: #d8def7;
    letter-spacing: 0.04em;
}

.inbox-date-group-meta {
    color: #9eaad3;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 2px 6px;
}

.inbox-date-group-fold {
    color: #d4dcf8;
    font-size: 0.7rem;
}

.market-inbox-pct.up {
    color: var(--green);
}

.market-inbox-pct.down {
    color: var(--red);
}

.market-inbox-pct.flat {
    color: var(--text-tertiary);
}

.market-inbox-group {
    border-bottom: 1px solid var(--border);
}

.market-inbox-group:last-child {
    border-bottom: 0;
}

.market-inbox-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #99acd5;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    text-align: left;
}

.market-inbox-group-head:hover {
    background: rgba(255, 255, 255, 0.04);
}

.market-group-fold {
    color: #d4dcf8;
    font-size: 0.7rem;
}

.market-inbox-group .inbox-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.market-inbox-group .inbox-item:last-child {
    border-bottom: 0;
}

/* Inbox Loading / Empty */
.inbox-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    gap: 8px;
}

.inbox-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    gap: 8px;
    text-align: center;
}

.list-more-wrap,
.sector-more-wrap,
.home-curation-more-wrap {
    display: flex;
    justify-content: center;
    padding: 6px 0 2px;
}

.list-more-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #d9def2;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: pointer;
}

.list-more-btn:hover {
    border-color: rgba(255, 255, 255, 0.34);
    color: #f0f3ff;
}

.home-curation-more-btn {
    margin-top: 4px;
}

/* Sector timeline */
.sector-timeline-wrap {
    padding: 12px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sector-slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.sector-slider-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8e91a6;
}

.sector-slider-date {
    font-size: 0.74rem;
    font-weight: 700;
    color: #eceeff;
    letter-spacing: 0.04em;
}

.sector-date-nav {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;
    align-items: center;
}

.sector-date-labels {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 2px;
    scrollbar-width: thin;
}

.sector-date-labels::-webkit-scrollbar {
    height: 6px;
}

.sector-date-labels::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.sector-step-btn {
    width: 28px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #d5d8e8;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.sector-step-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #f2f4ff;
}

.sector-step-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sector-date-label {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #cdd2e9;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.sector-date-label:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #eef1ff;
}

.sector-date-label.active {
    border-color: rgba(129, 140, 248, 0.78);
    background: linear-gradient(145deg, rgba(66, 76, 158, 0.72) 0%, rgba(98, 107, 194, 0.65) 100%);
    color: #f7f8ff;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2);
}

.sector-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

.sector-date-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(10, 11, 20, 0.42);
    overflow: hidden;
}

.sector-date-group-head {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(24, 26, 42, 0.95) 0%, rgba(29, 32, 51, 0.9) 100%);
    color: inherit;
    cursor: pointer;
    text-align: left;
    padding: 9px 11px;
}

.sector-date-group-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e3e7ff;
}

.sector-date-group-meta {
    font-size: 0.56rem;
    color: #a8afcb;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 2px 7px;
}

.sector-date-group-fold {
    color: #cfd5ef;
    font-size: 0.76rem;
}

.sector-date-group>.sector-sections {
    padding: 8px 8px 10px;
}

.sector-section-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(18, 20, 32, 0.95) 0%, rgba(32, 35, 55, 0.9) 100%);
    color: inherit;
    text-align: left;
    padding: 11px 12px;
    cursor: pointer;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.sector-section-card:hover {
    border-color: rgba(144, 155, 250, 0.4);
    transform: translateY(-1px);
}

.sector-section-card.active {
    border-color: rgba(129, 140, 248, 0.75);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 10px 18px rgba(7, 8, 14, 0.45);
}

.sector-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.sector-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sector-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca4ce;
}

.sector-date-pill {
    font-size: 0.56rem;
    color: #c2c7e1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 2px 7px;
}

.sector-section-card.folded .sector-summary,
.sector-section-card.folded .sector-ticker-row,
.sector-section-card.folded .sector-no-ticker {
    display: none;
}

.sector-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f0f3ff;
}

.sector-summary {
    margin-top: 5px;
    font-size: 0.66rem;
    line-height: 1.4;
    color: #a9afc8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sector-ticker-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sector-ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.58rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e9ff;
}

.sector-ticker-chip.up {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.12);
    color: #b0f0d3;
}

.sector-ticker-chip.down {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(248, 113, 113, 0.12);
    color: #ffc4c4;
}

.sector-ticker-chip.flat {
    border-color: rgba(251, 191, 36, 0.38);
    background: rgba(251, 191, 36, 0.12);
    color: #ffe3a3;
}

.ticker-symbol {
    letter-spacing: 0.04em;
}

.ticker-perf {
    font-variant-numeric: tabular-nums;
}

.sector-no-ticker {
    margin-top: 7px;
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

/* ============================================================ CONTENT PANE */
.content-pane {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-content);
    position: relative;
}

.content-pane::-webkit-scrollbar {
    width: 4px;
}

.content-pane::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

body.report-open .content-pane {
    background: linear-gradient(180deg, #d6d0c1 0%, #cfc7b8 100%);
}

body.home-mode .inbox-pane {
    width: 0;
    border-right-color: transparent;
}

body.home-mode .inbox-header,
body.home-mode .inbox-list {
    opacity: 0;
    pointer-events: none;
}

body.home-mode .btn-inbox-expand {
    display: none !important;
}

body.home-mode .content-pane {
    background: #050913;
}

body.top-pick-calendar-only .inbox-pane {
    width: 0;
    border-right-color: transparent;
}

body.top-pick-calendar-only .inbox-header,
body.top-pick-calendar-only .inbox-list {
    opacity: 0;
    pointer-events: none;
}

body.top-pick-calendar-only .btn-inbox-expand {
    display: none !important;
}

.btn-inbox-expand {
    position: sticky;
    top: 10px;
    z-index: 20;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(24, 24, 27, 0.18);
    border-radius: 999px;
    background: rgba(248, 245, 238, 0.96);
    color: #27272a;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 7px 11px;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.btn-inbox-expand:hover {
    background: #f8f5ee;
}

/* ============================================================ HOME LANDING */
.content-home {
    min-height: 100%;
    color: #edf3ff;
}

.home-hero {
    position: relative;
    min-height: 67vh;
    padding: 44px 32px 34px;
    background:
        linear-gradient(120deg, rgba(2, 10, 30, 0.82) 0%, rgba(4, 9, 23, 0.72) 46%, rgba(6, 7, 12, 0.76) 100%),
        url('/home-satellite-bg.jpg') center 22% / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(132, 181, 255, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 30% 78%, rgba(105, 224, 255, 0.12) 0%, transparent 44%);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 232px;
    transition: padding-right var(--t);
}

.home-hero-content.is-support-collapsed {
    padding-right: 118px;
}

.home-dev-support {
    position: absolute;
    top: 0;
    right: 0;
    width: 208px;
    border: 1px solid rgba(229, 240, 255, 0.34);
    border-radius: 14px;
    background: rgba(5, 16, 36, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 10px 11px;
    box-shadow: 0 14px 32px rgba(2, 8, 22, 0.42);
    transition: width var(--t), padding var(--t), background var(--t), border-color var(--t);
}

.home-dev-support-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-dev-support-toggle {
    border: 1px solid rgba(201, 224, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(238, 247, 255, 0.96);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 9px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--t), background var(--t);
}

.home-dev-support-toggle:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.14);
}

.home-dev-support-body {
    margin-top: 4px;
}

.home-dev-support.is-collapsed {
    width: fit-content;
    padding: 9px 9px;
}

.home-dev-support.is-collapsed .home-dev-support-body {
    display: none;
}

.home-dev-support-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(203, 223, 250, 0.92);
    font-weight: 700;
}

.home-dev-support-hint {
    margin-top: 4px;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(208, 226, 248, 0.88);
}

.home-dev-support-qr {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: #fff;
    display: block;
}

.home-dev-support-address {
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    color: rgba(223, 236, 255, 0.95);
    line-height: 1.45;
    word-break: break-all;
}

.home-dev-support-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid rgba(201, 224, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(238, 247, 255, 0.96);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 6px 10px;
    transition: border-color var(--t), background var(--t);
}

.home-dev-support-link:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.14);
}

.home-kicker {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(224, 239, 255, 0.88);
}

.home-title {
    margin-top: 10px;
    font-size: clamp(1.45rem, 2.5vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #f6fbff;
}

.home-subtitle {
    margin-top: 12px;
    max-width: 760px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(219, 235, 255, 0.92);
}

.home-auth-row {
    margin-top: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.home-login-btn {
    border: 1px solid rgba(224, 238, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f6fbff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 9px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(240, 248, 255, 0.7);
}

.home-google-btn {
    min-height: 40px;
}

.home-login-note {
    font-size: 0.68rem;
    color: rgba(214, 229, 249, 0.86);
}

.home-auth-state {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(154, 201, 255, 0.34);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    color: rgba(236, 246, 255, 0.95);
    padding: 7px 11px;
    font-size: 0.7rem;
}

.home-curation-head {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-curation-head h2 {
    font-size: 1rem;
    font-weight: 650;
    color: #f4f9ff;
}

.home-curation-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-curation-hint {
    font-size: 0.66rem;
    color: rgba(193, 216, 247, 0.86);
}

.home-curation-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(224, 238, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #eff7ff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.home-curation-btn:hover {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.16);
}

.home-curation-track {
    margin-top: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 272px);
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.home-curation-track::-webkit-scrollbar {
    height: 0;
}

.home-report-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    text-decoration: none;
    color: inherit;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(236, 245, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(3, 8, 21, 0.35);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-report-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.14);
}

.home-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-card-category {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(204, 226, 255, 0.92);
}

.home-card-date {
    font-size: 0.58rem;
    color: rgba(212, 229, 255, 0.86);
}

.home-card-title {
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.42;
    color: #f8fbff;
}

.home-card-summary {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(225, 238, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card-cta {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.68rem;
    color: rgba(224, 242, 255, 0.95);
}

.home-no-cards {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 18px;
    font-size: 0.8rem;
    color: rgba(226, 236, 251, 0.86);
}

.home-intro {
    background: linear-gradient(180deg, #081022 0%, #0a1427 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-intro-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 32px 56px;
}

.home-intro h2 {
    font-size: 1.25rem;
    color: #f6fbff;
}

.home-intro>p,
.home-intro-inner>p {
    margin-top: 10px;
    max-width: 760px;
    font-size: 0.84rem;
    line-height: 1.7;
    color: rgba(205, 223, 248, 0.9);
}

.home-feature-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-feature-card {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
}

.home-feature-card h3 {
    font-size: 0.82rem;
    color: #f2f7ff;
}

.home-feature-card p {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.58;
    color: rgba(193, 214, 243, 0.9);
}

/* Content Empty State */
.content-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.content-empty-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content Loading */
.content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Content Report */
.content-report {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 26px 70px;
}

.content-header {
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    border-radius: 10px;
    background: rgba(248, 245, 238, 0.97);
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.content-category-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--bg-active);
    padding: 2px 8px;
    border-radius: 4px;
}

.content-date {
    font-size: 0.65rem;
    color: #52525b;
}

.content-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.content-summary {
    font-size: 0.82rem;
    color: #3f3f46;
    line-height: 1.5;
}

/* Report Body — style injected HTML */
.content-body {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #18181b;
    background: rgba(248, 245, 238, 0.98);
    border: 1px solid rgba(24, 24, 27, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.content-body h1 {
    font-size: 1.3rem;
}

.content-body h2 {
    font-size: 1.1rem;
}

.content-body h3 {
    font-size: 0.95rem;
}

.content-body p {
    margin-bottom: 0.8em;
}

.content-body ul,
.content-body ol {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

.content-body li {
    margin-bottom: 0.3em;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.78rem;
}

.content-body th,
.content-body td {
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    text-align: left;
}

.content-body th {
    background: rgba(15, 23, 42, 0.06);
    font-weight: 600;
    color: #111827;
}

.content-body td {
    color: #374151;
}

.content-body a {
    color: #1d4ed8;
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

.content-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.6em 0;
}

.content-body blockquote {
    border-left: 3px solid rgba(59, 130, 246, 0.35);
    padding-left: 14px;
    margin: 1em 0;
    color: #4b5563;
    font-style: italic;
}

.content-body code {
    background: rgba(15, 23, 42, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82em;
}

.content-body pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.content-body pre code {
    background: none;
    padding: 0;
}

.report-frame {
    width: 100%;
    min-height: 760px;
    border: 0;
    display: block;
    background: #f8f5ee;
}

.report-frame-shell {
    position: relative;
    width: 100%;
}

.report-frame-shell.locked {
    overflow: hidden;
}

.report-frame-shell.locked .report-frame {
    pointer-events: none;
    user-select: none;
}

.report-paywall-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    pointer-events: none;
}

.report-paywall-blur {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 72%;
    background: linear-gradient(180deg,
            rgba(248, 245, 238, 0) 0%,
            rgba(248, 245, 238, 0.64) 38%,
            rgba(248, 245, 238, 0.95) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.report-paywall-card {
    position: relative;
    pointer-events: auto;
    width: min(540px, 100%);
    border-radius: 12px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    padding: 14px 16px 15px;
    text-align: center;
}

.report-paywall-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.2);
    padding: 3px 9px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.report-paywall-card h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.report-paywall-card p {
    margin: 0;
    color: #334155;
    font-size: 0.76rem;
    line-height: 1.45;
}

.report-paywall-btn {
    margin-top: 11px;
    border: 0;
    border-radius: 9px;
    padding: 9px 14px;
    min-width: 210px;
    background: #111827;
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: transform var(--t), opacity var(--t), box-shadow var(--t);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.24);
}

.report-paywall-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.paywall-google-btn {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    min-height: 42px;
}

/* ============================================================ OIL PULSE */
.content-oil-pulse {
    padding: 18px 20px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.oil-warning-item {
    border-color: rgba(251, 191, 36, 0.38);
    background: linear-gradient(130deg, rgba(251, 191, 36, 0.14), rgba(248, 113, 113, 0.12));
}

.oil-embed-note {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-left: 6px solid currentColor;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.02);
}

.oil-pulse-embed-shell {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #070d2a;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    height: calc(100vh - 170px);
    min-height: 700px;
}

.oil-pulse-embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #070d2a;
}

.oil-pulse-header {
    margin-bottom: 24px;
}

.oil-pulse-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.oil-pulse-header .subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.oil-pulse-stats {
    display: flex;
    gap: 16px;
    font-size: 0.62rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.oil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.oil-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: border-color var(--t);
}

.oil-metric-card:hover {
    border-color: var(--border-strong);
}

.oil-metric-title {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oil-status-badge {
    font-size: 0.55rem;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.oil-metric-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.oil-metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.oil-metric-score {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.oil-metric-change {
    font-size: 0.65rem;
    font-weight: 500;
}

.oil-gauge {
    height: 4px;
    background: linear-gradient(to right, var(--red), var(--orange), var(--green));
    border-radius: 2px;
    position: relative;
    margin-bottom: 8px;
}

.oil-gauge-dot {
    width: 8px;
    height: 8px;
    border: 2px solid var(--bg-content);
    border-radius: 50%;
    position: absolute;
    top: -2px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.oil-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.oil-details {
    display: flex;
    gap: 8px;
}

.oil-detail-box {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
}

.oil-detail-label {
    font-size: 0.52rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oil-detail-value {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Chokepoint */
.oil-choke-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.oil-choke-title {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.oil-choke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.oil-choke-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.01);
}

.oil-choke-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.oil-choke-status {
    font-size: 0.62rem;
    color: var(--text-tertiary);
}

.oil-choke-bar {
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
}

/* Lab login lock */
.lab-lock-shell {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.lab-lock-card {
    width: min(560px, 100%);
    border: 1px solid rgba(99, 102, 241, 0.38);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.2), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(16, 185, 129, 0.16), transparent 40%),
        rgba(9, 12, 34, 0.9);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    padding: 24px 24px 22px;
    text-align: center;
}

.lab-lock-kicker {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8cb6ff;
}

.lab-lock-card h2 {
    margin-top: 8px;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f0f6ff;
}

.lab-lock-card p {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #c4d5f4;
}

.lab-lock-btn {
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(110deg, #3b82f6 0%, #06b6d4 100%);
    color: #f8fbff;
    padding: 10px 22px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
    transition: transform var(--t), opacity var(--t);
}

.lab-lock-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.lab-lock-note {
    margin-top: 10px;
    font-size: 0.66rem;
    color: #8ea0c5;
}

/* ============================================================ MORNING BRIEF */
.content-morning-brief {
    padding: 18px 20px 52px;
    height: 100%;
    overflow: auto;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 30%),
        linear-gradient(180deg, #0f1524 0%, #0b101c 100%);
}

.morning-brief-shell {
    display: grid;
    gap: 18px;
    min-height: 100%;
}

.morning-brief-preview-card,
.morning-brief-empty-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 24, 0.98)),
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 40%);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.morning-brief-empty-card {
    padding: 22px;
}

.morning-brief-kicker,
.morning-brief-stage-label,
.mb-inbox-day-kicker,
.mb-inbox-empty-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8ddcff;
}

.morning-brief-empty-card h1 {
    margin-top: 10px;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.morning-brief-stage-header p,
.mb-inbox-empty-copy,
.morning-brief-empty-card p {
    margin-top: 10px;
    color: #b7c2d9;
    font-size: 0.92rem;
    line-height: 1.7;
}

.morning-brief-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #d9e2f2;
    font-size: 0.7rem;
}

.morning-brief-dayrail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.morning-brief-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f3f6fb;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--t), border-color var(--t), opacity var(--t);
}

.morning-brief-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(141, 220, 255, 0.48);
}

.morning-brief-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.morning-brief-dayrail-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}

.morning-brief-dayrail-track::-webkit-scrollbar {
    display: none;
}

.morning-brief-daypill {
    min-width: 154px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d8dfef;
    text-align: left;
    cursor: pointer;
    transition: transform var(--t), border-color var(--t), background var(--t);
}

.morning-brief-daypill span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8ddcff;
}

.morning-brief-daypill strong {
    display: block;
    margin-top: 6px;
    font-size: 0.98rem;
    color: #f7f9ff;
}

.morning-brief-daypill.active {
    transform: translateY(-2px);
    border-color: rgba(141, 220, 255, 0.42);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.04));
}

.morning-brief-stage {
    display: grid;
    gap: 14px;
}

.morning-brief-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.morning-brief-stage-header h2 {
    margin-top: 8px;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.12;
}

.morning-brief-market-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.morning-brief-market-pill {
    min-width: 118px;
    padding: 11px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: #c9d4eb;
    text-align: left;
    cursor: pointer;
    transition: transform var(--t), border-color var(--t), background var(--t);
}

.morning-brief-market-pill span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fbff;
}

.morning-brief-market-pill small {
    display: block;
    margin-top: 4px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #97a7c8;
}

.morning-brief-market-pill.active {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.42);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(34, 211, 238, 0.08));
}

.morning-brief-preview-card {
    overflow: hidden;
}

.morning-brief-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(141, 220, 255, 0.08), rgba(0, 0, 0, 0));
}

.morning-brief-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.morning-brief-preview-hint {
    font-size: 0.74rem;
    color: #98a7c5;
}

.morning-brief-iframe {
    width: 100%;
    min-height: 1280px;
    border: 0;
    background: #ffffff;
}

.morning-brief-loading,
.morning-brief-error {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 26px;
    text-align: center;
    color: #d7dfef;
}

.mb-inbox-day {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
}

.mb-inbox-day.active {
    background: rgba(141, 220, 255, 0.04);
}

.mb-inbox-day-head {
    width: 100%;
    padding: 14px 16px 10px;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.mb-inbox-day-head strong {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #f4f7ff;
}

.mb-market-chip-row {
    display: grid;
    gap: 8px;
    padding: 0 12px 14px;
}

.mb-market-chip {
    width: 100%;
    display: grid;
    gap: 3px;
    padding: 12px 12px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    color: #cdd8ed;
    cursor: pointer;
    transition: border-color var(--t), transform var(--t), background var(--t);
}

.mb-market-chip:hover,
.mb-market-chip.active {
    transform: translateY(-1px);
    border-color: rgba(141, 220, 255, 0.34);
    background: rgba(34, 211, 238, 0.08);
}

.mb-market-chip-code {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8ddcff;
}

.mb-market-chip-label {
    font-size: 0.83rem;
    color: #f3f6fc;
}

.mb-market-chip-time {
    font-size: 0.68rem;
    color: #8f9fbe;
}

/* ============================================================ MARKET PULSE */
.content-market-tape {
    padding: 0;
    max-width: none;
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #0b0d12;
}

.mp2-panel {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
}

.mp2-header {
    padding: 20px 36px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    animation: up 0.5s ease both;
}

.mp2-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp2-breadcrumb {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #b0b8c8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp2-breadcrumb span {
    color: #c8a96e;
}

.mp2-title-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.mp2-title-main {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.mp2-title-ticker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #b0b8c8;
    letter-spacing: 0.1em;
    border: 1px solid #b0b8c8;
    padding: 2px 7px;
    border-radius: 2px;
}

.mp2-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mp2-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e8ecf4;
}

.mp2-badge-pip {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.mp2-badge-pip.up {
    background: #52c98a;
    box-shadow: 0 0 6px rgba(82, 201, 138, 0.5);
}

.mp2-badge-pip.down {
    background: #e05b5b;
}

.mp2-badge-pip.flat {
    background: #b0b8c8;
}

.mp2-header-right {
    text-align: right;
}

.mp2-price-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1;
}

.mp2-price-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #b0b8c8;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.mp2-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #52c98a;
    margin-right: 5px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mp2-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    overflow: hidden;
    animation: up 0.5s 0.08s ease both;
}

.mp2-main-area {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.mp2-stat-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mp2-stat-row2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mp2-stat-cell {
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    transition: background 0.2s;
}

.mp2-stat-cell:last-child {
    border-right: none;
}

.mp2-stat-cell:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mp2-stat-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #c8a96e;
    opacity: 0;
    transition: opacity 0.25s;
}

.mp2-stat-cell:hover::after {
    opacity: 0.4;
}

.mp2-sl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b0b8c8;
    margin-bottom: 7px;
}

.mp2-sv {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 17px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2px;
}

.mp2-sc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #b0b8c8;
}

.mp2-sv.up,
.mp2-sc.up,
.mp2-tl-val.up,
.mp2-tl-chg.up {
    color: #52c98a;
}

.mp2-sv.down,
.mp2-sc.down,
.mp2-tl-val.down,
.mp2-tl-chg.down {
    color: #e05b5b;
}

.mp2-narrative-zone {
    padding: 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mp2-nz-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8a96e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp2-nz-label::after {
    content: '';
    height: 1px;
    width: 48px;
    background: #c8a96e;
    opacity: 0.3;
}

.mp2-nz-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    color: #e8ecf4;
    max-width: 680px;
}

.mp2-nz-sub {
    font-size: 11px;
    color: #b0b8c8;
    line-height: 1.6;
    max-width: 680px;
}

.mp2-chart-zone {
    flex: 1;
    min-height: 210px;
    position: relative;
    background: #10131a;
    overflow: hidden;
}

#market-pulse-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mp2-chart-label {
    position: absolute;
    top: 14px;
    left: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b0b8c8;
}

.mp2-sidebar-stats {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mp2-ss-header {
    padding: 18px 24px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b0b8c8;
}

.mp2-ss-section {
    padding: 10px 24px 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b0b8c8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.15);
}

.mp2-tl-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}

.mp2-tl-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mp2-tl-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b0b8c8;
}

.mp2-tl-dot.up {
    background: #52c98a;
}

.mp2-tl-dot.down {
    background: #e05b5b;
}

.mp2-tl-label {
    font-size: 12px;
    color: #e8ecf4;
}

.mp2-tl-right {
    text-align: right;
}

.mp2-tl-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #ffffff;
    display: block;
}

.mp2-tl-chg {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #b0b8c8;
    display: block;
    margin-top: 1px;
}

.mp2-footer {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: #b0b8c8;
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: auto;
}

/* ============================================================ ASTEROID PULSE */
.content-asteroid-pulse {
    padding: 24px 20px 80px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.content-asteroid-pulse::-webkit-scrollbar {
    width: 6px;
}

.content-asteroid-pulse::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.ast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.ast-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.ast-subtitle {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.ast-header-stats {
    display: flex;
    gap: 16px;
    font-size: 0.62rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    align-items: center;
}

.ast-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ast-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ast-filter-group label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.ast-filter-group select,
.ast-filter-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    color: var(--text-primary);
    font-family: inherit;
    min-width: 120px;
    outline: none;
    transition: border-color var(--t);
}

.ast-filter-group select:focus,
.ast-filter-group input:focus {
    border-color: var(--accent);
}

.ast-filter-group select option {
    background: #1a1a2e;
}

.ast-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 16px;
    margin-bottom: 24px;
    align-items: start;
}

.ast-map-container {
    position: relative;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    min-width: 0;
}

.ast-map-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ast-map-legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 12px;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.ast-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ast-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ast-tooltip {
    position: absolute;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.65rem;
    color: var(--text-primary);
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(8px);
    min-width: 140px;
}

.ast-tooltip-name {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.ast-tooltip-type {
    font-size: 0.6rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.ast-right-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.ast-ranking {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.ast-ranking::-webkit-scrollbar {
    width: 8px;
}

.ast-ranking::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.ast-ranking::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.ast-ranking-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.ast-rank-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--t);
    margin-bottom: 4px;
}

.ast-rank-item:hover {
    background: var(--bg-hover);
}

.ast-rank-item.active {
    background: var(--bg-active);
}

.ast-rank-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ast-rank-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 24px;
}

.ast-rank-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-rank-type {
    font-size: 0.58rem;
    font-weight: 500;
}

.ast-rank-profit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.ast-rank-mix {
    font-size: 0.57rem;
    color: var(--text-tertiary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-rank-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.ast-rank-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.ast-charts-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    min-width: 0;
}

.ast-chart-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    height: 260px;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.ast-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.ast-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    min-width: 0;
}

.ast-detail-empty {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-align: center;
    padding: 24px 0;
}

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

.ast-detail-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.ast-detail-type-badge {
    font-size: 0.58rem;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid;
    border-radius: 4px;
}

.ast-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ast-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ast-detail-row.highlight {
    padding: 4px 0;
}

.ast-detail-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.ast-detail-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-primary);
    font-weight: 500;
}

.ast-detail-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.ast-table-section {
    margin-top: 4px;
}

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

.ast-table-header h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ast-table-header span {
    font-size: 0.62rem;
    color: var(--text-tertiary);
}

.ast-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ast-table {
    width: 100%;
    min-width: 1360px;
    border-collapse: collapse;
    font-size: 0.68rem;
    table-layout: fixed;
}

.ast-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: color var(--t);
}

.ast-table thead th:hover {
    color: var(--text-primary);
}

.ast-table tbody tr {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--t);
}

.ast-table tbody tr:hover {
    background: var(--bg-hover);
}

.ast-table tbody tr.ast-row-selected {
    background: var(--bg-active);
}

.ast-table td {
    padding: 8px 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    vertical-align: middle;
}

.ast-cell-name {
    font-weight: 500;
    color: var(--text-primary) !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-cell-mix {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-cell-num {
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.ast-type-badge {
    font-size: 0.56rem;
    font-weight: 600;
    padding: 1px 6px;
    border: 1px solid;
    border-radius: 4px;
}

.ast-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.ast-page-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--t);
}

.ast-page-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.ast-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ast-page-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--text-tertiary);
}

@media (max-width: 1500px) {
    .ast-main-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 336px);
    }

    .ast-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .ast-main-grid {
        grid-template-columns: 1fr;
    }

    .ast-right-panel {
        order: -1;
    }
}

/* ============================================================ MOBILE */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.btn-mobile-menu {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 40;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-sidebar);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-back {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: var(--bg-content);
    font-family: var(--font);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.mobile-back:hover {
    color: var(--text-primary);
}

@media (max-width: 900px) {

    .pane-toggle-btn,
    .btn-inbox-expand {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-w);
    }

    body.inbox-collapsed .inbox-pane {
        width: 100%;
        border-right: 1px solid var(--border);
    }

    body.inbox-collapsed .inbox-header,
    body.inbox-collapsed .inbox-list {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 30;
    }

    body.mobile-open .sidebar {
        transform: translateX(0);
    }

    body.mobile-open .mobile-overlay {
        display: block;
    }

    .inbox-pane {
        width: 100%;
    }

    .content-pane {
        display: none;
    }

    body.show-content .inbox-pane {
        display: none;
    }

    body.show-content .content-pane {
        display: block;
    }

    body.home-mode .inbox-pane {
        display: none;
    }

    body.home-mode .content-pane {
        display: block;
    }

    .btn-mobile-menu {
        display: flex;
    }

    .mobile-back {
        display: flex;
    }

    .home-hero {
        min-height: 58vh;
        padding: 74px 14px 26px;
    }

    .home-hero-content,
    .home-hero-content.is-support-collapsed {
        padding-right: 0;
    }

    .home-dev-support {
        position: static;
        width: min(260px, 100%);
        margin-bottom: 14px;
    }

    .home-dev-support.is-collapsed {
        width: fit-content;
    }

    .home-curation-head {
        margin-top: 22px;
    }

    .home-auth-row {
        align-items: stretch;
    }

    .home-login-btn {
        width: 100%;
        text-align: center;
    }

    .home-curation-hint {
        display: none;
    }

    .home-curation-track {
        grid-auto-columns: minmax(80vw, 80vw);
    }

    .home-intro-inner {
        padding: 26px 14px 44px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .content-report {
        padding: 20px 12px 50px;
    }

    .content-morning-brief {
        padding: 16px 12px 60px;
    }

    .content-oil-pulse {
        padding: 16px 12px 60px;
    }

    .content-market-tape {
        padding: 0;
    }

    .morning-brief-dayrail {
        grid-template-columns: 1fr;
    }

    .morning-brief-arrow {
        display: none;
    }

    .morning-brief-stage-header {
        flex-direction: column;
    }

    .morning-brief-market-toggle {
        justify-content: flex-start;
    }

    .morning-brief-preview-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .morning-brief-iframe {
        min-height: 980px;
    }

    .oil-pulse-embed-shell {
        height: calc(100vh - 190px);
        min-height: 580px;
    }

    .oil-grid {
        grid-template-columns: 1fr;
    }

    .sector-timeline-wrap {
        padding: 10px 10px 14px;
    }

    .content-asteroid-pulse {
        padding: 16px 12px 60px;
    }

    .mp2-header {
        padding: 14px 14px 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .mp2-header-right {
        text-align: left;
    }

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

    .mp2-main-area {
        border-right: 0;
    }

    .mp2-sidebar-stats {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        max-height: 36vh;
    }

    .lab-lock-card {
        padding: 18px 16px 17px;
    }

    .ast-filter-bar {
        gap: 8px;
    }

    .ast-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .morning-brief-daypill {
        min-width: 140px;
    }

    .morning-brief-market-pill {
        min-width: calc(50% - 5px);
    }

    .morning-brief-empty-card {
        padding: 18px;
    }

    .morning-brief-iframe {
        min-height: 860px;
    }

    .oil-choke-grid {
        grid-template-columns: 1fr;
    }

    .oil-pulse-embed-shell {
        min-height: 520px;
    }

    .mp2-title-main {
        font-size: 20px;
    }

    .mp2-price-num {
        font-size: 30px;
    }

    .mp2-breadcrumb {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

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

    .mp2-stat-row2 {
        grid-template-columns: 1fr;
    }

    .mp2-stat-cell {
        padding: 12px 12px;
    }

    .mp2-narrative-zone {
        padding: 18px 14px;
    }

    .mp2-chart-zone {
        min-height: 170px;
    }

    .mp2-tl-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .mp2-ss-header,
    .mp2-ss-section,
    .mp2-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (min-width: 901px) {
    .mobile-back {
        display: none !important;
    }
}

/* Top Pick Stocks calendar */
.content-market-tape.tp-calendar-view {
    padding: 20px 22px 64px;
    overflow: auto;
    background: var(--bg-content);
}

.tpw-shell {
    min-width: 1120px;
}

.tpw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tpw-nav {
    display: inline-flex;
    gap: 8px;
}

.tpw-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color var(--t), background var(--t), color var(--t);
}

.tpw-btn:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tpw-month-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tpw-month-label {
    font-size: 0.69rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

.tpw-month-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 6px 8px;
    outline: none;
}

.tpw-summary {
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.tpw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.tpw-day-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    min-height: 88px;
}

.tpw-day-head {
    padding: 10px 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.tpw-day-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tpw-day-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.tpw-day-count {
    min-width: 20px;
    text-align: center;
    border-radius: 999px;
    padding: 1px 7px;
    border: 1px solid var(--border);
    font-size: 0.64rem;
    color: var(--text-tertiary);
}

.tpw-expand-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 0.68rem;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.tpw-day-card.expanded {
    min-height: 220px;
}

.tpw-list {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    padding: 8px;
}

.tpw-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 8px;
    margin-bottom: 7px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color var(--t), background var(--t);
}

.tpw-row:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.045);
}

.tpw-c-ticker {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpw-c-main {
    display: grid;
    gap: 4px;
}

.tpw-c-price,
.tpw-c-return {
    font-size: 0.71rem;
    font-variant-numeric: tabular-nums;
}

.tpw-c-price {
    color: var(--text-secondary);
}

.tpw-c-return.up {
    color: var(--green);
    background: color-mix(in srgb, var(--green) 18%, transparent);
}

.tpw-c-return.down {
    color: var(--red);
    background: color-mix(in srgb, var(--red) 20%, transparent);
}

.tpw-c-return.flat {
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
}

.tpw-c-return {
    border-radius: 999px;
    padding: 3px 8px;
    align-self: center;
}

.tpw-empty {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    padding: 8px;
    text-align: center;
}

@media (max-width: 900px) {
    .content-market-tape.tp-calendar-view {
        padding: 14px 12px 58px;
    }

    .tpw-shell {
        min-width: 0;
    }

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

    .tpw-day-card {
        min-height: 78px;
    }

    .tpw-day-card.expanded {
        min-height: 200px;
    }
}
