:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#202c2b;
  background:#f5f6f3;
  font-synthesis:none;
  --line:#dfe4dd;
  --muted:#65716b;
  --green:#17684b;
  --surface:#fff
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select,textarea{
  font:inherit
}
button{
  cursor:pointer;
  border:1px solid #ccd4cb;
  border-radius:7px;
  padding:8px 13px;
  background:var(--surface);
  color:inherit;
  transition:background .15s
}
button:hover{
  background:#edf2ea
}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:2px solid #59997b;
  outline-offset:2px
}
button:disabled{
  opacity:.45;
  cursor:default
}
button.primary{
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
button.primary:hover{
  background:#12553d
}
.quiet{
  border-color:transparent;
  background:transparent
}
.danger{
  color:#a33a36
}
.error{
  color:#a33a36;
  min-height:1em;
  font-size:14px
}
.hint,.optional{
  color:var(--muted);
  font-size:13px
}
.hint{
  line-height:1.6
}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:12px;
  font-weight:600;
  color:var(--green)
}
header{
  height:76px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 28px;
  border-bottom:1px solid var(--line);
  background:var(--surface)
}
.brand{
  font-size:21px;
  letter-spacing:-.7px;
  font-weight:700;
  color:#243c33;
  text-decoration:none
}
.brand span{
  font-weight:400;
  color:var(--muted);
  margin-left:3px
}
.connection{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px
}
.connection i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b4bcb4
}
.connection i.online{
  background:#36a376
}
.machine-label{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:13px
}
select,input,textarea{
  background:var(--surface);
  color:inherit;
  border:1px solid #ccd4cb;
  border-radius:6px;
  padding:9px 10px;
  min-width:0
}
select{
  max-width:240px
}
textarea{
  resize:vertical;
  line-height:1.5
}
.layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  height:calc(100dvh - 76px)
}
aside{
  border-right:1px solid var(--line);
  padding:22px 15px;
  overflow:auto
}
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 10px;
  margin-bottom:12px
}
.section-title h2{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--muted);
  font-weight:650;
  margin:0
}
.section-title span{
  font-size:11px;
  color:var(--muted)
}
#sessions{
  margin-bottom:32px
}
.session{
  display:block;
  width:100%;
  text-align:left;
  background:transparent;
  border:1px solid transparent;
  padding:13px 12px;
  margin:4px 0
}
.session:hover{
  background:#e9eee5
}
.session.selected{
  background:#e4ece1;
  border-color:#cad8c4
}
.session strong{
  display:block;
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.session small{
  display:flex;
  gap:8px;
  margin-top:6px;
  color:var(--muted);
  font-size:12px
}
.session small .state{
  margin-left:auto
}
.agent{
  padding:9px 11px;
  font-size:12px;
  display:grid;
  grid-template-columns:7px minmax(0,1fr);
  gap:9px;
  align-items:start
}
.agent i{
  margin-top:5px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#b7bdb7
}
.agent i.online{
  background:#36a376
}
.agent span{
  overflow-wrap:anywhere
}
.agent small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:3px
}
.agent button{
  grid-column:2;
  justify-self:start;
  font-size:10px;
  padding:3px 6px
}
.archive-toggle{
  margin:0 11px 10px;
  font-size:11px
}
[data-activity^="waiting"] .state,
.agent[data-activity^="waiting"] small,
.badge[data-activity^="waiting"]{
  color:#b47a24
}
main{
  padding:26px 28px;
  min-width:0;
  overflow:hidden
}
.empty{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center
}
.empty-mark{
  display:grid;
  place-items:center;
  border:1px solid #cdd8c8;
  border-radius:17px;
  background:#e9eee4;
  color:#458060;
  font-size:34px;
  width:76px;
  height:76px;
  margin-bottom:19px
}
.empty h1{
  font-size:29px;
  letter-spacing:-1px;
  font-weight:550;
  margin:0 0 8px
}
.empty p{
  font-size:14px;
  color:var(--muted);
  margin:0 0 23px
}
.session-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:start;
  margin-bottom:16px
}
.session-header h1{
  font-size:23px;
  font-weight:600;
  letter-spacing:-.6px;
  margin:0 0 5px
}
.session-header p{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:11px;
  color:var(--muted);
  margin:0;
  overflow-wrap:anywhere
}
.badge{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  border:1px solid #ccd8c6;
  color:#3f6e4d;
  background:#eaf1e5;
  border-radius:20px;
  padding:5px 9px;
  white-space:nowrap
}
.toolbar{
  display:flex;
  gap:7px;
  align-items:center;
  margin-bottom:12px
}
.toolbar span{
  font-size:12px;
  color:var(--muted);
  margin-right:auto
}
.toolbar button{
  font-size:12px;
  padding:6px 10px
}
#workspace{
  height:100%;
  display:flex;
  flex-direction:column
}
#terminal{
  flex:1;
  min-height:180px;
  border-radius:9px;
  background:#121a19;
  border:1px solid #26332e;
  padding:14px 10px 8px;
  overflow:hidden
}
.message-form{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:stretch
}
.message-form textarea{
  flex:1;
  resize:none;
  font-size:13px
}
.message-form button{
  align-self:end
}
.keyboard-note{
  font-size:11px;
  color:var(--muted);
  margin:9px 0 0
}
dialog{
  border:1px solid var(--line);
  border-radius:13px;
  width:min(470px,calc(100vw - 32px));
  padding:28px;
  background:var(--surface);
  color:inherit;
  box-shadow:0 24px 90px #182d2429
}
dialog::backdrop{
  background:#142a254d;
  backdrop-filter:blur(3px)
}
dialog h1{
  margin:0 0 22px;
  font-size:25px;
  font-weight:600;
  letter-spacing:-.6px
}
dialog form>label, .login-fields label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  margin-bottom:17px
}
dialog select{
  max-width:none
}
dialog button.primary{
  width:100%;
  margin-top:6px
}
.dialog-heading{
  display:flex;
  justify-content:space-between;
  align-items:start
}
.dialog-heading button{
  font-size:22px;
  line-height:1;
  padding:0 5px
}
.dialog-heading h1{
  font-size:23px
}
.checkbox{
  flex-direction:row!important;
  align-items:center;
  gap:9px!important
}
.checkbox input{
  margin:0;
  accent-color:var(--green)
}
#notice{
  padding:9px 28px;
  background:#fff1cf;
  border-bottom:1px solid #e2d3aa;
  color:#73551e;
  font-size:13px
}
[hidden]{
  display:none!important
}
.placeholder{
  color:var(--muted);
  font-size:12px;
  padding:8px 11px
}
.xterm{
  height:100%
}
.xterm-viewport{
  border-radius:4px
}
code{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace
}
@media(max-width:800px){
  header{
    padding:0 14px;
    gap:9px;
    height:66px
  }
  .brand{
    font-size:18px
  }
  .connection{
    display:none
  }
  .machine-label{
    font-size:0
  }
  .machine-label select{
    font-size:12px;
    max-width:150px
  }
  header button{
    font-size:12px;
    padding:7px 9px
  }
  .layout{
    height:calc(100dvh - 66px);
    grid-template-columns:180px minmax(0,1fr)
  }
  aside{
    padding:16px 7px
  }
  main{
    padding:17px 12px
  }
  .session{
    padding:10px 8px
  }
  .session strong{
    font-size:12px
  }
  .session small{
    font-size:10px
  }
  .session-header h1{
    font-size:19px
  }
  .session-header p{
    font-size:10px
  }
  .keyboard-note{
    font-size:10px
  }
  #terminal{
    padding:7px 4px
  }
  .agent{
    font-size:10px
  }
  .empty h1{
    font-size:23px
  }
}
@media(max-width:520px){
  header .quiet{
    display:none
  }
  .layout{
    grid-template-columns:1fr;
    grid-template-rows:105px minmax(0,1fr)
  }
  aside{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:7px 12px;
    overflow:auto
  }
  aside>.section-title,aside>#agents{
    display:none
  }
  #sessions{
    display:flex;
    gap:5px;
    margin:0
  }
  .session{
    min-width:160px;
    width:160px;
    flex-shrink:0
  }
  .message-form button{
    padding:9px
  }
  .badge{
    font-size:9px
  }
  .session-header{
    gap:8px;
    margin-bottom:10px
  }
  main{
    padding-top:12px
  }
}
