﻿[hidden] { display: none !important; }
body.contact-open { overflow: hidden; }

.contact-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.contact-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(1, 5, 16, .82); backdrop-filter: blur(16px); cursor: default; }
.contact-dialog { position: relative; width: min(1040px, 100%); max-height: min(900px, calc(100dvh - 40px)); overflow: auto; border: 1px solid rgba(140, 191, 255, .22); border-radius: 30px; background: linear-gradient(145deg, rgba(8, 20, 43, .99), rgba(4, 10, 26, .99)); box-shadow: 0 42px 120px rgba(0, 0, 0, .62), 0 0 90px rgba(49, 110, 255, .13); scrollbar-width: thin; scrollbar-color: rgba(104, 143, 198, .35) transparent; }
.contact-dialog::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #43dfff, #3978ff 48%, #8d64ff); }
.contact-dialog-header { position: relative; display: grid; grid-template-columns: 58px 1fr 46px; gap: 18px; align-items: center; padding: 30px 34px 26px; border-bottom: 1px solid rgba(143, 182, 229, .13); }
.contact-dialog-brand { position: relative; width: 58px; height: 58px; display: grid; place-items: center; filter: drop-shadow(0 15px 24px rgba(48, 114, 255, .34)); }
.contact-dialog-brand img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.contact-dialog-header h2 { margin: 3px 0 6px; font-size: clamp(25px, 3.1vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.contact-dialog-header > div:nth-child(2) > p:last-child { color: #8295af; font-size: 13px; }
.contact-kicker { color: #6fdfff; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.contact-close { align-self: start; width: 44px; height: 44px; border: 1px solid rgba(151, 186, 228, .15); border-radius: 14px; color: #aebdd0; background: rgba(255,255,255,.035); font-size: 27px; line-height: 1; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.contact-close:hover { color: #fff; border-color: rgba(89, 214, 255, .44); background: rgba(65, 130, 255, .1); }

.contact-form { padding: 30px 34px 32px; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-field { display: grid; gap: 8px; }
.contact-field > span { color: #b9c8da; font-size: 11px; font-weight: 700; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid rgba(147, 183, 228, .18); border-radius: 14px; outline: none; color: #f7fbff; background: rgba(255,255,255,.035); font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-field input { height: 52px; padding: 0 16px; }
.contact-field textarea { min-height: 138px; resize: vertical; padding: 15px 16px; line-height: 1.6; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #536985; }
.contact-field input:focus, .contact-field textarea:focus { border-color: rgba(83, 218, 255, .6); background: rgba(28, 80, 156, .09); box-shadow: 0 0 0 4px rgba(61, 149, 255, .09); }
.contact-field-wide { grid-column: 1 / -1; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.contact-upload-card, .contact-audio-card { min-height: 92px; display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid rgba(144, 183, 230, .15); border-radius: 17px; background: rgba(255,255,255,.025); }
.contact-upload-card strong, .contact-audio-card strong { display: block; margin-bottom: 4px; font-size: 12px; }
.contact-upload-card small, .contact-audio-card small { display: block; color: #697f9a; font-size: 9px; line-height: 1.45; }
.contact-tool-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #65e3ff; background: rgba(60, 166, 255, .1); font-size: 23px; }
.contact-mic-icon { color: #a987ff; background: rgba(127, 88, 255, .12); font-size: 12px; }
.contact-mic-icon::after { content: ""; position: absolute; }
.contact-secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(141, 182, 229, .2); border-radius: 11px; color: #d6e1ee; background: rgba(255,255,255,.04); font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.contact-secondary-button:hover { border-color: rgba(79, 219, 255, .46); color: #fff; }
.contact-audio-card.recording { border-color: rgba(255, 99, 123, .45); background: rgba(255, 70, 104, .045); }
.contact-audio-card.recording .contact-mic-icon { color: #ff7188; background: rgba(255, 83, 111, .12); animation: record-pulse 1.1s ease-in-out infinite; }
.contact-audio-card.recording .contact-secondary-button { border-color: rgba(255, 100, 126, .32); color: #ff9aaa; }
@keyframes record-pulse { 50% { transform: scale(.82); box-shadow: 0 0 24px rgba(255, 78, 110, .38); } }

.contact-file-list { display: grid; gap: 8px; margin-top: 12px; }
.contact-file-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; min-height: 50px; padding: 8px 10px; border: 1px solid rgba(138, 178, 225, .12); border-radius: 13px; background: rgba(255,255,255,.025); }
.contact-file-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #62dfff; background: rgba(60, 164, 255, .09); font-size: 9px; font-weight: 800; }
.contact-file-item strong { display: block; overflow: hidden; color: #c8d6e6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contact-file-item small { display: block; margin-top: 2px; color: #607791; font-size: 8.5px; }
.contact-file-item button, .contact-audio-preview button, .contact-summary-linked button { border: 0; color: #ff8ba0; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.contact-audio-preview { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 12px; padding: 10px 14px; border: 1px solid rgba(135, 177, 225, .14); border-radius: 14px; background: rgba(255,255,255,.025); }
.contact-audio-preview audio { width: 100%; height: 36px; }

.contact-summary-linked { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; margin-top: 16px; padding: 13px; border: 1px solid rgba(89, 220, 255, .2); border-radius: 15px; background: linear-gradient(110deg, rgba(47, 155, 255, .09), rgba(121, 84, 244, .065)); }
.contact-summary-linked > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #42d5ff, #7259ef); }
.contact-summary-linked strong, .contact-summary-linked small { display: block; }
.contact-summary-linked strong { font-size: 11px; }
.contact-summary-linked small { margin-top: 3px; color: #71869f; font-size: 8.5px; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: #8397b0; font-size: 10px; line-height: 1.5; cursor: pointer; }
.contact-consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: #4b96ff; }
.contact-form-error { margin-top: 14px; padding: 11px 13px; border: 1px solid rgba(255, 102, 128, .23); border-radius: 12px; color: #ffafbc; background: rgba(255, 70, 104, .065); font-size: 10px; }
.contact-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(143, 180, 226, .12); }
.contact-form-footer > p { display: flex; align-items: center; gap: 8px; color: #6d829d; font-size: 9px; }
.contact-form-footer > p span { width: 6px; height: 6px; border-radius: 50%; background: #54f2c3; box-shadow: 0 0 10px #54f2c3; }
.contact-form-footer .button { min-width: 245px; }
.contact-form-footer .button[disabled] { opacity: .62; cursor: wait; }

.contact-success { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 34px; text-align: center; }
.contact-dialog.contact-complete { width: min(680px, 100%); overflow: hidden; }
.contact-dialog.contact-complete .contact-success { min-height: min(540px, calc(100dvh - 48px)); }
.contact-success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(82, 239, 190, .3); border-radius: 50%; color: #62f1c3; background: rgba(63, 213, 168, .08); box-shadow: 0 0 45px rgba(62, 219, 175, .16); font-size: 30px; }
.contact-success h2 { margin: 10px 0 12px; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.05em; }
.contact-success > p:not(.contact-kicker) { max-width: 560px; color: #8598b0; font-size: 13px; }
.contact-protocol { width: min(480px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 3px 18px; align-items: center; margin: 30px 0 24px; padding: 18px 20px; border: 1px solid rgba(87, 217, 255, .22); border-radius: 17px; background: rgba(48, 139, 255, .07); text-align: left; }
.contact-protocol span { grid-column: 1; color: #6e84a0; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.contact-protocol strong { grid-column: 1; color: #75ddff; font-size: 18px; letter-spacing: .04em; }
.contact-protocol button { grid-column: 2; grid-row: 1 / 3; min-height: 38px; padding: 0 14px; border: 1px solid rgba(132, 179, 233, .18); border-radius: 10px; color: #d7e4f2; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 700; cursor: pointer; }

.assistant-launcher { position: fixed; z-index: 180; right: 22px; bottom: 22px; min-width: 208px; height: 62px; display: grid; grid-template-columns: 42px 1fr 7px; gap: 10px; align-items: center; padding: 0 15px 0 10px; border: 1px solid rgba(117, 207, 255, .32); border-radius: 19px; color: #fff; background: linear-gradient(120deg, rgba(20, 67, 146, .97), rgba(77, 50, 182, .97)); box-shadow: 0 22px 60px rgba(0, 0, 0, .45), 0 0 45px rgba(58, 129, 255, .25); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.assistant-launcher:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 58px rgba(66, 155, 255, .33); }
.assistant-launcher-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #45d9ff, #7959ef); box-shadow: inset 0 1px rgba(255,255,255,.28); font-size: 18px; }
.assistant-launcher-copy { display: grid; text-align: left; line-height: 1.25; }
.assistant-launcher-copy strong { font-size: 11px; }
.assistant-launcher-copy small { color: #abc9ef; font-size: 8.5px; }
.assistant-launcher > i { width: 7px; height: 7px; border-radius: 50%; background: #55efbd; box-shadow: 0 0 12px #55efbd; animation: blink 1.5s ease-in-out infinite; }

.assistant-panel { position: fixed; z-index: 190; right: 22px; bottom: 96px; width: min(420px, calc(100vw - 30px)); height: min(720px, calc(100dvh - 125px)); overflow: hidden; border: 1px solid rgba(137, 186, 242, .22); border-radius: 26px; color: #eef7ff; background: rgba(5, 13, 31, .985); box-shadow: 0 35px 100px rgba(0,0,0,.6), 0 0 80px rgba(55, 111, 255, .16); backdrop-filter: blur(20px); }
.assistant-header { height: 78px; display: grid; grid-template-columns: 46px 1fr 40px; gap: 12px; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(140, 181, 228, .12); }
.assistant-avatar { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #44d9ff, #7455ed); box-shadow: 0 12px 28px rgba(54, 122, 255, .28); }
.assistant-avatar i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid #071126; border-radius: 50%; background: #50edb9; }
.assistant-header strong, .assistant-header small { display: block; }
.assistant-header strong { font-size: 13px; }
.assistant-header small { margin-top: 3px; color: #7188a4; font-size: 8.5px; }
.assistant-header small span { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #54eabd; }
.assistant-header button { width: 38px; height: 38px; border: 1px solid rgba(145, 181, 224, .13); border-radius: 12px; color: #91a6bf; background: rgba(255,255,255,.03); font-size: 24px; cursor: pointer; }
.assistant-intro { min-height: 62px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; margin: 12px 12px 0; padding: 10px 12px; border: 1px solid rgba(78, 200, 255, .12); border-radius: 15px; background: linear-gradient(110deg, rgba(50, 150, 255, .085), rgba(119, 77, 235, .06)); }
.assistant-intro > span { color: #63ddff; }
.assistant-intro strong, .assistant-intro small { display: block; }
.assistant-intro strong { font-size: 10px; }
.assistant-intro small { margin-top: 2px; color: #6e839e; font-size: 8px; }
.assistant-messages { height: calc(100% - 278px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 20px; scrollbar-width: thin; scrollbar-color: rgba(117, 157, 209, .28) transparent; }
.assistant-message { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.assistant-message > span { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #3abfef, #6653dc); font-size: 9px; font-weight: 800; }
.assistant-message p { padding: 11px 13px; border-radius: 15px 15px 15px 4px; color: #b8c8da; background: rgba(255,255,255,.05); font-size: 11px; line-height: 1.55; }
.assistant-message-user { align-self: flex-end; flex-direction: row-reverse; }
.assistant-message-user > span { background: linear-gradient(135deg, #427fff, #845deb); }
.assistant-message-user p { border-radius: 15px 15px 4px 15px; color: #fff; background: linear-gradient(135deg, rgba(58, 126, 255, .9), rgba(118, 77, 230, .9)); }
.assistant-typing { width: 60px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: -54px 0 20px 50px; border-radius: 13px 13px 13px 4px; background: rgba(255,255,255,.05); }
.assistant-typing span { width: 4px; height: 4px; border-radius: 50%; background: #79bde3; animation: typing-dot 1.1s ease-in-out infinite; }
.assistant-typing span:nth-child(2) { animation-delay: .15s; }
.assistant-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 50% { transform: translateY(-4px); opacity: .35; } }
.assistant-actions { height: 36px; display: flex; justify-content: flex-end; align-items: center; padding: 0 14px; }
.assistant-actions button { border: 0; color: #71dfff; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.assistant-actions button[disabled] { color: #42566f; cursor: not-allowed; }
.assistant-compose { min-height: 58px; display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: end; margin: 0 12px; padding: 7px 7px 7px 13px; border: 1px solid rgba(96, 202, 255, .24); border-radius: 17px; background: rgba(255,255,255,.025); box-shadow: 0 0 0 3px rgba(42, 129, 255, .035); }
.assistant-compose label { position: absolute; left: -10000px; }
.assistant-compose textarea { max-height: 82px; resize: none; overflow-y: auto; border: 0; outline: 0; color: #eef7ff; background: transparent; font: inherit; font-size: 11px; line-height: 1.45; }
.assistant-compose textarea::placeholder { color: #526881; }
.assistant-compose button { width: 42px; height: 42px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3c9fff, #7758ed); font-size: 17px; cursor: pointer; box-shadow: 0 10px 24px rgba(53, 118, 255, .28); }
.assistant-compose button[disabled] { opacity: .55; cursor: wait; }
.assistant-privacy { height: 26px; display: grid; place-items: center; color: #425973; font-size: 7.5px; }

.assistant-summary { position: absolute; z-index: 2; inset: 90px 12px 98px; overflow-y: auto; padding: 14px; border: 1px solid rgba(88, 215, 255, .2); border-radius: 18px; background: rgba(6, 17, 39, .985); box-shadow: 0 20px 55px rgba(0,0,0,.45); }
.assistant-summary-heading { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(139, 180, 226, .12); }
.assistant-summary-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #5af0be; background: rgba(71, 220, 173, .09); }
.assistant-summary-heading strong, .assistant-summary-heading small { display: block; }
.assistant-summary-heading strong { font-size: 11px; }
.assistant-summary-heading small { margin-top: 3px; color: #70849e; font-size: 8px; }
#assistant-summary-content { display: grid; gap: 10px; padding: 12px 0; }
.assistant-summary-row { padding: 10px 11px; border-radius: 12px; background: rgba(255,255,255,.03); }
.assistant-summary-row span { display: block; margin-bottom: 4px; color: #5edcff; font-size: 7.5px; font-weight: 800; letter-spacing: .12em; }
.assistant-summary-row p, .assistant-summary-row li { color: #aebfd2; font-size: 9.5px; line-height: 1.55; }
.assistant-summary-row ul { display: grid; gap: 4px; padding-left: 15px; }
.assistant-use-summary { width: 100%; min-height: 44px; border: 1px solid rgba(106, 202, 255, .26); border-radius: 13px; color: #fff; background: linear-gradient(135deg, #347fff, #7658ed); font-size: 10px; font-weight: 800; cursor: pointer; }

@media (max-width: 820px) {
  .contact-modal { padding: 0; align-items: end; }
  .contact-dialog { width: 100%; max-height: 94dvh; border-radius: 26px 26px 0 0; }
  .contact-dialog-header { grid-template-columns: 48px 1fr 42px; gap: 12px; padding: 22px 18px 18px; }
  .contact-dialog-brand { width: 48px; height: 48px; border-radius: 15px; }
  .contact-dialog-header h2 { font-size: 25px; }
  .contact-dialog-header > div:nth-child(2) > p:last-child { display: none; }
  .contact-form { padding: 22px 18px 26px; }
  .contact-form-grid, .contact-evidence { grid-template-columns: 1fr; }
  .contact-field-wide { grid-column: auto; }
  .contact-upload-card, .contact-audio-card { grid-template-columns: 40px 1fr auto; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-form-footer .button { width: 100%; min-width: 0; }
  .contact-form-footer > p { justify-content: center; }
  .assistant-launcher { right: 14px; bottom: 14px; min-width: 58px; width: 58px; height: 58px; grid-template-columns: 1fr; padding: 8px; border-radius: 18px; }
  .assistant-launcher-icon { width: 40px; height: 40px; }
  .assistant-launcher-copy, .assistant-launcher > i { display: none; }
  .assistant-panel { right: 10px; bottom: 82px; width: calc(100vw - 20px); height: min(690px, calc(100dvh - 96px)); border-radius: 22px; }
}

@media (max-width: 520px) {
  .contact-upload-card, .contact-audio-card { grid-template-columns: 38px 1fr; }
  .contact-secondary-button { grid-column: 1 / -1; width: 100%; }
  .contact-success { min-height: 500px; padding-left: 20px; padding-right: 20px; }
  .assistant-panel { height: calc(100dvh - 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-launcher, .contact-audio-card.recording .contact-mic-icon, .assistant-typing span { animation: none !important; }
}

