/* 维护入口样式（复用 app.css 基础变量） */

.wrap.narrow { max-width: 720px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.dim { font-size: 12.5px; color: var(--text-3); }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.field > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
}

.field input[type="password"],
.field input[list],
.field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}

.hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.hint code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.radios { display: flex; flex-direction: column; gap: 8px; }

.radios label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.radios input { margin-top: 4px; accent-color: var(--accent); }

/* 拖拽区 */

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 30px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dz-inner { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.dz-inner strong { color: var(--accent); font-weight: 600; }

/* 预览 */

.cat-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

.cat-head input {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.cat-head input:focus { border-color: var(--accent); }

.badge {
  font-size: 12px;
  color: var(--text-2);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }

.preview-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  word-break: break-word;
}

.preview-table tr:last-child td { border-bottom: 0; }

.preview-table td.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace, var(--emoji);
  color: var(--text-2);
  width: 58%;
}

.more { padding: 8px 12px; font-size: 12px; color: var(--text-3); }

.warn-box {
  margin-bottom: 12px;
  padding: 10px 13px;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.actions-row { display: flex; gap: 10px; margin-top: 16px; }

.result {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.7;
}

.result.ok { background: var(--ok-soft); color: var(--ok); }
.result.err { background: #fdecec; color: #a32d2d; }

.result a { color: inherit; }

.btn[disabled] { opacity: .5; cursor: not-allowed; }
