*{box-sizing:border-box}html,body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#18324a;background:#f5fbf9}button,input,select{font:inherit}.brand{font-family:Georgia,serif;font-size:2.15rem;color:#050505}.brand span{color:#008d91}.site-head{height:92px;background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:space-between;padding:0 14%;position:relative;z-index:3}.privacy{font-weight:800;color:#007e89}.privacy i{display:inline-block;width:22px;height:22px;border-radius:50%;background:#00d768;vertical-align:middle;margin-right:14px}.room-scene{min-height:calc(100vh - 92px);background:url('assets/attorney-room.png') center/cover no-repeat;position:relative;padding:80px 10%}.room-scene:before{content:"";position:absolute;inset:0;background:rgba(245,255,252,.12)}.visitor-card{position:relative;z-index:2;width:min(660px,92vw);margin-left:8%;background:rgba(255,255,255,.97);border:1px solid #bfe4df;border-radius:22px;padding:28px 38px 20px;box-shadow:0 16px 50px rgba(23,64,60,.12);text-align:center}.pill{display:inline-block;background:#ddf4f0;color:#00858c;font-weight:800;border-radius:30px;padding:12px 34px}.visitor-card h1{font-family:Georgia,serif;color:#050505;font-size:clamp(2.1rem,4vw,3.2rem);margin:18px 0 8px}.lead{font-size:1.15rem;color:#44617e;margin:0 0 24px;line-height:1.45}.visitor-card label,.auth-box label,.admin-form label{display:block;text-align:left;font-weight:700;margin:12px 0 7px}.visitor-card select,.auth-box input,.admin-form input{width:100%;padding:14px 15px;border:1px solid #b9d9d5;border-radius:12px;background:#fff}.primary,.secondary,.danger,.button-link{border-radius:14px;padding:15px 20px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}.primary{width:100%;margin-top:14px;border:0;background:#008f8d;color:white}.secondary{border:2px solid #008f8d;background:white;color:#008f8d}.danger{border:0;background:#b42318;color:white}.primary:disabled,.secondary:disabled{opacity:.5;cursor:not-allowed}.wave{height:78px;display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px}.wave span{width:5px;border-radius:5px;background:#2be5a3;height:20px;animation:wave 1.1s ease-in-out infinite}.wave span:nth-child(2n){height:44px;animation-delay:.12s}.wave span:nth-child(3n){height:62px;animation-delay:.24s}@keyframes wave{50%{transform:scaleY(.45)}}.anonymous{font-size:1.05rem}.mic-help{color:#4d6986}.status-row{border-top:1px solid #d7ebe8;margin-top:22px;padding-top:17px;display:flex;gap:24px;justify-content:center;align-items:center}.dot{display:inline-block;width:18px;height:18px;border-radius:50%;margin-right:8px;vertical-align:-3px}.red{background:#ff4b5a}.green{background:#00d978}.divider{color:#8fb7b8}.message{min-height:24px;margin-top:12px;color:#a32922}.disclaimer{border-top:1px solid #e0efed;margin:16px 0 0;padding-top:13px;font-size:.78rem;color:#637586;line-height:1.4}
.panel-page,.admin-page{background:#eef8f5;min-height:100vh}.panel-head{background:white;padding:20px 6%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d6ebe6}.panel-head a{color:#007d7b;font-weight:700}.panel-shell,.admin-shell{max-width:1100px;margin:30px auto;padding:0 18px}.panel-card,.auth-box{background:white;border:1px solid #d4eae6;border-radius:18px;box-shadow:0 8px 24px rgba(21,72,64,.06);padding:24px;margin-bottom:20px}.auth-box{max-width:480px;margin:8vh auto}.auth-box h1{margin-bottom:6px}.panel-top,.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.panel-top h1{margin:0}.panel-top p{margin:4px 0 0}.assigned{margin-top:18px;color:#516b67}.switch{display:flex!important;align-items:center;gap:10px!important;margin:0!important}.switch input{display:none}.switch span{width:56px;height:30px;background:#a8b5b0;border-radius:20px;position:relative}.switch span:after{content:"";position:absolute;width:24px;height:24px;background:white;border-radius:50%;top:3px;left:4px;transition:.2s}.switch input:checked+span{background:#00a779}.switch input:checked+span:after{left:28px}.queue-item{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e4efed;padding:16px 0}.queue-item small{display:block;color:#6b7f7b;margin-top:4px}.answer{border:0;border-radius:12px;background:#007f78;color:white;font-weight:800;padding:12px 16px;cursor:pointer}.connected-chip{background:#dff7ea;color:#087a4b;border-radius:20px;padding:7px 11px;font-weight:800}.call-controls{display:flex;gap:12px;margin-top:18px}.muted{color:#6d7e7a}.alert,.success,.temp-pass{max-width:1100px;margin:12px auto;padding:14px 18px;border-radius:12px}.alert{background:#fff0ef;color:#9d211b}.success{background:#e9f9ef;color:#14683d}.temp-pass{background:#fff8dd;color:#654b00}.temp-pass code{font-size:1.1rem;font-weight:bold}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkline{display:flex;align-items:end}.checkline input{width:auto}.practice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 18px;margin-bottom:16px}.practice-grid label{font-weight:500}.practice-grid input{width:auto;margin-right:6px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #e3eeec;vertical-align:top}th{color:#37615b}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions form{display:inline}.actions button,.actions a{border:0;background:none;color:#007f78;padding:0;cursor:pointer;font-weight:700}.actions .text-danger{color:#b42318}.button-link{margin-top:14px;background:#eef5f3;color:#365a55}
@media(max-width:850px){.site-head{padding:0 5%;height:76px}.brand{font-size:1.7rem}.privacy{font-size:.74rem}.privacy i{width:14px;height:14px;margin-right:6px}.room-scene{min-height:calc(100vh - 76px);padding:28px 12px;background-position:center}.visitor-card{margin:0 auto;padding:22px 18px}.grid2,.practice-grid{grid-template-columns:1fr}.panel-top,.section-title,.queue-item{align-items:flex-start}.queue-item{gap:16px}.status-row{gap:10px;font-size:.9rem}.divider{display:none}}


/* === Approved picture-integrated Attorney Room visitor UI === */
.picture-room-page{margin:0;padding:0;width:100%;max-width:none;background:#eef7f5;overflow-x:hidden}
.picture-room{position:relative;width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);aspect-ratio:1664/960;background:#edf6f3;overflow:hidden}
.room-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.picture-live-card{position:absolute;z-index:5;left:18.25%;top:18.05%;width:39.05%;height:56.9%;margin:0;padding:2.7% 2.1% 1.25%;border:1px solid #bfe4df;border-radius:1.35vw;background:rgba(255,255,255,.985);box-shadow:0 15px 45px rgba(33,77,71,.10);text-align:center;display:flex;flex-direction:column;justify-content:flex-start}
.picture-live-card .pill{align-self:center;padding:.75% 5.8%;font-size:clamp(11px,1.12vw,19px);line-height:1.5}
.picture-live-card h1{font-size:clamp(25px,3.08vw,52px);line-height:1.05;margin:3.8% 0 2.1%;white-space:normal}
.picture-live-card .lead{font-size:clamp(12px,1.3vw,22px);line-height:1.4;margin:0 auto 3.5%;max-width:95%}
.picture-live-card select{font-size:clamp(12px,1.05vw,18px);padding:2.2% 2.5%;border-radius:12px}
.picture-live-card .primary{font-size:clamp(12px,1.04vw,18px);padding:2.3% 2%;margin-top:2.5%}
.picture-live-card .wave{height:auto;min-height:62px;margin:0 auto 1%;gap:1.05%;width:77%}
.picture-live-card .wave span{width:1%;min-width:3px}
.picture-live-card .anonymous{font-size:clamp(12px,1.17vw,19px);margin:1.8% 0 3.2%}
.picture-live-card .secondary{font-size:clamp(11px,1.05vw,18px);padding:2.0% 4%;border-radius:14px}
.picture-live-card .mic-help{font-size:clamp(10px,1vw,17px);margin:2.2% 0 0}
.picture-live-card .status-row{font-size:clamp(10px,.95vw,16px);margin-top:3.2%;padding-top:2.7%;gap:4%}
.picture-live-card .dot{width:clamp(10px,1.05vw,18px);height:clamp(10px,1.05vw,18px)}
.picture-live-card .message{font-size:clamp(10px,.9vw,15px);min-height:1.4em;margin-top:1.3%}
.picture-live-card .disclaimer{font-size:clamp(8px,.68vw,12px);line-height:1.32;margin-top:auto;padding-top:1.7%}



.start-view{margin:auto 0}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mic-icon{display:inline-block;width:1em;height:1em;border-radius:50%;background:currentColor;vertical-align:-.12em;margin-right:.35em}

@media(max-width:820px){
  .picture-room{aspect-ratio:auto;min-height:100svh;background:url('assets/attorney-room.png') center top/cover no-repeat}
  .room-photo{object-fit:cover;object-position:center top;min-height:100%}
  .picture-live-card{position:relative;left:auto;top:auto;width:min(92%,620px);height:auto;min-height:500px;margin:96px auto 180px;padding:24px 20px 16px;border-radius:20px}
  .picture-live-card .pill{font-size:14px;padding:8px 24px}
  .picture-live-card h1{font-size:34px;margin:18px 0 10px}
  .picture-live-card .lead{font-size:16px}
  .picture-live-card select,.picture-live-card .primary,.picture-live-card .secondary{font-size:15px}
  .picture-live-card .wave{width:82%;min-height:70px}
  .picture-live-card .anonymous{font-size:16px}
  .picture-live-card .mic-help{font-size:14px}
  .picture-live-card .status-row{font-size:13px}
  .picture-live-card .disclaimer{font-size:11px;margin-top:22px}
  
}


/* === v5 visitor UI fixes: clean card, microphone button, disconnect control === */
.picture-live-card{
  border:0;
  box-shadow:none;
  background:#fff;
  /* Let the approved image's original rounded border/shadow remain the visible frame. */
  left:18.36%;
  top:18.36%;
  width:38.82%;
  height:55.95%;
  border-radius:1.08vw;
}
#liveView{width:100%;}
.picture-live-card .mic-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.7em;
  min-width:58%;
  max-width:92%;
  white-space:nowrap;
  line-height:1.2;
}
.picture-live-card .mic-icon{
  width:.8em;
  height:1.05em;
  border:2px solid currentColor;
  border-radius:.55em;
  background:transparent;
  position:relative;
  flex:0 0 auto;
  margin:0;
}
.picture-live-card .mic-icon:before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-.38em;
  width:.9em;
  height:.55em;
  border:2px solid currentColor;
  border-top:0;
  border-radius:0 0 .55em .55em;
  transform:translateX(-50%);
}
.picture-live-card .mic-icon:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-.68em;
  width:.08em;
  height:.3em;
  background:currentColor;
  transform:translateX(-50%);
}
.end-button{
  display:block;
  margin:2.2% auto 0;
  border:1px solid #b7ceca;
  background:#fff;
  color:#496864;
  border-radius:12px;
  padding:1.5% 4.5%;
  font-weight:800;
  font-size:clamp(10px,.88vw,15px);
  cursor:pointer;
}
.end-button:hover{background:#f5f9f8;}
.end-button.connected{border-color:#c93b3b;color:#a92b2b;}
.picture-live-card .disclaimer{margin-top:1.3%;}
@media(max-width:820px){
  .picture-live-card{position:relative;left:auto;top:auto;width:min(92%,620px);height:auto;min-height:500px;margin:96px auto 180px;padding:24px 20px 16px;border-radius:20px;box-shadow:0 12px 35px rgba(33,77,71,.12);}
  .picture-live-card .mic-button{min-width:0;width:100%;max-width:100%;}
  .end-button{padding:10px 18px;font-size:13px;}
}

/* === v6: fully cover the static card printed in the room image === */
.picture-live-card{
  left:18.05%;
  top:17.90%;
  width:39.45%;
  height:57.55%;
  background:#fff;
  border:1px solid #c4e5e0;
  border-radius:1.35vw;
  box-shadow:0 10px 24px rgba(33,77,71,.10);
  overflow:hidden;
}

/* === v7 MOBILE FIX: clean stacked Attorney Room layout on phones === */
@media (max-width:820px){
  html,body{
    width:100%;
    min-height:100%;
    overflow-x:hidden;
    background:#eef7f5;
  }

  .picture-room-page{
    width:100%;
    min-height:100svh;
    overflow-x:hidden;
    background:#eef7f5;
  }

  .picture-room{
    position:relative;
    width:100%;
    max-width:none;
    min-height:100svh;
    margin:0;
    padding:0 0 24px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    overflow:visible;
    background:#eef7f5;
    aspect-ratio:auto;
  }

  .room-photo{
    position:relative;
    inset:auto;
    width:100%;
    height:220px;
    min-height:0;
    flex:0 0 220px;
    object-fit:cover;
    object-position:center 54%;
    display:block;
  }

  .picture-live-card{
    position:relative;
    left:auto;
    top:auto;
    width:calc(100% - 24px);
    max-width:560px;
    height:auto;
    min-height:0;
    margin:-28px auto 0;
    padding:20px 16px 16px;
    border:1px solid #c4e5e0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 28px rgba(33,77,71,.14);
    overflow:visible;
    z-index:10;
  }

  .picture-live-card .pill{
    padding:7px 18px;
    font-size:12px;
    line-height:1.35;
  }

  .picture-live-card h1{
    font-size:clamp(26px,8vw,34px);
    line-height:1.08;
    margin:14px 0 8px;
  }

  .picture-live-card .lead{
    max-width:100%;
    margin:0 auto 16px;
    font-size:14px;
    line-height:1.45;
  }

  .start-view{
    width:100%;
    margin:0;
  }

  .picture-live-card select{
    width:100%;
    min-height:48px;
    padding:12px 13px;
    font-size:16px; /* prevents iPhone zoom */
    border-radius:11px;
  }

  .picture-live-card .primary{
    width:100%;
    min-height:50px;
    margin-top:10px;
    padding:12px;
    font-size:14px;
    border-radius:11px;
  }

  #liveView{
    width:100%;
  }

  .picture-live-card .wave{
    width:76%;
    min-height:54px;
    margin:2px auto 0;
    gap:5px;
  }

  .picture-live-card .wave span{
    width:4px;
    min-width:4px;
  }

  .picture-live-card .anonymous{
    margin:4px 0 12px;
    font-size:14px;
  }

  .picture-live-card .mic-button{
    display:flex;
    width:100%;
    min-width:0;
    max-width:100%;
    min-height:48px;
    padding:11px 10px;
    gap:10px;
    white-space:normal;
    font-size:14px;
    border-radius:11px;
  }

  .end-button{
    margin:10px auto 0;
    padding:10px 18px;
    font-size:13px;
  }

  .picture-live-card .mic-help{
    margin:12px 0 0;
    font-size:12px;
    line-height:1.4;
  }

  .picture-live-card .status-row{
    margin-top:14px;
    padding-top:12px;
    gap:12px;
    flex-wrap:wrap;
    font-size:12px;
  }

  .picture-live-card .dot{
    width:11px;
    height:11px;
    margin-right:5px;
  }

  .picture-live-card .message{
    min-height:18px;
    margin-top:8px;
    font-size:12px;
  }

  .picture-live-card .disclaimer{
    margin-top:14px;
    padding-top:12px;
    font-size:10.5px;
    line-height:1.4;
  }

  
}

@media (max-width:390px){
  .room-photo{
    height:185px;
    flex-basis:185px;
  }
  .picture-live-card{
    width:calc(100% - 16px);
    margin-top:-20px;
    padding:17px 13px 14px;
    border-radius:15px;
  }
  .picture-live-card h1{
    font-size:25px;
  }
  .picture-live-card .lead{
    font-size:13px;
  }
}

/* Speaker overlays permanently removed: background image supplies the speaker. */
.speaker,.grill,#speakerLight,.picture-speaker-light{display:none!important;width:0!important;height:0!important;opacity:0!important;visibility:hidden!important;box-shadow:none!important;background:transparent!important;}

