.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-actions .connect { gap: 10px; padding-inline: 20px; font-size: .9375rem; }
.contact-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 15px 18px; border: 1px solid #37586c; border-radius: 100px; background: #0b1e2e66; color: #d9f4fc; font: 600 .9375rem/1.3 Arial, Helvetica, sans-serif; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.contact-trigger svg { width: 19px; height: 19px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-trigger-arrow { margin-left: 2px; color: var(--cyan); font-size: 1.25rem; font-weight: 400; }
.contact-trigger:focus-visible, .contact-dialog button:focus-visible, .contact-dialog a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.contact-dialog { width: min(100% - 16px, 404px); max-width: none; max-height: calc(100svh - 18px); margin: auto; padding: 7px; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 50px; background: transparent; color: #eff9ff; font: 16px/1.4 Arial, Helvetica, sans-serif; scrollbar-width: thin; scrollbar-color: #36596d transparent; }
.contact-dialog::backdrop { background: #010813d9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact-dialog[open] { animation: contact-arrive .26s ease-out both; }
.contact-handset { position: relative; isolation: isolate; padding: 0 24px 20px; border: 1px solid #3e667d; border-radius: 43px; background: linear-gradient(150deg, #193447 -10%, #0a1b2c 28%, #081523 76%, #122c3e 120%); box-shadow: 0 0 0 5px #07111ce6, 0 0 0 6px #29415388, inset 0 1px 0 #b0e5ff38, 0 32px 100px #0009, 0 0 100px #42bde516; }
.contact-handset::before { content: ""; position: absolute; z-index: -1; top: 113px; left: -4px; width: 3px; height: 51px; border-radius: 2px 0 0 2px; background: #416275; box-shadow: 0 64px 0 #416275; }
.contact-handset::after { content: ""; position: absolute; z-index: -1; top: 144px; right: -4px; width: 3px; height: 70px; border-radius: 0 2px 2px 0; background: #416275; }
.contact-phone-top { position: relative; display: flex; justify-content: center; align-items: center; height: 62px; }
.contact-earpiece { width: 44px; height: 5px; border-radius: 5px; background: #020a12; box-shadow: 0 1px 0 #46627666, inset 0 1px 2px #000; }
.contact-earpiece::after { content: ""; display: block; width: 6px; height: 6px; margin: -1px 0 0 58px; border-radius: 50%; background: #041422; box-shadow: inset 0 0 0 1px #223f52, inset 0 0 3px #59bdff44; }
.contact-close { position: absolute; right: -8px; top: 11px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #9fb7c9; background: transparent; cursor: pointer; transition: color .18s, background .18s; }
.contact-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.contact-display { position: relative; overflow: hidden; min-height: 190px; padding: 17px 19px 23px; border: 1px solid #36647499; border-radius: 23px; background: radial-gradient(ellipse at 78% 2%, #1d6e7850, transparent 72%), linear-gradient(155deg, #0b2638, #071725 72%); box-shadow: inset 0 0 30px #03101e55, 0 0 24px #86e8ff08; }
.contact-display::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: linear-gradient(#9ce9ff40 1px, transparent 1px), linear-gradient(90deg, #9ce9ff40 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.contact-display-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; color: #8cb6c7; font-size: .5625rem; font-weight: 700; line-height: 1; letter-spacing: .18em; }
.contact-display-bar > span { display: flex; align-items: center; gap: 7px; }
.contact-display-bar i { width: 5px; height: 5px; border-radius: 50%; background: #86e8ff; box-shadow: 0 0 10px #86e8ff80; }
.contact-display-bar > svg { width: 19px; height: 14px; fill: none; stroke: #86e8ff; stroke-width: 2.5; stroke-linecap: round; }
.contact-state { animation: contact-state-in .2s ease-out both; }
.contact-state h3, .contact-state-title { margin: 0 0 12px; color: #edfbff; font-size: 1.65rem; font-weight: 400; line-height: 1.18; letter-spacing: -.045em; }
.contact-state h3 span { display: block; margin-top: 4px; color: #a3efff; font-size: 1.82rem; font-weight: 500; letter-spacing: .015em; overflow-wrap: anywhere; }
.contact-state h3:focus { outline: none; }
.contact-under-screen { min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 12px 4px; }
.contact-attempt-note { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #9bb2c5; font-size: .6875rem; line-height: 1.6; }
.contact-attempt-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: #80bacf; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.contact-attempt-note strong { color: #d4e4ee; font-weight: 600; white-space: nowrap; }
.contact-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 11px; }
.contact-keypad button, .contact-key-ornament { min-width: 0; min-height: 57px; }
.contact-keypad button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px; border: 1px solid #314f65; border-radius: 15px; background: linear-gradient(145deg, #173248, #0c2032); color: #e4f8ff; box-shadow: inset 0 1px 0 #a5dfff0d, 0 2px 0 #020c17; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .15s, border-color .15s, box-shadow .15s, transform .12s; }
.contact-keypad button > span { font-size: 1.4rem; font-weight: 400; line-height: 1.1; }
.contact-keypad small { color: #91adbf; font-size: .4375rem; font-weight: 500; line-height: 1.4; letter-spacing: .18em; }
.contact-keypad button:active:not(:disabled) { transform: translateY(2px); background: #214659; border-color: #86e8ff; box-shadow: inset 0 1px 5px #020c17; }
.contact-keypad button:disabled { cursor: wait; opacity: .45; }
.contact-key-ornament { display: grid; place-items: center; color: #5a788e; font-size: 1.25rem; }
.contact-home-bar { display: block; width: 76px; height: 4px; margin: 22px auto 0; border-radius: 5px; background: #426075; }
.contact-wait { padding: 7px 0 9px; text-align: center; }
.contact-orbit { display: block; width: 30px; height: 30px; margin: 0 auto 17px; border: 1px solid #80d8ee26; border-top-color: #86e8ff; border-right-color: #86e8ff; border-radius: 50%; animation: contact-orbit 1.2s linear infinite; }
.contact-wait .contact-state-title { font-size: 1.35rem; }
.contact-reveal { display: grid; justify-items: center; min-height: 110px; }
#contact-number-image { display: block; width: 100%; height: auto; max-height: 75px; object-fit: contain; margin: 0; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.contact-signal { width: 100%; margin-top: 13px; padding-top: 17px; border-top: 1px solid #86e8ff21; text-align: center; }
.contact-signal-preference { margin: 0 0 17px; color: #bad3df; font-size: .8125rem; line-height: 1.5; text-wrap: balance; }
.contact-signal-ready { display: grid; justify-items: center; }
.contact-signal-qr { position: relative; width: min(100%, 190px); aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px #86e8ff1f, 0 7px 25px #0003; }
.contact-signal-qr img { position: absolute; width: 196.296296%; max-width: none; height: auto; left: -48.148148%; top: -51.851852%; filter: grayscale(1) invert(1) brightness(1.25); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.contact-signal-username { margin: 12px 0 16px; color: #d7f2fc; font-size: .875rem; line-height: 1.4; letter-spacing: .035em; overflow-wrap: anywhere; }
.contact-signal-open { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #80d9f0; border-radius: 100px; background: #86e8ff; color: #042033; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .18s, border-color .18s; }
.contact-signal-open svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-signal-status { margin: 0; color: #8eadbf; font-size: .75rem; line-height: 1.5; }
.contact-signal-retry { min-height: 44px; margin: 8px 0 0; padding: 8px 15px; border: 1px solid #496c80; border-radius: 100px; background: #132c3e; color: #cef3ff; font: 600 .75rem/1.3 Arial, Helvetica, sans-serif; cursor: pointer; }
.contact-handset[data-state="unlocked"] .contact-display-bar { margin-bottom: 16px; }
.contact-state-icon { display: block; width: 32px; height: 32px; margin: 0 0 18px; fill: none; stroke: #86e8ff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.contact-locked h3, .contact-error h3 { font-size: 1.55rem; }
.contact-countdown { margin-top: 26px; }
.contact-countdown-value { display: block; color: #b7eeff; font-size: 2.1rem; font-weight: 400; line-height: 1.2; letter-spacing: .055em; font-variant-numeric: tabular-nums; }
.contact-countdown-caption { display: block; margin-bottom: 7px; color: #7093a9; font-size: .5rem; letter-spacing: .16em; }
.contact-bottom-action { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: 20px; padding: 0 3px 7px; }
.contact-retry, .contact-done { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 12px 17px; border: 1px solid #36596d; border-radius: 100px; background: #132c3e; color: #cef3ff; font: 600 .8125rem/1.3 Arial, Helvetica, sans-serif; cursor: pointer; transition: background .18s, border-color .18s; }
.contact-retry { border-color: #86e8ff; background: #86e8ff; color: #042033; }
.contact-retry > span, .contact-done > span { font-size: 1.1rem; font-weight: 400; }
.contact-handset:not([data-state="challenge"]):not([data-state="answering"]) .contact-under-screen { min-height: 0; padding: 0; }
body:has(.contact-dialog[open]) { overflow: hidden; }
@media (hover: hover) {
  .contact-trigger:hover { transform: translateY(-2px); border-color: #80cadd; background: #14314499; }
  .contact-close:hover { color: #edfbff; background: #86e8ff12; }
  .contact-keypad button:hover:not(:disabled) { border-color: #6baabe; background: linear-gradient(145deg, #22485f, #143044); box-shadow: inset 0 1px 0 #a5dfff15, 0 2px 0 #020c17, 0 0 16px #86e8ff0b; }
  .contact-done:hover { border-color: #72b9ce; background: #1c3c51; }
  .contact-retry:hover { background: #b3f1ff; }
  .contact-signal-open:hover { background: #b3f1ff; border-color: #b3f1ff; }
  .contact-signal-retry:hover { background: #1c3c51; border-color: #72b9ce; }
}
@media (max-width: 960px) {
  .contact-actions { justify-content: center; gap: 10px; }
  .contact-actions .connect { margin-inline: 0; }
  .contact-trigger { min-height: 48px; padding: 11px 19px; }
}
@media (max-width: 540px) {
  .contact-actions { gap: 9px; }
  .contact-actions .connect { min-height: 45px; gap: 8px; padding: 12px 16px; font-size: .8125rem; }
  .contact-actions .connect svg { width: 16px; height: 16px; }
  .contact-actions .connect .arrow { margin-left: 1px; font-size: 1.1rem; }
  .contact-trigger { min-height: 45px; gap: 8px; padding: 11px 14px; font-size: .8125rem; }
  .contact-trigger svg { width: 16px; height: 16px; }
  .contact-trigger-arrow { font-size: 1.1rem; }
}
@media (max-height: 740px) {
  .contact-dialog { width: min(100% - 16px, 368px); }
  .contact-handset { padding: 0 20px 15px; border-radius: 37px; }
  .contact-phone-top { height: 49px; }
  .contact-close { top: 5px; }
  .contact-display { min-height: 170px; padding: 15px 17px 19px; border-radius: 19px; }
  .contact-display-bar { margin-bottom: 20px; }
  .contact-state h3 { font-size: 1.5rem; }
  .contact-state h3 span { font-size: 1.65rem; }
  .contact-under-screen { min-height: 66px; padding-block: 10px; }
  .contact-keypad { gap: 7px 10px; }
  .contact-keypad button, .contact-key-ornament { min-height: 49px; }
  .contact-keypad button { border-radius: 13px; }
  .contact-keypad button > span { font-size: 1.25rem; }
  .contact-handset[data-state="unlocked"] .contact-display { padding-bottom: 17px; }
  .contact-signal { margin-top: 10px; padding-top: 13px; }
  .contact-signal-preference { margin-bottom: 13px; }
  .contact-signal-qr { width: min(100%, 176px); }
  .contact-signal-username { margin-block: 10px 12px; }
  .contact-handset[data-state="unlocked"] .contact-bottom-action { margin-top: 13px; padding-bottom: 0; }
  .contact-handset[data-state="unlocked"] .contact-home-bar { margin-top: 16px; }
}
@media (max-height: 580px) {
  .contact-dialog { width: min(100% - 16px, 368px); border-radius: 38px; }
  .contact-handset { box-shadow: inset 0 1px 0 #b0e5ff38; }
}
@media (max-width: 370px) {
  .contact-actions { gap: 8px; }
  .contact-actions .connect, .contact-trigger { gap: 6px; padding-inline: 12px; font-size: .75rem; }
  .contact-trigger-arrow { margin-left: 0; }
  .contact-dialog { width: calc(100% - 14px); }
  .contact-handset { padding-inline: 18px; }
}
@media (min-width: 540px) and (max-width: 960px) and (max-height: 540px) and (orientation: landscape) {
  .contact-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open], .contact-state, .contact-orbit { animation: none; }
  .contact-orbit { border-color: #86e8ff; }
}
@keyframes contact-arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes contact-state-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contact-orbit { to { transform: rotate(360deg); } }
