:root {
    --ink: #22262b;
    --muted: #6b7280;
    --border: #d8dbe0;
    --pass: #1c7c3f;
    --pass-bg: #e9f7ee;
    --fail: #b3261e;
    --fail-bg: #fdecea;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fafafa;
    margin: 0;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }

.problem-list { list-style: none; padding: 0; }
.problem-list li { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.6rem; }
.problem-list a {
    display: block;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: inherit;
}
.problem-list .title { display: block; font-weight: 600; }
.problem-list .prompt-preview { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    background: #eef0f2;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.prompt {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    line-height: 1.5;
}

textarea {
    width: 100%;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.95rem;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    resize: vertical;
}

button {
    margin-top: 0.7rem;
    padding: 0.6rem 1.3rem;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }

.status { font-weight: 600; margin-top: 1.4rem; }
.status.ok { color: var(--pass); }
.status.error { color: var(--fail); }

.compile-error {
    background: var(--fail-bg);
    color: var(--fail);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}
th, td {
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--border);
}
tr.pass td:last-child { color: var(--pass); font-weight: 600; }
tr.fail td:last-child { color: var(--fail); font-weight: 600; }
tr.pass { background: var(--pass-bg); }
tr.fail { background: var(--fail-bg); }
