/* =========================================================
   Rogue — briefing.css
   Conversa de diagnóstico inspirada na experiência WhatsApp
   ========================================================= */

.briefing-page { height: 100dvh; overflow: hidden; background: #0b141b; color: #d9e0e3; }
.briefing { height: 100dvh; display: grid; grid-template-rows: 55px minmax(0, 1fr) auto; background: #0b141b; }
.briefing__bar { display: flex; align-items: center; gap: 10px; padding: 0 18px 0 9px; background: #0b141b; color: #f1f5f5; box-shadow: 0 1px 1px rgba(0, 0, 0, .2); z-index: 2; }
.briefing__back { display: grid; width: 30px; height: 30px; place-items: center; color: inherit; }
.briefing__back svg { width: 24px; fill: currentColor; }
.briefing__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.briefing__identity { display: grid; gap: 1px; min-width: 0; }
.briefing__name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.briefing__verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #00a884; font-size: 10px; vertical-align: 1px; }
.briefing__status { font-size: 12px; color: #aebac1; }
.briefing__actions { display: flex; gap: 23px; margin-left: auto; color: #d3dde0; }
.briefing__actions svg { width: 20px; height: 20px; fill: currentColor; }
.briefing__chat { overflow-y: auto; padding: 30px max(20px, calc((100vw - 760px) / 2)); background: #0b141b url('/assets/img/briefing-whatsapp-background.png') repeat-x center top; background-size: auto; scrollbar-color: #3d4a51 transparent; }
.briefing__notice { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 8px 12px; border-radius: 8px; color: #53676b; background: #d5f4f0; font-size: 12px; text-align: center; }
.briefing__notice svg { width: 18px; flex: 0 0 auto; fill: currentColor; }
.briefing__messages { display: grid; gap: 10px; max-width: 620px; margin: 0 auto; padding-bottom: 20px; }
.briefing__message { position: relative; width: fit-content; max-width: min(88%, 510px); padding: 7px 8px 6px 10px; border-radius: 5px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); animation: briefing-in .18s cubic-bezier(.2, .8, .2, 1) both; }
.briefing__message--bot { justify-self: start; color: #c7cccf; background: #202c33; border-top-left-radius: 0; }
.briefing__message--bot::before { content: ''; position: absolute; top: 0; left: -9px; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent #202c33 transparent transparent; }
.briefing__message--user { justify-self: end; color: #e5f1ed; background: #114d34; border-top-right-radius: 0; }
.briefing__message--user::after { content: '✓✓'; margin-left: 8px; color: #55c9e8; font-size: 11px; letter-spacing: -3px; }
.briefing__choices { display: grid; gap: 6px; justify-self: start; width: fit-content; max-width: min(100%, 390px); margin: 2px 0 10px; transition: opacity .2s ease, transform .2s ease; }
.briefing__choice { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 8px 12px 8px 10px; border: 1px solid #2a3942; border-radius: 8px; color: #d9e0e3; background: #202c33; font: inherit; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.briefing__choice::before { content: ''; width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid #8696a0; border-radius: 50%; box-shadow: inset 0 0 0 3px #202c33; }
.briefing__choice:hover, .briefing__choice:focus-visible { color: #ecfdfb; background: #25363d; border-color: #00a884; outline: none; }
.briefing__choice:hover::before, .briefing__choice:focus-visible::before { border-color: #00a884; box-shadow: inset 0 0 0 3px #25363d; }
.briefing__choice:hover { transform: translateX(2px); }
.briefing__choice.is-selected { color: #e6fffb; background: #174d4a; border-color: #00a884; }
.briefing__choice.is-selected::before { border-color: #00a884; background: #00a884; box-shadow: inset 0 0 0 3px #174d4a; }
.briefing__choices-continue { justify-self: end; margin-top: 4px; padding: 8px 16px; border: 0; border-radius: 8px; color: #001f1c; background: #00a884; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.briefing__choices-continue:hover { background: #06cf9c; transform: translateY(-1px); }
.briefing__choices-continue:disabled { color: #6f8188; background: #26373f; cursor: not-allowed; transform: none; }
.briefing__choices.is-answered { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.briefing__typing { display: flex; gap: 4px; align-items: center; width: fit-content; padding: 12px 14px; border-radius: 0 5px 5px; background: #202c33; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.briefing__typing span { width: 5px; height: 5px; border-radius: 50%; background: #a7b1b5; animation: briefing-dot 1.5s infinite ease-in-out; }
.briefing__typing span:nth-child(2) { animation-delay: .12s; }
.briefing__typing span:nth-child(3) { animation-delay: .24s; }
.briefing__composer { display: flex; gap: 8px; align-items: center; padding: 8px max(16px, calc((100vw - 760px) / 2)); background: #111b21; }
.briefing__composer input { min-width: 0; flex: 1; height: 44px; padding: 0 18px; border: 0; border-radius: 8px; outline: none; color: #e9edef; background: #2a3942; font: inherit; font-size: 14px; }
.briefing__composer input::placeholder { color: #8696a0; }
.briefing__composer input:focus { box-shadow: 0 0 0 1px #00a884; }
.briefing__composer input:disabled { color: #7b8a92; background: #202c33; cursor: not-allowed; }
.briefing__composer button { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; color: #8696a0; background: transparent; cursor: pointer; transition: transform .25s ease, color .25s ease; }
.briefing__composer button:hover { transform: scale(1.05); color: var(--primary); }
.briefing__composer button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.briefing__composer svg { width: 20px; fill: currentColor; }
.briefing__calendar { justify-self: stretch; margin: 10px 0; min-height: 410px; overflow: hidden; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .28); }
.briefing__calendar iframe { display: block; width: 100%; min-height: 410px; border: 0; }
.briefing__error { color: #ffb4ab; background: #4b2020; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes briefing-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes briefing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (max-width: 767px) { .briefing { grid-template-rows: 55px minmax(0, 1fr) auto; } .briefing__actions { gap: 15px; } .briefing__chat { padding: 30px 16px 22px; background-position: center top; } .briefing__message { max-width: 91%; } .briefing__choices { max-width: 88%; } .briefing__choice { font-size: 13px; } .briefing__composer { padding: 9px 12px; } .briefing__composer input { font-size: 16px; } .briefing__calendar { margin-bottom: 3px; min-height: 510px; } .briefing__calendar iframe { min-height: 510px; } }
@media (prefers-reduced-motion: reduce) { .briefing__message, .briefing__typing span { animation: none; } .briefing__choice, .briefing__composer button { transition: none; } }
