html,body,#root{min-height:100%}dialog::backdrop{background:#0f172a8c}dialog[open]{animation:.12s ease-out portal-dialog-in}@keyframes portal-dialog-in{0%{opacity:0;transform:translateY(.5rem)scale(.98)}}.portal-topbar{justify-content:space-between;align-items:center;gap:1rem;max-width:72rem;margin-inline:auto;padding:.75rem 1rem;display:flex}.portal-topbar-actions,.portal-topbar-nav{align-items:center;gap:.25rem;display:flex}.portal-topbar-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0}.portal-topbar-nav{flex-wrap:wrap;justify-content:flex-end}.history-table-scroll,.energy-chart-scroll{overflow-x:auto}.history-table{border-collapse:collapse;width:100%;min-width:68rem;font-size:.875rem}.history-table th,.history-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:.9rem 1rem}.history-table th{color:#475569;letter-spacing:.04em;text-transform:uppercase;background:#f8fafc;font-size:.75rem;font-weight:700}.history-table tbody tr:last-child td{border-bottom:0}.history-table tbody tr:hover{background:#f8fafc}.status-pill{white-space:nowrap;border-radius:9999px;align-items:center;padding:.3rem .65rem;font-size:.75rem;font-weight:700;display:inline-flex}.status-scheduled{color:#92400e;background:#fef3c7}.status-awaiting_user{color:#6d28d9;background:#ede9fe}.status-in_progress{color:#1d4ed8;background:#dbeafe}.status-completed{color:#047857;background:#d1fae5}.status-unsuccessful{color:#b91c1c;background:#fee2e2}.pagination-bar{color:#64748b;border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;font-size:.875rem;display:flex}.pagination-bar button,.sensor-presets button,.sensor-custom-range button{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:.65rem;padding:.55rem .8rem;font-size:.875rem;font-weight:700}.pagination-bar button:hover:not(:disabled),.sensor-presets button:hover,.sensor-presets button.active{color:#047857;background:#ecfdf5;border-color:#059669}.pagination-bar button:disabled{cursor:not-allowed;opacity:.45}.call-detail-grid{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1.25rem;display:grid}.call-detail-item dt{color:#64748b;letter-spacing:.04em;text-transform:uppercase;font-size:.75rem;font-weight:700}.call-detail-item dd{color:#0f172a;margin-top:.35rem;font-size:.95rem;font-weight:600}.transcript-list{background:#f8fafc;flex-direction:column;gap:.75rem;min-height:12rem;padding:1rem;display:flex}.transcript-row{display:flex}.transcript-user{justify-content:flex-end}.transcript-assistant{justify-content:flex-start}.transcript-bubble{border-radius:1rem;max-width:75%;padding:.75rem 1rem;box-shadow:0 1px 2px #0f172a14}.transcript-user .transcript-bubble{color:#fff;background:#059669;border-bottom-right-radius:.375rem}.transcript-assistant .transcript-bubble{color:#1e293b;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:.375rem}.transcript-role{letter-spacing:.05em;text-transform:uppercase;margin-bottom:.25rem;font-size:.68rem;font-weight:700}.transcript-user .transcript-role{color:#a7f3d0}.transcript-assistant .transcript-role{color:#047857}.transcript-bubble p{white-space:pre-wrap;font-size:.875rem;line-height:1.5rem}.transcript-empty{color:#64748b;text-align:center;margin:auto;font-size:.875rem}.sensor-presets{flex-wrap:wrap;gap:.5rem;display:flex}.sensor-custom-range{grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:.75rem;margin-top:1rem;display:grid}.sensor-custom-range label{color:#334155;margin-bottom:.35rem;font-size:.875rem;font-weight:700;display:block}.sensor-custom-range input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:.65rem;width:100%;padding:.6rem .75rem;font-size:.875rem}.sensor-custom-range button{color:#fff;background:#059669;border-color:#059669}.sensor-chart-stack{flex-direction:column;gap:1.25rem;margin-top:1.25rem;display:flex}.sensor-range-summary,.energy-chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;box-shadow:0 1px 2px #0f172a0f}.sensor-range-summary{color:#475569;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem;font-size:.875rem;display:flex}.sensor-range-summary strong{color:#0f172a}.energy-chart-card{padding:1.25rem}.energy-chart-legend{color:#475569;flex-wrap:wrap;gap:1rem;margin-top:.75rem;font-size:.75rem;font-weight:600;display:flex}.energy-chart-legend>span{align-items:center;gap:.35rem;display:inline-flex}.energy-chart-swatch{border-radius:9999px;width:.75rem;height:.2rem}.energy-chart{width:100%;min-width:44rem;margin-top:.75rem;display:block}.energy-chart-label{fill:#64748b;font-size:11px}@media (width>=40rem){.portal-topbar{padding-inline:1.5rem}}@media (width<=52rem){.portal-topbar{flex-direction:column;align-items:flex-start}.portal-topbar-actions,.portal-topbar-nav{width:100%}.portal-topbar-actions{justify-content:space-between}.portal-topbar-nav{flex-basis:100%;justify-content:flex-start}.sensor-custom-range{grid-template-columns:1fr}.sensor-range-summary{flex-direction:column;align-items:flex-start}.transcript-bubble{max-width:88%}}.survey-page{max-width:58rem;margin-inline:auto}.survey-header{margin-bottom:1.25rem}.survey-header>p{color:#047857;letter-spacing:.08em;text-transform:uppercase;font-size:.75rem;font-weight:800}.survey-header h1{color:#020617;letter-spacing:-.025em;margin-top:.35rem;font-size:1.75rem;font-weight:800}.survey-header>span{color:#64748b;margin-top:.35rem;font-size:.875rem;display:block}.survey-tabs{scrollbar-width:thin;gap:.5rem;padding:.25rem .1rem .75rem;display:flex;overflow-x:auto}.survey-tabs button{color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:9999px;flex:none;align-items:center;gap:.5rem;padding:.55rem .85rem .55rem .6rem;font-size:.78rem;font-weight:700;display:inline-flex}.survey-tabs button>span{color:#475569;background:#e2e8f0;border-radius:9999px;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;font-size:.7rem;display:inline-flex}.survey-tabs button.active{color:#065f46;background:#ecfdf5;border-color:#059669}.survey-tabs button.active>span,.survey-tabs button:not(:disabled)>span:first-child:where(:not(:empty)){color:#065f46}.survey-tabs button:disabled{cursor:not-allowed;opacity:.52}.survey-section-card,.survey-complete-card,.survey-error-card{background:#fff;border:1px solid #e2e8f0;border-radius:1.1rem;box-shadow:0 1px 3px #0f172a12}.survey-section-card{overflow:hidden}.survey-section-heading{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:1.25rem 1.5rem}.survey-section-heading>span{color:#047857;letter-spacing:.06em;text-transform:uppercase;font-size:.72rem;font-weight:800}.survey-section-heading h2{color:#0f172a;margin-top:.25rem;font-size:1.25rem;font-weight:800}.survey-section-heading p{color:#64748b;margin-top:.3rem;font-size:.8rem}.survey-questions{padding:0 1.5rem}.survey-question{border:0;border-bottom:1px solid #e2e8f0;margin:0;padding:1.5rem 0}.survey-question:last-child{border-bottom:0}.survey-question legend{color:#0f172a;width:100%;font-size:.95rem;font-weight:750;line-height:1.55}.survey-question legend>span{color:#059669}.survey-question legend em{color:#64748b;letter-spacing:.05em;text-transform:uppercase;margin-left:.5rem;font-size:.65rem;font-style:normal;font-weight:700}.survey-options{gap:.65rem;margin-top:1rem;display:grid}.survey-options label{color:#334155;cursor:pointer;border:1px solid #e2e8f0;border-radius:.75rem;align-items:flex-start;gap:.7rem;padding:.75rem .9rem;font-size:.875rem;line-height:1.45;transition:border-color .12s,background-color .12s;display:flex}.survey-options label:hover{background:#f0fdf4;border-color:#6ee7b7}.survey-options label:has(input:checked){color:#065f46;background:#ecfdf5;border-color:#10b981}.survey-options input{accent-color:#059669;width:1rem;height:1rem;margin-top:.12rem}.survey-text-answer{margin-top:1rem}.survey-answer-help,.survey-audio-limit{color:#64748b;font-size:.78rem;line-height:1.5}.survey-text-answer textarea{color:#0f172a;resize:vertical;border:1px solid #cbd5e1;border-radius:.75rem;width:100%;margin-top:.6rem;padding:.8rem .9rem;font-size:.875rem;line-height:1.55;display:block}.survey-text-answer textarea:focus{outline-offset:1px;border-color:#10b981;outline:2px solid #a7f3d0}.survey-or{color:#94a3b8;text-transform:uppercase;align-items:center;gap:.75rem;margin:1rem 0;font-size:.72rem;font-weight:700;display:flex}.survey-or:before,.survey-or:after{content:"";background:#e2e8f0;flex:1;height:1px}.survey-audio-recorder{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:.85rem;padding:1rem}.survey-audio-actions{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.survey-record-button,.survey-stop-button,.survey-delete-audio{border-radius:.65rem;align-items:center;gap:.5rem;padding:.6rem .8rem;font-size:.8rem;font-weight:750;display:inline-flex}.survey-record-button{color:#be123c;background:#fff1f2;border:1px solid #fecaca}.survey-stop-button{color:#fff;background:#dc2626;border:1px solid #ef4444}.survey-delete-audio{color:#b91c1c;background:0 0;border:0}.survey-record-button:disabled,.survey-delete-audio:disabled{cursor:not-allowed;opacity:.55}.survey-record-dot{background:#e11d48;border-radius:9999px;width:.65rem;height:.65rem}.survey-stop-icon{background:#fff;border-radius:.1rem;width:.65rem;height:.65rem}.survey-audio-player{width:min(100%,28rem);height:2.5rem;margin-top:.85rem;display:block}.survey-audio-limit{margin-top:.65rem}.survey-field-error,.survey-save-error{color:#b91c1c;font-size:.8rem;font-weight:650}.survey-field-error{margin-top:.65rem}.survey-save-error{background:#fef2f2;border:1px solid #fecaca;border-radius:.7rem;margin:0 1.5rem 1rem;padding:.75rem .9rem}.survey-navigation{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:space-between;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.survey-navigation button,.survey-complete-card a,.survey-error-card a{border-radius:.75rem;padding:.75rem 1.1rem;font-size:.875rem;font-weight:750}.survey-back-button{color:#475569;background:#fff;border:1px solid #cbd5e1}.survey-next-button,.survey-complete-card a,.survey-error-card a{color:#fff;background:#059669;border:1px solid #059669}.survey-navigation button:disabled{cursor:not-allowed;opacity:.5}.survey-complete-card,.survey-error-card{text-align:center;max-width:38rem;margin:3rem auto;padding:2.5rem}.survey-complete-icon{color:#047857;background:#d1fae5;border-radius:9999px;justify-content:center;align-items:center;width:3.5rem;height:3.5rem;font-size:1.5rem;font-weight:800;display:inline-flex}.survey-complete-card h1,.survey-error-card h1{color:#0f172a;margin-top:1rem;font-size:1.5rem;font-weight:800}.survey-complete-card p,.survey-error-card p{color:#64748b;margin:.6rem auto 1.5rem;font-size:.9rem;line-height:1.6}.survey-complete-card a,.survey-error-card a{display:inline-block}.survey-result-header{margin-top:1.25rem}.survey-result-groups{gap:1.25rem;display:grid}.survey-result-question h3{color:#0f172a;font-size:.95rem;font-weight:750;line-height:1.55}.survey-result-question h3>span{color:#059669}.survey-result-answer{margin-top:.9rem}.survey-result-answer>strong,.survey-result-text>div>span{color:#64748b;letter-spacing:.05em;text-transform:uppercase;margin-bottom:.45rem;font-size:.7rem;font-weight:800;display:block}.survey-result-options{gap:.5rem;list-style:none;display:grid}.survey-result-options li{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:.75rem;align-items:flex-start;gap:.65rem;padding:.7rem .85rem;font-size:.875rem;line-height:1.45;display:flex}.survey-result-options li>span:first-child{font-weight:900}.survey-result-text{gap:1rem;display:grid}.survey-result-text>p{color:#334155;white-space:pre-line;border-left:3px solid #a7f3d0;padding-left:.85rem;font-size:.875rem;line-height:1.65}.survey-result-empty{color:#64748b;font-size:.875rem;font-style:italic}@media (width<=40rem){.survey-section-heading,.survey-navigation,.survey-questions{padding-inline:1rem}.survey-navigation{flex-direction:column-reverse;align-items:stretch}.survey-navigation button{width:100%}}
