:root {
  --bg: #0b0f14;
  --panel: #141b24;
  --panel-hi: #1b2531;
  --line: #243040;
  --text: #e6edf5;
  --muted: #8b9bb0;
  --accent: #f6821f;
  --ok: #3ddc97;
  --err: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 20px 64px;
  background: radial-gradient(1200px 600px at 15% -10%, #1b2735 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wrap { max-width: 1080px; margin: 0 auto; }
header { margin-bottom: 24px; }
h1 { margin: 0 0 6px; font-size: 26px; font-weight: 650; letter-spacing: .5px; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0; }

.card {
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 620; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field.inline { display: flex; align-items: center; gap: 12px; margin: 0; }
.field.inline label { margin: 0; white-space: nowrap; }
.field.inline input { flex: 1; }
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row input { flex: 1; }

input[type="password"], input[type="text"], input:not([type]) {
  width: 100%;
  background: #0e151d;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
input:focus { outline: none; border-color: #3a4a60; }

.hint { color: var(--muted); font-size: 12px; white-space: nowrap; }

.drop {
  position: relative;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  margin-bottom: 14px;
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(246, 130, 31, .06); }
.drop p { margin: 0 0 4px; font-size: 13.5px; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

button {
  width: 100%;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  color: #17110a;
  font: inherit;
  font-weight: 640;
  cursor: pointer;
  transition: filter .15s ease;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: not-allowed; }

.badge {
  display: inline-block;
  font-size: 11.5px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  vertical-align: middle;
}

.log {
  margin: 12px 0 0;
  background: #0d141c;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font: 12px/1.65 ui-monospace, Menlo, Consolas, monospace;
  color: #9fd2ff;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 240px;
  overflow: auto;
}
.log .err { color: var(--err); }
.log .ok { color: var(--ok); }

.list { display: flex; flex-direction: column; gap: 10px; }
.site {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  background: #0f161e;
}
.site .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.site .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.site .u { color: #7fb2e0; font-size: 12px; margin-top: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.site .acts { margin-top: 9px; display: flex; gap: 8px; }
.site .acts button { width: auto; padding: 5px 11px; font-size: 12.5px; }
.site .acts .ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.site .acts .ghost:hover { color: var(--err); border-color: #5a2a2a; }

.status-ok { color: var(--ok); }
.status-err { color: var(--err); }

footer { color: var(--muted); font-size: 12.5px; margin-top: 22px; }
footer code { background: #1d2836; padding: 1px 6px; border-radius: 4px; color: #9fd2ff; font-size: 12px; }
