/* Simple Onepiecedle (no framework) */
:root{
  --bg:#0a1417;
  --card:#0f1f24;
  --text:#f3f5f7;
  --muted:#a7b3b8;
  --line:#1d333a;

  --ok:#2ecc71;
  --close:#f6d44e;
  --no:#e74c3c;

  --btn:#15343c;
  --btn2:#1b4853;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 30% -10%, rgba(86,210,127,.20), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(246,212,78,.15), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; }

.topbar{
  position: sticky;
  top:0;
  z-index: 20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 1rem;
  padding: .9rem 1.2rem;
  background: rgba(10,20,23,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand{ display:flex; align-items:center; gap:.8rem; }
.logo{
  width: 44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(86,210,127,.25), rgba(207,163,99,.25));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.title{ font-weight: 900; letter-spacing:.5px; }
.subtitle{ color: var(--muted); font-size: .9rem; }

.topbar-actions{ display:flex; gap:.5rem; flex-wrap:wrap; justify-content:flex-end; }

.container{
  max-width: 1050px;
  margin: 1.2rem auto 2.5rem;
  padding: 0 1rem;
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

.card{
  background: rgba(15,31,36,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

h1{ margin: 0 0 .4rem; font-size: 1.35rem; }
h2{ margin: 0; font-size: 1.1rem; }
.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

.btn{
  border: 1px solid rgba(255,255,255,.15);
  background: var(--btn);
  color: var(--text);
  padding: .6rem .85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  font-weight: 650;
}
.btn:hover{ background: var(--btn2); border-color: rgba(255,255,255,.22); }
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: linear-gradient(135deg, rgba(46,204,113,.25), rgba(27,72,83,.85)); }
.btn.ghost{ background: transparent; }
.btn.danger{ background: rgba(231,76,60,.18); border-color: rgba(231,76,60,.35); }
.btn.danger:hover{ background: rgba(231,76,60,.28); }

.guessbox{ margin-top: .85rem; }
.guessbox-row{
  display:flex;
  gap:.6rem;
  align-items:stretch;
}
.input-wrap{ position:relative; flex: 1; }
#guessInput{
  width:100%;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.15);
  color: var(--text);
  outline: none;
}
#guessInput:focus{ border-color: rgba(86,210,127,.6); box-shadow: 0 0 0 4px rgba(86,210,127,.12); }

.suggestions{
  position:absolute;
  top: calc(100% + .4rem);
  left:0; right:0;
  background: rgba(10,20,23,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow:hidden;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.suggestion{
  padding: .55rem .7rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
}
.suggestion:hover{ background: rgba(255,255,255,.06); }
.suggestion .name{ font-weight: 750; }
.suggestion .meta{ color: var(--muted); font-size:.9rem; white-space:nowrap; }

.hint-line{
  margin-top: .55rem;
  color: var(--muted);
  font-size: .95rem;
  min-height: 1.2em;
}

.table-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; flex-wrap:wrap;
  margin-bottom: .6rem;
}

.table-wrap{ overflow:auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); }
table{ width: 100%; border-collapse: collapse; min-width: 860px; }
th, td{
  padding: .6rem .55rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
  vertical-align: middle;
}
th{
  position: sticky;
  top: 0;
  background: rgba(10,20,23,.92);
  backdrop-filter: blur(10px);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
td:first-child, th:first-child{ text-align:left; }
.empty-row td{ padding: 1rem; text-align:center; }

.cell{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.cell.ok{ border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.12); }
.cell.close{ border-color: rgba(246,212,78,.55); background: rgba(246,212,78,.12); }
.cell.no{ border-color: rgba(231,76,60,.55); background: rgba(231,76,60,.12); }

.arrow{ font-weight: 900; }
.pill{
  display:inline-block;
  padding: .18rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  font-size:.82rem;
  color: var(--muted);
}
.pill.ok{ border-color: rgba(46,204,113,.45); color: rgba(46,204,113,.95); }
.pill.close{ border-color: rgba(246,212,78,.55); color: rgba(246,212,78,.95); }
.pill.no{ border-color: rgba(231,76,60,.55); color: rgba(231,76,60,.95); }
.pill.up{ border-color: rgba(86,185,255,.55); color: rgba(86,185,255,.95); }
.pill.down{ border-color: rgba(255,150,86,.55); color: rgba(255,150,86,.95); }

.modal{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 0;
  background: rgba(10,20,23,.96);
  color: var(--text);
  box-shadow: var(--shadow);
  width: min(650px, calc(100vw - 2rem));
}
.modal::backdrop{ background: rgba(0,0,0,.55); }
.modal-inner{ padding: 1rem; }
.modal-inner h3{ margin: 0 0 .6rem; }
.modal-actions{ display:flex; justify-content:flex-end; gap:.5rem; margin-top: .9rem; }

.stats-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:.6rem;
}
.stat{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: .7rem;
}
.stat-k{ color: var(--muted); font-size:.9rem; }
.stat-v{ font-size: 1.35rem; font-weight: 900; margin-top: .2rem; }

@media (max-width: 650px){
  .guessbox-row{ flex-direction:column; }
  .stats-grid{ grid-template-columns: 1fr; }
}
:root{
  --bg:#0b1020;
  --panel:#121a33;
  --panel2:#0f1630;
  --text:#e9ecf5;
  --muted:#a9b1d6;
  --good:#1fca6b;
  --bad:#ff4d4d;
  --mid:#f5c542;
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(130,87,230,.25), transparent),
              radial-gradient(900px 500px at 80% 20%, rgba(0,190,255,.18), transparent),
              var(--bg);
  color:var(--text);
}

.container{max-width:1100px;margin:0 auto;padding:18px}
.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:16px;
}
.title{font-size:22px;font-weight:800;letter-spacing:.2px}
.sub{color:var(--muted);font-size:13px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent),
              var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.inputRow{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.inputRow input{
  flex:1;
  min-width:260px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  outline:none;
}
.inputRow button{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.inputRow button:hover{background: rgba(255,255,255,.10)}

.table{
  margin-top:14px;
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  padding:0 10px;
}
.row{
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
}
.table td{
  padding:10px;
  vertical-align:middle;
}
.rowWrap{
  border-radius:14px;
  border:1px solid var(--border);
  overflow:hidden;
}

.persoCell{
  display:flex; align-items:center; gap:10px;
}
.avatar{
  width:44px; height:44px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  object-fit:cover;
}
.name{font-weight:800}
.alias{color:var(--muted);font-size:12px;margin-top:2px}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.15);
  font-weight:700;
  white-space:nowrap;
}
.badge .sym{
  width:22px;height:22px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:900;
}
.good .sym{background: rgba(31,202,107,.18); color:var(--good)}
.bad  .sym{background: rgba(255,77,77,.18); color:var(--bad)}
.mid  .sym{background: rgba(245,197,66,.18); color:var(--mid)}
