:root {
  --mb-green: #22c55e;
  --mb-green-dark: #16a34a;
  --mb-bg: #f5f7fb;
  --mb-text: #22252a;
  --mb-muted: #9aa0a6;
  --mb-line: #edf0f2;
  --mb-danger: #ff4d4f;
}

html,
body {
  background: var(--mb-bg);
}

.mb-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--mb-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.mb-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 44px 1fr minmax(88px, auto);
  align-items: center;
  height: 56px;
  padding-top: env(safe-area-inset-top);
  background: #fff;
  border-bottom: 1px solid var(--mb-line);
}

.mb-nav h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mb-nav-btn,
.mb-nav-more {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  height: 44px;
  cursor: pointer;
  font-family: inherit;
}

.mb-nav-more {
  font-size: 20px;
  letter-spacing: 2px;
}

.mb-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  min-height: calc(100vh - 56px);
}

.mb-row {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 26px;
  align-items: center;
  min-height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid var(--mb-line);
  background: #fff;
}

.mb-row-desc {
  align-items: start;
  padding-top: 18px;
  padding-bottom: 14px;
  min-height: 96px;
}

.mb-label {
  font-size: 16px;
  color: #303133;
  white-space: nowrap;
}

.mb-required {
  color: var(--mb-danger);
  margin-right: 4px;
}

.mb-control,
.mb-row input,
.mb-row select,
.mb-row textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--mb-text);
  font-size: 15px;
  font-family: inherit;
  appearance: none;
}

.mb-control::placeholder,
.mb-row textarea::placeholder {
  color: #c7cbd1;
}

.mb-row select:invalid {
  color: #c7cbd1;
}

.mb-arrow,
.mb-calendar {
  color: #c2c7cc;
  font-size: 28px;
  text-align: right;
}

.mb-calendar {
  font-size: 18px;
}

.mb-help {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #969ba1;
  font-size: 13px;
  line-height: 1.5;
}

.mb-textarea-row {
  grid-template-columns: 112px 1fr;
  align-items: start;
  min-height: 150px;
  padding-top: 20px;
}

.mb-textarea-row textarea {
  min-height: 108px;
  resize: none;
  line-height: 1.6;
}

.mb-attach-row {
  grid-template-columns: 112px auto 1fr;
  min-height: 108px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 14px;
}

.mb-attach-row .mb-file-tip {
  margin-left: 0;
  align-self: center;
}

.mb-help-muted {
  margin-top: 4px;
}

.mb-upload {
  border: 1px dashed #d8dce0;
  background: #fff;
  color: #8f959d;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.mb-file-tip {
  color: #a2a8ae;
  font-size: 14px;
  margin-left: 12px;
}

.mb-attach-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mb-attach-preview-video {
  grid-template-columns: 1fr;
}

.mb-attach-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mb-line);
  background: #f5f6f7;
}

.mb-attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-attach-video-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mb-line);
  background: #000;
}

.mb-attach-video-wrap video {
  width: 100%;
  max-height: 200px;
  display: block;
  vertical-align: top;
}

.mb-attach-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.mb-attach-remove:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mb-alert {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.55;
}

.mb-alert strong {
  display: block;
  color: #7c2d12;
  margin-bottom: 4px;
}

.mb-alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.mb-submit {
  display: block;
  width: calc(100% - 40px);
  height: 64px;
  margin: 66px auto 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mb-green) 0%, var(--mb-green-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.24);
  cursor: pointer;
}

.mb-submit:active {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.22);
}

.mb-list-link {
  display: block;
  margin: 0 auto 18px;
  border: 0;
  background: transparent;
  color: #148a3f;
  text-decoration: underline;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.mb-list {
  border-top: 10px solid var(--mb-bg);
  padding: 0 0 18px;
}

.mb-list-title {
  padding: 14px 20px 8px;
  color: #303133;
  font-weight: 700;
  font-size: 15px;
}

.mb-tag {
  align-self: start;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  background: #eef2ff;
  color: #2563eb;
}

.mb-tag.done {
  background: #dcfce7;
  color: #15803d;
}

.mb-tag.overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.mb-tag.review {
  background: #fef3c7;
  color: #b45309;
}

.mb-tag.locked {
  background: #f3f4f6;
  color: #9ca3af;
}

.mb-tag.current {
  background: #dbeafe;
  color: #1d4ed8;
}

.mb-task-timeline {
  position: relative;
}

.mb-task-timeline::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #e5e7eb;
}

.mb-task-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--mb-line);
  background: #fff;
  position: relative;
}

.mb-task-item-locked {
  opacity: 0.72;
  background: #fafafa;
}

.mb-task-item-done .mb-task-step {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.mb-task-item-current .mb-task-step {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.mb-task-item-review .mb-task-step {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

.mb-task-item-locked .mb-task-step {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.mb-task-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: #fff;
  z-index: 1;
}

.mb-task-body strong {
  display: block;
  font-size: 15px;
  color: #303133;
}

.mb-task-body p {
  margin: 5px 0 0;
  color: #969ba1;
  font-size: 13px;
  line-height: 1.45;
}

.mb-site-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px 10px;
}

.mb-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}

.mb-step-done {
  background: #22c55e;
}

.mb-step-review {
  background: #f59e0b;
}

.mb-step-rejected {
  background: #ef4444;
}

.mb-step-open {
  background: #3b82f6;
}

.mb-step-locked {
  background: #d1d5db;
}

.mb-alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.mb-alert-info strong {
  color: #1d4ed8;
}

.mb-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--mb-muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.mb-page-progress .mb-progress-shell {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.mb-progress-head {
  padding: 18px 20px 12px;
  background: #fff;
  border-bottom: 1px solid var(--mb-line);
}

.mb-progress-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.mb-progress-meta {
  margin: 0 0 12px;
  color: var(--mb-muted);
  font-size: 13px;
}

.mb-progress-current {
  margin: 10px 0 0;
  font-size: 14px;
  color: #606266;
}

#mb-progress-alerts {
  padding: 12px 16px 0;
}

.mb-progress-subdetail {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.92;
}

.mb-progress-actions {
  padding: 8px 20px 24px;
}

/* ===== 工地列表页 ===== */
.mb-page-list {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.mb-nav-list {
  grid-template-columns: 44px 44px 1fr minmax(88px, auto);
}

.mb-user-bar {
  justify-self: end;
  padding-right: 8px;
  max-width: 140px;
}

.mb-user-label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10px;
  color: var(--mb-muted);
}

.mb-user-label select {
  max-width: 132px;
  border: 1px solid var(--mb-line);
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 11px;
  color: var(--mb-text);
  background: #fff;
}

.mb-user-hint {
  font-size: 10px;
  color: var(--mb-muted);
  padding-right: 4px;
}

.mb-nav-list a.mb-nav-btn,
.mb-nav-list a.mb-nav-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111827;
}

.mb-nav-placeholder {
  display: block;
}

.mb-list-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 12px;
}

.mb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--mb-line);
}

.mb-stats.mb-stats-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.mb-manage-shell > .mb-stats.mb-stats-grid-3 {
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

.mb-stat {
  text-align: center;
  padding: 10px 4px;
  background: #f8fafb;
  border-radius: 8px;
}

.mb-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #15803d;
  line-height: 1.2;
}

.mb-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mb-muted);
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
}

.mb-stat-warn strong {
  color: #dc2626;
}

.mb-filter-bar {
  position: sticky;
  top: 56px;
  z-index: 15;
  background: #fff;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--mb-line);
}

.mb-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.mb-pills::-webkit-scrollbar {
  display: none;
}

.mb-pill {
  flex: none;
  border: 1px solid var(--mb-line);
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.mb-pill.active {
  background: #e9f7ef;
  border-color: #86efac;
  color: #15803d;
  font-weight: 600;
}

.mb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 8px 14px;
}

.mb-search-icon {
  color: var(--mb-muted);
  font-size: 16px;
}

.mb-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--mb-text);
  min-width: 0;
}

.mb-search input::placeholder {
  color: #c7cbd1;
}

.mb-list-count {
  margin: 0;
  padding: 10px 16px 6px;
  font-size: 13px;
  color: var(--mb-muted);
}

.mb-site-list {
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-site-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.mb-site-card:active {
  background: #fafbfc;
}

.mb-site-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.mb-site-card-head strong {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  line-height: 1.35;
  flex: 1;
}

.mb-site-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--mb-muted);
  line-height: 1.45;
}

.mb-site-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mb-site-progress-bar {
  flex: 1;
  height: 6px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
}

.mb-site-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mb-green-dark), var(--mb-green));
  border-radius: 999px;
}

.mb-site-progress em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  min-width: 36px;
  text-align: right;
}

.mb-site-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #969ba1;
  margin-bottom: 10px;
}

.mb-site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mb-line);
}

.mb-site-phase {
  color: #4b5563;
  flex: 1;
  min-width: 120px;
}

.mb-site-overdue {
  color: #dc2626;
  font-weight: 600;
}

.mb-site-go {
  color: #148a3f;
  font-weight: 600;
}

.mb-list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mb-sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-sort-label select {
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--mb-text);
}

.mb-refresh-btn {
  border: 1px solid var(--mb-line);
  background: #fff;
  color: var(--mb-text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.mb-refresh-btn:disabled {
  opacity: 0.6;
}

.mb-refresh-btn-muted {
  color: var(--mb-muted);
}

.mb-stat-btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

a.mb-stat.mb-stat-btn {
  display: block;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.mb-stat-btn.active {
  border-color: #86efac;
  background: #ecfdf5;
}

.mb-site-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mb-site-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.mb-site-badge-red { background: #fee2e2; color: #b91c1c; }
.mb-site-badge-yellow { background: #fef3c7; color: #b45309; }
.mb-site-badge-blue { background: #dbeafe; color: #1d4ed8; }
.mb-site-badge-green { background: #dcfce7; color: #15803d; }

.mb-site-card-overdue { border-color: #fecaca; }
.mb-site-card-review { border-color: #fde68a; }

.mb-proj-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.mb-proj-alert {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.mb-proj-alert-red { background: #fee2e2; color: #b91c1c; }
.mb-proj-alert-yellow { background: #fef3c7; color: #b45309; }
.mb-proj-alert-blue { background: #dbeafe; color: #1d4ed8; }

.mb-proj-card-overdue { border-color: #fecaca; }
.mb-proj-card-review { border-color: #fde68a; }

.mb-tag-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.mb-tag-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.mb-tag-red {
  background: #fee2e2;
  color: #b91c1c;
}

.mb-tag-yellow {
  background: #fef3c7;
  color: #b45309;
}

.mb-tag-green {
  background: #dcfce7;
  color: #15803d;
}

.mb-empty-page {
  padding: 48px 24px;
}

.mb-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--mb-line);
  backdrop-filter: blur(8px);
  max-width: 560px;
  margin: 0 auto;
}

.mb-bottom-link,
.mb-bottom-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
}

.mb-bottom-link {
  border: 1px solid var(--mb-line);
  background: #fff;
  color: #4b5563;
}

.mb-bottom-primary {
  background: linear-gradient(180deg, var(--mb-green) 0%, var(--mb-green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.mb-nav a.mb-nav-btn {
  text-decoration: none;
  color: #111827;
}

/* ===== 登录页 ===== */
.mb-login-page {
  padding-bottom: env(safe-area-inset-bottom);
}

.mb-nav-simple {
  grid-template-columns: 44px 1fr 44px;
}

.mb-login-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.mb-login-lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--mb-muted);
  text-align: center;
}

.mb-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--mb-line);
}

.mb-login-tab {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mb-muted);
  cursor: pointer;
  font-family: inherit;
}

.mb-login-tab.active {
  background: #ecfdf5;
  color: var(--mb-green-dark);
}

.mb-login-hint {
  font-size: 13px;
  color: var(--mb-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.mb-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mb-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mb-login-field span {
  font-size: 13px;
  color: var(--mb-text);
  font-weight: 500;
}

.mb-login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--mb-line);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}

.mb-login-field input:focus {
  outline: none;
  border-color: var(--mb-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.mb-login-submit {
  width: 100%;
  margin-top: 4px;
}

.mb-login-demo {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--mb-muted);
  line-height: 1.5;
}

.mb-login-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-login-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--mb-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mb-login-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--mb-green-dark);
  font-weight: 700;
  font-size: 18px;
}

.mb-login-avatar-field {
  background: #eff6ff;
  color: #1d4ed8;
}

.mb-login-info strong {
  display: block;
  font-size: 16px;
  color: var(--mb-text);
}

.mb-login-info em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mb-muted);
  font-style: normal;
}

.mb-login-go {
  color: var(--mb-muted);
  font-size: 22px;
}

.mb-login-empty {
  text-align: center;
  color: var(--mb-muted);
  padding: 24px;
  font-size: 14px;
}

.mb-login-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  text-align: center;
}

.mb-login-session {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mb-line);
  font-size: 13px;
  color: var(--mb-text);
}

.mb-login-session-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-login-session-logout,
.mb-login-logout {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #c53030;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

.mb-login-foot {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-login-foot a {
  font-size: 13px;
  color: var(--mb-muted);
  text-decoration: none;
}

.mb-page-account {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.mb-account-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.mb-account-card {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 14px;
  padding: 18px;
}

.mb-account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mb-account-name {
  display: block;
  font-size: 18px;
  color: var(--mb-text);
}

.mb-account-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mb-muted);
}

.mb-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mb-account-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--mb-line);
  background: #fff;
  color: var(--mb-text);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}

.mb-account-btn-danger {
  background: #fff5f5;
  border-color: #fecaca;
  color: #c53030;
}

.mb-account-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.mb-account-foot a {
  color: var(--mb-muted);
  text-decoration: none;
}

.mb-user-field-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mb-user-more {
  font-size: 18px;
  line-height: 1;
  color: var(--mb-muted);
  text-decoration: none;
  padding: 2px 4px;
}

/* ===== 管理端 ===== */
.mb-page-manage {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.mb-nav-manage {
  grid-template-columns: 44px 1fr minmax(72px, auto);
}

.mb-manage-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

.mb-manage-hero {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  border: 1px solid #bbf7d0;
}

.mb-manage-greet {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.mb-manage-role {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--mb-muted);
}

.mb-stats-manage {
  margin-bottom: 16px;
}

.mb-quick-actions h2,
.mb-recent-section h2,
.mb-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.mb-quick-actions {
  margin-bottom: 20px;
}

.mb-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mb-action-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--mb-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.mb-action-card strong {
  grid-column: 2;
  font-size: 15px;
}

.mb-action-card em {
  grid-column: 2;
  font-size: 12px;
  color: var(--mb-muted);
  font-style: normal;
}

.mb-action-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 18px;
  font-weight: 700;
}

.mb-action-primary {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.mb-action-primary .mb-action-icon {
  background: var(--mb-green);
  color: #fff;
}

.mb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mb-section-head a {
  font-size: 13px;
  color: var(--mb-green-dark);
  text-decoration: none;
}

.mb-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-recent-card {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mb-line);
  text-decoration: none;
  color: inherit;
}

.mb-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mb-recent-head strong {
  font-size: 15px;
}

.mb-recent-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-empty-inline {
  padding: 16px;
  text-align: center;
  color: var(--mb-muted);
  font-size: 14px;
}

.mb-filter-compact {
  padding: 0 0 8px;
}

.mb-date-filters {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 10px;
}

.mb-date-filter-row {
  display: grid;
  grid-template-columns: 72px 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.mb-date-filter-single {
  margin-bottom: 0;
}

.mb-date-filter-row:last-of-type {
  margin-bottom: 0;
}

.mb-date-filter-label {
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-date-filter-row input[type="date"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--mb-line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}

.mb-date-sep {
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-date-filter-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--mb-muted);
  line-height: 1.4;
}

.mb-proj-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-proj-card {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--mb-line);
}

.mb-proj-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.mb-proj-card-head strong {
  font-size: 16px;
}

.mb-proj-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-proj-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-proj-overdue {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--mb-danger);
}

.mb-proj-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mb-proj-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--mb-line);
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mb-proj-btn-primary {
  background: var(--mb-green);
  border-color: var(--mb-green);
  color: #fff;
}

.mb-form-create {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 80px;
  background: var(--mb-bg);
}

.mb-create-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--mb-line);
  font-size: 13px;
  color: var(--mb-muted);
  line-height: 1.5;
}

.mb-form-block {
  margin-bottom: 12px;
  padding: 4px 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--mb-line);
  overflow: hidden;
}

.mb-form-field {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--mb-line);
}

.mb-form-field:last-child {
  border-bottom: 0;
}

.mb-form-field span {
  font-size: 14px;
  color: #303133;
}

.mb-form-field input,
.mb-form-field select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  text-align: right;
}

.mb-form-label {
  display: block;
  padding: 12px 14px 8px;
  font-size: 14px;
  color: #303133;
}

.mb-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.mb-template-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.mb-template-opt:has(input:checked) {
  border-color: var(--mb-green);
  background: #f0fdf4;
}

.mb-template-opt span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.mb-template-opt span em {
  font-style: normal;
  font-size: 11px;
  color: #909399;
}

.mb-form-readonly {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mb-line);
}

.mb-form-readonly span {
  display: block;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-form-readonly p {
  margin: 4px 0 0;
  font-size: 15px;
}

.mb-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid var(--mb-line);
  background: #fff;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mb-proj-detail-shell {
  padding-bottom: 24px;
}

.mb-proj-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mb-proj-tab {
  flex: 1;
  border: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--mb-line);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mb-proj-tab.active {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: var(--mb-green-dark);
}

.mb-change-logs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-log-item {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mb-line);
}

.mb-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mb-log-head time {
  font-size: 11px;
  color: var(--mb-muted);
}

.mb-log-user {
  margin: 6px 0;
  font-size: 13px;
  color: var(--mb-text);
}

.mb-log-changes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
}

.mb-submission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-submission-item {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mb-line);
}

.mb-submission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mb-submission-head strong {
  font-size: 15px;
}

.mb-submission-meta,
.mb-submission-time {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-submission-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mb-text);
}

.mb-submission-attach,
.mb-submission-review {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mb-muted);
}

.mb-submission-review {
  color: #b45309;
}

.mb-log-changes em {
  color: var(--mb-muted);
  font-style: normal;
}

.mb-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 560px;
  margin: 0 auto;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--mb-line);
  backdrop-filter: blur(8px);
}

.mb-tabbar-field {
  grid-template-columns: repeat(3, 1fr);
}

.mb-page-tabbar {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.mb-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mb-muted);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}

.mb-tab.active {
  color: var(--mb-green-dark);
  background: #ecfdf5;
}

.mb-user-login,
.mb-user-chip {
  font-size: 12px;
  text-decoration: none;
  color: var(--mb-green-dark);
  white-space: nowrap;
}

.mb-user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-right: 4px;
}

.mb-user-chip-role {
  font-size: 10px;
  color: var(--mb-muted);
}

.mb-user-chip-name {
  font-weight: 600;
  color: var(--mb-text);
}

.hidden {
  display: none !important;
}

.mb-report-denied {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
  line-height: 1.5;
  color: #9a3412;
}

.mb-report-denied strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.mb-report-denied a {
  color: var(--mb-green-dark);
}

.mb-form-readonly-view .mb-row {
  opacity: 0.92;
}

.mb-site-go-muted {
  color: var(--mb-muted);
}

.mb-page-reviews {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.mb-review-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

.mb-review-hero {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  border: 1px solid #fde68a;
}

.mb-review-hero-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #92400e;
}

.mb-review-hero-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #78716c;
}

.mb-review-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mb-review-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mb-review-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mb-review-project-filter {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mb-muted);
}

.mb-review-project-filter select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--mb-text);
}

.mb-review-section {
  margin-bottom: 18px;
}

.mb-review-section .mb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mb-section-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.mb-text-btn {
  border: 0;
  background: transparent;
  color: var(--mb-green-dark);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.mb-review-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mb-review-card-rect {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 120px);
}

.mb-review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mb-review-project {
  margin: 0 0 4px;
  font-size: 12px;
  color: #64748b;
}

.mb-review-task {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  color: #0f172a;
}

.mb-review-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.mb-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mb-review-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.mb-review-tag-warn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.mb-review-alert {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 13px;
  line-height: 1.5;
  color: #991b1b;
}

.mb-review-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.mb-review-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}

.mb-review-dl dt {
  color: #94a3b8;
  font-size: 11px;
}

.mb-review-dl dd {
  margin: 2px 0 0;
  color: #334155;
}

.mb-review-block {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.mb-review-block-title {
  margin-bottom: 4px;
  font-size: 11px;
  color: #64748b;
}

.mb-review-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}

.mb-review-attach-empty {
  background: #fef2f2;
}

.mb-review-attach-empty .mb-review-block-title,
.mb-review-attach-empty p {
  color: #b91c1c;
}

.mb-review-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mb-review-gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--mb-line);
}

.mb-review-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-review-videos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mb-review-videos video {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--mb-line);
}

.mb-review-history {
  margin-bottom: 10px;
  font-size: 12px;
  color: #64748b;
}

.mb-review-history summary {
  cursor: pointer;
  color: var(--mb-green-dark);
  font-weight: 600;
}

.mb-review-history ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.mb-review-history li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.mb-review-history em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: #94a3b8;
}

.mb-review-quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mb-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #475569;
  font-family: inherit;
  cursor: pointer;
}

.mb-chip:active {
  background: #f1f5f9;
}

.mb-review-note {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
}

.mb-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mb-review-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--mb-line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.mb-review-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mb-review-btn-approve {
  background: var(--mb-green);
  border-color: var(--mb-green);
  color: #fff;
}

.mb-review-btn-reject {
  color: #b91c1c;
  border-color: #fecaca;
}

.mb-review-history-section {
  padding-top: 4px;
  border-top: 1px solid var(--mb-line);
}

.mb-review-history-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--mb-line);
}

.mb-review-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mb-review-history-head strong {
  font-size: 14px;
  line-height: 1.4;
}

.mb-review-history-item p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.mb-review-history-note {
  margin-top: 4px !important;
  color: #334155 !important;
}

.mb-tab-badge {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: top;
}

.mb-tab.active .mb-tab-badge {
  background: #fff;
  color: var(--mb-green-dark);
}

.mb-empty-inline {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  color: var(--mb-muted);
  font-size: 13px;
}

.mb-action-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  vertical-align: middle;
}
