body {
    min-height: 100dvh;
    background:#eef2f7;
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.wrap {
    max-width: 920px;
    margin: 40px auto;
    padding: 0 16px;
}
.header {
    margin-bottom: 16px;
    display:flex;
    justify-content: space-between;
    align-items:center;
}
.card {
    width: min(720px, 92vw);
    background:#fff;
    border-radius:14px;
    box-shadow:0 6px 28px rgba(0,0,0,.08);
    padding:24px 22px;
    line-height:1.45;
}
.email {
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:16px;
    margin-top: 10px;
    background:#fafafa;
}
.email h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.email .meta {
    color:#6b7280;
    margin-bottom: 10px; }
.email .body {
    color:#1f2937;
    line-height:1.5;
}
.links {
    margin-top: 14px;
    display:grid; gap:10px;
}
.links a {
    display:block;
    padding:10px 12px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    text-decoration:none;
    color:#0b5fff;
    background:#fff;
}
.links a.done {
    color:#64748b;
    background:#f3f4f6;
    text-decoration: line-through;
}
.pid-banner {
    display:none;
    margin-top:16px;
    padding:12px;
    border-radius:10px;
    background:#ecfdf5;
    color:#065f46;
    border:1px solid #a7f3d0;
    word-break: break-all;
}
.pid-banner strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.footer {
    margin-top: 12px;
    color:#6b7280;
    font-size:.95rem;
}
.row {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
}
.btn {
    border:0;
    border-radius:8px;
    padding:9px 12px;
    cursor:pointer;
    font-weight:600; }
.btn-ghost {
    background:#fff;
    border:1px solid #e5e7eb;
}