* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 system-ui, "Microsoft YaHei", sans-serif; color: #1f2328; background: #f6f7f9; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid #d8dee4; }
.brand { font-weight: 600; font-size: 17px; }
nav button, nav a { margin-left: 8px; }
main { max-width: 1040px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #d8dee4; border-radius: 8px; padding: 20px 24px; }
.card.wide { padding-bottom: 28px; }
h2 { margin: 0 0 12px; font-size: 18px; }
label { display: block; margin: 10px 0; }
input, textarea, select { font: inherit; padding: 7px 9px; border: 1px solid #b6bfc8; border-radius: 5px; width: 100%; }
form.row input { width: auto; }
button, .button { font: inherit; padding: 6px 12px; border: 1px solid #b6bfc8; border-radius: 5px; background: #fff; cursor: pointer; text-decoration: none; color: inherit; display: inline-block; }
button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; margin-top: 6px; }
button:disabled { opacity: .55; cursor: default; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #d8dee4; margin-bottom: 8px; }
.tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; }
.tab.active { border-bottom-color: #1f6feb; font-weight: 600; }
.hint { color: #57606a; font-size: 13.5px; }
.msg { padding: 8px 12px; border-radius: 5px; }
.msg.ok { background: #dafbe1; }
.msg.err { background: #ffebe9; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e6e8eb; vertical-align: middle; word-break: break-all; }
th { background: #f0f2f5; font-weight: 600; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { padding: 1px 8px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.status.pending { background: #fff8c5; }
.status.approved { background: #dafbe1; }
.status.disabled { background: #ffebe9; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.row label { display: flex; align-items: center; gap: 4px; margin: 0; }
.row input { width: auto; }
progress { width: 160px; vertical-align: middle; }
.fname { min-width: 240px; word-break: break-all; }
textarea#fdm-url { margin: 8px 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
[hidden] { display: none !important; }

/* 名单导入 */
.import-box { border: 1px dashed #b6bfc8; border-radius: 6px; padding: 8px 12px; margin: 12px 0 16px; background: #fbfcfd; }
.import-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.import-box textarea { margin: 8px 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.import-box input[type="file"] { border: 0; padding: 0; width: auto; }
