:root { --red: #ff2442; --bg: #f7f7f8; --card: #fff; --line: #ececec; --txt: #222; --muted: #888; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--txt); font-size: 15px; }
a { color: var(--red); text-decoration: none; }
.nav { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 9; }
.nav .brand { font-weight: 700; color: var(--red); margin-right: 6px; }
.nav a { color: #444; padding: 4px 8px; border-radius: 6px; }
.nav a.on, .nav a:hover { background: #ffeef0; color: var(--red); }
.nav .right { margin-left: auto; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 640px; }
.wrap.wide { max-width: 1280px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .num { font-size: 22px; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
input, textarea, select { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 8px; font: inherit; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; font: inherit; cursor: pointer; }
.btn.ghost { background: #fff; color: #444; border: 1px solid #ddd; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; background: #f0f0f0; color: #666; }
.tag.red { background: #ffeef0; color: var(--red); }
.tag.green { background: #e8f7ee; color: #1a9c53; }
.tag.gray { background: #eee; color: #999; }
.tag.orange { background: #fff3d6; color: #b45309; }
.muted { color: var(--muted); font-size: 13px; }
.copybox { background: #fafafa; border: 1px dashed #ddd; border-radius: 8px; padding: 12px; white-space: pre-wrap; font-size: 14px; position: relative; }
.copybtn { position: absolute; top: 8px; right: 8px; }
.msg { padding: 10px 14px; border-radius: 8px; background: #e8f7ee; color: #1a9c53; margin-bottom: 12px; font-size: 14px; }
.msg.err { background: #ffeef0; color: var(--red); }
.msg.warn { background: #fff7df; color: #9a6700; }
.checkline { display: flex; gap: 8px; align-items: center; color: var(--txt); }
.checkline input { width: auto; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.filters label { margin-top: 0; }
.filter-search { grid-column: span 2; }
.filter-submit { display: flex; gap: 8px; align-items: center; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; min-width: 120px; }
.status-cell { min-width: 84px; }
.status-cell .tag { margin: 1px 0; }
.row-warning td { background: #fffaf0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 5px 10px; border: 1px solid #ddd; border-radius: 8px; color: #555; }
.tabs a.on { color: var(--red); border-color: #ffc4ce; background: #ffeef0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice-list { display: grid; gap: 8px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #ffd2da; background: #fff7f8; border-radius: 8px; padding: 10px; }
.notice.read { border-color: var(--line); background: #fafafa; color: #666; }
fieldset { border: 0; min-width: 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.bars .b { flex: 1; background: #ffd0d8; border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars .b span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.login-wrap { max-width: 360px; margin: 12vh auto; }
@media (max-width: 760px) {
  .wrap { padding: 10px; }
  th, td { padding: 7px 4px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: span 2; }
  .notice { align-items: flex-start; }
}
