:root{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color-scheme: dark;
}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(84,120,255,.20), transparent 60%),
              radial-gradient(1200px 600px at 80% 20%, rgba(0,217,255,.12), transparent 55%),
              #0b1220;
  color:#e6eefc;
}
.wrap{ max-width:860px; margin:0 auto; padding:24px 16px 36px; }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand img{ width:42px; height:42px; object-fit:contain; border-radius:10px; background:rgba(255,255,255,.06); padding:6px; }
.brand .t1{ font-weight:800; letter-spacing:.2px; }
.brand .t2{ opacity:.82; font-size:13px; margin-top:2px; }
.actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#dbe7ff;
  text-decoration:none;
  font-weight:700;
}
.btn:active{ transform:scale(.99); }

h1{ margin:8px 0 6px; font-size:28px; }
p{ margin:0 0 14px; opacity:.9; }

.grid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:640px){ .grid{ grid-template-columns:1fr 1fr; } }

.card{
  display:block;
  text-decoration:none;
  color:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}
.card .icon{ font-size:34px; }
.card .title{ margin-top:10px; font-weight:900; }
.card .sub{ margin-top:4px; opacity:.82; font-size:14px; }

.hr{ height:1px; background:rgba(255,255,255,.10); margin:16px 0; }

.list{ display:grid; gap:10px; margin-top:10px; }
.file{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px 14px;
}
.file .name{ font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.small{ font-size:13px; opacity:.85; }

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.input{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(5,10,20,.55);
  color:#e6eefc;
}
.notice{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  vertical-align: top;
}

.table th {
  font-size: 13px;
  opacity: .9;
}

.table td {
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.badge.ok {
  border-color: rgba(80, 255, 160, .35);
  background: rgba(80, 255, 160, .10);
  color: #d7ffe9;
}

.badge.warn {
  border-color: rgba(255, 210, 80, .35);
  background: rgba(255, 210, 80, .10);
  color: #fff1cc;
}

.badge.bad {
  border-color: rgba(255, 70, 70, .35);
  background: rgba(255, 70, 70, .12);
  color: #ffd6d6;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.modal-card {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 30, 55, .98), rgba(15, 25, 48, .98));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.modal-card.success {
  border: 1px solid rgba(80, 255, 160, .28);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .55);
}

.modal-card.success .notice {
  background: rgba(80, 255, 160, .10);
  border: 1px solid rgba(80, 255, 160, .25);
}