body {
    font-family: sans-serif;
    background-color: #f9fafb;
    color: #333;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}

.site-logo {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 16px auto;
}

h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 0.5em;
    text-align: center;
}

h2 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

p {
    color: #555;
    margin-bottom: 1em;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

li {
    margin-bottom: 0.35em;
}

.center-link {
    text-align: center;
    font-size: 1.15em;
    font-weight: 600;
}

.note {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-top: -10px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 640px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95em;
    line-height: 1.45;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

th {
    background-color: #eeeeee;
    color: #333;
    font-weight: 600;
}

td {
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

.nowrap {
    white-space: nowrap;
}

.digest {
    min-width: 42ch;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    white-space: nowrap;
}

footer {
    text-align: center;
    margin-top: 20px;
}

footer p {
    color: #555;
}

.dsdate {
    font-size: 14px;
    font-style: italic;
}

.footer,
.footerborder {
    text-align: center;
    border: 0;
    padding: 0;
    margin-top: 20px;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 18px 16px;
    }

    h1 {
        font-size: 2em;
    }

    table {
        font-size: 0.9em;
        min-width: auto;
    }

    th,
    td {
        padding: 9px 10px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #f0f0f0;
    }

    .container {
        background-color: #1e1e1e;
        color: #f0f0f0;
    }

    h1,
    h2 {
        color: #ffffff;
    }

    p,
    footer p {
        color: #cccccc;
    }

    a {
        color: #66aaff;
    }

    .note {
        color: #cccccc;
    }

    table {
        background-color: #2a2a2a;
        border-color: #444;
    }

    th {
        background-color: #242424;
        color: #f0f0f0;
    }

    td {
        color: #f0f0f0;
        border-bottom-color: #444;
    }
}
