body {
    background: #f5f6f8;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;

    border-radius: 12px;

    box-shadow:
    0 2px 8px rgba(0,0,0,0.08);
}

.progress {
    background: #e5e5e5;
    height: 24px;

    border-radius: 20px;

    overflow: hidden;
}

.progress-fill {
    background: #222;

    color: white;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.todo {
    background: white;
    padding: 15px;
    margin-bottom: 10px;

    border-radius: 10px;

    box-shadow:
    0 2px 8px rgba(0,0,0,0.08);
}
.todo.done {
    opacity: 0.55;
    text-decoration: line-through;
}
.history-item {
    background: white;
    padding: 15px 18px;
    margin-bottom: 10px;

    border-radius: 10px;

    box-shadow:
    0 2px 8px rgba(0,0,0,0.08);
}
.history-item strong {
    color: #666;
    font-size: 13px;
}
.site-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.site-table th,
.site-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.summary-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.summary-card {
    background: white;

    padding: 24px;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}

.summary-number {
    font-size: 36px;
    font-weight: bold;
}

.summary-label {
    margin-top: 10px;
    color: #666;
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.link-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.link-card:hover {
    transform: translateY(-2px);
}
.project-status {
    display: inline-block;

    margin-bottom: 12px;

    padding: 4px 10px;

    border-radius: 20px;

    background: #eef2ff;

    color: #4338ca;

    font-size: 13px;
}
.project-meta {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}
.project-memo {
    background: #f5f6f8;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    color: #444;
    font-size: 14px;
}
.low-index {
    background: #fff1f1;
}

.low-index td {
    color: #b91c1c;
    font-weight: 600;
}
.todo-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.todo-project {
    font-size: 13px;
    color: #666;
}

.todo-priority {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fff7ed;
    color: #c2410c;
}

.todo-title {
    font-size: 16px;
}
.urgent-card {
    border-left: 5px solid #dc2626;
}
.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.rank-item:last-child {
    border-bottom: none;
}

.dashboard-date {
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
}
.top3-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.top3-item:last-child {
    border-bottom: none;
}
.fetch-error {
    background: #fff7ed;
}

.fetch-error td {
    color: #c2410c;
    font-weight: 600;
}
.health-good {
    color: #16a34a;
    font-weight: bold;
}

.health-warning {
    color: #d97706;
    font-weight: bold;
}

.health-danger {
    color: #dc2626;
    font-weight: bold;
}
.table-wrap {
    overflow-x: auto;
}


@media (max-width: 768px) {

    .container {
        padding: 0 15px;
    }

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

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

    .summary-number {
        font-size: 28px;
    }

    h1 {
        font-size: 28px;
    }

    .card {
        padding: 15px;
    }

}
@media (max-width: 480px) {

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

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

    .summary-number {
        font-size: 24px;
    }

    h1 {
        font-size: 24px;
    }

}