@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:#070A10;
  --card:#0E1420;
  --muted:#8A97AD;
  --fg:#EAF1FF;
  --line:#1E2A3D;

  --accent:#2F81FF;
  --accent2:#33D6FF;
  --secure:#2DE2A2;

  --btn2:#0F1A2B;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(47,129,255,.22) 0%, rgba(7,10,16,0) 60%),
    radial-gradient(780px 520px at 82% 18%, rgba(51,214,255,.14) 0%, rgba(7,10,16,0) 62%),
    radial-gradient(900px 640px at 50% 92%, rgba(45,226,162,.08) 0%, rgba(7,10,16,0) 60%),
    var(--bg);
  color:var(--fg);
}
.wrap{max-width:820px;margin:0 auto;padding:20px}
.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.brand{font-weight:600;letter-spacing:.2px}
.status{color:var(--muted);font-size:13px}
.card{
  background:rgba(17,21,27,.86);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  margin:12px 0;
  backdrop-filter: blur(10px);
}
h1{font-size:16px;margin:0 0 12px 0;font-weight:600}
.row{display:flex;gap:10px;align-items:center;margin:10px 0}
.lbl{min-width:160px;color:var(--muted);font-size:13px}
.in{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0d1117;
  color:var(--fg);
  outline:none;
}
.in:focus{border-color:#2b78ff66;box-shadow:0 0 0 3px #2b78ff22}
.actions{display:flex;gap:10px;margin-top:12px}
.btn{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(47,129,255,.45);
  background:linear-gradient(180deg,var(--accent),#1F5FE0);
  color:white;
  cursor:pointer;
  font-weight:600;
}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--fg)}
.hint{margin:12px 0 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.k{color:var(--muted);font-size:12px;margin-bottom:6px}
.v{font-weight:700;font-size:18px;letter-spacing:.6px}
.chat{margin-top:14px}
.chatHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.peer{color:var(--muted);font-size:13px}
.verify{margin-top:4px;color:#b8c7ff;font-size:12px}
.msgs{
  height:min(58vh,520px);
  overflow:auto;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:rgba(13,17,23,.72);
}
.bubble{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  margin:10px 0;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}
.bubble.me{background:#0e1626}
.meta{color:var(--muted);font-size:12px;margin-bottom:6px}
.content{white-space:pre-wrap;word-break:break-word}
.media{max-width:100%;border-radius:12px;border:1px solid var(--line)}
.open{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--btn2);
  color:var(--fg);
  cursor:pointer;
  font-weight:600;
}
.prog{margin-top:8px}
.bar{height:8px;border-radius:999px;border:1px solid var(--line);background:#0b1220;overflow:hidden}
.fill{height:100%;width:0%;background:linear-gradient(90deg,#2b78ff,#7c5cff)}
.pct{margin-top:6px;color:var(--muted);font-size:12px}
.read{
  display:flex;align-items:center;gap:6px;
  color:var(--muted);font-size:12px;
  user-select:none;
}
.composer{display:flex;gap:10px;align-items:center;margin-top:10px}
.grow{flex:1}
.file{display:none}
.clip{
  width:90px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--btn2);
  cursor:pointer;
  text-align:center;
}
.foot{color:var(--muted);font-size:12px;margin-top:10px}
@media (max-width:720px){
  .grid2{grid-template-columns:1fr}
  .lbl{min-width:110px}
  .clip{width:auto}
}
