* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}
.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}
header.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
header.topbar h1 {
    font-size: 20px;
    margin: 0;
}
header.topbar a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}
.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}
.login-card {
    max-width: 340px;
    margin: 80px auto;
}
.login-card h1 {
    font-size: 20px;
    text-align: center;
    margin-top: 0;
}
input[type=text], input[type=password], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 12px;
}
textarea { resize: vertical; min-height: 70px; }
button, .btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    text-align: center;
    text-decoration: none;
    margin-bottom: 12px;
}
.btn-start-moniteur { background: #2563eb; }
.btn-start-ia { background: #7c3aed; }
.btn-stop { background: #dc2626; }
.btn-secondary { background: #475569; }
.btn-outline {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.error { color: #dc2626; font-size: 14px; margin-bottom: 10px; }
.active-box {
    text-align: center;
}
.active-box .emoji { font-size: 40px; }
.active-box .label { font-size: 18px; font-weight: 600; margin: 6px 0 2px; }
.active-box .timer {
    font-size: 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 10px 0 18px;
}
.session-list { list-style: none; padding: 0; margin: 0; }
.session-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.session-list li:last-child { border-bottom: none; }
.session-list .meta { color: #64748b; font-size: 12px; }
.session-list .remark { color: #475569; font-style: italic; margin-top: 2px; }
.session-list .dur { font-weight: 600; white-space: nowrap; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: 0 0 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}
.tabs a.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.totals { display: flex; gap: 10px; margin-bottom: 16px; }
.totals .box { flex: 1; background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.totals .box .n { font-size: 22px; font-weight: 700; }
.totals .box .l { font-size: 12px; color: #64748b; margin-top: 2px; }
