* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #f6f7f9; color: #262626; font-size: 14px;
}
header {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 12px 24px; border-bottom: 1px solid #eceef1;
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.logo {
  background: #ff2442; color: #fff; padding: 3px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
}
.authbox { display: flex; align-items: center; gap: 10px; }
.badge {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #eee; color: #666;
}
.badge.ok { background: #e6f6ec; color: #1a7f37; }
.badge.warn { background: #fff4e5; color: #b25e09; }
.badge.err { background: #fdeaea; color: #c0392b; }
.tokeninfo { color: #888; font-size: 12px; }

nav { display: flex; gap: 4px; padding: 0 24px; background: #fff; border-bottom: 1px solid #eceef1; }
.tab {
  border: none; background: none; padding: 12px 18px; font-size: 14px; cursor: pointer;
  color: #666; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: #ff2442; border-bottom-color: #ff2442; font-weight: 600; }
.cnt { background: #ff2442; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }

main { padding: 20px 24px; max-width: 1280px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; }

.card {
  background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
h3 { margin: 0 0 14px; font-size: 15px; }
h4 { margin: 12px 0 6px; font-size: 13px; color: #555; }
.hint { color: #999; font-size: 12px; line-height: 1.6; margin: 6px 0; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #555; }
.wide2 { grid-column: span 2; }
.fulld textarea { height: 100%; }
input, select, textarea {
  border: 1px solid #dcdfe6; border-radius: 8px; padding: 8px 10px; font-size: 13px;
  font-family: inherit; outline: none; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: #ff2442; }
textarea { resize: vertical; width: 100%; }

.btn {
  border: 1px solid #dcdfe6; background: #fff; border-radius: 8px; padding: 8px 18px;
  font-size: 13px; cursor: pointer; color: #444;
}
.btn:hover { border-color: #ff2442; color: #ff2442; }
.btn.primary { background: #ff2442; border-color: #ff2442; color: #fff; }
.btn.primary:hover { background: #e01c37; color: #fff; }
.btn.danger { background: #ff2442; border-color: #ff2442; color: #fff; }
.btn.small { padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.btnRow { display: flex; gap: 8px; margin-top: 12px; }

.result { margin-top: 12px; font-size: 13px; line-height: 1.8; }
.result .ok { color: #1a7f37; }
.result .bad { color: #c0392b; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat {
  background: #fff; border-radius: 8px; padding: 6px 14px; font-size: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.stat b { font-size: 15px; margin-right: 4px; }

.tableWrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 1080px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #f0f1f3; white-space: nowrap; }
th { color: #888; font-weight: 500; background: #fafbfc; position: sticky; top: 0; }
td.title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.reason { max-width: 260px; white-space: normal; color: #c0392b; }

.st { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; display: inline-block; }
.st.pending, .st.probing, .st.uploading, .st.creating, .st.pushing { background: #e8f1fd; color: #1c6ed3; }
.st.ready { background: #fff4e5; color: #b25e09; }
.st.success { background: #e6f6ec; color: #1a7f37; }
.st.failed { background: #fdeaea; color: #c0392b; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal[hidden] { display: none; }
.modalCard { background: #fff; border-radius: 12px; padding: 28px; width: 340px; }
.modalCard input { width: 100%; }

.uploadAlt { border-top: 1px dashed #e4e6eb; margin-top: 16px; padding-top: 8px; }
a { color: #ff2442; }
code { background: #f4f5f7; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
