:root{--bg: #0f172a;--panel: #ffffff;--primary: #2563eb;--green: #16a34a;--green-bg: #dcfce7;--gray: #64748b;--border: #e2e8f0}*{box-sizing:border-box}body{margin:0;font-family:system-ui,Arial,sans-serif;color:#0f172a}button{cursor:pointer;border:none;border-radius:8px;padding:.7rem 1.1rem;font-size:.95rem;font-weight:600}button.primary{background:var(--primary);color:#fff}button.secondary{background:#e2e8f0;color:#0f172a}button.danger{background:#dc2626;color:#fff}button:disabled{opacity:.6;cursor:default}input,textarea{width:100%;padding:.65rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;font-family:inherit}label{display:block;font-size:.8rem;color:var(--gray);margin:.6rem 0 .25rem;font-weight:600}.login{min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:1rem}.card{background:var(--panel);padding:2rem;border-radius:16px;width:380px;max-width:100%;box-shadow:0 20px 60px #0000004d}.card h1{margin:0 0 .25rem}.card .sub{margin:0 0 1.5rem;color:var(--gray);font-size:.9rem}.card form button,.role-choice .roles{margin-top:1rem}.role-choice .roles{display:flex;flex-direction:column;gap:.6rem}.role-choice .roles button{width:100%}.hint{font-size:.8rem;color:var(--gray);margin:.5rem 0}.error{color:#dc2626;font-size:.85rem}.consulta{height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:.7rem 1rem;background:#f8fafc;border-bottom:1px solid var(--border)}.topbar code{background:#e2e8f0;padding:.1rem .4rem;border-radius:4px}.topbar .mic{margin-left:.8rem;font-size:.8rem}.topbar .mic.on{color:var(--green);font-weight:700}.topbar .mic.idle,.topbar .mic.off{color:var(--gray)}.topbar .fone-hint{margin-left:.8rem;font-size:.78rem;color:#b45309;background:#fef3c7;padding:.1rem .5rem;border-radius:6px}.topbar .badge{margin-left:.6rem;background:#fee2e2;color:#b91c1c;padding:.1rem .5rem;border-radius:6px;font-size:.75rem}.grid{flex:1;display:grid;grid-template-columns:1fr 380px;gap:1rem;padding:1rem;overflow:hidden}.grid.solo{grid-template-columns:1fr}.left{display:flex;flex-direction:column;gap:.8rem;min-height:0}.video{flex:1;min-height:0;border-radius:12px;overflow:hidden;background:#000}.video iframe{width:100%;height:100%;border:0}.video-ended{width:100%;height:100%;display:grid;place-items:center;color:#94a3b8}.transcript{height:32%;display:flex;flex-direction:column}.transcript textarea{flex:1;resize:none;background:#f8fafc}.right{overflow-y:auto;border-left:1px solid var(--border);padding-left:1rem}.right h3{margin:0 0 .3rem}.tips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}.tip{background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:999px;padding:.45rem .8rem;font-size:.85rem;transition:all .3s}.tip.asked{background:var(--green-bg);color:#14532d;border-color:#86efac}.empty{color:var(--gray);font-size:.85rem}.symptoms,.terms{margin-top:1rem}.chip{display:inline-block;background:#f1f5f9;border-radius:6px;padding:.2rem .5rem;margin:.2rem .2rem 0 0;font-size:.8rem}.prontuario .diagnose{background:#fef9c3;padding:.5rem .7rem;border-radius:8px;font-size:.9rem}.anamnese-field textarea{min-height:60px;resize:vertical}.ended-screen{min-height:100vh;display:grid;place-content:center;text-align:center;gap:.5rem;background:var(--bg);color:#fff}.ended-screen button{justify-self:center;margin-top:1rem}
