*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}:root{--primary: #2563eb;--primary-dark: #1d4ed8;--accent: #06b6d4;--bg: #f8fafc;--surface: #ffffff;--text: #0f172a;--text-muted: #64748b;--radius: 12px;--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);--shadow-lg: 0 8px 30px rgba(0, 0, 0, .1)}html{scroll-behavior:smooth}body{font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s;font-size:1rem;padding:.75rem 1.75rem}.btn-sm{padding:.5rem 1.25rem;font-size:.875rem}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:var(--shadow-lg)}.btn-outline{background:transparent;border:2px solid var(--primary);color:var(--primary)}.btn-outline:hover{background:var(--primary);color:#fff}.navbar{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;max-width:1200px;margin:0 auto}.navbar-brand{font-size:1.25rem;font-weight:700;display:flex;align-items:center;gap:.5rem}.navbar-logo{font-size:1.5rem}.navbar-links{display:flex;align-items:center;gap:1.5rem}.navbar-links a{font-weight:500;color:var(--text-muted);transition:color .2s}.navbar-links a:hover{color:var(--primary)}.hero{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;padding:5rem 2rem 4rem;gap:3rem}.hero-content{flex:1;max-width:560px}.hero h1{font-size:3rem;line-height:1.15;font-weight:800;letter-spacing:-.02em}.accent{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-subtitle{margin-top:1.25rem;font-size:1.15rem;color:var(--text-muted);max-width:480px}.hero-actions{margin-top:2rem;display:flex;gap:1rem}.hero-visual{flex-shrink:0}.hero-card{position:relative;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:2rem 2.5rem;text-align:center;min-width:260px}.hero-card-icon{font-size:2.5rem;display:block;margin-bottom:.75rem}.hero-card p{color:var(--text-muted);font-size:.875rem}.hero-card strong{display:block;margin-top:.25rem;font-size:1.05rem}.pulse{position:absolute;top:12px;right:12px;width:10px;height:10px;background:#22c55e;border-radius:50%;animation:pulse-anim 2s infinite}@keyframes pulse-anim{0%,to{box-shadow:0 0 #22c55e80}50%{box-shadow:0 0 0 8px #22c55e00}}.features{max-width:1200px;margin:0 auto;padding:4rem 2rem;text-align:center}.features h2{font-size:2rem;font-weight:700;margin-bottom:2.5rem}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}.feature-card{background:var(--surface);border-radius:var(--radius);padding:2rem 1.5rem;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}.feature-icon{font-size:2rem;display:block;margin-bottom:.75rem}.feature-card h3{font-size:1.1rem;font-weight:600;margin-bottom:.5rem}.feature-card p{color:var(--text-muted);font-size:.95rem}.about{max-width:720px;margin:0 auto;padding:4rem 2rem;text-align:center}.about h2{font-size:2rem;font-weight:700;margin-bottom:1rem}.about p{color:var(--text-muted);font-size:1.05rem;line-height:1.8}.footer{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem;border-top:1px solid #e2e8f0;margin-top:2rem}@media(max-width:768px){.hero{flex-direction:column;text-align:center;padding-top:3rem}.hero h1{font-size:2.25rem}.hero-subtitle{margin-left:auto;margin-right:auto}.hero-actions{justify-content:center}.navbar-links a:not(.btn){display:none}}.user-greeting{font-size:.9rem;color:var(--text-muted)}.loading-screen{display:flex;align-items:center;justify-content:center;height:100vh;font-size:1.1rem;color:var(--text-muted)}.dashboard-content{max-width:1200px;margin:0 auto;padding:3rem 2rem}.dashboard-content h1{font-size:2rem;font-weight:700;margin-bottom:2rem}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}.dash-card{background:var(--surface);border-radius:var(--radius);padding:2rem 1.5rem;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;cursor:pointer}.dash-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}.dash-card-icon{font-size:2rem;display:block;margin-bottom:.75rem}.dash-card h3{font-size:1.1rem;font-weight:600;margin-bottom:.5rem}.dash-card p{color:var(--text-muted);font-size:.95rem}.dash-card-link{display:block;color:inherit}.error-text{color:#dc2626;margin-bottom:1rem}.consultation-form{background:var(--surface);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:2rem;display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}.consultation-form input{flex:1;min-width:180px;padding:.6rem .75rem;border:1px solid #e2e8f0;border-radius:8px}.consultation-list ul{list-style:none;display:flex;flex-direction:column;gap:.75rem}.consultation-item{display:flex;justify-content:space-between;align-items:center;background:var(--surface);padding:1rem 1.25rem;border-radius:var(--radius);box-shadow:var(--shadow)}.consultation-actions{display:flex;gap:.5rem}.status-badge{margin-left:.5rem;font-size:.75rem;padding:.15rem .5rem;border-radius:999px;background:#e0f2fe;color:#0369a1}.status-in_progress{background:#dcfce7;color:#15803d}.status-completed{background:#f1f5f9;color:#64748b}.page-hint{color:var(--text-muted);margin-bottom:1rem}.patient-hint{padding:1rem 1.25rem;background:#f0f9ff;border:1px solid #bae6fd;border-radius:var(--radius)}.form-field{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem}.form-field select{padding:.6rem .75rem;border:1px solid var(--border);border-radius:8px}.consultation-created-banner{margin:1.5rem 0;padding:1.25rem;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:var(--radius)}.share-invite{margin-top:.75rem}.share-invite-label{font-size:.8rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.share-invite-row{display:flex;gap:.5rem;margin-top:.35rem}.share-invite-input{flex:1;font-size:.85rem;padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px;background:#fff}.share-invite-hint{font-size:.8rem;color:var(--text-muted);margin:.5rem 0 0}.consultation-item{flex-wrap:wrap;align-items:flex-start;gap:1rem}.join-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#e0f2fe,#f0fdf4)}.join-card{max-width:420px;width:100%;background:var(--surface);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}.join-title{font-size:1.25rem;font-weight:600;margin:1rem 0 .5rem}.join-meta{color:var(--text-muted);margin-bottom:1.5rem}.join-footer{margin-top:1.5rem;font-size:.9rem}.room-page{min-height:100vh;display:flex;flex-direction:column;background:#0f172a;color:#f8fafc}.room-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#1e293b;border-bottom:1px solid #334155}.room-back{color:#94a3b8;font-size:.875rem}.room-header h1{font-size:1.25rem;margin-top:.25rem}.room-status{font-size:.875rem;color:#94a3b8}.room-controls{display:flex;gap:.5rem;flex-wrap:wrap}.room-layout{flex:1;display:grid;grid-template-columns:1fr 320px;gap:0;min-height:0}.room-video-area{display:flex;flex-direction:column;min-height:0;padding:1rem;gap:.75rem}.room-video-area--focused{padding:.75rem}.room-video-main{flex:1;min-height:0}.room-video-main .video-tile{height:100%;min-height:280px;aspect-ratio:auto}.room-video-strip{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem}.room-video-strip .video-tile{flex:0 0 160px;width:160px;aspect-ratio:16 / 10}.room-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.75rem;align-content:start}.video-tile{position:relative;background:#1e293b;border-radius:var(--radius);overflow:hidden;aspect-ratio:16 / 10;border:2px solid transparent}.video-tile--clickable{cursor:pointer}.video-tile--clickable:hover{border-color:#475569}.video-tile--selected{border-color:#2563eb}.video-tile--large{border-radius:calc(var(--radius) + 2px)}.video-tile-audio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.video-tile-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#334155,#1e293b);font-size:2.5rem;font-weight:700;color:#94a3b8}.video-tile video{width:100%;height:100%;object-fit:cover}.video-tile--mirror video{transform:scaleX(-1)}.video-tile-label{position:absolute;bottom:.5rem;left:.5rem;background:#0000008c;padding:.2rem .5rem;border-radius:4px;font-size:.8rem}.video-tile-hint{position:absolute;top:.5rem;right:.5rem;background:#00000073;padding:.15rem .45rem;border-radius:4px;font-size:.7rem;color:#cbd5e1;opacity:0;transition:opacity .15s}.video-tile--clickable:hover .video-tile-hint{opacity:1}.chat-panel{display:flex;flex-direction:column;background:#1e293b;border-left:1px solid #334155;min-height:0}.chat-panel h3{padding:1rem;border-bottom:1px solid #334155;font-size:1rem}.chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.chat-message{background:#334155;padding:.5rem .75rem;border-radius:8px;font-size:.875rem}.chat-message--own{background:#2563eb;align-self:flex-end;max-width:85%}.chat-message time{display:block;font-size:.7rem;opacity:.7;margin-top:.25rem}.chat-form{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid #334155}.chat-form input{flex:1;padding:.5rem .75rem;border-radius:8px;border:1px solid #475569;background:#0f172a;color:#f8fafc}@media(max-width:900px){.room-layout{grid-template-columns:1fr;grid-template-rows:1fr auto}.chat-panel{max-height:280px;border-left:none;border-top:1px solid #334155}}
