.watchlist-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.watchlist-strip article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
        var(--panel);
}

.watchlist-strip span,
.watchlist-card span,
.add-ticker-form input,
.ticker-top-grid span,
.note-block span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.watchlist-strip strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.watchlist-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.watchlist-panel {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 116px);
    display: flex;
    flex-direction: column;
}

.add-ticker-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.add-ticker-form input,
.watchlist-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 13px 15px;
    outline: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-weight: 800;
    text-transform: uppercase;
}

.add-ticker-form button {
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--green);
    color: #031006;
    font-weight: 900;
}

.watchlist-search {
    padding: 0 14px 14px;
    border-bottom: 1px solid var(--border);
}

.watchlist-items {
    overflow: auto;
    padding: 10px;
}

.watchlist-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    text-align: left;
}

.watchlist-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.watchlist-card.active {
    border-color: rgba(43, 220, 101, 0.55);
    background: rgba(43, 220, 101, 0.09);
}

.watchlist-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.watchlist-card p {
    max-width: 260px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-card-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.sentiment-pill,
.priority-pill {
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sentiment-pill.bullish {
    background: rgba(43, 220, 101, 0.12);
    color: var(--green);
}

.sentiment-pill.bearish {
    background: rgba(255, 69, 69, 0.12);
    color: var(--red);
}

.sentiment-pill.neutral,
.sentiment-pill.watching {
    background: rgba(54, 163, 255, 0.12);
    color: var(--blue);
}

.empty-state,
.no-ticker-selected {
    min-height: 360px;
    display: grid;
    place-content: center;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.no-ticker-selected strong {
    color: var(--text);
    font-size: 28px;
    letter-spacing: -0.05em;
}

.no-ticker-selected p {
    margin: 8px 0 0;
    font-weight: 800;
}

.hidden {
    display: none;
}

.notes-editor {
    display: grid;
}

.ticker-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.ticker-top-grid label {
    min-height: 104px;
    padding: 18px;
    border-right: 1px solid var(--border);
}

.ticker-top-grid label:last-child {
    border-right: none;
}

.ticker-top-grid input,
.ticker-top-grid select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.ticker-top-grid input {
    text-transform: uppercase;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    min-height: 430px;
}

.note-block {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 18px;
    border-right: 1px solid var(--border);
}

.note-block:last-child {
    border-right: none;
}

.note-block textarea {
    width: 100%;
    min-height: 340px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.note-block textarea:focus {
    border-color: rgba(43, 220, 101, 0.45);
    background: rgba(255, 255, 255, 0.055);
}

.main-note textarea {
    min-height: 390px;
}

.watchlist-actions {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--border);
}

.watchlist-actions p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.watchlist-actions div {
    display: flex;
    gap: 12px;
}

.delete-pill {
    border: 1px solid rgba(255, 69, 69, 0.35);
    border-radius: 999px;
    padding: 14px 20px;
    background: rgba(255, 69, 69, 0.1);
    color: var(--red);
    font-weight: 900;
}

@media (max-width: 1280px) {
    .watchlist-layout {
        grid-template-columns: 1fr;
    }

    .watchlist-panel {
        position: static;
        max-height: none;
    }

    .watchlist-items {
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .watchlist-card {
        min-width: 280px;
    }
}

@media (max-width: 980px) {

    .watchlist-strip,
    .ticker-top-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .ticker-top-grid label,
    .note-block {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .watchlist-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .watchlist-actions div {
        flex-direction: column;
    }
}