/* 监理管理系统：白底、无色块、适合电脑与手机 */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #18181b; }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
a { color: #18181b; }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.45rem; font-weight: 650; margin: 0 0 12px; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 28px 0 10px; border-top: 1px solid #e4e4e7; padding-top: 18px; }
.top { border-bottom: 1px solid #e4e4e7; background: #fff; position: sticky; top: 0; }
.top-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wrap { max-width: 820px; margin: 0 auto; padding: 20px 16px 72px; }
.foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: #52525b;
  font-size: 12px;
}
.lead, .hint, .meta, .crumb { color: #52525b; }
.lead { margin: 0 0 18px; }
.hint { font-size: 13px; }
.meta { font-size: 13px; margin: 4px 0 0; }
.crumb { font-size: 13px; margin: 0 0 16px; }
.flash { border: 1px solid #18181b; padding: 8px 12px; margin: 0 0 16px; }
.errors { color: #18181b; border: 1px solid #18181b; padding: 8px 12px; margin: 0 0 16px; }
.row-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.btn, button.btn {
  display: inline-block;
  background: #fff;
  color: #18181b;
  border: 1px solid #18181b;
  padding: 7px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.btn.primary, button.btn.primary { background: #18181b; color: #fff; }
.btn:hover, button.btn:hover { text-decoration: none; opacity: 0.86; }
button.linkish, .linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #18181b;
  text-decoration: underline;
  cursor: pointer;
}
.inline { display: inline; }
.tag { display: inline-block; border: 1px solid #18181b; padding: 0 6px; font-size: 12px; line-height: 1.6; font-weight: 400; vertical-align: middle; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 10px 0; border-top: 1px solid #f4f4f5; }
.plain-list li:last-child { border-bottom: 1px solid #f4f4f5; }
.cats { list-style: none; margin: 0; padding: 0; }
.cats li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #f4f4f5;
}
.cats li:last-child { border-bottom: 1px solid #f4f4f5; }
.cats a { text-decoration: none; flex: 1; }
.cats a:hover { text-decoration: underline; }
.count { color: #71717a; font-size: 13px; flex: none; }
.form { display: grid; gap: 14px; max-width: 640px; margin: 16px 0 28px; }
.form label, fieldset { display: block; font-weight: 600; }
.form label input, .form label textarea, .form label select,
fieldset input, fieldset select, fieldset textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #18181b;
}
fieldset { border: 1px solid #e4e4e7; padding: 12px; margin: 0; }
legend { padding: 0 6px; font-weight: 650; }
.row2, .row3 { display: grid; gap: 8px; margin-bottom: 8px; }
.row2 { grid-template-columns: 1fr 9em; }
.row3 { grid-template-columns: 1fr 1fr 9em; }
@media (max-width: 640px) {
  .row2, .row3 { grid-template-columns: 1fr; }
}
.check { font-weight: 400; display: flex !important; gap: 8px; align-items: center; }
.check input { width: auto !important; margin: 0 !important; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 12px 0 20px; }
.search-bar input, .search-bar select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  min-width: 200px;
  flex: 1;
}
.sr { font-weight: 650; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.paper { margin: 0 0 24px; }
.pre { white-space: pre-wrap; margin: 0 0 12px; }
.preview { margin-top: 8px; }
.preview img { max-width: 100%; height: auto; border: 1px solid #e4e4e7; }
.preview iframe { width: 100%; height: 480px; border: 1px solid #e4e4e7; }
.danger-form { margin: 24px 0 0; }
@media print {
  .top, .foot, .crumb, .no-print, .danger-form, .actions, .flash { display: none !important; }
  a { text-decoration: none; }
  body { font-size: 14px; }
}
.token-once code.token-plain {
  display: block;
  word-break: break-all;
  font-size: 13px;
  padding: 8px 0 0;
}
.log-detail { font-size: 13px; color: #52525b; }
.sync-status { margin: 16px 0 8px; }

h3 { font-size: 0.95rem; font-weight: 650; margin: 18px 0 8px; }
.todo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.todo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  flex: none;
}
.todo-done-title { text-decoration: line-through; color: #52525b; }
.upload-panel { margin: 8px 0 20px; }
.upload-heading { margin-top: 8px; border-top: 0; padding-top: 0; }
.upload-main {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 8px 0 10px;
}
.upload-main .file-pick { flex: 1; min-width: 16em; font-weight: 600; }
.upload-main .file-pick input,
.upload-main .upload-date input {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #18181b;
}
.upload-main .upload-date { font-weight: 600; flex: none; }
.upload-main .btn { margin-bottom: 1px; }
.upload-optional { margin: 4px 0 0; }
.upload-optional summary {
  cursor: pointer;
  color: #52525b;
  font-size: 13px;
  margin-bottom: 10px;
}
.upload-optional label { font-weight: 600; display: block; margin: 10px 0; }
.upload-optional input, .upload-optional select, .upload-optional textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
}
.open-actions { margin: 0 0 16px; }
.search-bar-compact { margin: 0 0 16px; }
.search-bar-compact input { min-width: 8em; padding: 6px 8px; font-size: 14px; }
.search-bar-compact .btn { padding: 6px 12px; font-size: 14px; }
@media (max-width: 640px) {
  .upload-main { flex-direction: column; align-items: stretch; }
  .upload-main .file-pick, .upload-main .upload-date, .upload-main .btn { width: 100%; }
  .todo-actions { width: 100%; }
  .actions { gap: 8px; }
  .btn, button.btn { padding: 10px 14px; }
}

.optional-create { margin: 0 0 16px; color: #52525b; }
.optional-create summary { cursor: pointer; font-size: 13px; }
.optional-create-links { font-size: 13px; margin: 6px 0 0; }
