/* ==========================================================================
   XAUUSD SENTIMENT — PREMIUM MARKET TERMINAL
   ========================================================================== */

#myfxbookSentimentPage {
    --sentiment-bg: #f6f5f1;
    --sentiment-surface: rgba(255, 255, 255, 0.94);
    --sentiment-surface-strong: #ffffff;
    --sentiment-surface-soft: #f4f5f7;
    --sentiment-border: rgba(15, 23, 42, 0.09);
    --sentiment-border-strong: rgba(15, 23, 42, 0.14);
    --sentiment-text: #17191f;
    --sentiment-muted: #6b7280;
    --sentiment-gold: #95651f;
    --sentiment-gold-soft: rgba(173, 121, 40, 0.10);
    --sentiment-long: #15966a;
    --sentiment-short: #1b0993;
    display: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% -10%, rgba(204, 157, 74, 0.13), transparent 31rem),
        linear-gradient(180deg, #fbfaf7 0%, var(--sentiment-bg) 100%);
    color: var(--sentiment-text);
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#myfxbookSentimentPage.open {
    display: block;
}

#myfxbookSentimentPage *,
#myfxbookSentimentPage *::before,
#myfxbookSentimentPage *::after {
    box-sizing: border-box;
}

.sentiment-ambient {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.45;
}

.sentiment-ambient-one {
    width: 22rem;
    height: 22rem;
    top: -12rem;
    right: -8rem;
    border: 1px solid rgba(173, 121, 40, 0.14);
    box-shadow: inset 0 0 7rem rgba(173, 121, 40, 0.04);
}

.sentiment-ambient-two {
    width: 18rem;
    height: 18rem;
    left: -12rem;
    top: 42%;
    background: rgba(21, 150, 106, 0.035);
}

.sentiment-shell {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 24px;
}

/* Header */
.sentiment-header {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    gap: 32px;
    padding: 0;
    margin-bottom: 30px;
    color: inherit;
    background: transparent;
    box-shadow: none;
    z-index: auto;
}

html.hide-main-ui #myfxbookSentimentPage .sentiment-header {
    display: flex !important;
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
}

.sentiment-heading-row,
.sentiment-actions,
.sentiment-title-group {
    display: flex;
    align-items: center;
}

.sentiment-heading-row {
    align-items: flex-start;
    gap: 15px;
}

.sentiment-title-group {
    align-items: flex-start;
    flex-direction: column;
}

.sentiment-home-btn,
.sentiment-sync-btn {
    min-height: 44px;
    border: 1px solid var(--sentiment-border);
    color: var(--sentiment-text);
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sentiment-home-btn {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    place-items: center;
    padding: 0;
    border-radius: 13px;
}

.sentiment-home-btn:hover,
.sentiment-sync-btn:hover:not(:disabled) {
    border-color: rgba(173, 121, 40, 0.42);
    color: #8d5f18;
    background: var(--sentiment-gold-soft);
}

.sentiment-home-btn:focus-visible,
.sentiment-sync-btn:focus-visible,
.sentiment-range-control button:focus-visible {
    outline: 2px solid var(--sentiment-gold);
    outline-offset: 3px;
}

.sentiment-eyebrow,
.sentiment-section-kicker {
    color: var(--sentiment-gold);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
}

.sentiment-eyebrow {
    margin: 1px 0 8px;
}

.sentiment-title {
    margin: 0;
    color: var(--sentiment-text);
    font-size: clamp(25px, 3.1vw, 38px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.sentiment-subtitle {
    max-width: 580px;
    margin: 7px 0 0;
    color: var(--sentiment-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sentiment-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.sentiment-live-status {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(21, 150, 106, 0.18);
    border-radius: 12px;
    color: #117a57;
    background: rgba(21, 150, 106, 0.07);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.sentiment-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sentiment-long);
    box-shadow: 0 0 0 4px rgba(21, 150, 106, 0.09);
}

.sentiment-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(21, 150, 106, 0.45);
    border-radius: inherit;
    animation: sentiment-pulse 2s ease-out infinite;
}

.sentiment-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 114px;
    padding: 0 15px;
    border-radius: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.sentiment-sync-btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.sentiment-sync-btn svg.spin {
    animation: sentiment-spin 900ms linear infinite;
}

@keyframes sentiment-spin {
    to { transform: rotate(360deg); }
}

@keyframes sentiment-pulse {
    0% { opacity: 0.8; transform: scale(0.5); }
    75%, 100% { opacity: 0; transform: scale(1.55); }
}

/* Metrics */
.sentiment-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sentiment-metric,
.sentiment-card {
    border: 1px solid var(--sentiment-border);
    background: var(--sentiment-surface);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sentiment-metric {
    position: relative;
    min-width: 0;
    min-height: 148px;
    overflow: hidden;
    padding: 20px;
    border-radius: 16px;
}

.sentiment-metric::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    opacity: 0.65;
    background: linear-gradient(90deg, transparent, var(--sentiment-gold));
}

.sentiment-metric-long::after {
    background: linear-gradient(90deg, transparent, var(--sentiment-long));
}

.sentiment-metric-short::after {
    background: linear-gradient(90deg, transparent, var(--sentiment-short));
}

.sentiment-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sentiment-metric-label {
    overflow: hidden;
    color: var(--sentiment-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentiment-metric-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--sentiment-border);
    border-radius: 10px;
    color: var(--sentiment-gold);
    background: rgba(15, 23, 42, 0.025);
}

.sentiment-icon-long {
    color: var(--sentiment-long);
}

.sentiment-icon-short {
    color: var(--sentiment-short);
}

.sentiment-metric-value {
    display: block;
    overflow: hidden;
    margin-top: 17px;
    color: var(--sentiment-text);
    font-size: clamp(21px, 2.3vw, 28px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentiment-metric-long .sentiment-metric-value {
    color: var(--sentiment-long);
}

.sentiment-metric-short .sentiment-metric-value {
    color: var(--sentiment-short);
}

.sentiment-metric-note {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    color: #7b8190;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentiment-bias-long { color: var(--sentiment-long); }
.sentiment-bias-short { color: var(--sentiment-short); }
.sentiment-bias-neutral { color: var(--sentiment-gold); }

/* Cards */
.sentiment-card {
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 18px;
}

.sentiment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--sentiment-border);
}

.sentiment-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentiment-card-actions .sentiment-sync-btn {
    min-width: auto;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 9px;
}

.sentiment-section-kicker {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.16em;
}

.sentiment-card-title {
    margin: 0;
    color: #1d2027;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.012em;
}

.sentiment-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--sentiment-border);
    border-radius: 9px;
    color: #7b8190;
    background: #f7f7f5;
    font-size: 10px;
}

.sentiment-source-pill strong {
    color: #4b5260;
    font-size: 11px;
    font-weight: 600;
}

/* Snapshot table */
.sentiment-summary-table-container {
    width: 100%;
    overflow-x: auto;
}

.sentiment-summary-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
}

.sentiment-summary-table th {
    padding: 13px 22px;
    border: 0;
    color: #717784;
    background: #f7f7f5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.sentiment-summary-table td {
    padding: 12px 22px;
    border: 0;
    color: #3f4652;
    background: transparent;
    font-size: 13px;
    vertical-align: middle;
}

/* Đảm bảo căn lề cột Action đồng đều 22px trên Desktop, tránh bị ảnh hưởng bởi styles ngoài */
.sentiment-summary-table td[data-label="Action"] {
    padding-left: 22px !important;
}

.sentiment-summary-table tbody tr {
    border-top: 1px solid var(--sentiment-border);
    transition: background-color 160ms ease;
}

.sentiment-summary-table tbody tr:first-child {
    border-top: 0;
}

.sentiment-summary-table tbody tr:not(.sentiment-loading-row):hover {
    background: rgba(173, 121, 40, 0.035);
}

/* Chiều rộng các cột được kiểm soát bằng thẻ th trong index.html (cho Desktop) và media query (cho Mobile) */

.sentiment-symbol-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sentiment-symbol-mark {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(173, 121, 40, 0.20);
    border-radius: 11px;
    color: var(--sentiment-gold);
    background: var(--sentiment-gold-soft);
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
}

.sentiment-symbol-col strong {
    display: block;
    color: #1b1e24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.sentiment-symbol-col small {
    display: block;
    margin-top: 3px;
    color: #7b8190;
    font-size: 9px;
    text-transform: uppercase;
}

.sentiment-trend-bar-wrapper {
    width: min(100%, 340px);
}

.sentiment-trend-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.sentiment-trend-labels .is-short { color: #c74451; }
.sentiment-trend-labels .is-long { color: #0d835b; }

.sentiment-trend-bar {
    display: flex;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e9ed;
}

.sentiment-trend-short,
.sentiment-trend-long {
    height: 100%;
    color: transparent;
    font-size: 0;
    transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sentiment-trend-short {
    background: linear-gradient(90deg, #c74451, var(--sentiment-short));
}

.sentiment-trend-long {
    background: linear-gradient(90deg, var(--sentiment-long), #3ab986);
}

.sentiment-current-price-plain {
    color: #20232a;
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.sentiment-update-time {
    color: #6f7682;
    font-size: 10px;
    line-height: 1.5;
}

.sentiment-skeleton {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef0f2 25%, #f8f9fa 50%, #eef0f2 75%);
    background-size: 200% 100%;
    animation: sentiment-shimmer 1.4s infinite;
}

@keyframes sentiment-shimmer {
    to { background-position: -200% 0; }
}

/* Chart */
.sentiment-chart-header {
    align-items: center;
}

.sentiment-title-row {
    display: flex;
    align-items: flex-end;
    gap: 120px;
    margin-bottom: 4px;
}

.sentiment-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.sentiment-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f7682;
    font-size: 9px;
}

.sentiment-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.sentiment-legend-dot.is-long { background: var(--sentiment-long); }
.sentiment-legend-dot.is-short { background: var(--sentiment-short); }

.sentiment-legend-line {
    width: 12px;
    border-top: 1.5px solid #a67c3f;
}

.sentiment-range-control {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--sentiment-border);
    border-radius: 10px;
    background: #f1f2f4;
}

.sentiment-range-control button {
    min-width: 44px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #69707d;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    transition: color 160ms ease, background-color 160ms ease;
}

.sentiment-range-control button:hover {
    color: #20242c;
}

.sentiment-range-control button.active {
    color: #845915;
    background: var(--sentiment-gold-soft);
    box-shadow: inset 0 0 0 1px rgba(173, 121, 40, 0.15);
}

.sentiment-chart-container {
    position: relative;
    width: 100%;
    height: 410px;
    padding: 18px 18px 14px 12px;
}

.sentiment-chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--sentiment-muted);
    font-size: 12px;
}

.sentiment-chart-empty[hidden] {
    display: none;
}

/* Logs & footer */
.sentiment-log-container {
    max-height: 150px;
    overflow-y: auto;
    margin: -10px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(173, 121, 40, 0.18);
    border-radius: 12px;
    color: #76511b;
    background: #fffdf8;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 10px;
}

.sentiment-log-item {
    margin-bottom: 5px;
    line-height: 1.55;
}

.sentiment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 2px 0;
    color: #858b96;
    font-size: 9px;
}

.sentiment-footer-brand {
    color: #94713a;
    font-weight: 700;
    letter-spacing: 0.13em;
}

/* Responsive */
@media (max-width: 920px) {
    .sentiment-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sentiment-metric {
        min-height: 138px;
    }
}

@media (max-width: 680px) {
    .sentiment-shell {
        width: min(100% - 28px, 1320px);
        padding: 20px 0;
    }

    .sentiment-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 22px;
    }

    .sentiment-actions {
        justify-content: space-between;
    }

    .sentiment-live-status,
    .sentiment-sync-btn {
        min-height: 42px;
    }

    .sentiment-sync-btn {
        min-width: 112px;
    }

    .sentiment-metrics {
        gap: 10px;
    }

    .sentiment-metric {
        min-height: 128px;
        padding: 16px;
        border-radius: 14px;
    }

    .sentiment-metric-value {
        margin-top: 14px;
        font-size: 21px;
    }

    .sentiment-card {
        border-radius: 15px;
    }

    .sentiment-card-header {
        padding: 18px;
    }

    .sentiment-summary-table {
        min-width: 0;
    }

    /* Giữ nguyên dạng bảng nằm ngang trên mobile và thu nhỏ padding/font-size để khít màn hình */
    .sentiment-summary-table thead {
        display: table-header-group !important;
    }

    .sentiment-summary-table th {
        padding: 10px 6px !important;
        font-size: 12px !important;
    }

    .sentiment-summary-table td {
        padding: 10px 6px !important;
        font-size: 12px !important;
    }

    /* Ẩn cột đầu tiên (Asset) và phân bổ lại độ rộng cho 4 cột còn lại trên di động */
    .sentiment-summary-table th:nth-child(1) {
        display: none !important;
    }
    .sentiment-summary-table th:nth-child(2) {
        width: 20% !important;
    }
    .sentiment-summary-table th:nth-child(3) {
        width: 20% !important;
    }
    .sentiment-summary-table th:nth-child(4) {
        width: 35% !important;
    }
    .sentiment-summary-table th:nth-child(5) {
        width: 25% !important;
    }

    /* Tăng lùi lề trái cho cột Action (hiện là cột đầu tiên trên mobile) để tránh sát lề */
    .sentiment-summary-table th:nth-child(2),
    .sentiment-summary-table td[data-label="Action"] {
        padding-left: 16px !important;
    }

    .sentiment-symbol-wrap {
        gap: 6px !important;
    }

    .sentiment-symbol-mark {
        width: 22px !important;
        height: 22px !important;
        font-size: 9px !important;
    }

    /* Đè đè các thuộc tính flex inline của Header trên mobile */
    .sentiment-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 18px !important;
    }

    .sentiment-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .sentiment-trend-bar-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }

    .sentiment-chart-header {
        display: flex !important;
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .sentiment-range-control {
        align-self: stretch !important;
    }

    .sentiment-range-control button {
        flex: 1 !important;
    }

    .sentiment-chart-container {
        height: 270px;
        padding: 14px 10px 10px 4px;
    }

    .sentiment-card {
        margin-bottom: 16px !important;
    }

    .sentiment-alert-bell-btn {
        display: none !important;
    }
}

.sentiment-home-pill-btn:hover {
    background: #f1f5f9 !important;
    color: #64748b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.sentiment-home-pill-btn:active {
    background: #e2e8f0 !important;
}

@media (max-width: 430px) {
    .sentiment-subtitle {
        font-size: 12px;
    }

    .sentiment-metrics {
        grid-template-columns: 1fr;
    }

    .sentiment-metric {
        min-height: 118px;
    }

    .sentiment-metric-value {
        font-size: 23px;
    }

    .sentiment-source-pill {
        display: none;
    }

    .sentiment-card-actions .sentiment-sync-btn {
        min-width: 76px;
    }

    .sentiment-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    /* Thu nhỏ sâu hơn padding và cỡ chữ cho các điện thoại nhỏ hơn 430px */
    .sentiment-summary-table th,
    .sentiment-summary-table td {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #myfxbookSentimentPage *,
    #myfxbookSentimentPage *::before,
    #myfxbookSentimentPage *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   ALERTS MODAL STYLING
   ========================================================================== */
.sentiment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sentiment-modal-container {
    background: var(--sentiment-surface-strong, #ffffff);
    border-radius: 12px;
    width: min(650px, calc(100vw - 32px));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--sentiment-border, rgba(15, 23, 42, 0.09));
    overflow: hidden;
    animation: sentimentModalFadeIn 0.25s ease-out;
}

@keyframes sentimentModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sentiment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sentiment-border, rgba(15, 23, 42, 0.09));
}

.sentiment-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sentiment-text, #17191f);
    margin: 0;
}

.sentiment-modal-close-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--sentiment-muted, #6b7280);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.sentiment-modal-close-btn:hover {
    color: var(--sentiment-text, #17191f);
}

.sentiment-modal-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.sentiment-alert-rows-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sentiment-alert-row {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: sentimentRowFadeIn 0.2s ease-out;
}

@keyframes sentimentRowFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sentiment-alert-row select,
.sentiment-alert-row input {
    height: 36px;
    border: 1px solid var(--sentiment-border-strong, rgba(15, 23, 42, 0.14));
    border-radius: 6px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    background-color: var(--sentiment-surface-strong, #ffffff);
    color: var(--sentiment-text, #17191f);
    box-sizing: border-box;
}

.sentiment-alert-row select:focus,
.sentiment-alert-row input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.sentiment-alert-row select {
    cursor: pointer;
    flex: 1;
    min-width: 80px;
}

.sentiment-alert-row input {
    width: 100px;
    flex-shrink: 0;
}

.sentiment-alert-delete-btn {
    height: 36px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.sentiment-alert-delete-btn:hover {
    background: #b91c1c;
}

.sentiment-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--sentiment-border, rgba(15, 23, 42, 0.09));
    background: var(--sentiment-surface-soft, #f4f5f7);
}

.sentiment-btn-secondary {
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid var(--sentiment-border-strong, rgba(15, 23, 42, 0.14));
    background: #e2e8f0;
    color: #334155;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.sentiment-btn-secondary:hover {
    background: #cbd5e1;
}

.sentiment-btn-primary {
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    border: none;
    background: #d97706;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.sentiment-btn-primary:hover {
    background: #b45309;
}

/* Custom utility for merging Asset column and keeping it responsive */
.sentiment-mobile-only {
    display: none !important;
}

.sentiment-desktop-only {
    display: inline !important;
}

@media (max-width: 680px) {
    .sentiment-mobile-only {
        display: inline !important;
    }
    .sentiment-desktop-only {
        display: none !important;
    }
    .sentiment-table-cell-desktop-only {
        display: none !important;
    }
}
