:root{
  --shell-bg:#f3f6f8;
  --shell-surface:#ffffff;
  --shell-text:#173247;
  --shell-muted:#647786;
  --shell-line:#d7e0e6;
  --shell-accent:#356f98;
  --shell-accent-dark:#285875;
  --shell-accent-soft:#eaf2f7;
}
body{
  margin:0;
  background:var(--shell-bg);
  color:var(--shell-text);
}
.shell-top{
  max-width:1100px;
  margin:14px auto 0;
  padding:0 16px;
}
.shell-top a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--shell-accent-dark);
  background:var(--shell-surface);
  border:1px solid var(--shell-line);
  border-radius:999px;
  padding:8px 12px;
  font:700 14px Inter,Segoe UI,Arial,sans-serif;
  text-decoration:none;
}
.loading-box,
.client-error,
.client-info{
  max-width:900px;
  margin:18px auto;
  padding:12px 14px;
  border-radius:12px;
  font:14px Inter,Segoe UI,Arial,sans-serif;
}
.loading-box{
  border:1px solid var(--shell-line);
  background:var(--shell-surface);
  color:var(--shell-muted);
}
.client-error{
  border:1px solid #e4b0b0;
  background:#fff1f1;
  color:#8a2828;
}
.client-info{
  border:1px solid #c8d9e5;
  background:var(--shell-accent-soft);
  color:var(--shell-accent-dark);
}
.server-busy{cursor:progress;}
.server-dialog-backdrop{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(23,50,71,.28);
}
.server-dialog{
  width:min(460px,100%);
  background:var(--shell-surface);
  color:var(--shell-text);
  border:1px solid var(--shell-line);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(24,50,71,.22);
  padding:18px;
  font:15px Inter,Segoe UI,Arial,sans-serif;
}
.server-dialog p{
  margin:0 0 14px;
  line-height:1.45;
}
.server-dialog-input{
  width:100%;
  border:1px solid var(--shell-line);
  border-radius:10px;
  padding:10px 11px;
  font:inherit;
  color:var(--shell-text);
}
.server-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.server-dialog button{
  border:1px solid var(--shell-line);
  border-radius:10px;
  background:#fff;
  color:var(--shell-text);
  padding:9px 13px;
  font:700 14px Inter,Segoe UI,Arial,sans-serif;
  cursor:pointer;
}
.server-dialog button.primary{
  background:var(--shell-accent);
  border-color:var(--shell-accent);
  color:#fff;
}
.server-dialog button:hover{
  border-color:var(--shell-accent);
}
.server-dialog button.primary:hover{
  background:var(--shell-accent-dark);
  border-color:var(--shell-accent-dark);
}
