/* V71 — faithfully mapped from Xonect V43/V44 glass sign-in. */
/* Glass must remain transparent: no diagonal stripe, shine textures or fake lines. */
#contactPanel{
  background:rgba(10,23,34,.34) !important;
  border-left:1px solid rgba(144,204,233,.32) !important;
  border-top:1px solid rgba(144,204,233,.28) !important;
  -webkit-backdrop-filter:blur(19px) saturate(1.14) !important;
  backdrop-filter:blur(19px) saturate(1.14) !important;
  box-shadow:inset 0 1px rgba(224,252,255,.10), inset 1px 0 rgba(150,217,247,.055), -16px 0 36px rgba(0,0,0,.20) !important;
}
#intakePagePanel{
  /* Stronger background blur erases the blueprint's diagonal threads without hiding the page. */
  background:rgba(10,24,36,.41) !important;
  -webkit-backdrop-filter:blur(27px) saturate(1.03) !important;
  backdrop-filter:blur(27px) saturate(1.03) !important;
  box-shadow:inset 1px 0 rgba(210,240,254,.09),20px 0 46px rgba(3,11,22,.19) !important;
}
/* Original contact, booking, intake form sizes, buttons and map are deliberately untouched. */
/* LOGIN: fixed to right edge, 38 px (~1cm) above bottom; ONLY horizontal motion. */
#contactPanel.login-expanded{
  right:0 !important;bottom:38px !important;top:auto !important;
  transform:translate3d(calc(100% + 4px),0,0) !important;
  transition:transform .78s cubic-bezier(.19,.78,.20,1) !important;
  will-change:transform;
  overflow:hidden;
}
#contactPanel.login-expanded.open{transform:translate3d(0,0,0) !important;}
/* A single connected segmented switch: Xonect's sliding tile, not two floating buttons. */
#contactPanel .ys-auth-segment{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  position:relative;isolation:isolate;overflow:hidden;
  height:36px;margin:0 0 14px;
  border:1px solid rgba(91,186,235,.42);
  background:rgba(2,17,28,.35);
}
#contactPanel .ys-auth-segment .ys-auth-slide{
  position:absolute;z-index:0;inset:0 auto 0 0;width:50%;pointer-events:none;
  background:linear-gradient(120deg,rgba(17,127,190,.50),rgba(21,73,113,.60));
  border:1px solid rgba(77,207,255,.80);
  box-shadow:inset 0 0 17px rgba(35,196,255,.14),0 0 16px rgba(24,174,255,.25);
  transform:translateX(0);
  transition:transform .34s cubic-bezier(.20,.80,.20,1);
}
#contactPanel .ys-auth-segment.is-admin .ys-auth-slide{transform:translateX(100%);}
#contactPanel .ys-auth-segment button{
  appearance:none;-webkit-appearance:none;z-index:1;position:relative;flex:initial;
  width:100%;min-width:0;height:100%;margin:0;padding:0 6px;
  border:0 !important;border-right:1px solid rgba(91,186,235,.22) !important;
  background:transparent !important;box-shadow:none !important;
  color:rgba(180,211,228,.70);font:700 10px/1 Arial,sans-serif;letter-spacing:1px;
  transition:color .2s,text-shadow .2s;
}
#contactPanel .ys-auth-segment button:last-child{border-right:0 !important}
#contactPanel .ys-auth-segment button.active{color:#f3fcff;text-shadow:0 0 11px rgba(76,210,255,.40)}
#contactPanel .ys-auth-segment button:hover{color:#fff}
#contactPanel.login-expanded #ysLoginNote:empty{display:none}
/* Xonect's physical cut-glass edge effect — ONE line on the PANEL bottom edge. */
#contactPanel.login-expanded::after,
#intakePagePanel .intake-gate-entry::after{
  content:"";position:absolute;pointer-events:none;z-index:5;
  bottom:0;height:2px;
  left:calc(var(--ys-edge-start,14px) - 4px);
  width:calc(var(--ys-edge-length,0px) + 8px);
  background:linear-gradient(90deg,transparent 0%,rgba(63,179,235,.36) 8%,rgba(114,221,251,.86) 29%,rgba(211,253,255,.98) 50%,rgba(114,221,251,.86) 71%,rgba(63,179,235,.36) 92%,transparent 100%);
  filter:drop-shadow(0 -1px 3px rgba(51,169,231,.32)) drop-shadow(0 0 2px rgba(65,188,247,.23));
  opacity:var(--ys-edge-opacity,0);
  transition:left .16s cubic-bezier(.22,.8,.23,1),width .16s cubic-bezier(.22,.8,.23,1),opacity .16s ease;
}
#contactPanel.login-expanded.ys-white-edge::after,
#intakePagePanel .intake-gate-entry.ys-white-edge::after{
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.20) 10%,rgba(255,255,255,.83) 37%,#fff 50%,rgba(255,255,255,.83) 63%,rgba(255,255,255,.20) 90%,transparent 100%);
  filter:drop-shadow(0 -1px 4px rgba(255,255,255,.35)) drop-shadow(0 0 5px rgba(255,255,255,.23));
}
#intakePagePanel .intake-gate-entry.ys-green-edge::after{
  background:linear-gradient(90deg,transparent 0%,rgba(83,225,157,.19) 10%,rgba(128,247,185,.84) 40%,rgba(215,255,234,1) 50%,rgba(128,247,185,.84) 60%,rgba(83,225,157,.19) 90%,transparent 100%);
  filter:drop-shadow(0 -1px 3px rgba(85,233,157,.35)) drop-shadow(0 0 4px rgba(101,248,171,.27));
}
/* No line under any input or Enter button; the edge is the only reflection. */
#contactPanel [data-glass-digits]::before,#contactPanel [data-glass-digits]::after,
#intakePagePanel [data-glass-digits]::before,#intakePagePanel [data-glass-digits]::after{
  display:none !important;content:none !important;
}
#contactPanel.login-expanded .ys-digit.ys-edge-filled,
#intakePagePanel .ys-digit.ys-edge-filled{
  border-color:rgba(107,213,247,.72);
}
/* Keep original form controls solid and sharp, as requested. */
#contactPanel .ys-digit,#contactPanel .ys-prefix-box,#contactPanel .ys-go,
#intakePagePanel .ys-digit,#intakePagePanel .ys-prefix-box,
#intakePagePanel .intake-gate-actions button{
  background-color:rgba(9,24,35,.84);
}
/* Intake panel remains full width just as before; edge light tracks on intake gate itself. */
#intakePagePanel .intake-gate{max-width:760px}
#intakePagePanel .intake-gate-entry{
  width:min(760px,100%);isolation:isolate;padding-bottom:9px;
  border-bottom:1px solid rgba(126,200,234,.22);
}
#intakePagePanel .intake-gate-actions button{transition:color .18s,border-color .18s,box-shadow .18s,background .18s;}
#intakePagePanel #openIntake.ys-choice-highlight{
  border-color:rgba(99,204,255,.8);box-shadow:inset 0 -1px rgba(102,202,255,.52);
}
#intakePagePanel #openIntake:hover,#intakePagePanel #openIntake:focus-visible{
  border-color:rgba(237,250,255,.91);color:#fff;box-shadow:inset 0 -1px rgba(238,250,255,.8),0 0 9px rgba(255,255,255,.10);
}
#intakePagePanel #openDesignStudio:hover,#intakePagePanel #openDesignStudio:focus-visible{
  border-color:rgba(111,237,164,.87);color:#eafff3;box-shadow:inset 0 -1px rgba(135,247,185,.7),0 0 9px rgba(83,226,151,.12);
}
/* Existing opaque map preserved; contact, booking / Start Project panels use original layouts. */
@media(max-width:700px){
  #contactPanel.login-expanded{
    width:min(96vw,560px) !important;height:auto !important;max-height:min(300px,80dvh) !important;
    min-height:210px !important;bottom:38px !important;padding:22px 17px !important;
  }
  #contactPanel.login-expanded .ys-login-row{gap:5px;}
  #contactPanel.login-expanded .ys-boxes{gap:4px;}
  #contactPanel.login-expanded .ys-digit{width:clamp(23px,5.7vw,32px);height:37px;}
  #contactPanel.login-expanded .ys-prefix-box{min-width:38px;height:37px;}
  #contactPanel.login-expanded .ys-go{min-width:46px;padding:0 6px;height:37px;}
  #intakePagePanel .intake-gate{max-width:100%}
  #intakePagePanel .intake-gate-entry{width:100%;padding-bottom:9px;}
  #intakePagePanel .intake-gate .ys-login-row{flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce){
  #contactPanel.login-expanded,#contactPanel .ys-auth-segment .ys-auth-slide,
  #contactPanel.login-expanded::after,#intakePagePanel .intake-gate-entry::after{transition-duration:.01ms !important}
}
