* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: #ffffff;
    color: #111111;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card { width: 100%; max-width: 420px; padding: 48px 28px; text-align: center; }

h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sub { margin: 10px 0 0; color: #6f6f6f; font-size: 14px; line-height: 1.55; }

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #ececec;
    margin-bottom: 16px;
}

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

.btn:active { transform: translateY(1px); }
.btn-dark { background: #111111; color: #ffffff; }
.btn-dark:hover { opacity: 0.9; }
.btn-green { background: #16a34a; color: #ffffff; }
.btn-green:hover { opacity: 0.92; }
.btn-ghost { background: #ffffff; color: #111111; border: 1px solid #e6e6e6; }
.btn-ghost:hover { border-color: #cfcfcf; }

.icon { width: 18px; height: 18px; flex: none; }

.meta { margin: 26px 0 0; text-align: left; border-top: 1px solid #f1f1f1; }

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 13.5px;
}

.meta-label { color: #7a7a7a; flex: none; }

.meta-value {
    font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow-wrap: anywhere;
    text-align: right;
}

.meta-value a { color: #111111; }

.foot { margin: 26px 0 0; font-size: 13px; color: #8a8a8a; }
.foot a { color: #6f6f6f; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: #111111; }

.check {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf7ef;
    color: #16a34a;
    font-size: 26px;
    font-weight: 600;
}

.error {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdf2f2;
    color: #b42318;
    font-size: 13.5px;
    line-height: 1.5;
}

/* dashboard */

.card.wide { max-width: 800px; text-align: left; }

.muted { color: #8a8a8a; }

.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.dash-head { display: flex; align-items: center; gap: 14px; }

.dash-title { min-width: 0; }

.dash-head h1 { font-size: 22px; }

.avatar.small { width: 44px; height: 44px; margin: 0; flex: none; }

.btn.compact { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 11px; flex: none; }

.stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 6px;
}

@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat { border: 1px solid #f1f1f1; border-radius: 12px; padding: 12px 8px; text-align: center; }

.stat-value { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.stat-label {
    display: block;
    margin-top: 2px;
    color: #8a8a8a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section {
    margin: 30px 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a7a7a;
}

.table-wrap { overflow-x: auto; border: 1px solid #f1f1f1; border-radius: 12px; }

table.audit { width: 100%; border-collapse: collapse; font-size: 13px; }

table.audit th {
    text-align: left;
    padding: 10px 12px;
    color: #8a8a8a;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    white-space: nowrap;
}

table.audit td { padding: 9px 12px; border-bottom: 1px solid #f7f7f7; white-space: nowrap; }

table.audit tr:last-child td { border-bottom: 0; }

.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    background: #f4f4f4;
    color: #555555;
}

.tag-login { background: #eef4ff; color: #2f5bd7; }
.tag-accept { background: #eaf7ef; color: #16a34a; }
.tag-decline { background: #fdf2f2; color: #b42318; }
.tag-handoff { background: #f5f0ff; color: #6d3bd1; }
.tag-logout { background: #f4f4f4; color: #555555; }

