.date-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.date-nav__btn {
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    padding: 0.32rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 224, 0.1);
    background: rgba(243, 235, 224, 0.02);
    color: var(--cream-dim);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.date-nav__btn:hover {
    border-color: rgba(94, 228, 199, 0.35);
    color: var(--cream);
}

.date-nav__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.date-nav__btn--today {
    border-color: rgba(157, 122, 255, 0.35);
    color: var(--violet);
}

.dash-date {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.75rem 0.85rem;
}

.date-hero {
    text-align: left;
}

.date-hero__day {
    font-family: "DM Mono", monospace;
    font-size: clamp(2.2rem, 8vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cream);
}

.date-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-top: 0.35rem;
}

.date-hero__weekday {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
}

.date-hero__badge {
    font-family: "DM Mono", monospace;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(157, 122, 255, 0.3);
    color: var(--violet);
    background: rgba(157, 122, 255, 0.08);
}

.date-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.date-stats .ui-cell-grid {
    grid-template-columns: repeat(3, 1fr);
}

.date-stats .ui-cell__value {
    font-size: 0.82rem;
}

.featured-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
    flex: 1;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    max-height: 14rem;
    padding-right: 0.1rem;
}

.featured-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(94, 228, 199, 0.15);
    background: rgba(94, 228, 199, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.featured-item:hover {
    border-color: rgba(94, 228, 199, 0.35);
    background: rgba(94, 228, 199, 0.08);
}

.featured-item__year {
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
    color: var(--coral);
    flex-shrink: 0;
    min-width: 2.5rem;
}

.featured-item__text {
    font-size: 0.62rem;
    line-height: 1.45;
    color: var(--cream-dim);
}

.attribution {
    font-family: "DM Mono", monospace;
    font-size: 0.42rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: rgba(154, 143, 130, 0.55);
    margin-top: auto;
    padding-top: 0.35rem;
}

.dash-timeline {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.timeline-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.source-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(157, 122, 255, 0.22);
    background:
        linear-gradient(145deg, rgba(157, 122, 255, 0.12) 0%, rgba(94, 228, 199, 0.05) 45%, rgba(22, 20, 31, 0.85) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.source-block::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--coral), var(--violet), var(--mint));
    opacity: 0.85;
}

.source-block__head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.35rem;
}

.source-block__title {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
}

.source-block__hint {
    font-size: 0.6rem;
    line-height: 1.5;
    color: rgba(154, 143, 130, 0.9);
    padding-left: 0.35rem;
}

.source-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.source-btn {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(243, 235, 224, 0.1);
    background: rgba(12, 11, 16, 0.55);
    color: var(--cream-dim);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 3px 12px rgba(0, 0, 0, 0.18);
}

.source-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.source-btn:hover::after {
    opacity: 1;
}

.source-btn:focus-visible {
    outline: 2px solid rgba(157, 122, 255, 0.55);
    outline-offset: 2px;
}

.source-btn__icon {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Mono", monospace;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(243, 235, 224, 0.06);
    color: var(--cream);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.source-btn__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.source-btn__label {
    font-family: "DM Mono", monospace;
    font-size: 0.54rem;
    letter-spacing: 0.04em;
    color: var(--cream);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-btn__desc {
    font-size: 0.52rem;
    line-height: 1.35;
    color: rgba(154, 143, 130, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-btn__badge {
    flex-shrink: 0;
    font-family: "DM Mono", monospace;
    font-size: 0.4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.22rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 224, 0.1);
    background: rgba(243, 235, 224, 0.04);
    color: rgba(154, 143, 130, 0.9);
}

/* Tema renkleri — ikon */
.source-btn--theme-mint .source-btn__icon {
    border-color: rgba(94, 228, 199, 0.35);
    background: linear-gradient(145deg, rgba(94, 228, 199, 0.22), rgba(94, 228, 199, 0.08));
    color: var(--mint);
}

.source-btn--theme-violet .source-btn__icon {
    border-color: rgba(157, 122, 255, 0.35);
    background: linear-gradient(145deg, rgba(157, 122, 255, 0.22), rgba(157, 122, 255, 0.08));
    color: var(--violet);
}

.source-btn--theme-coral .source-btn__icon {
    border-color: rgba(255, 92, 77, 0.35);
    background: linear-gradient(145deg, rgba(255, 92, 77, 0.22), rgba(255, 92, 77, 0.08));
    color: var(--coral);
}

.source-btn--theme-amber .source-btn__icon {
    border-color: rgba(255, 196, 120, 0.35);
    background: linear-gradient(145deg, rgba(255, 196, 120, 0.2), rgba(255, 196, 120, 0.06));
    color: #ffc478;
}

/* Varsayılan — TR */
.source-btn--locked {
    border-color: rgba(94, 228, 199, 0.4);
    background: linear-gradient(135deg, rgba(94, 228, 199, 0.12), rgba(12, 11, 16, 0.65));
    cursor: default;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(94, 228, 199, 0.06),
        0 6px 20px rgba(94, 228, 199, 0.1);
}

.source-btn--locked .source-btn__badge {
    border-color: rgba(94, 228, 199, 0.45);
    background: rgba(94, 228, 199, 0.14);
    color: var(--mint);
}

/* Kapalı */
.source-btn--off {
    border-color: rgba(243, 235, 224, 0.08);
    background: rgba(12, 11, 16, 0.4);
    opacity: 0.88;
}

.source-btn--off .source-btn__icon {
    opacity: 0.65;
    filter: grayscale(0.35);
}

.source-btn--off:hover {
    opacity: 1;
    border-color: rgba(157, 122, 255, 0.4);
    background: rgba(157, 122, 255, 0.08);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 22px rgba(0, 0, 0, 0.25);
}

.source-btn--off:hover .source-btn__icon {
    opacity: 1;
    filter: none;
}

.source-btn--off:hover .source-btn__badge {
    border-color: rgba(157, 122, 255, 0.4);
    background: rgba(157, 122, 255, 0.12);
    color: var(--violet);
}

/* Açık */
.source-btn--on {
    border-color: rgba(157, 122, 255, 0.5);
    background: linear-gradient(135deg, rgba(157, 122, 255, 0.14), rgba(12, 11, 16, 0.55));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(157, 122, 255, 0.08),
        0 8px 24px rgba(157, 122, 255, 0.14);
}

.source-btn--on:hover {
    transform: translateY(-2px);
    border-color: rgba(157, 122, 255, 0.65);
}

.source-btn--on .source-btn__badge {
    border-color: rgba(157, 122, 255, 0.5);
    background: rgba(157, 122, 255, 0.18);
    color: var(--violet);
}

.source-block.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.timeline-search {
    width: 100%;
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.04em;
    padding: 0.42rem 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(243, 235, 224, 0.08);
    background: rgba(243, 235, 224, 0.03);
    color: var(--cream);
    outline: none;
    transition: border-color 0.2s;
}

.timeline-search::placeholder {
    color: rgba(154, 143, 130, 0.55);
}

.timeline-search:focus {
    border-color: rgba(157, 122, 255, 0.4);
}

.timeline-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.15rem;
    transition: opacity 0.3s ease;
}

.timeline-panel.loading {
    opacity: 1;
}

.timeline-panel.loading > .ui-loading {
    min-height: 8rem;
}

.featured-list.is-loading {
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-list.is-loading > .ui-loading {
    min-height: 5rem;
    width: 100%;
}

.timeline-empty {
    text-align: center;
    font-family: "DM Mono", monospace;
    font-size: 0.58rem;
    color: var(--cream-dim);
    padding: 1.5rem 0.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: start;
    padding: 0.5rem 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(243, 235, 224, 0.06);
    background: rgba(243, 235, 224, 0.02);
    transition: border-color 0.2s, background 0.2s;
}

.timeline-item:hover {
    border-color: rgba(243, 235, 224, 0.12);
    background: rgba(243, 235, 224, 0.04);
}

.timeline-item--selected {
    border-color: rgba(94, 228, 199, 0.22);
    background: rgba(94, 228, 199, 0.05);
}

.timeline-item__year {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--coral);
    min-width: 2.75rem;
    padding-top: 0.05rem;
}

.timeline-item__body {
    min-width: 0;
}

.timeline-item__text {
    font-size: 0.64rem;
    line-height: 1.5;
    color: var(--cream);
}

.timeline-item__text a {
    color: inherit;
    text-decoration: none;
}

.timeline-item__text a:hover {
    color: var(--mint);
}

.timeline-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.timeline-item__thumb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.45rem;
    object-fit: cover;
    border: 1px solid rgba(243, 235, 224, 0.08);
    flex-shrink: 0;
}

.type-pill {
    font-family: "DM Mono", monospace;
    font-size: 0.42rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 235, 224, 0.08);
    color: var(--cream-dim);
}

.type-pill--selected { border-color: rgba(94, 228, 199, 0.35); color: var(--mint); }
.type-pill--event    { border-color: rgba(157, 122, 255, 0.3); color: var(--violet); }
.type-pill--holiday  { border-color: rgba(255, 92, 77, 0.3); color: var(--coral); }
.type-pill--birth    { border-color: rgba(94, 228, 199, 0.25); color: var(--mint); }
.type-pill--death    { border-color: rgba(154, 143, 130, 0.35); color: var(--cream-dim); }

.ui-pill--filter.active {
    border-color: rgba(94, 228, 199, 0.45);
    background: rgba(94, 228, 199, 0.1);
    color: var(--mint);
}

.timeline-count {
    font-family: "DM Mono", monospace;
    font-size: 0.48rem;
    letter-spacing: 0.06em;
    color: rgba(154, 143, 130, 0.65);
}
