/* Portail de quarantaine (page mobile, écran d'accueil de l'iPhone) */
:root {
    --q-bg: #f4f6fa; --q-card: #ffffff; --q-text: #1c2430; --q-muted: #667085; --q-line: #e3e7ee;
    --q-blue: #1f4fa3; --q-blue-soft: #e8eefb; --q-red: #b42318; --q-red-soft: #fdecea; --q-green: #157f3c; --q-green-soft: #e7f6ec;
}
@media (prefers-color-scheme: dark) {
    :root {
        --q-bg: #11151c; --q-card: #1b212b; --q-text: #e6e9ef; --q-muted: #98a2b3; --q-line: #2c3542;
        --q-blue: #7aa2ff; --q-blue-soft: #1d2a45; --q-red: #ff8a7a; --q-red-soft: #3a1f1c; --q-green: #6fd398; --q-green-soft: #16301f;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--q-bg); color: var(--q-text);
    font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.q-top {
    position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--q-card); border-bottom: 1px solid var(--q-line);
}
.q-logo { font-weight: 700; color: var(--q-blue); }
.q-who { font-size: 13px; color: var(--q-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-main { max-width: 640px; margin: 0 auto; padding: 16px; }
.q-card, .q-item { background: var(--q-card); border: 1px solid var(--q-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.q-card h1 { font-size: 20px; margin: 0 0 8px; }
.q-card p { margin: 0 0 12px; color: var(--q-muted); }
.q-empty { text-align: center; padding: 32px 16px; }
.q-form { display: flex; flex-direction: column; gap: 10px; }
.q-form label { font-weight: 600; font-size: 14px; }
.q-form input {
    font: inherit; font-size: 17px; padding: 12px; border-radius: 10px; border: 1px solid var(--q-line);
    background: var(--q-bg); color: var(--q-text); width: 100%;
}
.q-code { letter-spacing: 6px; text-align: center; font-size: 24px !important; }
.q-form-inline { display: inline; margin: 0; }
.q-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px;
    border-radius: 10px; border: 1px solid var(--q-line); background: var(--q-card); color: var(--q-text);
    font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%;
}
.q-btn-primary { background: var(--q-blue); border-color: var(--q-blue); color: #fff; }
.q-btn-danger { color: var(--q-red); }
.q-btn[disabled] { opacity: .6; }
.q-link { background: none; border: 0; color: var(--q-blue); font: inherit; font-size: 14px; padding: 8px 0; cursor: pointer; text-decoration: underline; }
.q-msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--q-blue-soft); }
.q-msg-success { background: var(--q-green-soft); color: var(--q-green); }
.q-msg-danger { background: var(--q-red-soft); color: var(--q-red); }
.q-count { color: var(--q-muted); font-size: 14px; margin: 0 0 8px; }
.q-item-virus { border-color: var(--q-red); }
.q-item-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.q-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-date { color: var(--q-muted); white-space: nowrap; }
.q-subject { margin: 4px 0 8px; word-break: break-word; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.q-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--q-bg); color: var(--q-muted); border: 1px solid var(--q-line); }
.q-tag-virus { color: var(--q-red); border-color: var(--q-red); }
.q-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-actions form { margin: 0; }
.q-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 24px; }
.q-hint { color: var(--q-muted); font-size: 13px; text-align: center; }
