:root {
    --ink: #20372f;
    --green: #236b50;
    --muted: #687b70;
    --line: #dce4dc;
    --paper: #f5f6f2;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        15px/1.65 "Noto Sans CJK SC",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
}
header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}
.brand small {
    display: block;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 2px;
    color: var(--muted);
}
.mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 7px solid var(--green);
    border-radius: 50%;
    font-size: 19px;
}
a {
    color: var(--green);
}
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}
nav a {
    text-decoration: none;
}
nav form {
    margin: 0;
}
main {
    max-width: 1440px;
    padding: 40px 5vw;
    margin: auto;
}
h1 {
    font-size: 32px;
    line-height: 1.3;
    margin: 10px 0;
}
h2 {
    font-size: 20px;
    margin: 0 0 14px;
}
h3 {
    font-size: 19px;
    margin: 12px 0;
}
p {
    margin: 8px 0;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 12px;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted);
}
.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}
button,
.button,
input,
select {
    font: inherit;
}
button,
.button {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 16px;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
button:hover,
.button:hover {
    background: #eaf3ec;
}
button:disabled {
    color: #839287;
    background: #f1f4ef;
    cursor: default;
}
.primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.primary:hover {
    background: #174f3a;
    color: #fff;
}
.full {
    width: 100%;
}
.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
}
input,
select {
    width: 100%;
    border: 1px solid #bdcfc0;
    border-radius: 7px;
    padding: 10px;
    background: white;
    color: var(--ink);
}
input:focus,
button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 3px solid #92bba1;
    outline-offset: 2px;
}
label {
    display: block;
    margin: 13px 0 6px;
}
form .primary {
    margin-top: 20px;
}
.case form .primary {
    margin-top: 0;
}
.login {
    min-height: 65vh;
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 90px;
    align-items: center;
    max-width: 1080px;
    margin: auto;
}
.login h1 {
    font-size: 45px;
    margin: 16px 0 20px;
}
.intro p {
    font-size: 17px;
    color: var(--muted);
}
.intro ol {
    padding-left: 22px;
    margin-top: 30px;
    line-height: 2.6;
}
.stats {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr 2fr;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 35px;
}
.stats > div {
    padding: 22px;
    border-right: 1px solid var(--line);
}
.stats > div:last-child {
    border: 0;
}
.stats strong {
    display: block;
    font-size: 32px;
}
.stats strong small {
    font-size: 15px;
    font-weight: normal;
    color: var(--muted);
}
.stats span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.instruction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.case-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.badge {
    border-radius: 14px;
    background: #eff5eb;
    color: var(--green);
    padding: 3px 10px;
    font-size: 12px;
}
.mine {
    border-color: #76a187;
    box-shadow: 0 0 0 1px #76a187;
}
.case .muted {
    font-size: 12px;
    margin: 8px 0 16px;
}
.case .muted b {
    float: right;
    color: var(--green);
}
progress {
    appearance: none;
    width: 100%;
    height: 7px;
    border: none;
    border-radius: 6px;
    background: #e8eee6;
    overflow: hidden;
}
progress::-webkit-progress-bar {
    background: #e8eee6;
}
progress::-webkit-progress-value {
    background: var(--green);
}
progress::-moz-progress-bar {
    background: var(--green);
}
.amber {
    color: #a77426;
}
.assign {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.assign select {
    font-size: 12px;
    min-width: 0;
}
.assign button {
    font-size: 12px;
    white-space: nowrap;
}
details {
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}
summary {
    cursor: pointer;
}
.two-columns {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(450px, 1.2fr);
    gap: 25px;
    align-items: start;
}
.narrow {
    max-width: 520px;
    margin: 35px auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    text-align: left;
}
td,
th {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}
.error,
.errorlist {
    color: #a33a26;
    background: #fff1eb;
    padding: 10px 15px;
    border-radius: 6px;
    list-style: none;
    font-size: 13px;
}
.success {
    background: #edf6eb;
    color: var(--green);
    padding: 12px;
    border-radius: 8px;
}
.helptext,
form ul {
    font-size: 12px;
    color: var(--muted);
}
footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 35px 20px;
}
button[disabled] {
    opacity: 0.7;
}
@media (max-width: 1000px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .login {
        gap: 35px;
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .stats > div:nth-child(2) {
        border: 0;
    }
}
@media (max-width: 650px) {
    header {
        align-items: flex-start;
        flex-direction: column;
    }
    nav {
        gap: 12px;
        flex-wrap: wrap;
    }
    main {
        padding: 25px 16px;
    }
    .login {
        display: block;
    }
    .login h1 {
        font-size: 32px;
    }
    .intro ol {
        display: none;
    }
    .intro {
        margin-bottom: 25px;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .heading {
        align-items: flex-start;
    }
    .heading h1 {
        font-size: 26px;
    }
    .heading button {
        white-space: nowrap;
        font-size: 12px;
    }
    .section-heading {
        display: block;
    }
    .section-heading span {
        display: block;
        margin-bottom: 12px;
    }
    .stats > div {
        padding: 16px;
    }
    .stats strong {
        font-size: 28px;
    }
    .stats .instruction {
        grid-column: 1/-1;
    }
    .card {
        padding: 22px;
    }
}

.stats strong #summary-done {
    display: inline;
    font: inherit;
    color: inherit;
}
