:root {
    --consult-green: #3d9662;
    --consult-green-deep: #2f7a4e;
    --consult-ink: #1a2b22;
    --consult-muted: #5c6f64;
    --consult-bg: #f3f7f4;
    --consult-card: #ffffff;
}

body.consult-public {
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(61, 150, 98, 0.18), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(47, 122, 78, 0.12), transparent 55%),
        var(--consult-bg);
    color: var(--consult-ink);
    min-height: 100vh;
    font-family: "Thmanyah", "Segoe UI", Tahoma, sans-serif;
}

.consult-hero {
    padding: 3.5rem 0 2rem;
}

.consult-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--consult-green);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.consult-hero h1,
.consult-section > h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.consult-lead {
    color: var(--consult-muted);
    max-width: 36rem;
    font-size: 1.05rem;
}

.consult-section {
    padding: 1rem 0 3.5rem;
}

.consult-narrow {
    max-width: 480px;
}

.consult-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.consult-doctor {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--consult-card);
    border: 1px solid rgba(61, 150, 98, 0.15);
    padding: 1.25rem;
}

.consult-doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(61, 150, 98, 0.15);
    color: var(--consult-green-deep);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.consult-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consult-doctor h2 {
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
}

.consult-specialty {
    color: var(--consult-muted);
    margin-bottom: 0.35rem;
}

.consult-meta {
    font-size: 0.9rem;
    color: var(--consult-green-deep);
    margin-bottom: 0.85rem;
}

.consult-meta .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-inline-end: 0.35rem;
}

.consult-cta,
.consult-form .btn-primary {
    background: var(--consult-green) !important;
    border-color: var(--consult-green) !important;
}

.consult-empty {
    background: var(--consult-card);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px dashed rgba(61, 150, 98, 0.35);
}

.consult-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--consult-green-deep);
    text-decoration: none;
}

.consult-form .form-control {
    border-radius: 0;
    min-height: 48px;
}

/* Room */
body.room-page {
    background: #0f1713;
    color: #eef5f0;
}

.room-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.room-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 0, 0, 0.45);
}

.room-role {
    display: block;
    font-size: 0.85rem;
    opacity: 0.75;
}

.room-timer {
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    font-weight: 700;
    color: #8fefb0;
}

.room-stage {
    position: relative;
    flex: 1;
    background: #15201a;
    min-height: 60vh;
}

.room-remote,
.room-remote video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 60vh;
}

.room-local {
    position: absolute;
    width: 140px;
    height: 180px;
    bottom: 1rem;
    inset-inline-end: 1rem;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    z-index: 2;
}

.room-local video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.room-status {
    text-align: center;
    padding-bottom: 1rem;
    opacity: 0.8;
}

.room-blocked {
    margin: auto;
    text-align: center;
    padding: 3rem 1rem;
}
