/* Shared support dialog: one alignment grid across customer and staff dashboards. */
dialog.support-chat{width:min(600px,calc(100vw - 32px));height:auto;max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #bed3ee;border-radius:16px;background:#fff;color:#153251;box-shadow:0 24px 80px #00163255;font:13px/1.6 Inter,Arial,sans-serif;overflow:hidden;color-scheme:light}
dialog.support-chat[open]{display:grid;grid-template-rows:auto auto minmax(80px,1fr) auto auto auto}
dialog.support-chat:not([open]){display:none}
.support-chat::backdrop{background:#061d4899;backdrop-filter:blur(5px)}
.support-chat *{box-sizing:border-box}
.support-chat button,.support-chat input{font:inherit}
.support-chat button{cursor:pointer}
.support-chat .sc-header{display:grid;grid-template-columns:46px minmax(0,1fr) 32px;align-items:center;gap:13px;padding:21px 22px;background:linear-gradient(115deg,#081e3e,#0c4697);color:white}
.support-chat .sc-brand{display:grid;place-items:center;width:46px;height:48px;background:#ffffff09;border:1px solid #8ed7ff30;border-radius:12px}
.support-chat .sc-brand img{width:30px;height:32px;object-fit:contain}
.support-chat .sc-eyebrow{display:block;font-size:8px;font-weight:700;letter-spacing:1.6px;color:#6adfff;margin-bottom:5px}
.support-chat .sc-header h2{font-size:22px;font-weight:650;letter-spacing:-.6px;line-height:1.2;color:white;margin:0}
.support-chat .sc-header p{font-size:11px;color:#bfd4f0;margin:6px 0 0;line-height:1.5}
.support-chat .sc-close{display:grid;place-items:center;align-self:start;width:32px;height:32px;padding:0;border:1px solid #badfff30;border-radius:8px;background:#ffffff09;color:#dfedff;font-size:23px;line-height:1}
.support-chat .sc-close:hover{background:#ffffff20}
.support-chat .sc-context{display:flex;align-items:center;gap:8px;padding:10px 22px;background:#f1f6fc;border-bottom:1px solid #e1eaf5;color:#46688d;font-size:10px;font-weight:550;line-height:1.5}
.support-chat .sc-context>span:last-child{margin-left:auto;color:#8194ad;font-size:9px;font-weight:400;text-align:right}
.support-chat .sc-status-dot{width:5px;height:5px;border-radius:50%;background:#16a17f;box-shadow:0 0 0 3px #16a17f12;flex-shrink:0}
.support-chat .sc-log{height:clamp(150px,25dvh,220px);min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 22px;background:#f7faff;scrollbar-width:thin;scrollbar-color:#c2d4e9 transparent}
.support-chat .sc-message{width:fit-content;max-width:94%;padding:12px 14px;margin:0 0 13px;border:1px solid #dfe9f5;border-radius:11px 11px 11px 3px;background:#fff;overflow-wrap:anywhere;box-shadow:0 2px 7px #173a6003;animation:sc-message-in .18s ease-out}
.support-chat .sc-message:last-child{margin-bottom:0}
.support-chat .sc-author{display:block;font-size:9px;line-height:1.4;font-weight:650;color:#406a99;margin-bottom:5px}
.support-chat .sc-message p{font-size:12px;line-height:1.8;color:#48617e;margin:0;white-space:pre-wrap}
.support-chat .sc-message-user{margin-left:auto;background:#0d50ad;border-color:#0d50ad;border-radius:11px 11px 3px 11px}
.support-chat .sc-message-user .sc-author{color:#bbd7ff}
.support-chat .sc-message-user p{color:#fff}
.support-chat .sc-open-page{display:inline-flex;align-items:center;font-size:10px;font-weight:600;line-height:1.5;text-decoration:none;padding:6px 9px;margin-top:10px;border:1px solid #c9dcf4;border-radius:6px;background:#f0f6ff;color:#205cae}
.support-chat .sc-open-page:hover{background:#e4efff}
.support-chat .sc-topics{background:#fff;border-block:1px solid #e1eaf5;padding:0 22px}
.support-chat .sc-topics summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;list-style:none;cursor:pointer;font-size:11px;line-height:1.5;font-weight:600;color:#365d88}
.support-chat .sc-topics summary::-webkit-details-marker{display:none}
.support-chat .sc-topic-hint{display:flex;align-items:center;gap:10px;font-size:9px;font-weight:400;color:#8194ad}
.support-chat .sc-topic-hint>span{font-size:17px;line-height:1;transition:transform .2s}
.support-chat .sc-topics[open] .sc-topic-hint>span{transform:rotate(180deg)}
.support-chat #support-chat-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:112px;overflow-y:auto;overscroll-behavior:contain;padding:1px 2px 12px;scrollbar-width:thin}
.support-chat #support-chat-topics button{display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:32px;padding:7px 9px;background:#f7faff;border:1px solid #dbe7f5;border-radius:7px;color:#46688e;font-size:10px;line-height:1.5;text-align:left;white-space:normal}
.support-chat #support-chat-topics button:hover{background:#edf4ff;border-color:#9bbce9;color:#1956a5}
.support-chat .sc-form{display:block;margin:0;padding:15px 22px 13px;background:#fff}
.support-chat .sc-form>label{display:block;font-size:10px;font-weight:600;color:#486a90;line-height:1.5;margin:0 0 7px}
.support-chat .sc-input-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:8px;min-height:46px;padding:5px 6px 5px 12px;border:1px solid #c3d6ed;border-radius:9px;background:#fafdff;box-shadow:0 1px 2px #193e6c03}
.support-chat .sc-input-row:focus-within{border-color:#3983de;box-shadow:0 0 0 3px #2481ed12}
.support-chat #support-chat-input{display:block;width:100%;height:34px;min-width:0;margin:0;padding:6px 0;border:0!important;border-radius:0;outline:none!important;box-shadow:none!important;background:transparent;color:#1d3e65;font:12px/1.5 Inter,Arial,sans-serif}
.support-chat #support-chat-input::placeholder{color:#91a3ba}
.support-chat .sc-input-row>button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #0a5bce;border-radius:7px;background:linear-gradient(135deg,#0c448f,#0c66e0);color:white;box-shadow:0 2px 4px #1658ad1a}
.support-chat .sc-input-row>button:hover{background:#075fff}
.support-chat .sc-input-row svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.support-chat .sc-form>p{font-size:9px;line-height:1.6;color:#8a9cb2;margin:7px 0 0}
.support-chat .sc-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 22px;background:#f3f7fc;border-top:1px solid #e1eaf5}
.support-chat .sc-support-phone{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#2c5e9e}
.support-chat .sc-support-phone>svg{width:32px;height:32px;padding:7px;border:1px solid #d7e5f7;border-radius:8px;background:#fff;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.support-chat .sc-support-phone small{display:block;font-size:9px;line-height:1.4;color:#8093ad;font-weight:450;margin-bottom:3px}
.support-chat .sc-support-phone strong{display:block;font-size:12px;line-height:1.4;font-weight:650;letter-spacing:.1px;color:#2c5e9e}
.support-chat .sc-support-phone:hover strong{text-decoration:underline;text-underline-offset:3px}
.support-chat .sc-footer>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:6px 11px;border:1px solid #cddcf0;border-radius:7px;background:#fff;color:#4c6e96;font-size:10px;font-weight:550;line-height:1.5;white-space:nowrap}
.support-chat .sc-footer>button>span{font-size:15px;line-height:1}
.support-chat .sc-footer>button:hover{background:#eaf2fd;color:#1e5caa;border-color:#a5c1e5}
.support-chat :focus-visible{outline:2px solid #3685e7;outline-offset:3px}
@keyframes sc-message-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){dialog.support-chat{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.support-chat .sc-header{grid-template-columns:39px minmax(0,1fr) 29px;gap:10px;padding:18px 16px}.support-chat .sc-brand{width:39px;height:42px;border-radius:10px}.support-chat .sc-brand img{width:27px;height:29px}.support-chat .sc-eyebrow{font-size:7px;letter-spacing:1.1px}.support-chat .sc-header h2{font-size:19px}.support-chat .sc-header p{font-size:10px;margin-top:5px}.support-chat .sc-close{width:29px;height:29px;font-size:21px}.support-chat .sc-context{padding:9px 16px;font-size:9px}.support-chat .sc-context>span:last-child{font-size:8px}.support-chat .sc-log{padding:17px 16px;height:clamp(150px,29dvh,240px)}.support-chat .sc-message{max-width:96%;padding:11px 12px}.support-chat .sc-topics{padding-inline:16px}.support-chat #support-chat-topics{grid-template-columns:repeat(2,minmax(0,1fr));max-height:112px}.support-chat .sc-form{padding:13px 16px 12px}.support-chat #support-chat-input{font-size:16px}.support-chat .sc-form>p{font-size:8px}.support-chat .sc-footer{padding:12px 16px}.support-chat .sc-support-phone{gap:8px}.support-chat .sc-support-phone strong{font-size:11px}.support-chat .sc-footer>button{font-size:9px;padding-inline:9px}}
@media(max-height:560px){dialog.support-chat{max-height:calc(100dvh - 16px)}.support-chat .sc-header{padding-block:12px}.support-chat .sc-header p{display:none}.support-chat .sc-log{height:100px}.support-chat #support-chat-topics{max-height:72px}.support-chat .sc-topics summary{padding-block:8px}.support-chat .sc-form{padding-block:9px}.support-chat .sc-footer{padding-block:9px}}
@media(prefers-reduced-motion:reduce){.support-chat .sc-message{animation:none}.support-chat .sc-topic-hint>span{transition:none}}