:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-color: #c9d1d9;
    --link-color: #58a6ff;
    --border-color: #30363d;
    --accent-color: #238636;
    --highlight-bg: #1f6feb;
    --read-bg: #2d7d46;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem;
    max-width: 980px;
    margin: 0 auto;
}
h1 {
    color: #f0f6fc;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}
.subtitle {
    color: #8b949e;
    margin-bottom: 0.8rem;
}
nav {
    margin-bottom: 1.6rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
nav a {
    color: var(--link-color);
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
.repo-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.seen-help {
    color: #8b949e;
    font-size: 0.8rem;
    margin: -0.35rem 0 1rem;
}
.repo-controls button,
.repo-toggle {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}
.repo-controls button:hover,
.repo-toggle:hover {
    background-color: #30363d;
}
.repo {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.repo-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.repo h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.repo h3 a {
    color: var(--link-color);
    text-decoration: none;
}
.repo h3 a:hover {
    text-decoration: underline;
}
.seen-badge {
    display: inline-block;
    border: 1px solid var(--border-color);
    color: #8b949e;
    font-size: 0.72rem;
    border-radius: 12px;
    padding: 0.05rem 0.45rem;
    vertical-align: middle;
}
.description {
    color: #8b949e;
    margin-bottom: 0.5rem;
}
.meta {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}
.meta a {
    color: var(--link-color);
    text-decoration: none;
}
.meta a:hover {
    text-decoration: underline;
}
.language {
    color: var(--accent-color);
}
.history {
    font-size: 0.82rem;
    color: #7d8590;
    margin-bottom: 0.9rem;
}
.repo.collapsed .repo-body {
    display: none;
}
.ai-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.ai-summary h4 {
    color: #f0f6fc;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.ai-summary p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.ai-summary p:last-child {
    margin-bottom: 0;
}
.empty-state {
    color: #8b949e;
    font-style: italic;
    margin: 1rem 0 2rem;
}
footer {
    margin-top: 2rem;
    color: #8b949e;
    font-size: 0.85rem;
}
footer a {
    color: var(--link-color);
}
.calendar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.month-calendar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    min-width: 280px;
}
.month-calendar h3 {
    color: #f0f6fc;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.month-calendar table {
    width: 100%;
    border-collapse: collapse;
}
.month-calendar th {
    color: #8b949e;
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.5rem 0;
    text-align: center;
}
.month-calendar td {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}
.month-calendar td.empty {
    background: transparent;
}
.month-calendar td.no-page {
    color: #484f58;
}
.month-calendar td.has-page {
    background-color: var(--highlight-bg);
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
.month-calendar td.has-page.read-day {
    background-color: var(--read-bg);
}
.month-calendar td.has-page a {
    color: #fff;
    text-decoration: none;
    display: block;
    font-weight: 500;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.month-calendar td.has-page:hover {
    background-color: #388bfd;
}
.month-calendar td.has-page.read-day:hover {
    background-color: #3f9f5c;
}
.slow-burners-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}
.section-heading {
    color: #f0f6fc;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}
.slow-burner {
    border-left: 3px solid #d29922;
}
.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
}
.discuss-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.45rem;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.discuss-btn:hover {
    opacity: 1;
    background-color: #21262d;
}
.discuss-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #238636;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.discuss-toast.show {
    opacity: 1;
}
@media (max-width: 700px) {
    body {
        padding: 1rem;
    }
    .repo-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .repo-toggle {
        width: fit-content;
    }
    .repo-controls {
        flex-wrap: wrap;
    }
}
