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

:root {
    --bg: #f5f5f1;
    --card: #ffffff;
    --text: #212121;
    --muted: #5f5f5f;
    --line: #d8d8d8;
    --accent: #734f2f;
    --accent-soft: #f2ece5;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
}

.sheet-shell {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.4rem 1rem 2rem;
}

.sheet-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: center;
}

.sheet-home {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
}

.sheet-home:hover {
    text-decoration: underline;
}

.sheet-brand {
    color: var(--muted);
    font-size: 0.95rem;
}

.sheet-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.85rem;
}

.sheet-title {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.sheet-subtitle {
    color: var(--muted);
    line-height: 1.45;
}

.sheet-progress {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 0.7rem;
}

.sheet-progress h2 {
    font-size: 1.08rem;
    font-weight: 700;
}

.sheet-progress-count {
    color: var(--accent);
    font-weight: 700;
}

.sheet-reset {
    border: 1px solid var(--line);
    background: var(--accent-soft);
    color: #422d1a;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.sheet-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0.9rem;
}

.sheet-toc,
.sheet-main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.sheet-toc {
    padding: 0.85rem;
    position: sticky;
    top: 0.8rem;
    align-self: start;
}

.sheet-toc h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.sheet-toc ul {
    list-style: none;
    display: grid;
    gap: 0.32rem;
}

.sheet-toc a {
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 0.45rem;
}

.sheet-toc a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sheet-main {
    padding: 0.9rem;
}

.route-section {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fcfcfb;
}

.route-section:last-child {
    margin-bottom: 0;
}

.route-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.route-title h4 {
    font-size: 1.02rem;
}

.route-count {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.route-checks {
    list-style: none;
    display: grid;
    gap: 0.34rem;
}

.route-checks label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.55rem;
    line-height: 1.45;
    font-size: 0.96rem;
}

.route-checks input[type='checkbox'] {
    margin-top: 0.23rem;
    accent-color: var(--accent);
}

.sheet-note {
    color: var(--muted);
    margin-top: 0.45rem;
    font-size: 0.88rem;
}

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

    .sheet-toc {
        position: static;
    }
}
