.headlineTicker {
    color: #163a5c;
}
.headlineToolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(3, 21, 41, .1);
}
.headlineToolbarLabel {
    margin-right: auto;
    font-size: 15px;
    font-weight: 600;
    color: #6f869b;
}
.headlineButton, .headlinePageButton, .headlineIconButton {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    box-sizing: border-box;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.headlineButton, .headlinePageButton {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(3, 21, 41, .12);
    border-radius: 14px;
    color: #163a5c;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
}
.headlineButton:hover, .headlinePageButton:hover:not(:disabled) {
    background: #f6f9fc;
    border-color: rgba(249, 115, 22, .45);
}
.headlineToolbar > .headlineButton:last-child {
    border-color: #ff710f;
    color: #fff;
    background: #ff710f;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .14);
}
.headlineToolbar > .headlineButton:last-child:hover:not(:disabled) {
    border-color: #e96308;
    background: #e96308;
}
.headlineButton:disabled { opacity: .5; cursor: default; }
.headlineButton:focus-visible, .headlinePageButton:focus-visible,
.headlineIconButton:focus-visible, .headlineSettings :focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
.headlineSettings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    margin-top: 14px;
    border: 1px solid rgba(3, 21, 41, .08);
    border-radius: 16px;
    background: #f8fafc;
}
.headlineSettings[hidden] { display: none; }
.headlineSettingField {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.headlineSettingField select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid rgba(3, 21, 41, .14);
    border-radius: 10px;
    background: #fff;
    color: #163a5c;
    font: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294863' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-sizing: border-box;
}
.headlineRelevance {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.headlineRelevanceHeader, .headlineRelevanceEnds {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.headlineRelevanceHeader { font-size: 14px; font-weight: 600; }
.headlineRelevanceValue { color: #e96c0b; }
.headlineRelevance input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.headlineRelevance input[data-score="2"] { --score-progress: 25%; }
.headlineRelevance input[data-score="3"] { --score-progress: 50%; }
.headlineRelevance input[data-score="4"] { --score-progress: 75%; }
.headlineRelevance input[data-score="5"] { --score-progress: 100%; }
.headlineRelevance input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, #ff710f 0%, #ff710f var(--score-progress, 0%), #d8e0e7 var(--score-progress, 0%), #d8e0e7 100%);
}
.headlineRelevance input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #d8e0e7; }
.headlineRelevance input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: #ff710f; }
.headlineRelevance input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border: 2px solid #ff710f;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(3, 21, 41, .16);
}
.headlineRelevance input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #ff710f;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(3, 21, 41, .16);
}
.headlineRelevanceEnds, .headlineRelevanceHint { color: #6f869b; font-size: 12px; line-height: 1.35; }
.headlineTopics {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    border: 0;
}
.headlineTopics legend {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.headlineTopicOption {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #294863;
}
.headlineTopicOption input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1px solid #aab8c4;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}
.headlineTopicOption input:checked { border-color: #f97316; background: #f97316; }
.headlineTopicOption input:checked::after {
    content: "";
    width: 7px;
    height: 4px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translateY(-1px);
}
.headlineStatus {
    color: #6f869b;
    font-size: 14px;
}
.headlineStatus:not(:empty) { padding: 14px 0; }
.headlineRow {
    padding: 19px 0 15px;
    border-bottom: 1px solid rgba(3, 21, 41, .1);
}
.headlineText {
    margin: 0;
    color: #163a5c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    overflow-wrap: anywhere;
}
.headlineText.is-seen { opacity: .6; }
.headlineMeta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    min-width: 0;
}
.headlineAge { color: #6f869b; font-size: 14px; white-space: nowrap; }
.headlineTickers { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.headlineTickers a {
    color: #e96c0b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.headlineTickers a:hover { text-decoration: underline; }
.headlineActions { display: flex; gap: 4px; margin-left: auto; }
.headlineIconButton {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border: 0;
    border-radius: 50%;
    color: #f97316;
    background: #fff5ed;
}
.headlineIconButton:hover { background: #ffe8d7; }
.headlineIconButton svg { display: block; width: 21px; height: 21px; flex: none; }
.headlinePager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 18px;
}
.headlinePager[hidden] { display: none; }
.headlinePageButton { width: 34px; min-width: 34px; min-height: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 16px; line-height: 1; }
.headlinePageButton:disabled { opacity: .4; cursor: default; }
.headlinePageLabel { color: #6f869b; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 650px) {
    .headlineSettings { grid-template-columns: 1fr; padding: 14px; }
    .headlineText { font-size: 14px; }
    .headlineRow { padding: 16px 0 12px; }
    .headlineMeta { gap: 8px; }
    .headlineToolbarLabel { flex: 1 0 100%; }
}
