#gwCommV1{
  display:none;
  padding:28px;
  max-width:1600px;
  margin:0 auto;
  font-family:Inter,Arial,sans-serif;
}

.gwcomm-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:24px;
}

.gwcomm-head small{
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  opacity:.55;
}

.gwcomm-head h1{
  margin:6px 0;
  font-size:34px;
  letter-spacing:-.03em;
}

.gwcomm-head p{
  margin:0;
  opacity:.65;
}

.gwcomm-primary{
  background:#111;
  color:#fff;
  border:1px solid #111;
}

.gwcomm button,
.gwcomm input,
.gwcomm select,
.gwcomm textarea{
  font:inherit;
}

.gwcomm button{
  cursor:pointer;
  border-radius:10px;
  padding:10px 14px;
}

.gwcomm-toolbar{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 190px 170px auto;
  gap:10px;
  margin-bottom:16px;
}

.gwcomm-toolbar input,
.gwcomm-toolbar select,
.gwcomm-modal input,
.gwcomm-modal select,
.gwcomm-modal textarea,
.gwcomm-thread select,
.gwcomm-thread textarea{
  width:100%;
  box-sizing:border-box;
  padding:11px 12px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
}

.gwcomm-layout{
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  min-height:650px;
  border:1px solid #e5e5e5;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.gwcomm-list{
  border-right:1px solid #e9e9e9;
  overflow:auto;
  max-height:760px;
}

.gwcomm-item{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-bottom:1px solid #eee;
  background:#fff;
  border-radius:0;
  padding:17px;
}

.gwcomm-item:hover,
.gwcomm-item.active{
  background:#f7f7f7;
}

.gwcomm-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.gwcomm-item b{
  display:block;
  margin-bottom:6px;
}

.gwcomm-item p{
  margin:4px 0;
  opacity:.65;
  font-size:13px;
}

.gwcomm-item small{
  opacity:.5;
  font-size:11px;
}

.gwcomm-pill{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  border:1px solid #ddd;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.gwcomm-thread{
  overflow:auto;
  max-height:760px;
}

.gwcomm-thread-head{
  position:sticky;
  top:0;
  z-index:3;
  background:#fff;
  border-bottom:1px solid #eee;
  padding:22px;
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.gwcomm-thread-head h2{
  margin:6px 0;
}

.gwcomm-thread-head p{
  margin:0;
  opacity:.6;
}

.gwcomm-thread-controls{
  display:flex;
  gap:8px;
  min-width:300px;
}

.gwcomm-messages{
  padding:22px;
}

.gwcomm-message{
  max-width:760px;
  padding:16px;
  border:1px solid #e6e6e6;
  border-radius:13px;
  margin-bottom:14px;
}

.gwcomm-message.outbound{
  margin-left:auto;
  background:#fafafa;
}

.gwcomm-message > div{
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.gwcomm-message p{
  line-height:1.65;
}

.gwcomm-message small{
  opacity:.48;
}

.gwcomm-reply,
.gwcomm-notes{
  border-top:1px solid #eee;
  padding:22px;
}

.gwcomm-reply textarea,
.gwcomm-notes textarea{
  margin-bottom:10px;
  resize:vertical;
}

.gwcomm-notes article{
  background:#fafafa;
  border:1px solid #eee;
  padding:12px;
  border-radius:10px;
  margin-bottom:8px;
}

.gwcomm-empty,
.gwcomm-error{
  padding:30px;
  opacity:.6;
}

.gwcomm-error{
  color:#a00;
}

.gwcomm-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.gwcomm-modal.show{
  display:flex;
}

.gwcomm-modal-card{
  width:min(680px,100%);
  max-height:90vh;
  overflow:auto;
  background:white;
  border-radius:16px;
  padding:24px;
  box-shadow:0 24px 90px rgba(0,0,0,.25);
}

.gwcomm-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.gwcomm-modal-head h2{
  margin:0;
}

.gwcomm-modal-head button{
  border:0;
  background:none;
  font-size:25px;
}

.gwcomm-modal label{
  display:block;
  font-size:12px;
  font-weight:700;
  margin:14px 0 6px;
}

.gwcomm-modal-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:18px;
}

.gwcomm-modal-actions span{
  font-size:12px;
}

@media(max-width:900px){
  #gwCommV1{
    padding:16px;
  }

  .gwcomm-toolbar{
    grid-template-columns:1fr 1fr;
  }

  .gwcomm-layout{
    grid-template-columns:1fr;
  }

  .gwcomm-list{
    max-height:350px;
    border-right:0;
    border-bottom:1px solid #eee;
  }

  .gwcomm-thread{
    max-height:none;
  }

  .gwcomm-thread-head{
    position:relative;
    flex-direction:column;
  }

  .gwcomm-thread-controls{
    min-width:0;
  }
}
