.mc-page { max-width:960px; margin:0 auto; }
.mc-page .mc-cab { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin:8px 0 24px; }
.mc-page .mc-cab > div:first-child { flex:1 1 260px; min-width:0; overflow-wrap:anywhere; }
.mc-page h1 { display:flex; align-items:center; gap:10px; margin:0 0 6px; font-size:clamp(1.5rem,3vw,1.85rem); letter-spacing:-.035em; }
.mc-page .mc-header-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.mc-page .sub-p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.65; }
.mc-page .passo { padding:24px; margin-bottom:18px; }
.mc-page .passo h2 { margin:0; font-size:1.05rem; }
.mc-page .mc-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.mc-page .mc-section-head h2 { display:flex; align-items:center; gap:9px; }
.mc-page .mc-section-head .ic { color:var(--muted); }
.mc-page .mc-count { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 8px; border-radius:999px; background:var(--card2); color:var(--text); font-size:.8rem; font-weight:600; }
.mc-page .mc-state-icon { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; flex:none; border-radius:12px; background:var(--card2); color:var(--blue); }
.mc-page .mc-welcome { display:flex; align-items:center; gap:14px; padding:18px 24px; }
.mc-page .mc-welcome-text { flex:1; min-width:0; }
.mc-page .mc-welcome h2 { margin-bottom:4px; overflow-wrap:anywhere; }
.mc-page .mc-empty { padding:36px 24px; text-align:center; }
.mc-page .mc-empty .mc-state-icon { margin-bottom:16px; }
.mc-page .mc-empty h2 { margin-bottom:8px; }
.mc-page .mc-empty .sub-p { max-width:440px; margin:0 auto 22px; }
.mc-page .btn-sec, .mc-page .btn-azul, .mc-page .btn-perigo { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border-radius:8px; font:inherit; font-size:.88rem; font-weight:600; cursor:pointer; text-decoration:none; }
.mc-page .btn-sec { border:1px solid var(--line); background:var(--card); color:var(--text); }
.mc-page .btn-sec:hover { background:var(--card2); }
.mc-page .btn-topo { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; font-size:.88rem; }
.mc-page .btn-azul { border:1px solid transparent; background:var(--blue); color:var(--on-prim,#fff); }
.mc-page .btn-esq { min-height:44px; padding:8px 0; border:0; background:none; color:var(--muted); font:inherit; font-size:.82rem; cursor:pointer; text-underline-offset:4px; }
.mc-page .btn-esq:hover { color:var(--text); text-decoration:underline; }
.mc-page .hist-msg { padding:14px 16px; margin-bottom:18px; border:1px solid var(--line); border-radius:10px; line-height:1.6; }
.mc-page .hist-msg.ok { color:var(--green); background:color-mix(in srgb,var(--green) 8%,var(--card)); }
.mc-page .hist-msg.ruim { color:var(--red,#ef4444); background:color-mix(in srgb,var(--red,#ef4444) 8%,var(--card)); }
.mc-page .hist-lista { display:grid; gap:12px; }
.mc-page .hist-item { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.mc-page .hist-item.mc-proximo { border-inline-start:3px solid var(--blue); background:color-mix(in srgb,var(--blue) 4%,var(--card)); }
.mc-page .hist-info { flex:1; min-width:0; overflow-wrap:anywhere; }
.mc-page .qd { display:block; color:var(--muted); font-size:.83rem; line-height:1.6; font-variant-numeric:tabular-nums; }
.mc-page .mc-servico { margin:6px 0; font-size:1rem; line-height:1.5; font-weight:600; }
.mc-page .hist-item small { display:block; color:var(--muted); font-size:.83rem; line-height:1.65; }
.mc-page .hist-item small.canc { color:var(--red,#ef4444); margin-top:6px; }
.mc-page .hist-dir { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex:none; text-align:right; }
.mc-page .hist-dir strong { font-size:1rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mc-page .hist-st { display:inline-flex; padding:4px 9px; border-radius:6px; background:var(--card2); color:var(--muted); font-size:.72rem; font-weight:600; line-height:1.5; max-width:170px; }
.mc-page .hist-st.agendado { background:color-mix(in srgb,var(--green) 12%,var(--card)); color:var(--green); }
.mc-page .hist-st.nao-compareceu, .mc-page .hist-st.cancelado { background:color-mix(in srgb,var(--red,#ef4444) 10%,var(--card)); color:var(--red,#ef4444); }
.mc-page .btn-cancelar { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--red,#ef4444); font:inherit; font-size:.82rem; cursor:pointer; }
.mc-page .btn-cancelar:hover { border-color:var(--red,#ef4444); }
.mc-page .mc-account-gate { display:flex; align-items:center; gap:16px; padding:20px; border:1px dashed var(--line); border-radius:10px; background:var(--card2); }
.mc-page .mc-account-gate > div { flex:1; min-width:0; }
.mc-page .mc-account-gate h3 { margin:0 0 4px; font-size:.95rem; }
.mc-page .mc-account-gate .mc-state-icon { background:var(--card); color:var(--muted); }
.mc-page .aviso-novo { border-inline-start:3px solid var(--blue); background:var(--hoje-bg,var(--card2)); }
.mc-page .mc-loading { display:flex; align-items:center; justify-content:center; gap:12px; padding:40px 16px; color:var(--muted); }
.mc-page .mc-spinner { width:18px; height:18px; border:2px solid var(--line); border-top-color:var(--blue); border-radius:50%; animation:mc-spin .8s linear infinite; }
@keyframes mc-spin { to { transform:rotate(360deg); } }
.mc-page dialog { width:calc(100% - 32px); max-width:440px; padding:0; border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--text); }
.mc-page dialog::backdrop { background:rgba(0,0,0,.6); }
.mc-page .dlg-corpo { padding:26px; }
.mc-page .mc-dialog-label { display:block; margin-bottom:8px; font-size:.78rem; color:var(--muted); }
.mc-page .dlg-corpo h2 { margin:0 0 10px; font-size:1.25rem; }
.mc-page .dlg-corpo label { display:block; margin:22px 0 8px; font-size:.88rem; font-weight:600; }
.mc-page .dlg-corpo select { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card2); color:var(--text); font:inherit; }
.mc-page .dlg-acoes { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:24px; }
.mc-page .btn-perigo { border:1px solid transparent; background:var(--red,#ef4444); color:#fff; }
.mc-page .btn-perigo:disabled { opacity:.6; cursor:wait; }
.mc-page .erro { color:var(--red,#ef4444); margin:10px 0 0; font-size:.88rem; }
@media(max-width:600px) {
    .mc-page .mc-cab { gap:16px; }
    .mc-page .mc-header-actions { width:100%; }
    .mc-page .mc-new { flex:1; }
    .mc-page .passo { padding:18px; }
    .mc-page .mc-welcome { flex-wrap:wrap; gap:12px; }
    .mc-page .mc-welcome .btn-esq { margin-left:58px; padding:0; min-height:44px; }
    .mc-page .hist-item { flex-wrap:wrap; gap:12px; padding:16px; }
    .mc-page .hist-info { flex-basis:100%; }
    .mc-page .hist-dir { width:100%; flex-direction:row; align-items:center; flex-wrap:wrap; gap:10px; text-align:left; }
    .mc-page .btn-cancelar { margin-left:auto; }
    .mc-page .mc-account-gate { flex-wrap:wrap; padding:16px; gap:12px; }
    .mc-page .mc-account-gate > div { flex-basis:calc(100% - 62px); }
    .mc-page .mc-account-gate > .btn-sec { margin-left:58px; }
    .mc-page .dlg-corpo { padding:22px; }
    .mc-page .dlg-acoes > button { flex:1 1 150px; }
}
@media(prefers-reduced-motion:reduce) { .mc-page .mc-spinner { animation:none; } }
