* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 24px;
    background: #0a0e13;
    color: #e6edf3;
    font-family:
        "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", Consolas,
        "Courier New", monospace;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

/* ============= TOPBAR ============= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid #21262d;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.title {
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #58a6ff;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #161b22;
    border: 1px solid #30363d;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.pill:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.2);
}

.pill .k {
    opacity: 0.6;
    font-weight: 500;
    text-transform: uppercase;
}

.pill .v {
    font-weight: 700;
    color: #e6edf3;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pill.blue .led {
    background: #58a6ff;
    box-shadow: 0 0 12px #58a6ff;
}

.pill.yellow .led {
    background: #d29922;
    box-shadow: 0 0 12px #d29922;
}

.pill.red .led {
    background: #f85149;
    box-shadow: 0 0 12px #f85149;
}

/* ============= BANNER ============= */
.banner {
    margin-bottom: 20px;
    padding: 20px 24px;
    border-left: 4px solid #58a6ff;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.banner .small {
    font-size: 0.75rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0;
    letter-spacing: 0.02em;
}

.stale-notice {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #d29922;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* ============= COMET TRAIL ============= */
.comet-trail {
    margin-bottom: 20px;
    border-left: 4px solid #a371f7;
}

.comet-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comet-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.comet-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a371f7;
    min-width: 120px;
}

/* ============= GRID ============= */
.grid.three {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
}

.grid.two {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 1024px) {
    .grid.three {
        grid-template-columns: 1fr;
    }

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

/* ============= PANELS ============= */
.panel {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.panel:hover {
    border-color: #30363d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.panel-head {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    opacity: 0.6;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8b949e;
}

.anchor {
    border-color: #58a6ff;
    box-shadow: 0 0 16px rgba(88, 166, 255, 0.15);
}

/* ============= ORBIT DETAILS ============= */
.orbit-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.small {
    font-size: 0.75rem;
    opacity: 0.65;
    font-weight: 400;
    color: #8b949e;
}

/* ============= PROGRESS BAR ============= */
.bar {
    height: 10px;
    background: #21262d;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    flex: 1;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb 0%, #58a6ff 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.4);
}

/* ============= HEALTH STATUS ============= */
.health {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.health.on_track {
    color: #3fb950;
    text-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

.health.behind {
    color: #f85149;
    text-shadow: 0 0 8px rgba(248, 81, 73, 0.5);
}

.health.empty {
    color: #d29922;
    text-shadow: 0 0 8px rgba(210, 153, 34, 0.5);
}

.health.clear {
    color: #3fb950;
    text-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

.health.risk {
    color: #d29922;
    text-shadow: 0 0 8px rgba(210, 153, 34, 0.5);
}

.health.high {
    color: #f85149;
    text-shadow: 0 0 8px rgba(248, 81, 73, 0.5);
    animation: warning-pulse 1.5s ease-in-out infinite;
}

.health.drifting {
    color: #d29922;
    text-shadow: 0 0 8px rgba(210, 153, 34, 0.5);
}

.health.stable {
    color: #3fb950;
    text-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

.health.slipping {
    color: #f85149;
    text-shadow: 0 0 8px rgba(248, 81, 73, 0.5);
}

@keyframes warning-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============= ORBIT LOAD LIST ============= */
.orbit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.orbit-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #30363d;
}

.orbit-row:last-child {
    margin-bottom: 0;
}

.orbit-row.now {
    background: rgba(88, 166, 255, 0.08);
    border-color: #58a6ff;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.15);
}

.orbit-row .label {
    font-weight: 600;
    min-width: 150px;
    font-size: 0.9rem;
}

.orbit-row.now .label {
    color: #58a6ff;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

.orbit-row .range {
    font-size: 0.75rem;
    opacity: 0.6;
    min-width: 100px;
    font-family: "SF Mono", monospace;
    color: #8b949e;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a371f7;
    flex-shrink: 0;
    box-shadow: 0 0 8px #a371f7;
}

.orbit-row.now .dot {
    background: #58a6ff;
    box-shadow: 0 0 12px #58a6ff;
    animation: pulse 2s ease-in-out infinite;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .orbit-row {
        flex-wrap: wrap;
    }

    .orbit-row .label,
    .orbit-row .range {
        min-width: auto;
    }
}

/* ============= CALENDAR EVENTS ============= */
.event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #30363d;
}

.event-row:last-child {
    margin-bottom: 0;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #58a6ff;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px #58a6ff;
}

.event-content {
    flex: 1;
}

.event-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e6edf3;
    margin-bottom: 4px;
}

.event-time {
    font-size: 0.75rem;
    color: #8b949e;
    opacity: 0.8;
}

/* ============= BILLS ============= */
.bill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.bill-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.bill-row:last-child {
    margin-bottom: 0;
}

.bill-row.today {
    border-left-color: #f85149;
    background: rgba(248, 81, 73, 0.06);
}

.bill-row.soon {
    border-left-color: #d29922;
    background: rgba(210, 153, 34, 0.06);
}

.bill-row.overdue {
    border-left-color: #f85149;
    background: rgba(248, 81, 73, 0.1);
    animation: warning-pulse 1.5s ease-in-out infinite;
}

.bill-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(63, 185, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #3fb950;
    flex-shrink: 0;
}

.bill-row.today .bill-icon,
.bill-row.overdue .bill-icon {
    color: #f85149;
    background: rgba(248, 81, 73, 0.15);
}

.bill-row.soon .bill-icon {
    color: #d29922;
    background: rgba(210, 153, 34, 0.15);
}

.bill-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.bill-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.autopay-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.4);
    border-radius: 3px;
    color: #58a6ff;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.bill-details {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    align-items: center;
}

.bill-amount {
    color: #3fb950;
    font-weight: 700;
    font-family: "SF Mono", monospace;
    min-width: 65px;
    text-align: right;
}

.bill-row.today .bill-amount,
.bill-row.overdue .bill-amount {
    color: #f85149;
}

.bill-row.soon .bill-amount {
    color: #d29922;
}

.bill-due {
    color: #8b949e;
    opacity: 0.7;
    font-size: 0.7rem;
}

/* ============= COMIC STRIP ============= */
.comic-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #161b22 0%, #1c2333 100%);
    border: 1px solid #d2992240;
    border-left: 4px solid #d29922;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(210, 153, 34, 0.06);
    font-size: 0.85rem;
}

.comic-label {
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #d29922;
    text-shadow: 0 0 10px rgba(210, 153, 34, 0.5);
    text-transform: uppercase;
}

.comic-status {
    font-weight: 700;
    font-size: 0.85rem;
}

.comic-status.ready {
    color: #3fb950;
    text-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

.comic-status.staged {
    color: #d29922;
    text-shadow: 0 0 8px rgba(210, 153, 34, 0.5);
}

.comic-status.dim {
    color: #8b949e;
    opacity: 0.6;
}

.comic-divider {
    color: #484f58;
    font-weight: 400;
}

.comic-next {
    color: #e6edf3;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============= BILLS REWORK ============= */
.bills-section-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b949e;
    opacity: 0.5;
    margin-bottom: 8px;
    font-weight: 600;
}

.bill-check {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363d;
    color: #3fb950;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.bill-check:hover {
    border-color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.2);
}

.bill-row.paid {
    border-left-color: #3fb950;
    opacity: 0.5;
}

.bill-row.paid .bill-check {
    background: rgba(63, 185, 80, 0.15);
    border-color: #3fb950;
}

.paid-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 3px;
    color: #3fb950;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.bill-row.auto-dim {
    opacity: 0.45;
}

.bill-row.auto-dim:hover {
    opacity: 0.7;
}

.bill-total {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #30363d;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6edf3;
    text-align: right;
}

/* ============= CALENDAR FEED LABEL ============= */
.event-feed-label {
    margin-left: 8px;
    font-size: 0.6rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
