/* Pedra quick conversation: all page styles are scoped to .qc-page. */
.qc-page {
    --qc-bg: #f2f6fa;
    --qc-surface: #fff;
    --qc-text: #19324a;
    --qc-muted: #61768a;
    --qc-line: #dce5ed;
    --qc-accent: #087f8c;
    --qc-soft: #e5f5f3;
    color: var(--qc-text);
    background: var(--qc-bg);
    padding: var(--qc-header-space, 100px) 20px 40px;
    font-family: inherit;
}
[data-bs-theme="dark"] .qc-page,
[data-theme="dark"] .qc-page,
body.dark .qc-page,
html.dark .qc-page,
body.dark-mode .qc-page {
    --qc-bg: #101c28;
    --qc-surface: #172534;
    --qc-text: #e4edf5;
    --qc-muted: #a6b7c7;
    --qc-line: #304457;
    --qc-accent: #62d3cf;
    --qc-soft: #173e44;
    color-scheme: dark;
}
.qc-page *, .qc-page *::before, .qc-page *::after { box-sizing: border-box; }
.qc-container { max-width: 1400px; margin-inline: auto; min-width: 0; }
.qc-page section, .qc-page [id] { scroll-margin-top: var(--qc-header-space, 100px); }
.qc-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; border: 1px solid var(--qc-line); border-radius: 26px; background: linear-gradient(130deg, var(--qc-soft), var(--qc-surface)); padding: 32px 40px; margin-bottom: 24px; }
.qc-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.6; margin: 10px 0; color: var(--qc-text); }
.qc-hero p { max-width: 650px; color: var(--qc-muted); line-height: 1.95; margin: 0 0 22px; }
.qc-hero img { max-width: 100%; height: auto; object-fit: contain; }
.qc-kicker { display: inline-block; color: var(--qc-accent); font-size: .79rem; font-weight: 700; letter-spacing: .02em; }
.qc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-page .qc-primary, .qc-page .qc-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--qc-line); border-radius: 12px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.qc-page .qc-primary { color: #fff; background: #087f8c; border-color: #087f8c; }
.qc-page .qc-secondary { color: var(--qc-text); background: var(--qc-surface); }
.qc-page .qc-primary:hover { background: #076c78; }
.qc-card, .qc-guide > section { background: var(--qc-surface); border: 1px solid var(--qc-line); border-radius: 20px; padding: 22px; min-width: 0; margin-bottom: 22px; box-shadow: 0 10px 35px rgb(20 50 75 / 4%); }
.qc-room-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.qc-chat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qc-section-intro { padding: 0 0 16px; }
.qc-section-intro h2, .qc-card-title, .qc-guide .section-title .fs-2 { font-size: 1.22rem !important; line-height: 1.7; font-weight: 700; margin: 8px 0; color: var(--qc-text); }
.qc-section-intro .qc-rich-content, .qc-guide .description { font-size: .91rem; line-height: 1.95; }
.qc-rich-content > :last-child { margin-bottom: 0; }
.qc-waiting h3 { font-size: 1rem; margin: 10px 0; }
.qc-muted { color: var(--qc-muted); font-size: .85rem; line-height: 1.9; }
.qc-page .userlistbox { list-style: none; padding: 0; max-height: 500px; overflow: auto; scrollbar-width: thin; }
.qc-page .userlistbox li, .qc-page .list-group-item { color: var(--qc-text); background: var(--qc-surface); border-color: var(--qc-line); overflow-wrap: anywhere; }
.qc-page .userlistbox li { padding: 12px; border: 1px solid var(--qc-line); border-radius: 10px; margin-bottom: 8px; min-height: 48px; }
.qc-page #progress-container { width: 100%; position: relative; height: 26px; background: var(--qc-bg); border-radius: 8px; overflow: hidden; }
.qc-page #progress-bar { height: 100%; background: #087f8c; }
.qc-page #progress-text { position: absolute; inset: 0; display: grid; place-items: center; color: var(--qc-text); font-size: .8rem; font-weight: 700; }
/* Preserve the client's display/visibility rules from eCareZone.css. */
.qc-page #videoArea { width: 100%; max-width: 100%; margin-inline: 0; border-radius: 16px; background: #0a131d; padding: 10px; overflow: hidden; }
.qc-page .watermark { font-size: .65rem; color: #d1dde6; letter-spacing: .06em; pointer-events: none; }
.qc-page .video-box { position: relative; width: 100%; }
.qc-page #received_video { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 !important; border-radius: 12px; }
.qc-page #poseOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.qc-page #local_video { position: absolute; width: clamp(80px, 24%, 180px); max-height: 130px; top: 36px; left: 20px; bottom: auto; right: auto; border: 2px solid #ffffff80; border-radius: 10px; object-fit: contain; background: #0a131d; z-index: 2; }
.qc-page #videoArea .button-group { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 8px 0; transform: none; }
.qc-page #videoArea .button-group button, .qc-page .call-buttons button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-width: 44px; width: 44px; height: 44px; margin: 0; border: 1px solid #ffffff30; border-radius: 12px; background: #243649; color: #fff; font-size: 1rem; }
.qc-page #videoArea #hangup-button, .qc-page #HangUpVoice { background: #b72d45; }
.qc-page button:disabled { opacity: .45; cursor: not-allowed; }
.qc-page #angleBadgeContainer { z-index: 3; max-width: 65%; font-size: .75rem; line-height: 1.8; }
.qc-page #jointSelectionBox { background: var(--qc-surface); color: var(--qc-text); padding: 16px; border-radius: 12px; }
.qc-page #MotionJoint { width: 100% !important; min-width: 0; font-size: 16px; }
.qc-page #description { background: var(--qc-bg); color: var(--qc-text); border-color: var(--qc-line); font-size: .85rem !important; line-height: 1.9; }
.qc-page #audioArea { margin-inline: 0; width: 100%; }
.qc-page .phone-interface { width: 100%; max-width: 100%; border-radius: 16px; background: #102d3e; color: #edf8fb; padding: 24px 16px; }
.qc-page .call-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.qc-page .caller-info { text-align: center; overflow-wrap: anywhere; }
.qc-page .call-status { color: #bacfdc; }
.qc-page #messages, .qc-page .chatbox { height: clamp(220px, 38vh, 420px); max-height: none; width: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; overflow-wrap: anywhere; background: var(--qc-bg) !important; color: var(--qc-text); border: 1px solid var(--qc-line) !important; border-radius: 14px !important; padding: 16px !important; }
.qc-page .input-group { display: flex; flex-wrap: nowrap; gap: 8px; }
.qc-page .input-group > .form-control { flex: 1 1 0; width: 0; min-width: 0; }
.qc-page .form-control, .qc-page .form-select { background: var(--qc-surface); color: var(--qc-text); border-color: var(--qc-line); border-radius: 10px !important; font-size: 16px; min-height: 46px; }
.qc-page .form-control::placeholder { color: var(--qc-muted); opacity: 1; }
.qc-page .input-group .btn, .qc-page #reset-button, .qc-page #end-data-call-button { min-height: 46px; border-radius: 10px !important; font-size: .9rem; padding: 10px 16px; }
.qc-page #send, .qc-page #send-chat-button, .qc-page #send-file-button { background: #087f8c; color: #fff; border-color: #087f8c; }
.qc-page #received-files { margin-top: 18px; overflow-wrap: anywhere; }
.qc-page #received-files h5 { font-size: .87rem; color: var(--qc-muted); }
.qc-page img, .qc-page video, .qc-page canvas { max-width: 100%; }
.qc-page .qc-rich-content, .qc-page .description { overflow-wrap: anywhere; }
.qc-page .qc-rich-content table, .qc-page .description table { display: block; max-width: 100%; overflow-x: auto; }
.qc-page .qc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.qc-steps > div { background: var(--qc-surface); border: 1px solid var(--qc-line); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.qc-steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--qc-soft); color: var(--qc-accent); font-weight: 700; }
.qc-guide .container, .qc-guide .container-fluid { max-width: 100%; padding: 0; }
.qc-guide .section-title { text-align: start; padding: 0; }
.qc-guide .section-title h2 { color: var(--qc-accent); font-size: .85rem; letter-spacing: 0; }
.qc-guide .section-title h2::after { display: none; }
.qc-guide .icon-boxes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 !important; }
.qc-guide .icon-box { margin: 0; border: 1px solid var(--qc-line); border-radius: 14px; padding: 20px; }
.qc-guide .icon-box .icon { color: var(--qc-accent); font-size: 1.4rem; margin-bottom: 12px; float: none; }
.qc-guide .icon-box .title { font-size: 1.05rem; margin: 0 0 12px; }
.qc-guide .icon-box .description { margin: 0; }
.qc-guide a { color: var(--qc-accent); }
.qc-status { color: var(--qc-text); background: var(--qc-soft); border-radius: 10px; padding: 12px; margin: 12px 0; }
.qc-status:empty { display: none; }
.qc-page :is(button, a, input, select):focus-visible { outline: 3px solid var(--qc-accent); outline-offset: 3px; }
.qc-swal-popup { direction: rtl; border-radius: 20px; width: min(460px, calc(100vw - 24px)); }
.qc-swal-popup .swal2-html-container { text-align: start; margin-inline: 24px; }
.qc-swal-popup .swal2-input { display: block; box-sizing: border-box; width: 100%; margin: 8px 0 18px; font-size: 16px; }
.qc-swal-label { font-size: .9rem; }
[data-bs-theme="dark"] .qc-swal-popup, [data-theme="dark"] .qc-swal-popup,
body.dark .qc-swal-popup, html.dark .qc-swal-popup, body.dark-mode .qc-swal-popup { background: #172534; color: #e4edf5; color-scheme: dark; }
@media (max-width: 991.98px) {
    .qc-room-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 14px; }
    .qc-card { padding: 16px; }
    .qc-hero { padding: 26px; grid-template-columns: minmax(0, 1fr) 200px; }
    .qc-guide .icon-boxes { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .qc-page { padding-inline: 10px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .qc-hero { display: block; padding: 22px 18px; border-radius: 18px; }
    .qc-hero img { display: none; }
    .qc-hero p { font-size: .9rem; }
    .qc-actions { display: grid; grid-template-columns: 1fr; }
    .qc-room-grid, .qc-chat-grid, .qc-page .qc-steps { grid-template-columns: 1fr; gap: 0; }
    .qc-steps > div { margin-bottom: 8px; padding: 12px 16px; }
    .qc-card { border-radius: 16px; padding: 16px 12px; margin-bottom: 16px; }
    .qc-page .userlistbox { max-height: 240px; }
    .qc-page #videoArea .button-group { gap: 8px; }
    .qc-page #videoArea .button-group button { flex-basis: 44px; }
    .qc-page #local_video { width: 25%; max-height: 95px; left: 14px; top: 32px; }
    .qc-page .file-sharing .input-group { flex-wrap: wrap; }
    .qc-page #file-input { flex: 1 1 100%; width: 100%; }
    .qc-page #send-file-button { width: 100%; }
    .qc-page #messages, .qc-page .chatbox { height: 300px; height: clamp(180px, 40dvh, 340px); }
    .qc-page .input-group .btn { padding-inline: 14px; }
    .qc-guide > section { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .qc-page *, .qc-page *::before, .qc-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.pedra-public .qc-page .icon-box .title,
.pedra-public .qc-page .icon-box .title a,
.pedra-public .qc-page .icon-box .description {
    font-family: iranyekan, Tahoma, sans-serif;
}