/* Mobile first. A página de check-in precisa funcionar com o polegar, em 30 segundos. */
:root {
    --brand: #2f6f4f;
    --ink: #1d1f1e;
    --muted: #5d6360;
    --line: #dde2df;
    --surface: #ffffff;
    --bg: #f5f7f6;
    --danger: #b3261e;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.page.wide {
    max-width: 960px;
}

h1 {
    font-size: 1.4rem;
    margin: 0 0 4px;
}

.sub {
    color: var(--muted);
    margin: 0 0 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.question {
    font-weight: 600;
    margin: 0 0 12px;
}

/* Linha de botões 0-10 / 1-10. Rádios escondidos, rótulos grandes. Nada de slider. */
.scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 6px;
}

.scale input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scale label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.scale input:checked + label {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.scale input:focus-visible + label {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.scale-hint {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .8rem;
    margin-top: 6px;
}

textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
}

input[type=email],
input[type=text],
input[type=select],
input[type=tel] {
    width: 100%;
    padding: 12px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
}

form.card .question {
    display: block;
    margin: 16px 0 6px;
}

form.card .question:first-of-type {
    margin-top: 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.field-validation-error, .validation-summary-errors {
    color: var(--danger);
    font-size: .9rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn.small {
    width: auto;
    padding: 8px 12px;
    font-size: .9rem;
}

.error {
    color: var(--danger);
    font-weight: 600;
}

.highlight {
    font-size: 1.15rem;
    font-weight: 600;
}

.muted {
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th, td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.badge.Engaged {
    background: #e3f3e8;
    color: #1e6b3a;
}

.badge.Attention {
    background: #fff3d6;
    color: #8a5a00;
}

.badge.AtRisk {
    background: #fde3e1;
    color: #a1251c;
}

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.toolbar h1 { margin: 0; }
.table-wrap { overflow-x: auto; }   /* a tabela rola sozinha no celular, a página não */
.actions { white-space: nowrap; }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 4px;
    border: 2px solid var(--brand); border-radius: 50%; }
.dot.Answered { background: var(--brand); }
.dot.Missed { border-color: var(--danger); }
.dot.Open { border-style: dashed; }