:root {
  --bg: #ededed;
  --paper: #ededed;
  --ink: #191919;
  --muted: #888888;
  --line: #e5e5e5;
  --accent: #07c160;
  --accent-soft: #e7f8ef;
  --shadow: none;
  --sss: #111111;
  --ss: #3a3a3a;
  --s: #595959;
  --q: #737373;
  --n: #000000;
  --w: #8c8c8c;
  --page-x: 16px;
  --card-gap: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

.wx-toast {
  position: fixed;
  left: 50%;
  top: 42%;
  z-index: 12000;
  max-width: min(72vw, 280px);
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.wx-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 50% -80px, #efefef, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

button, input, textarea { font: inherit; color: inherit; }

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

input:focus,
textarea:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  accent-color: #1a1a1a;
}

textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  field-sizing: content;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]) {
  max-width: 100%;
  min-width: 0;
}

::placeholder { color: #9a9a9a; }

button { cursor: pointer; }

.app {
  width: min(520px, 100%);
  max-width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 560px) {
  body { padding: 28px 0; }
  .app {
    min-height: calc(100dvh - 56px);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: clip;
  }
}

.screen { min-height: 100dvh; }

.column-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  overflow-x: hidden;
}

.scroll {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

.ptr-tip {
  height: 0;
  overflow: hidden;
  text-align: center;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 44px;
}

.form-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dock {
  flex: none;
  padding: 10px var(--page-x) calc(12px + var(--safe-bot));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.dock .check { margin: 0 0 10px; }
.dock .text-link,
.dock .text-btn,
.actions .text-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}
.dock .form-error { margin-top: 0; }
.custom-dock {
  border-top: 0;
  background: transparent;
  padding-top: 18px;
  padding-bottom: calc(28px + var(--safe-bot));
}

@media (min-width: 560px) {
  .screen { min-height: calc(100dvh - 56px); }
  .column-screen,
  .quiz-screen { height: calc(100dvh - 56px); }
}

.screen-body {
  max-width: 100%;
  min-width: 0;
  padding: 8px var(--page-x) calc(28px + var(--safe-bot));
}

.mast {
  padding: calc(28px + var(--safe-top)) var(--page-x) 0;
}

#screen-gate {
  background: #ededed;
}
.gate-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
  padding: calc(8px + var(--safe-top)) 0 calc(12px + var(--safe-bot));
}
.gate-mail-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.gate-mail-mask[hidden] { display: none !important; }
.gate-mail-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 280px);
  margin: 0;
  padding: 24px 20px 18px;
  border-radius: 12px;
  background: rgba(25, 25, 25, 0.94);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  text-align: center;
}
.gate-mail-mask.is-show .gate-mail-tip {
  animation: gate-tip-in 0.2s ease;
}
.gate-mail-tip p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.gate-mail-back {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 0 18px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #191919;
  font-size: 16px;
  font-weight: 500;
  line-height: 42px;
  -webkit-tap-highlight-color: transparent;
}
.gate-mail-back:active { opacity: 0.82; }
@keyframes gate-tip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#gate-form[hidden],
#gate-account[hidden],
#gate-register[hidden] {
  display: none !important;
}
.account-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100% - 32px, 420px);
  margin: 48px auto 0;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.account-card input,
.account-card select {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  box-shadow: none;
  font-size: 16px;
}
.account-card .btn { border-radius: 8px; }
#gate-register.is-invite .gate-lock-title { margin-bottom: 4px; }
#gate-register.is-invite #reg-invite { margin: 0 0 8px; }
.lock-pop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.28);
}
.lock-pop[hidden] { display: none !important; }
.lock-pop form {
  width: min(100%, 248px);
  margin: 0;
  padding: 14px 14px 10px;
  border-radius: 8px;
  background: #fff;
}
.browse-bar {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(520px, 100%);
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: #fff;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
  color: #191919;
  font-size: 13px;
}
.browse-bar button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #07c160;
  font: inherit;
  flex: none;
}
body.is-browse .app { padding-top: calc(36px + var(--safe-top)); }
.lock-pop .dense-count { margin: -4px 0 8px; text-align: center; }
.lock-pop p {
  margin: 0 0 8px;
  color: #191919;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.lock-pop input {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #f7f7f7;
  font-size: 15px;
}
.lock-pop .btn { min-height: 34px; border-radius: 6px; }
.lock-pop .form-error { margin: 0 0 8px; text-align: center; }
.lock-pop-later {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 6px 0 2px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 13px;
}
.reg-picks {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #f7f7f7;
  overflow: hidden;
}
.reg-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 6px 4px 12px;
}
.reg-pick + .reg-pick { box-shadow: inset 0 0.5px 0 rgba(0, 0, 0, 0.08); }
.reg-pick[hidden] { display: none !important; }
.reg-pick > span {
  width: 32px;
  color: #888;
  font-size: 14px;
  flex: none;
}
.reg-pick div { display: flex; flex: 1; gap: 4px; }
.reg-pick button {
  flex: 1;
  height: 30px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #191919;
  font-size: 14px;
}
.reg-pick button.on {
  background: #fff;
  color: #07c160;
  font-weight: 600;
}
.admin-app #bind-pending {
  display: flex;
  flex-direction: column;
  margin: 0 var(--page-x);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #bind-pending:empty { display: none; }
.admin-app #sys-users {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px var(--page-x) 0;
}
.admin-app #sys-users .person-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px 8px 16px;
  border-radius: 8px;
  background: #fff;
}
.admin-app #sys-users input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-app .sys-screen .is-off { visibility: hidden; pointer-events: none; }
.admin-app #sys-view { display: flex; flex-direction: column; gap: 0; padding-top: 8px; }
.admin-app #sys-view .bind-head { margin: 14px var(--page-x) 6px; color: #888; font-size: 13px; }
.admin-app #sys-view .bind-list { display: flex; flex-direction: column; margin: 0 var(--page-x) 10px; overflow: hidden; border-radius: 8px; background: #fff; }
.admin-app #sys-view .person-line { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; box-shadow: inset 0 -0.5px 0 #ededed; }
.admin-app #sys-view .person-line:last-child { box-shadow: none; }
.admin-app #sys-view .person-line b { flex: 1; min-width: 0; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.admin-app .tabbar.sys-tabs { grid-template-columns: repeat(4, 1fr); }
.admin-app .sys-tabs button { min-height: 48px; font-size: 16px; }
.admin-app .sys-screen .topbar .text-btn { color: #191919; font-size: 16px; }
.admin-app #sys-view > .dense-count,
.admin-app #sys-settings > div > .dense-count {
  margin: 14px var(--page-x) 0;
}
.admin-app #sys-view .bind-tag { flex: none; color: #888; font-size: 13px; }
.admin-app #sys-view .bind-id {
  flex: none;
  color: #888;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.admin-app #sys-set-home {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  margin: 10px var(--page-x) 0 !important;
  overflow: hidden;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #sys-set-home .task-card {
  width: 100% !important;
  min-height: 56px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: inset 0 -0.5px 0 #e5e5e5 !important;
}
.admin-app #sys-set-home .task-card:last-child { box-shadow: none !important; }
.admin-app #sys-set-home .task-card:active { background: #ececec !important; }
.admin-app #sys-set-home .task-card-top strong { font-size: 17px; font-weight: 400; }
.admin-app #sys-set-home .task-card-top i { color: #b2b2b2; font-size: 15px; font-weight: 400; }
.admin-app #sys-settings .profile-form,
.admin-app #sys-view .profile-form {
  margin: 10px var(--page-x) 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #sys-settings .profile-field span,
.admin-app #sys-view .profile-form .profile-field span { width: 76px; }
.admin-app #sys-settings .profile-form .dense-count,
.admin-app #sys-habits .dense-count { margin: 4px 16px 0; }
.admin-app #sys-settings .profile-form .btn,
.admin-app #sys-view .profile-form .btn {
  width: auto;
  min-height: 48px;
  margin: 12px 16px 16px;
  border-radius: 8px;
}
.admin-app #sys-add-level,
.admin-app #sys-add-sign {
  margin: 10px var(--page-x) 0;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #sys-add-level #sys-level-code { flex: 0 0 72px; }
.admin-app #sys-add-sign select { flex: none; width: 4.5em; }
.admin-app #sys-levels,
.admin-app #sys-signs {
  margin: 10px var(--page-x) 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #sys-levels .dense-row,
.admin-app #sys-signs .dense-row {
  min-height: 52px;
  margin: 0;
  padding: 6px 4px 6px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #sys-levels .dense-row:last-child,
.admin-app #sys-signs .dense-row:last-child { box-shadow: none; }
.admin-app #sys-levels .dense-row input,
.admin-app #sys-signs .dense-row input,
.admin-app #sys-levels .dense-row input:focus,
.admin-app #sys-signs .dense-row input:focus {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
  font-size: 16px;
}
.admin-app #sys-habits .compose-cell { flex-direction: column; align-items: stretch; gap: 8px; }
.admin-app #sys-habits .habits-types { width: 100%; margin-top: 0; }
.admin-app #sys-habits .task-pick {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #sys-habits .task-pick:has(input:checked) {
  border-color: transparent;
  background: transparent;
  color: #07c160;
}
.admin-app .sys-actions .person-edit.is-on { color: #07c160; }
.admin-app .sys-actions .person-edit {
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
}
.admin-app .sys-screen .screen-body { padding-bottom: 12px; }
.admin-app .sys-card {
  margin: 0 var(--page-x) 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
}
.admin-app .sys-card button.sys-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.admin-app .sys-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.admin-app .sys-who + .sys-who { margin-top: 8px; }
.admin-app .sys-who b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .sys-who span,
.admin-app .sys-meta { color: #888; font-size: 13px; }
.admin-app .sys-link {
  margin: 6px 0 6px 26px;
  color: #07c160;
  font-size: 13px;
}
.admin-app .sys-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  flex: none;
}
.admin-app .sys-face.is-m,
.admin-app .wx-avatar.is-m { background: #576b95; }
.admin-app #sys-view .person-line { min-height: 56px; }
.admin-app .sys-line {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.admin-app .sys-line:active { background: #ececec; }
.admin-app .sys-line .sys-face { width: 36px; height: 36px; border-radius: 4px; font-size: 16px; }
.admin-app .sys-chevron {
  flex: none;
  color: #b2b2b2;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.admin-app .sys-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app .sys-pair:last-child { box-shadow: none; }
.admin-app .sys-pair:active { background: #ececec; }
.admin-app .sys-pair > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-app .sys-pair small { color: #888; font-size: 12px; }
.admin-app .sys-pair b {
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app #sys-view .wx-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.admin-app #sys-view .wx-profile-copy strong { font-size: 20px; line-height: 1.25; }
.admin-app #sys-view .wx-profile-copy small { line-height: 1.35; }
.admin-app #sys-view .wx-cell {
  width: auto;
  margin: 10px var(--page-x) 0;
  border-radius: 8px;
}
.admin-app #sys-view .wx-logout {
  width: auto;
  margin: 10px var(--page-x) 0;
  border-radius: 8px;
}
.admin-app .bind-list .sys-actions {
  min-height: 48px;
  padding: 0 8px;
}
.admin-app .sys-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-top: 0.5px solid #ededed;
  background: transparent;
  color: inherit;
  text-align: left;
}
.admin-app .sys-sub b { flex: 1; font-weight: 400; }
.admin-app .sys-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.admin-app .sys-edit label { display: flex; align-items: center; gap: 10px; }
.admin-app .sys-edit label span { width: 52px; color: #888; font-size: 14px; flex: none; }
.admin-app .sys-edit input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app .sys-actions { display: flex; justify-content: flex-end; gap: 4px; }
.admin-app #sys-site { display: flex; flex-direction: column; gap: 8px; margin: 8px var(--page-x) 18px; }
.admin-app #sys-site .bind-list { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; }
.admin-app #sys-site .person-line { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; box-shadow: inset 0 -0.5px 0 #ededed; }
.admin-app #sys-site .person-line:last-child { box-shadow: none; }
.admin-app #sys-site .person-line b { flex: 1; min-width: 0; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.admin-app #sys-site .bind-tag { flex: none; color: #07c160; font-size: 13px; }
.admin-app #sys-site .bind-tag.is-wait { color: #888; }
.admin-app #form-list .dense-row b { flex: 1; min-width: 0; font-weight: 400; }
.admin-app #sys-users .bind-id-input {
  flex: none;
  width: 4.8em;
  text-align: center;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.gate-lock {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 420px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.gate-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191919;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.gate-download img {
  display: block;
  width: 132px;
  height: auto;
  flex: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.gate-download:active {
  opacity: 0.72;
}
.gate-download[hidden] { display: none !important; }
.gate-lock-top {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 168px;
  padding: 28px var(--page-x) 20px;
  overflow: visible;
}
.gate-lock-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.gate-lock-core .gate-download {
  margin: 38px 0 0;
}
.gate-lock-core .gate-lock-title {
  margin-top: auto;
  margin-bottom: 22px;
}
.gate-lock-title {
  margin: 0 0 22px;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.gate-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 14px;
  pointer-events: none;
}
.gate-dots i {
  width: 10px;
  height: 10px;
  border: 1.5px solid #191919;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
.gate-dots i.on {
  background: #191919;
}
.gate-dots i.is-lead {
  animation: gate-breathe 1.6s ease-in-out infinite;
}
.gate-dots.is-shake {
  animation: gate-shake 0.42s ease;
}
@keyframes gate-breathe {
  0%, 100% { opacity: 0.22; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}
.gate-lock-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0 !important;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 16px;
}
.gate-lock.is-letter .gate-lock-input {
  position: static;
  width: min(220px, 70%);
  height: 36px;
  margin: 18px auto 0;
  clip: auto;
  opacity: 1;
  overflow: visible;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #191919 !important;
  -webkit-text-fill-color: #191919;
  caret-color: #191919;
  text-align: center;
  letter-spacing: 0.35em;
}
.gate-lock .form-error {
  min-height: 18px;
  margin: 16px 0 0;
  color: #fa5151;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.gate-pad {
  width: 100%;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}
.gate-pad[hidden] { display: none; }
.gate-pad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(0, 0, 0, 0.12);
}
.gate-pad-row:last-child {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
}
.gate-pad-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191919;
  font-size: 32px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}
.gate-pad-key:active {
  background: rgba(0, 0, 0, 0.06);
}
.gate-pad-key.is-empty {
  pointer-events: none;
  visibility: hidden;
}
.gate-pad-key.is-ok {
  font-size: 16px;
  font-weight: 400;
  color: #576b95;
}
.gate-pad-key.is-ok:disabled {
  color: rgba(0, 0, 0, 0.22);
}
.gate-lock-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 18px 28px 8px;
}
.gate-foot-btn {
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #191919;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.gate-foot-btn:active { opacity: 0.55; }
.release-bar[hidden] { display: none; }
.release-bar {
  position: fixed;
  left: max(12px, calc(50% - 248px));
  right: max(12px, calc(50% - 248px));
  top: calc(8px + var(--safe-top));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #161616;
  color: #f3f3f3;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.release-bar p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.release-bar button {
  border: 0;
  background: #f3f3f3;
  color: #161616;
  border-radius: 999px;
  padding: 8px 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.rule {
  height: 4px;
  margin: 16px 0 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.prose p, .lead {
  margin: 12px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.lead { color: var(--muted); margin-top: 4px; }

.prose { padding: 0 22px; }
.intro-greet {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 650;
}

.block-title {
  margin: 22px 22px 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.legend {
  list-style: none;
  margin: 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f7f7f7;
}

.legend li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.legend li:first-child { border-top: 0; }

.legend b {
  width: 62px;
  flex: none;
  font-weight: 650;
}

.lv-SSS b, .tone-0 b { color: var(--sss); }
.lv-SS b, .tone-1 b { color: var(--ss); }
.lv-S b, .tone-2 b { color: var(--s); }
.lv-Q b, .tone-3 b { color: var(--q); }
.lv-N b, .tone-4 b { color: var(--n); }
.lv-W b, .tone-5 b { color: var(--w); }

.count-line {
  margin: 14px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}

.actions { padding: 14px var(--page-x) calc(20px + var(--safe-bot)); }
.actions .btn + .btn { margin-top: 10px; }

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  background: var(--accent);
  color: #f5f5f5;
}

.btn.primary:disabled {
  background: #b0b0b0;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: #b5b5b5;
}

.btn.block { width: 100%; }

.btn.small { padding: 8px 14px; }

.btn:active:not(:disabled) { transform: translateY(1px); }

.text-link, .text-btn, .icon-btn, .as-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.text-link, .text-btn { display: inline-block; font-size: 14px; }

.actions .text-link {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.banner {
  margin: 4px 22px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.banner p { margin: 0 0 10px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 8px;
}

.topbar .icon-btn { justify-self: start; font-size: 15px; }
.topbar .icon-btn:last-child,
.topbar .topbar-side { justify-self: end; }
.icon-btn.is-spacer {
  visibility: hidden;
  pointer-events: none;
}

.topbar-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar.has-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  grid-template-columns: none;
}
.topbar-main {
  display: grid;
  grid-template-columns: minmax(4.5em, 1fr) minmax(0, 1.4fr) minmax(4.5em, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.topbar-main .icon-btn { justify-self: start; }
.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.top-actions .btn {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
#custom-title {
  justify-self: center;
}
#screen-intro .mast,
#screen-done .mast {
  padding-top: 16px;
}

.as-btn { font-weight: 650; font-size: 16px; padding: 8px 4px; }

.field { display: block; margin: 0 0 14px; }

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.field input, .field textarea {
  width: 100%;
  background: #fff;
  padding: 13px 14px;
}

.field textarea { min-height: 96px; }

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
}

.form-error {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
}

.quiz-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 560px) {
  .quiz-screen { height: calc(100dvh - 56px); }
}

.progress {
  height: 3px;
  margin: 0 16px;
  background: #d0d0d0;
  border-radius: 99px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.progress-label {
  margin: 8px 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.quiz-body {
  flex: 1;
  overflow: auto;
  padding-top: 18px;
}

.ask {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.q-title {
  margin: 8px 0 0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 14px;
  background: #f7f7f7;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.option .mark {
  width: 64px;
  flex: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.option .name { font-size: 16px; }

.option.lv-SSS .mark, .option.tone-0 .mark { color: var(--sss); }
.option.lv-SS .mark, .option.tone-1 .mark { color: var(--ss); }
.option.lv-S .mark, .option.tone-2 .mark { color: var(--s); }
.option.lv-Q .mark, .option.tone-3 .mark { color: var(--q); }
.option.lv-N .mark, .option.tone-4 .mark { color: var(--n); }
.option.lv-W .mark, .option.tone-5 .mark { color: var(--w); }

.option.selected.lv-SSS,
.option.selected.tone-0 {
  background: #111111;
  border-color: #111111;
  color: #f5f5f5;
}
.option.selected.lv-SS,
.option.selected.tone-1 {
  background: #3a3a3a;
  border-color: #3a3a3a;
  color: #f5f5f5;
}
.option.selected.lv-SSS .mark,
.option.selected.lv-SS .mark,
.option.selected.tone-0 .mark,
.option.selected.tone-1 .mark { color: #f5f5f5; }

.option.selected.lv-S,
.option.selected.tone-2 {
  background: #d9d9d9;
  border-color: #a6a6a6;
}
.option.selected.lv-Q,
.option.selected.tone-3 {
  background: #e8e8e8;
  border-color: #b0b0b0;
}
.option.selected.lv-N,
.option.selected.tone-4 {
  background: var(--n);
  border-color: var(--n);
  color: #f5f5f5;
}
.option.selected.lv-N .mark,
.option.selected.tone-4 .mark { color: #f5f5f5; }
.option.selected.lv-W,
.option.selected.tone-5 {
  background: #f0f0f0;
  border-color: #c0c0c0;
}

.bulk { margin-top: 16px; }
.bulk-confirm {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.bulk-confirm p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }

.card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f7f7;
  border: 1px solid var(--line);
}

.card p { margin: 0 0 6px; line-height: 1.55; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}

.cat-block { margin: 0 0 16px; }
.cat-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.answer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  touch-action: manipulation;
}

.answer-row > span:first-child,
.answer-row > img.item-thumb + span {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.answer-row .tag {
  flex: none;
  font-size: 13px;
  font-weight: 700;
}
.detail-item { min-width: 0; max-width: 100%; }
.thread {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 8px;
  padding: 4px 0 8px;
}
.thread-line {
  max-width: min(82%, 320px);
  min-width: 0;
  padding: 8px 12px;
  border-radius: 16px;
}
.thread-line.owner {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #1a1a1a;
  color: #f5f5f5;
}
.thread-line.fill {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #fff;
  color: #111;
  border: 1px solid #1a1a1a;
}
.admin-app .thread-line.owner {
  align-self: flex-end;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}
.admin-app .thread-line.fill {
  align-self: flex-start;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 4px;
}
.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.thread-line > b,
.thread-head b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 650;
}
.thread-line p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.thread-tools { display: flex; gap: 12px; flex: none; }
.thread-tools button {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.8;
  padding: 0;
  font-size: 12px;
}
.thread-compose {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  align-self: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.thread-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
}
.thread-compose .btn { align-self: flex-end; flex: none; }
.review-box.thread-compose { flex-wrap: wrap; }
.review-box.thread-compose textarea { flex: 1 1 160px; }
.thread-cat {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.thread-fold {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.thread-fold > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-new {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #f5f5f5;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.thread-chevron {
  flex: none;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.answer-row.can-fold { cursor: pointer; }
.thread-panel .answer-row { border-top: 0; padding-top: 0; }
.review-note {
  margin: 0 0 8px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: #1a1a1a;
  color: #f5f5f5;
}
.review-note b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 650;
}
.review-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-open {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 650;
}
.review-box { margin: 0 0 12px; }
.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.review-alert {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #1a1a1a;
  color: #f5f5f5;
  text-align: left;
  font-size: 15px;
}
.icon-btn.has-review {
  color: #f5f5f5;
  background: #1a1a1a;
  border-radius: 999px;
  padding: 4px 10px;
}
.tag.lv-SSS, .tag.tone-0 { color: var(--sss); }
.tag.lv-SS, .tag.tone-1 { color: var(--ss); }
.tag.lv-S, .tag.tone-2 { color: var(--s); }
.tag.lv-Q, .tag.tone-3 { color: var(--q); }
.tag.lv-N, .tag.tone-4 { color: var(--n); }
.tag.lv-W, .tag.tone-5, .tag.empty { color: var(--w); }

.sheet[hidden], [hidden] { display: none !important; }

.sheet {
  position: fixed;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100%);
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 560px) {
  .sheet {
    top: 28px;
    bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
  }
}

.sheet-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
}

.sheet-panel {
  position: relative;
  max-height: min(78dvh, 640px);
  overflow: auto;
  padding: 16px 16px calc(16px + var(--safe-bot));
  border-radius: 18px 18px 0 0;
  background: var(--paper);
}

@media (min-width: 560px) {
  .sheet-panel { border-radius: 0 0 18px 18px; }
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sheet-head h2 { margin: 0; font-size: 18px; }

.map-list { display: flex; flex-direction: column; margin-bottom: 12px; }

.map-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 16px;
}

.map-item small { color: var(--muted); }

.result {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7f7;
  overflow: hidden;
}

.result summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.result summary::-webkit-details-marker { display: none; }

.result summary strong { display: block; font-size: 17px; }
.result summary em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.result .inner { padding: 0 16px 14px; }

.result .danger {
  margin-top: 8px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 8px 0;
}

/* 水平 padding 以文末 .admin-app .screen-body 为准（0），避免与 #panel-daily 负边距打架 */
.admin-app .topbar { padding: calc(4px + var(--safe-top)) 10px 2px; }
.admin-app .icon-btn { padding: 4px 0; font-size: 14px; }
.dense-count {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.dense-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.dense-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 15px;
}
.dense-form input:focus { border-color: var(--accent); }
.dense-form .btn { flex: none; margin: 0; padding: 7px 12px; }
#new-level-code { flex: 0 0 72px; }
.dense-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  padding: 4px 4px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f7;
}
.dense-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
}
.agreement-row {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f7;
}
.agreement-row.is-proposed {
  border-color: #9fd6c8;
  background: #f3fbf8;
}
.agreement-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agreement-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fa9d3b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.agreement-mark.is-proposed { background: #2aae9b; }
.agreement-row strong { display: block; font-size: 16px; flex: 1; min-width: 0; }
.agreement-origin {
  flex: none;
  padding: 0 6px;
  border-radius: 3px;
  background: #fff1df;
  color: #c47a2c;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}
.agreement-origin.is-proposed {
  background: #e5f6f2;
  color: #1f8f7e;
}
.agreement-row .dense-count { margin: 4px 0 8px; }
.form-origin {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #fff1df;
  color: #c47a2c;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  vertical-align: middle;
}
.form-origin.is-proposed {
  background: #e5f6f2;
  color: #1f8f7e;
}
.form-line.is-proposed {
  background: #f3fbf8;
}
.form-line-state[data-status="proposed"],
.form-line-state[data-status$="发起"] {
  color: #1f8f7e;
}
.name-chip.is-proposed {
  background: #e5f6f2;
  color: #1f8f7e;
  border-color: #9fd6c8;
}
.agreement-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.agreement-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.agreement-thumb-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: 8px;
  background: #eee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.agreement-actions { display: flex; gap: 8px; }
.agreement-actions .btn { flex: 1; }
.dense-row input[data-field="level-mark"] { flex: 0 0 78px; }
.dense-code {
  flex: none;
  width: 2.2em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.admin-app .editor-card { margin: 0 0 6px; padding: 6px 8px; border-radius: 10px; }
.admin-app .editor-card input,
.admin-app .editor-card textarea {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 15px;
}
.admin-app .cat-bar input { margin-top: 0; padding: 6px 8px; }
.admin-app .icon-act { width: 30px; height: 30px; border-radius: 8px; }
.admin-app .icon-act svg { width: 16px; height: 16px; }
.admin-app .editor-item input { margin-top: 4px; }
.admin-app .add-row { margin-top: 4px; gap: 6px; }
.admin-app .progress-card {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 0 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.admin-app .progress-head,
.admin-app .progress-card > .form-line,
.admin-app .progress-card > .empty {
  padding-left: 10px;
  padding-right: 10px;
}
.admin-app .progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.progress-id {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.admin-app .chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 0 0 13px 13px;
  background: #1a1a1a;
  color: #f5f5f5;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}
.admin-app .chat-row .chat-count {
  font-size: 14px;
  font-weight: 500;
  color: #d0d0d0;
}
.admin-app .chat-row.has-new .chat-count {
  color: #fff;
}
.rich-tools {
  display: flex;
  align-items: center;
  height: 32px;
  max-width: 100%;
  padding: 0 6px 0 2px;
  border: 1px solid #e2e2e2;
  border-bottom: 0.5px solid #ededed;
  border-radius: 8px 8px 0 0;
  background: #fff;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rich-tools::-webkit-scrollbar { display: none; }
.rich-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #353535;
}
.rich-tools svg {
  display: block;
  width: 16px;
  height: 16px;
}
.rich-tool-space { flex: 1; min-width: 8px; }
.rich-tools .swatch {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 2px;
}
.rich-tools + .rich-editor {
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.contract-clause.rich-copy,
.contract-clause.rich-copy p,
.contract-clause.rich-copy li,
.contract-clause.rich-copy div {
  font-weight: 450;
  line-height: 1.7;
}
.contract-clause.rich-copy h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.4;
}
.rich-editor {
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
}
.rich-editor:focus { box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08); }
.rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #9a9a9a;
}
@font-face {
  font-family: "Letter Hand";
  src: url("/fonts/ma-shan-zheng.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.letter {
  margin: 2px 0 16px;
  padding: 8px 16px 10px 28px;
  border-radius: 3px 16px 16px 3px;
  color: #2b241c;
  font-family: "Letter Hand", "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  background-color: #f6f1e7;
  background-image:
    linear-gradient(90deg, transparent 16px, rgba(176, 78, 68, 0.45) 16px, rgba(176, 78, 68, 0.45) 17px, transparent 17px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(90, 70, 48, 0.14) 36px);
  background-position: 0 0, 0 8px;
  box-shadow: 0 10px 22px rgba(40, 32, 24, 0.08);
}
.letter-salute,
.letter-body,
.letter-body p,
.letter-body h3,
.letter-body li,
.letter-body div {
  margin: 0;
  color: #2b241c;
  font-family: "Letter Hand", "KaiTi", "STKaiti", "Songti SC", serif;
  font-weight: 400;
  line-height: 36px;
}
.letter-body p { text-indent: 2em; }
.letter .rich-copy p,
.letter .rich-copy h3,
.letter .rich-copy li,
.letter .rich-copy div {
  margin: 0;
  color: #2b241c;
  font-family: "Letter Hand", "KaiTi", "STKaiti", "Songti SC", serif;
  font-weight: 400;
  line-height: 36px;
}
.letter .rich-copy p { text-indent: 2em; }
.letter .rich-copy h3 { font-size: 26px; text-indent: 0; }
.letter-body ul,
.letter-body ol,
.letter .rich-copy ul,
.letter .rich-copy ol { margin: 0; padding-left: 1.15em; }
.rich-copy h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 650; }
.rich-copy p { margin: 0 0 8px; }
.rich-copy p:last-child,
.rich-copy ul:last-child,
.rich-copy ol:last-child { margin-bottom: 0; }
.rich-copy ul,
.rich-copy ol { margin: 0 0 8px; padding-left: 1.2em; }
.quiz-pull { margin-top: 14px; }
.photo-box { margin-top: 8px; }
.photo-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.photo-cell {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.photo-frame {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f3f3;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.photo-pick .photo-frame,
.photo-pick-add {
  flex: none;
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  border-radius: 10px;
}
.photo-pick-add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #b5b5b5;
  background: #fff;
  color: #8a8a8a;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}
.photo-file {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}
body > .photo-file {
  position: fixed;
  left: -80px;
  top: 0;
}
.photo-pick-add .photo-file {
  inset: 0;
  width: 100%;
  height: 100%;
  font-size: 16px;
}
#photo-done { margin-top: 4px; }
.photo-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  padding: 0;
}
.photo-cell .option-note {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  height: auto;
  margin: 0;
}
.mine-photo {
  width: 112px;
  aspect-ratio: 1;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}
.mine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quiz-sheet .sheet-panel {
  display: flex;
  flex-direction: column;
  height: min(92dvh, 760px);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  background: #ededed;
}
.quiz-sheet .sheet-head {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 0 4px;
  background: #ededed;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
}
.quiz-sheet .sheet-head h2 {
  margin: 0;
  overflow: hidden;
  color: #191919;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-sheet .sheet-head .icon-btn:last-child {
  justify-self: end;
  color: #576b95;
  font-size: 16px;
}
.quiz-sheet-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #ededed;
}
.quiz-sheet-body > .empty {
  margin: 0;
  padding: 36px 16px;
  text-align: center;
}
.quiz-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  background: #fff;
}
.quiz-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  text-align: left;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
  -webkit-tap-highlight-color: transparent;
}
.quiz-cat:active { background: #ececec; }
.quiz-cat-name { flex: 1; min-width: 0; }
.quiz-cat-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.quiz-cat small {
  color: #07c160;
  font-size: 13px;
  font-weight: 400;
}
.quiz-cat-go {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #c8c8c8;
  border-bottom: 1.5px solid #c8c8c8;
  transform: rotate(-45deg);
}
.quiz-ask {
  margin-top: 8px;
  padding: 16px 16px 18px;
  background: #fff;
}
.quiz-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #888;
  font-size: 13px;
}
.quiz-step-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #ededed;
}
.quiz-step-bar i {
  display: block;
  height: 100%;
  background: #07c160;
}
.daily-open-msg {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #576b95;
  font-size: 14px;
}
.moment-admin-act {
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #576b95;
  font-size: 14px;
}
.moment-admin-act.danger { color: #fa5151; }
.moment-comment-x {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b2b2b2;
  font-size: 12px;
}
.admin-daily-hint {
  margin: 0;
  padding: 10px 16px;
  color: #888;
  font-size: 13px;
  background: #fff;
}
/* screen-body 已无左右内边距，勿再负边距，否则会被 .scroll overflow-x 裁掉两端 */
.admin-app #panel-daily { margin: 0; }
.admin-app #daily-admin .moment-tabs {
  display: flex;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
}
.admin-app #daily-admin .admin-daily-kind-tabs {
  overflow: hidden;
}
.admin-app #daily-admin .admin-daily-kind-tabs button {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding: 0 2px;
  white-space: nowrap;
}
.admin-app #daily-admin .admin-daily-tab-count {
  display: inline-block;
  margin-left: 4px;
  color: #b2b2b2;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.admin-app #daily-admin .admin-daily-kind-tabs button.on .admin-daily-tab-count {
  color: inherit;
}
.admin-app #daily-admin .moment-compose {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-app .chat-row {
  margin: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  font-weight: 400;
  box-shadow: inset 0 0.5px 0 #e5e5e5;
}
.admin-app .chat-row .chat-count { color: #888; font-weight: 400; }
.admin-app .chat-row.has-new .chat-count { color: #07c160; }
.admin-app .progress-card {
  margin: 8px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.admin-app #task-home { gap: 10px; }
.admin-app #task-list { gap: 10px; margin-top: 8px; background: transparent; }
.admin-app .task-card,
.admin-app .settings-list .task-card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .settings-list { gap: 0; margin: 8px 0 16px; background: #fff; }
.admin-app #open-add-task,
.admin-app #open-add-person { margin: 12px 16px; width: calc(100% - 32px); }
.admin-app .person-block {
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
.admin-app #person-list { background: #fff; margin-top: 8px; }
.admin-app a.wx-shot { display: block; }
.admin-app .task-card-top strong,
.admin-app .task-card-top .detail-title { font-weight: 500; }
.quiz-list-btn {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #576b95;
  font-size: 14px;
}
.quiz-cat.on { background: #f3faf6; }
.quiz-cat.on .quiz-cat-name { color: #07c160; }
.quiz-item-name {
  margin: 0 0 14px;
  color: #191919;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.quiz-sheet-body textarea {
  width: 100%;
  min-height: 132px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.5;
}
.quiz-sheet .form-error {
  margin: 0;
  padding: 0 16px 8px;
}
.quiz-sheet-actions {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 12px calc(8px + var(--safe-bot));
  background: #f7f7f7;
  border-top: 0.5px solid #e5e5e5;
}
.quiz-sheet-actions:empty { display: none; }
.quiz-sheet-actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
}
.quiz-sheet-actions .btn.ghost {
  border: 0;
  background: #fff;
  color: #191919;
}
.quiz-sheet-actions .btn.primary { flex: 1.4; }
.quiz-sheet-actions .btn:disabled { opacity: 0.4; }
.quiz-bank { margin-top: 12px; }
.quiz-bank h3 {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 650;
}
.quiz-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
}
.quiz-line label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.quiz-line input { margin-top: 4px; flex: none; }
.quiz-line span { line-height: 1.45; }
.quiz-line textarea { min-height: 64px; }
.pick-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 0 8px;
  padding: 8px 0;
  background: var(--paper);
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
.pick-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 15px;
  line-height: 1.2;
}
.pick-tabs button.has-thumb { padding: 4px 12px 4px 4px; }
.pick-tabs button.active {
  border-color: transparent;
  background: transparent;
  padding: 0 2px 0 0;
  font-size: 22px;
  font-weight: 650;
}
.module-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
#content-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 14px;
}
#content-switch button {
  justify-content: center;
}
#date-library .library-plus-tab {
  width: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#date-library .library-plus-tab svg {
  width: 18px;
  height: 18px;
  display: block;
}
#date-library .module-switch {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 0 8px;
  padding: 6px 0;
  background: var(--paper);
  max-width: 100%;
}
.module-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.module-switch button.has-thumb { padding: 3px 12px 3px 3px; }
.module-switch button.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #f5f5f5;
}
.form-select-group {
  margin: 0;
  padding: 6px 10px 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.dense-form #form-picks,
.dense-row .form-select {
  flex: 1.15;
  min-width: 0;
}
.form-select-btn {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 6px 22px 6px 8px;
  border: 1px solid #c6c6c6;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-select-btn::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -2px;
  border: 5px solid transparent;
  border-top-color: #333;
}
.form-select.open .form-select-btn::after {
  margin-top: -7px;
  border-top-color: transparent;
  border-bottom-color: #333;
}
.form-select-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  width: min(280px, 72vw);
  margin-top: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.form-select-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
}
.form-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.form-select-mark {
  width: 16px;
  height: 16px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}
.form-select-option[data-picked="1"] .form-select-mark {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.person-block { margin: 0 0 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.person-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.pick-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}
.pick-row input { margin-top: 2px; flex: none; }
.setup-card {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line, #d8d8d8);
  border-radius: 10px;
  background: #fff;
}
.setup-card input:not([type="checkbox"]),
.setup-card textarea,
#person-custom > input,
#person-custom > textarea,
#person-editor .stack input,
#screen-custom .stack input,
.library-add input:not([type="file"]),
.library-add textarea,
.library-card input:not([type="file"]),
.library-card textarea,
.option-note,
.custom-item input,
.custom-item textarea {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.pick-row strong { flex: 1; min-width: 0; }
.setup-card textarea,
#person-custom > textarea,
.editor-card textarea { min-height: 72px; }
.custom-item { margin: 0 0 10px; }
.level-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.level-picks button {
  min-width: 42px;
  min-height: 32px;
  border: 1px solid #c6c6c6;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.sign-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.dense-form select,
.dense-row select.sign-outcome {
  flex: none;
  width: 72px;
  height: 38px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.sign-mark {
  width: 16px;
  height: 16px;
  flex: none;
}
.sign-picks button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 1px solid #c6c6c6;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}
.sign-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
}
.sign-result .text-btn { margin-left: auto; }
#talk-note {
  width: 100%;
  min-height: 120px;
  margin: 0 0 12px;
  background: #fff;
}
.contract-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#screen-contract .scroll { display: flex; flex-direction: column; }
#screen-contract .progress,
#screen-contract .progress-label,
#screen-contract #contract-ask,
#screen-contract .dock { display: none !important; }
#screen-contract .screen-body {
  display: block;
  min-height: 0;
  padding-bottom: 28px;
  box-sizing: border-box;
}
#screen-contract .contract-line {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  cursor: default;
}
#screen-contract .contract-line strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
#screen-contract .contract-line small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 13px;
  line-height: 1.45;
}
.contract-signs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 16px 0;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.contract-signs button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  font-size: 16px;
  text-align: left;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.contract-signs button:last-child { box-shadow: none; }
.contract-signs button.active {
  background: #fff;
  color: #07c160;
}
.contract-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 16px 8px;
}
.sign-pad {
  margin: 12px 16px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.sign-pad-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  background: #fff;
}
.sign-sheet {
  margin: 16px;
  padding: 14px 14px 12px;
  background: #fff;
  border-radius: 10px;
}
.sign-sheet .date-meta-label { margin-bottom: 8px; }
.sign-sheet-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fff;
}
.admin-app #progress-detail .sign-sheet { margin: 8px 16px 16px; }
.item-result {
  display: block;
  margin-top: 6px;
  color: #576b95;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.answer-row > span:has(.item-result),
#screen-contract .contract-line span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contract-signs .sign-mark {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
.contract-left {
  margin: 16px 16px 0;
  color: #888;
  font-size: 13px;
}
.contract-foot { margin: 18px 16px 8px; }
.contract-error-line { margin: 12px 16px; }
.admin-app .lib-intro {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
.admin-app .lib-tools,
.admin-app .lib-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app .lib-tools .person-edit,
.admin-app .lib-item .person-edit {
  flex: none;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
}
.admin-app .lib-tools input,
.admin-app .lib-item input,
.admin-app .lib-item textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #191919;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.admin-app #sys-view .form-sheet {
  margin-top: 0;
  background: #fff;
}
.admin-app #sys-view .form-sheet .dense-row {
  min-height: 52px;
  margin: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #sys-view .form-sheet .dense-row:last-child { box-shadow: none; }
.admin-app #sys-view .form-sheet .dense-row input,
.admin-app #sys-view .form-sheet .dense-row input:focus {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
  font-size: 16px;
}
.admin-app #sys-view .form-sheet .btn.small {
  flex: none;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
}
.admin-app #sys-view #admin-list {
  margin-top: 8px;
  background: #fff;
}
.admin-app #sys-view #admin-list .dense-count,
.admin-app #sys-view #admin-list .empty {
  margin-left: 16px;
  margin-right: 16px;
}
.admin-app #sys-view #admin-list .rich-tools,
.admin-app #sys-view #admin-list .contract-intro {
  margin-left: 16px;
  margin-right: 16px;
}
.admin-app #sys-view #admin-list .add-row {
  margin-left: 16px;
  margin-right: 16px;
}
.admin-app .editor-card:has(.contract-edit),
.admin-app .editor-card:has(.contract-add) {
  margin: 8px 16px 12px;
  padding: 14px 0 12px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.admin-app .qa-edit .contract-intro {
  min-height: 140px;
  margin: 8px 0 0;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.6;
}
.admin-app .qa-edit .rich-tools { margin: 8px 0 0; }
.admin-app .contract-cat-name {
  display: block;
  margin: 0 12px;
  color: #888;
  font-size: 13px;
}
.admin-app .contract-cat-name input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
  box-sizing: border-box;
}
.admin-app .contract-cat-actions {
  margin: 8px 12px 0;
  grid-template-columns: repeat(4, 1fr);
}
.admin-app .contract-edit {
  margin: 4px 12px 0;
  padding-top: 14px;
}
.admin-app .contract-edit .contract-no {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #888;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.admin-app .contract-edit textarea,
.admin-app .contract-add textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  margin: 8px 0 0;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
  resize: vertical;
}
.admin-app .contract-edit .qa-q-actions { margin: 8px 0 0; }
.admin-app .contract-add {
  display: block;
  margin: 14px 12px 0;
}
.admin-app .contract-add textarea { min-height: 120px; }
.admin-app .contract-add .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}
.admin-app .contract-cat-actions .qa-tap { padding: 0 2px; font-size: 14px; }
.admin-app .contract-new-cat {
  display: block;
  margin: 8px 16px 16px;
}
.admin-app .contract-new-cat input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  box-sizing: border-box;
}
.admin-app .contract-new-cat .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}
#screen-contract .sign-picks,
#screen-contract .contract-nav { margin-top: 0; flex: none; }
#screen-contract .sign-picks button { flex: none; min-height: 44px; }
.answer-row.clause-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.answer-row.clause-row .tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sign-picks button.active {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #1a1a1a;
}
#person-editor { display: flex; flex-direction: column; gap: 8px; }
#open-add-person { margin-bottom: 12px; }
.library-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
}
.library-group input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
}
.library-add { gap: 10px; }
.library-add input:not([type="file"]) { font-size: 18px; font-weight: 650; }
.library-add textarea { font-size: 13px; min-height: 64px; }
.library-add input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px dashed #d4d4d4;
  border-radius: 14px;
  background: #fafafa;
  color: var(--muted);
  font-size: 13px;
}
.library-add input[type="file"]::file-selector-button,
.library-card input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
}
.library-card,
.option-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}
.library-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
}
.library-card.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}
.library-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.library-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}
.library-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.library-edit {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.library-edit input { font-size: 18px; font-weight: 650; }
.library-edit textarea { font-size: 13px; min-height: 64px; }
.library-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 2px;
}
.library-actions .text-btn { padding: 4px 8px; }
.library-actions .icon-act:first-of-type { margin-left: auto; }
.library-thumb,
.option-blank {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  display: grid;
  place-items: center;
  color: #888;
  font-size: 12px;
}
.library-card .library-thumb { width: 84px; height: 84px; border-radius: 12px; }
.library-photo {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
}
.library-photo:disabled { cursor: default; }
.library-photo:not(:disabled) { cursor: pointer; }
.photo-badge {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.library-pick-image {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crop-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(20, 20, 20, 0.86);
}
.crop-stage {
  width: min(86vw, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  touch-action: none;
  position: relative;
}
.crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  pointer-events: none;
}
.crop-note { margin: 0; color: #f3f3f3; font-size: 14px; }
.crop-mask input[type="range"] { width: min(86%, 360px); }
.crop-actions { display: flex; gap: 10px; }
.crop-actions .btn { min-width: 108px; }
.option-note {
  min-height: 68px;
  padding: 10px 12px;
  background: #f8f8f8;
}
.library-card .dense-form { grid-column: 1 / -1; }
.library-thumb.small,
.library-pick .library-thumb { width: 44px; height: 44px; }
.library-pick { align-items: center; }
.kind-pick span { display: flex; flex-direction: column; gap: 2px; }
.kind-pick small { color: var(--muted); font-size: 12px; }
#panel-date #open-date-library {
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
}
#panel-date #date-library-page .detail-back {
  margin: 0 0 8px;
}
.plan-pick-tabs,
.plan-pick-tabs.propose-tabs,
#agreement-editor .plan-pick-tabs,
#screen-home .plan-pick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 var(--page-x) 12px;
  padding: 0;
  background: transparent;
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.plan-pick-tabs button,
.plan-pick-tabs.propose-tabs button,
.admin-app .plan-pick-tabs button,
.admin-app .plan-pick-tabs.propose-tabs button,
.admin-app #agreement-editor .plan-pick-tabs button {
  flex: 0 1 auto;
  min-height: 30px;
  margin: 0;
  padding: 5px 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none;
}
.plan-pick-tabs button.active,
.plan-pick-tabs.propose-tabs button.active,
.admin-app .plan-pick-tabs button.active,
.admin-app .plan-pick-tabs.propose-tabs button.active,
.admin-app #agreement-editor .plan-pick-tabs button.active {
  border-color: #07c160;
  background: #07c160;
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}
.plan-option-list {
  margin: 0 var(--page-x) 16px;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.plan-pick-row { align-items: center; }
.plan-pick-row span { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.plan-pick-row strong {
  color: #191919;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.plan-pick-row small {
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
button.propose-option-add {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.plan-option-list > button.propose-option-add:last-child {
  border-bottom: 0;
}
button.propose-option-add:active {
  background: #f7f7f7;
}
.propose-extra-tip {
  margin-bottom: 6px !important;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.35;
}
.propose-extra-list {
  margin: 0 16px 8px;
  padding: 0 2px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.admin-app .propose-extra-list { margin: 0 0 8px; }
.plan-extra-row {
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}
.plan-extra-row:last-child { border-bottom: 0; }
.plan-extra-row span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-extra-row strong {
  color: #191919;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.plan-extra-row small {
  color: #888;
  font-size: 12px;
  line-height: 1.35;
}
.plan-extra-row .text-btn {
  flex: none;
  margin: 0;
  padding: 0;
  color: #576b95;
  font-size: 13px;
}
.propose-extra-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 16px 8px;
}
.propose-extra-kind {
  min-height: 26px;
  padding: 0 9px;
  border: 0.5px solid #e0e0e0;
  border-radius: 13px;
  background: #fff;
  color: #666;
  font-size: 12px;
}
.propose-extra-kind.on {
  border-color: #07c160;
  background: #e7f8ef;
  color: #07c160;
  font-weight: 500;
}
.admin-app .propose-extra-kinds { margin: 0 0 8px; }
.propose-extra-form {
  display: grid;
  gap: 6px;
  margin: 4px 16px 8px;
  padding: 10px 10px 8px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.admin-app .propose-extra-form { margin: 4px 0 8px; }
.propose-extra-form .propose-name {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 15px;
  box-sizing: border-box;
}
.propose-extra-detail {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  color: #191919;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  box-sizing: border-box;
}
.propose-extra-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.propose-extra-bar .btn.small {
  margin: 0 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 16px;
}
.propose-extra-thumb {
  flex: none;
  width: fit-content;
}
.propose-extra-thumb-btn {
  width: 36px;
  height: 36px;
  border: 0.5px dashed rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: #fafafa;
  color: #576b95;
  font: inherit;
  font-size: 13px;
  line-height: 1;
}
.propose-extra-shot {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.propose-extra-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.propose-extra-shot .wx-shot-x {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}
.propose-send-error {
  margin: 4px 16px 0 !important;
}
.propose-send-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 16px 28px;
  padding-top: 4px;
}
.admin-app .propose-send-bar { margin: 18px 0 28px; }
.propose-send-bar .propose-send {
  width: auto;
  min-width: 168px;
  margin: 0;
  padding: 11px 28px;
  border-radius: 999px;
}
.quiz-picked-box {
  margin: 0 var(--page-x) 12px;
  padding: 10px 12px;
  border: 1px solid #d8e8de;
  border-radius: 12px;
  background: #f3faf6;
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.quiz-picked-label {
  margin: 0 0 8px;
  color: #066b36;
  font-size: 12px;
  font-weight: 700;
}
.quiz-picked-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz-picked-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  touch-action: manipulation;
}
.quiz-picked-item strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.quiz-picked-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.quiz-picked-item .quiz-picked-mark {
  flex: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.quiz-picked-item .quiz-picked-thumb {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f0f0;
}
.quiz-chip-cat {
  margin: 8px var(--page-x) 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.quiz-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 var(--page-x) 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.quiz-chip {
  appearance: none;
  max-width: 100%;
  padding: 6px 10px;
  border: 0.5px dashed #cfcfcf;
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  touch-action: manipulation;
}
.quiz-chip.on {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.quiz-chip.has-note::after {
  content: "备";
  display: inline-block;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 1px;
}
.plan-note-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.plan-note-panel {
  width: min(100%, 420px);
  padding: 16px 16px calc(16px + var(--safe-bot));
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.plan-note-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.plan-note-input {
  display: block;
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.plan-note-actions {
  display: flex;
  gap: 8px;
}
.plan-note-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f7;
  font: inherit;
  font-size: 15px;
}
.plan-note-actions button.is-ok {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.assign-list {
  max-height: 46vh;
  margin: 8px 0 12px;
  overflow: auto;
}
.bind-setup {
  margin: 0 0 10px;
  background: #fff;
}
.bind-setup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  border: 0;
  box-shadow: inset 0 -0.5px 0 #ededed;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}
.bind-setup-step:last-child { box-shadow: none; }
.bind-setup-step i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}
.bind-setup-step span { min-width: 0; }
.bind-setup-step b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}
.bind-setup-step small {
  display: block;
  margin-top: 2px;
  color: #888;
  font-size: 13px;
}
.bind-setup-link {
  margin: 0;
  padding: 8px 16px 14px;
  color: #576b95;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}
.pledge-card {
  margin: 0 0 10px;
  padding: 16px;
  background: #fff;
}
.pledge-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.pledge-card p {
  margin: 0;
  color: #191919;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.pledge-card .btn { margin-top: 14px; }
.pledge-input { min-height: 180px; }
#screen-home .quiz-chip-cat,
#screen-home .quiz-chip-grid,
#screen-home .quiz-picked-box,
#agreement-editor .quiz-chip-cat,
#agreement-editor .quiz-chip-grid,
#agreement-editor .quiz-picked-box {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
#agreement-editor > .dense-count,
#screen-home .propose-note + .dense-count,
#screen-home .date-meta-back + .dense-count {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
#agreement-editor .quiz-chip-grid,
#screen-home .quiz-chip-grid {
  max-width: calc(100% - 2 * var(--page-x));
}
.plan-pick-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #f2f2f2;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
#screen-home .plan-option-list,
#agreement-editor .plan-option-list {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.thought-label { margin: 0; }
.answer-row .thought-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}
.library-pick small,
.option-hit small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.option-hit {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.option-hit img {
  display: block;
  width: 72px;
  height: 72px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}
.option-hit .option-copy {
  flex: 1;
  min-width: 0;
}
.option-hit strong,
.option-hit small { display: block; }
.option-mark {
  flex: none;
  font-size: 12px;
  color: #666;
  border: 1px solid #c6c6c6;
  border-radius: 999px;
  padding: 4px 8px;
}
.option-card.on { border-color: #1a1a1a; }
.option-card.on .option-mark { background: #1a1a1a; color: #f5f5f5; border-color: #1a1a1a; }
.form-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.form-line > span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.form-line .meter,
.form-line .empty { grid-column: 1 / -1; }
.form-line .empty { margin: 0; }
.form-choice {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  text-align: left;
  color: inherit;
  font: inherit;
}
.form-choice strong { display: block; font-size: 16px; }
.mine-note {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.mine-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 8px;
}
.mine-actions .btn { flex: 1; }
.mine-drop {
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-align: center;
  padding: 8px 0;
}
.mine-row-delete {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  padding: 0;
}
.mine-edit .level-picks { margin: 0 0 8px; }
.mine-edit .option-note { margin-bottom: 8px; }
.detail-back { margin: 0 0 8px; padding-top: 0; }
.detail-title { margin: 0 0 4px; font-size: 22px; }
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
  margin: 8px 0 4px;
  padding: 8px 0;
  background: var(--paper);
}
.detail-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 14px;
  touch-action: manipulation;
}
.detail-tabs button.has-thumb { padding: 3px 8px 3px 3px; }
.detail-tabs button.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #f5f5f5;
}
.detail-tabs i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #f5f5f5;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.detail-tabs button.active i {
  background: #f5f5f5;
  color: #1a1a1a;
}
.tab-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #eee;
}
.pick-tabs button.active .tab-thumb {
  width: 32px;
  height: 32px;
}
.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #eee;
}
.thread-fold .item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.detail-photo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #ececec;
}
.answer-row .muted { flex: none; font-size: 12px; }
.name-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0 5px;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  background: #fff;
  color: #3a3a3a;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .meter { height: 4px; margin-top: 6px; }
.admin-app .empty { margin: 4px 0 0; font-size: 12px; line-height: 1.35; }
.admin-app .tabbar {
  grid-template-columns: repeat(5, 1fr);
  padding: 2px 2px calc(2px + var(--safe-bot));
}
.admin-app .tabbar button { position: relative; }
.admin-app .screen.is-moments,
.admin-app .screen.is-moments .scroll,
.admin-app .screen.is-moments .screen-body,
.admin-app .screen.is-moments .topbar {
  background: #fff;
}
.task-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
}
.task-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-field > span {
  font-size: 13px;
  font-weight: 650;
  color: #6a6a6a;
}
.task-editor-body {
  min-height: 180px;
  font-size: 16px;
  line-height: 1.7;
}
.task-notice {
  min-height: 112px;
  line-height: 1.6;
}
.task-picks { display: flex; flex-direction: column; gap: 8px; }
.task-returns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.task-returns .task-pick {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 12px 6px;
  text-align: center;
}
.task-returns .task-pick span {
  font-size: 13px;
  line-height: 1.3;
}
.task-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
}
.task-pick:has(input:checked) {
  border-color: #1a1a1a;
  background: #f4f4f4;
}
.task-form .btn.block { margin-top: 4px; }
.settings-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.settings-list .task-card-top i {
  flex: none;
  color: #8a8a8a;
  font-style: normal;
  font-size: 13px;
}
#task-home { display: flex; flex-direction: column; gap: 12px; }
#task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}
.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.task-card-top strong,
.task-card-top .detail-title,
.task-module .task-card-top h3 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}
.task-status {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #6a6a6a;
  font-size: 12px;
  line-height: 1.2;
}
.task-status.done {
  background: #1a1a1a;
  color: #fff;
}
.task-status.accepted {
  background: #e8f6ee;
  color: #1f7a45;
}
.task-status.rejected {
  background: #f7e8e8;
  color: #a33b3b;
}
.task-accept-block .dense-count { margin: 0 0 10px; }
.task-accept-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.task-accept-actions .btn { width: 100%; }
.task-accept-state {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
}
.task-accept-state.yes { color: #1f7a45; }
.task-accept-state.no { color: #a33b3b; }
.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.task-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #3a3a3a;
  font-size: 12px;
}
.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  color: #6a6a6a;
  font-size: 13px;
}
.task-card-foot b {
  flex: none;
  color: #1a1a1a;
  font-weight: 650;
}
.task-sheet-block,
.task-module {
  margin-top: 12px;
}
.task-sheet-block {
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.task-sheet-block > span,
.task-kicker {
  display: block;
  margin: 0 0 8px;
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 650;
}
.task-sheet-block .task-copy { margin: 0; padding: 0; background: transparent; }
.task-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.task-actions .btn { width: 100%; }
.task-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.task-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
.task-empty {
  margin: 0;
  color: #8a8a8a;
  font-size: 14px;
}
.task-copy {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.task-copy p { margin: 0 0 8px; }
.task-copy h3 { margin: 0 0 8px; font-size: 22px; }
.task-editor-body img,
.task-copy img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 12px;
}
.task-shot {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}
.task-shots { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.task-line { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-module {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.task-module h3 { margin: 0 0 4px; font-size: 16px; }
.task-module .dense-count { margin: 0 0 10px; }
.task-module .btn { margin-top: 8px; }
.task-feel {
  display: block;
  width: 100%;
  min-height: 168px;
  line-height: 1.6;
}
.task-feel-card {
  padding: 0;
  overflow: hidden;
}
.task-feel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}
.task-feel-head h3 { margin: 0; font-size: 16px; }
.task-feel-head span { color: #b2b2b2; font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-app .tabbar button { padding: 4px 0 2px; }
.admin-app .tabbar button svg { width: 20px; height: 20px; }

.editor-card { margin: 0 0 14px; }
.editor-card .btn { margin-top: 10px; }
.editor-label {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
h2.editor-label {
  margin: 26px 0 8px;
  font-size: 16px;
}
.add-row input[data-field="level-mark"] {
  flex: 0 0 96px;
}
.editor-card input,
.editor-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #c6c6c6;
  border-radius: 12px;
  background: #f7f7f7;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
}
.editor-card textarea { min-height: 72px; }
.editor-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}
.cat-bar input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  font-weight: 650;
}
.cat-count {
  min-width: 1.5em;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.cat-body { padding-top: 4px; }
.icon-act {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
  touch-action: manipulation;
}
.icon-act svg { width: 20px; height: 20px; }
.icon-act.open svg { transform: rotate(90deg); }
.icon-act.danger { color: var(--accent); }
.icon-act:disabled { opacity: 0.28; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex: none;
  border-top: 1px solid var(--line);
  background: #f7f7f7;
  padding: 4px 4px calc(4px + var(--safe-bot));
}
.tabbar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 6px 0 4px;
  touch-action: manipulation;
}
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.active { color: var(--accent); }
#filler-tabs { grid-template-columns: repeat(4, 1fr); }
#filler-tabs button { position: relative; }
.tab-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(8px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #fa5151;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 16px;
  text-align: center;
}
#screen-home > .dock { padding-bottom: 12px; }
.app .progress-head {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.app .progress-head .name-chip {
  color: #3a3a3a;
  font-weight: 500;
}
.progress-card { margin: 0 0 12px; }
button.progress-card {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.progress-head strong { font-size: 17px; }
.progress-head span { color: var(--accent); font-weight: 650; }
.meter {
  height: 6px;
  margin-top: 10px;
  background: #d0d0d0;
  border-radius: 99px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.editor-head input { margin-top: 0; font-weight: 650; }
.editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 2px;
  align-items: center;
}
.contract-intro {
  display: block;
  width: 100%;
  min-height: 96px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}
.editor-item.contract-line {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: start;
  margin-top: 8px;
}
.contract-no {
  min-width: 52px;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #6a6a6a;
}
.contract-clause .contract-no {
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.contract-clause .contract-body {
  margin: 6px 0 0;
}
.contract-clause {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 650;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor-item textarea,
.add-row textarea {
  flex: 1;
  min-width: 0;
  min-height: 72px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}
.add-row textarea { margin-top: 0; }
.contract-add { align-items: flex-end; }
.mini {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 13px;
  touch-action: manipulation;
}
.mini:disabled { opacity: 0.35; }
.mini.danger { color: var(--accent); }
.add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.add-row input { flex: 1; margin-top: 0; }
.add-row .btn { margin-top: 0; flex: none; }

.empty {
  color: var(--muted);
  line-height: 1.6;
}

.topbar {
  background: rgba(246, 245, 243, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}
.icon-btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e7e3dd;
  font-weight: 650;
}
.icon-btn.is-spacer {
  background: transparent;
  border-color: transparent;
}
.card,
.task-card,
.form-choice,
.option,
.legend,
.progress-card {
  background: #fff;
  border-color: #efece7;
  box-shadow: 0 10px 28px rgba(28, 26, 22, 0.05);
}
.form-choice { border-radius: 18px; }
.task-card { border-radius: 8px; }
.screen-body > .block-title,
.screen-body .block-title {
  margin-left: 2px;
  margin-right: 2px;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6b66;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.block-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #171717;
  flex: none;
}
.todo-board {
  margin: 2px 0 18px;
  padding: 14px 12px 4px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
  border: 1px solid #efece7;
  box-shadow: 0 16px 36px rgba(28, 26, 22, 0.06);
}
.todo-board .block-title { margin: 2px 6px 12px; }
.todo-board .form-choice {
  background: #f7f6f4;
  box-shadow: none;
}
.todo-board .empty { margin: 0 6px 12px; }
.form-choice .task-card-top strong { flex: 1; }
.row-go {
  flex: none;
  color: #b0aaa3;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}
.tabbar {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: #efece7;
  box-shadow: 0 -8px 24px rgba(28, 26, 22, 0.04);
}
.tabbar button { position: relative; font-weight: 600; }
.tabbar button svg { position: relative; z-index: 1; }
.tabbar button.active::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 54px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #eceae6;
  z-index: 0;
}
.progress { height: 4px; background: #e4e0da; }
.option { background: #fff; border-color: #e7e3dd; }
.meter { height: 7px; background: #e7e3dd; }
.q-title,
.detail-title {
  letter-spacing: 0.01em;
}

body { background: #ededed; }
.app { background: #ededed; }
.topbar {
  background: #ededed;
  border-bottom: 0;
}
.topbar-title { font-size: 17px; font-weight: 500; }
.icon-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191919;
  font-weight: 400;
  font-size: 16px;
}
.wx-back {
  width: 44px;
  font-size: 0;
  position: relative;
}
.wx-back::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-left: 2px solid #191919;
  border-bottom: 2px solid #191919;
  transform: rotate(45deg);
}
.detail-back { color: #191919; }
.detail-back::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.btn { border-radius: 6px; }
.btn.primary { background: #07c160; color: #fff; }
.btn.primary:disabled { background: #b7e6cb; color: #fff; }
.card,
.task-card,
.form-choice,
.option,
.legend,
.progress-card,
.todo-board {
  background: #fff;
  border-color: #e5e5e5;
  box-shadow: none;
}
.block-title::before { display: none; }
.block-title {
  color: #888;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
#screen-home .screen-body { padding: 8px 0 calc(12px + var(--safe-bot)); }
#screen-home .block-title { margin: 14px 16px 6px; }
.todo-board {
  margin: 0 0 8px;
  padding: 0;
  border-radius: 0;
  border: 0;
}
.todo-board .block-title { margin: 14px 16px 6px; }
.todo-board .empty { margin: 0 16px 12px; }
.form-choice,
.task-card {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e5e5;
}
.form-choice .empty { color: #888; font-size: 14px; }
.row-go { color: #c7c7cc; font-size: 18px; }
.tabbar {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  box-shadow: none;
}
.tabbar button { color: #191919; font-weight: 400; }
.tabbar button.active { color: #07c160; }
.tabbar button.active::before { display: none; }
.tab-badge,
.thread-new {
  background: #fa5151;
  color: #fff;
}
.progress { height: 2px; background: #e5e5e5; }
.progress span,
.meter span { background: #07c160; }
.meter { background: #e5e5e5; }
.option,
.option.selected,
.option.selected.lv-SSS,
.option.selected.lv-SS,
.option.selected.lv-S,
.option.selected.lv-Q,
.option.selected.lv-N,
.option.selected.lv-W,
.option.selected.tone-0,
.option.selected.tone-1,
.option.selected.tone-2,
.option.selected.tone-3,
.option.selected.tone-4,
.option.selected.tone-5 {
  background: #fff;
  color: #191919;
  border-color: #e5e5e5;
}
.option.selected,
.option.selected.lv-SSS,
.option.selected.lv-SS,
.option.selected.lv-S,
.option.selected.lv-Q,
.option.selected.lv-N,
.option.selected.lv-W,
.option.selected.tone-0,
.option.selected.tone-1,
.option.selected.tone-2,
.option.selected.tone-3,
.option.selected.tone-4,
.option.selected.tone-5 {
  border-color: #07c160;
  background: #f3fbf6;
}
.option.selected .mark,
.option.selected.lv-SSS .mark,
.option.selected.lv-SS .mark,
.option.selected.tone-0 .mark,
.option.selected.tone-1 .mark,
.option.selected.lv-N .mark,
.option.selected.tone-4 .mark { color: inherit; }
.sign-picks button.active {
  background: #07c160;
  border-color: #07c160;
  color: #fff;
}
.thread { background: transparent; }
.thread-line.owner {
  background: #fff;
  color: #191919;
  border: 0;
}
.thread-line.fill {
  background: #95ec69;
  color: #191919;
  border: 0;
}
.admin-app .thread-line.owner {
  background: #95ec69;
  color: #191919;
}
.admin-app .thread-line.fill {
  background: #fff;
  color: #191919;
}
.thread-panel { background: #ededed; padding: 10px 0; }
.wx-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  background: #fff;
}
.wx-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #07c160;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.wx-profile {
  width: 100%;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
}
#screen-home .wx-profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
#screen-home .wx-profile-copy strong {
  overflow: hidden;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screen-home .wx-profile-copy small {
  color: #888;
  font-size: 13px;
  line-height: 1.35;
}
#screen-home .wx-profile .wx-avatar { background: #576b95; }
#screen-home .mine-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 10px var(--page-x) 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
#screen-home .mine-menu .task-card {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
#screen-home .mine-menu .task-card:last-child { box-shadow: none; }
#screen-home .mine-menu .task-card:active { background: #ececec; }
#screen-home .mine-menu .task-card-top strong { font-size: 17px; font-weight: 400; }
#screen-home .mine-menu .task-card-top i {
  color: #b2b2b2;
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
}
#screen-home .mine-lock-note { margin: 14px var(--page-x) 6px; }
#screen-home .mine-lock {
  margin: 0 var(--page-x);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
#screen-home .wx-logout {
  width: auto;
  margin: 10px var(--page-x) 0;
  border-radius: 8px;
}
.wx-profile-copy strong { font-size: 22px; font-weight: 600; }
.wx-avatar { flex: none; overflow: hidden; }
.wx-profile-copy small { color: #888; font-size: 13px; font-weight: 400; }
.wx-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: #191919;
  font-size: 17px;
  text-align: left;
}
.wx-cell::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #c7c7c7;
  border-right: 1.5px solid #c7c7c7;
  transform: rotate(45deg);
}
.profile-cover {
  display: block;
  width: 100%;
  height: 168px;
  border: 0;
  background: #c8c8c8 center/cover no-repeat;
  position: relative;
}
.profile-cover-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.profile-cover-actions button {
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
}
.profile-avatar-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 17px;
  text-align: left;
}
.profile-photo-clear {
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #fa5151;
  font-size: 15px;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  color: #191919;
  font-size: 17px;
  text-align: left;
}
.profile-form { margin-top: 8px; background: #fff; }
.profile-field,
.profile-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
.profile-field span,
.profile-choice > span { width: 64px; color: #888; font-size: 15px; flex: none; }
.profile-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #191919;
  font-size: 17px;
}
.profile-choice div { display: flex; gap: 8px; }
.profile-choice button {
  min-width: 52px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #191919;
  font-size: 15px;
}
.profile-choice button.on { background: #e7f7ee; color: #07c160; }
.profile-note { margin: 12px 16px 0; color: #888; font-size: 13px; line-height: 1.45; }
.profile-save { width: calc(100% - 32px); margin: 16px; }
.moment-cover.has-photo { background-size: cover; background-position: center; }
.moment-avatar { overflow: hidden; padding: 0; flex: none; }
img.wx-avatar,
img.moment-cover-avatar,
img.moment-avatar-face {
  display: block;
  flex: none;
  object-fit: cover;
  object-position: center;
}
img.wx-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  max-height: 64px;
}
img.moment-cover-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-width: 72px;
  max-height: 72px;
}
img.moment-avatar-face {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  max-height: 42px;
}
span.moment-avatar-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.wx-logout {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: #fa5151;
  font-size: 17px;
  text-align: center;
}

.topbar {
  min-height: calc(44px + var(--safe-top));
  padding: var(--safe-top) 6px 0;
  background: #ededed;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
}
.topbar-title { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.topbar .icon-btn,
.topbar-main .icon-btn {
  font-size: 16px;
  font-weight: 400;
  color: #191919;
}
.topbar .icon-btn.wx-back,
.topbar-main .icon-btn.wx-back {
  width: 44px;
  height: 44px;
  font-size: 0;
}
.wx-back::before {
  left: 14px;
  top: 16px;
  width: 11px;
  height: 11px;
  border-width: 2px;
}
.form-choice,
.task-card,
.thread-fold,
.wx-logout,
.wx-profile {
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.form-choice:active,
.task-card:active,
.thread-fold:active,
.wx-logout:active,
.option:active,
.answer-row:active {
  background: #ececec;
}
.form-choice strong,
.task-card-top strong,
.thread-fold > span {
  font-size: 17px;
  font-weight: 400;
  color: #191919;
}
.form-choice .empty,
.task-card .dense-count {
  margin-top: 3px;
  color: #888;
  font-size: 13px;
  line-height: 1.35;
}
.row-go {
  color: #c8c8c8;
  font-size: 16px;
  font-weight: 300;
}
.block-title {
  margin-top: 16px;
  margin-bottom: 6px;
  padding: 0;
  font-size: 13px;
  line-height: 1.3;
}
.tabbar {
  background: #f7f7f7;
  padding-top: 2px;
}
.tabbar button {
  gap: 3px;
  min-height: 50px;
  padding: 4px 0 2px;
  font-size: 10px;
  line-height: 1.1;
}
.tabbar button svg { width: 26px; height: 26px; }
.tab-badge {
  top: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid #f7f7f7;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
}
.tab-badge.is-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}
.thread-new {
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
.thread-line {
  max-width: min(74%, 280px);
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 16px;
}
.thread-line p { font-size: 16px; line-height: 1.45; }
.thread-line > b { color: #888; font-size: 12px; font-weight: 400; }
.thread-compose {
  margin-top: 8px;
  padding: 8px 10px calc(8px + var(--safe-bot));
  background: #f7f7f7;
  border-top: 0.5px solid #e5e5e5;
}
.thread-compose textarea {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
}
.thread-compose .btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 15px;
}
.q-title {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}
.ask { font-size: 13px; color: #888; }
.progress-label { font-size: 12px; color: #888; }
.options {
  gap: 0;
  margin-top: 16px;
  border-top: 0.5px solid #e5e5e5;
}
.option {
  min-height: 52px;
  border-radius: 0;
  border-width: 0 0 0.5px;
  border-color: #e5e5e5;
}
.option.selected,
.option.selected.lv-SSS,
.option.selected.lv-SS,
.option.selected.lv-S,
.option.selected.lv-Q,
.option.selected.lv-N,
.option.selected.lv-W,
.option.selected.tone-0,
.option.selected.tone-1,
.option.selected.tone-2,
.option.selected.tone-3,
.option.selected.tone-4,
.option.selected.tone-5 {
  background: #fff;
  border-color: #e5e5e5;
}
.option.selected::after {
  content: "";
  width: 6px;
  height: 12px;
  margin-left: auto;
  border-right: 2px solid #07c160;
  border-bottom: 2px solid #07c160;
  transform: rotate(45deg);
}
.dock {
  background: #f7f7f7;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}
.dock .btn.primary,
.actions .btn.primary {
  min-height: 44px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea {
  border-color: #e5e5e5;
  border-radius: 6px;
}
input:focus,
textarea:focus {
  border-color: #07c160;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
}
.sheet-mask { background: rgba(0, 0, 0, 0.45); }
.sheet-panel {
  border-radius: 12px 12px 0 0;
  background: #ededed;
}
.sheet-head h2 { font-size: 17px; font-weight: 500; }
.sign-picks { gap: 0; }
.sign-picks button {
  min-height: 48px;
  border-radius: 0;
  border-width: 0 0 0.5px;
  border-color: #e5e5e5;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 17px;
  font-weight: 400;
}
.form-line {
  min-height: 48px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
}
.progress-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.progress-head { padding: 14px 16px 6px; }
.name-chip {
  padding: 1px 6px;
  border-radius: 3px;
  background: #f2f2f2;
  color: #888;
  font-size: 12px;
  font-weight: 400;
}
.answer-row { padding: 12px 0; }
.empty { color: #b2b2b2; font-size: 14px; }
.wx-avatar { border-radius: 6px; }
.wx-logout { font-weight: 400; }
.work-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 6px;
  margin: 8px var(--page-x) 0;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.work-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.work-action:active { opacity: 0.72; }
.work-action .wx-work-badge {
  position: absolute;
  top: -2px;
  right: calc(50% - 30px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.work-action .wx-work-dot {
  position: absolute;
  top: 0;
  right: calc(50% - 28px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa5151;
}
.work-action .wx-work-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent !important;
}
.work-action .wx-work-mark svg {
  width: 34px;
  height: 34px;
}
.work-action strong {
  max-width: 100%;
  overflow: hidden;
  color: #191919;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-action small {
  max-width: 100%;
  overflow: hidden;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-action small.is-alert { color: #fa5151; }
.work-action small.is-warn { color: #c87d2f; }
.work-action.kind-task .wx-work-mark { color: #3d6fb8; }
.propose-note,
.propose-name,
.propose-tabs,
#screen-home .plan-pick-row,
#screen-home .dense-form,
#screen-home .dense-count,
#screen-home .form-error,
#screen-home .empty {
  margin-left: 16px;
  margin-right: 16px;
}
.propose-name {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}
.propose-extra-form .propose-name {
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 15px;
}
.propose-review-name {
  margin: 0 16px 6px;
  color: #191919;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.propose-review-cat {
  margin: 14px 16px 6px;
  color: #888;
  font-size: 13px;
}
.propose-review-list {
  margin: 0 16px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.propose-review-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}
.propose-review-item:first-child { border-top: 0; }
.propose-review-wrap {
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}
.propose-review-wrap:first-child { border-top: 0; }
.propose-review-wrap .propose-review-item {
  border-top: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.propose-review-wrap .moment-comments {
  margin: 0 12px 8px;
}
.propose-review-wrap .moment-compose,
.propose-review-wrap .moment-compose.thread-compose {
  margin: 0 12px 12px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-app #progress-detail.is-date-plan {
  background: #ededed;
  min-height: 100%;
  box-sizing: border-box;
}
.admin-app #progress-detail.is-date-plan > .roster-nav-back,
.admin-app #progress-detail.is-date-plan > .detail-back {
  margin: 8px 16px 0;
}
.admin-app #progress-detail.is-date-plan > .roster-nav-title,
.admin-app #progress-detail.is-date-plan > .detail-title {
  margin: 4px 16px 8px;
  color: #191919;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.admin-app #progress-detail.is-date-plan > .dense-count {
  margin: 10px 16px 6px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
.admin-app #progress-detail.is-date-plan > .date-meta-back {
  margin: 4px 16px 12px;
}
.admin-app #progress-detail .propose-review-cat {
  margin: 14px 16px 6px;
}
.admin-app #progress-detail .propose-review-list {
  margin: 0 16px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.admin-app #progress-detail .propose-review-wrap {
  background: #fff;
}
.admin-app #progress-detail .propose-review-wrap .moment-comments {
  margin: 0 12px 8px;
}
.admin-app #progress-detail .propose-review-wrap .moment-compose,
.admin-app #progress-detail .propose-review-wrap .moment-compose.thread-compose {
  margin: 0 12px 12px;
  padding: 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-app #progress-detail .date-plan-dock {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 16px 0 0;
  padding: 8px 16px calc(8px + var(--safe-bot));
  background: #f7f7f7;
  border-top: 0.5px solid #e5e5e5;
}
.admin-app #progress-detail .date-plan-dock .btn {
  width: 100%;
}
.admin-app #progress-detail .date-plan-dock .btn.is-receipt-done,
.admin-app #progress-detail .date-plan-dock .btn.is-receipt-done:disabled {
  opacity: 1;
  border: 0;
  background: #e7f7ee;
  color: #07c160;
  font-weight: 600;
}
.propose-review-item strong {
  display: block;
  color: #191919;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.propose-review-item small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 12px;
  line-height: 1.4;
}
.qa-fold .moment-comments {
  margin-top: 8px;
}
.qa-fold .moment-compose {
  margin-top: 8px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.admin-app .thread.moment-thread {
  padding: 0;
  background: transparent;
  border: 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.admin-app .thread.moment-thread .moment-comments {
  margin: 0 0 6px;
}
.admin-app .thread.moment-thread .moment-compose {
  margin: 0;
  padding: 0;
  background: transparent;
  border-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.admin-app .moment-compose.thread-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-app .moment-compose.thread-compose .moment-reply-hold {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.admin-app .moment-compose.thread-compose .moment-reply-input,
.admin-app .moment-compose.thread-compose textarea.thread-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}
.admin-app .moment-compose.thread-compose .btn,
.admin-app .moment-compose.thread-compose .btn.small,
.admin-app .moment-compose.thread-compose .btn.primary {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  line-height: 36px;
}
.propose-review-actions {
  display: grid;
  gap: 10px;
  margin: 16px 16px 24px;
}
.wx-group { margin-top: 12px; }
.wx-group .block-title {
  margin: 4px 16px 8px;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
}
.wx-group .block-title.has-action,
.todo-pill-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.todo-pill {
  flex: none;
  margin: 0;
  padding: 3px 11px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: transparent;
  color: #8f8f8f;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  -webkit-tap-highlight-color: transparent;
}
.todo-pill.is-on {
  border-color: rgba(0, 0, 0, 0.34);
  background: transparent;
  color: #4a4a4a;
}
.todo-pill.is-hot {
  border-color: rgba(232, 120, 120, 0.72);
  background: transparent;
  color: #d07070;
}
.apply-type-cell {
  display: grid;
  gap: 8px;
}
.apply-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apply-type-chip {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #f7f7f7;
  color: #191919;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.apply-type-chip.is-on {
  border-color: #07c160;
  background: #e7f7ee;
  color: #07c160;
}
.habits-form {
  margin: 0 16px 24px;
}
.habits-types {
  width: 100%;
  min-height: 120px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}
.habits-custom {
  margin-top: 4px;
}
.todo-pill:active {
  opacity: 0.72;
}
.wx-group-list {
  margin: 0 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.wx-group-list > .empty { margin: 0; padding: 16px; }
/* 问答/歪歪两端同一模版：wx-group-list + qa-line，一项一张 8px 独立卡 */
.wx-group-list.is-wai-cards,
.wx-group-list.is-qa-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.wx-group-list.is-wai-cards > .qa-line,
.wx-group-list.is-qa-cards > .qa-line {
  border-radius: 8px;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.wx-group-list.is-wai-cards > .qa-line.is-fresh,
.wx-group-list.is-qa-cards > .qa-line.is-fresh {
  background: #f3faf6;
  box-shadow: inset 3px 0 0 #07c160;
}
.wx-group-list.is-wai-cards > .empty,
.wx-group-list.is-qa-cards > .empty {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #progress-detail.is-qa-list > .wx-group {
  margin: 0 0 16px;
}
.admin-app #progress-detail.is-qa-list .qa-fold.moment-thread {
  margin: 0;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.admin-app #progress-detail.is-qa-list .qa-fold .moment-comments {
  margin: 8px 0 0;
}
.admin-app #progress-detail.is-qa-list .qa-fold .moment-compose {
  margin: 8px 0 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
/* 任务列表：一项一张卡 */
#task-list,
.admin-app #task-list,
#task-body:has(> .task-card) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  background: transparent;
}
#task-list .task-card,
#task-body > .task-card,
.admin-app #task-list .task-card,
.admin-app .settings-list .task-card {
  margin: 0 var(--page-x, 16px);
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
  width: auto;
  max-width: calc(100% - 2 * var(--page-x, 16px));
  box-sizing: border-box;
}
#task-body > .task-list-tip,
#task-body > .empty {
  margin-left: var(--page-x, 16px);
  margin-right: var(--page-x, 16px);
}
.wx-work {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.wx-work + .wx-work { box-shadow: inset 0 0.5px 0 rgba(0, 0, 0, 0.06); }
.wx-work:active { background: #f7f7f7; }
.wx-work-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  flex: none;
}
.wx-work-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}
.wx-work-mark.kind-text { color: #4d6490; }
.wx-work-mark.kind-qa { color: #2f7fd6; }
.wx-work-mark.kind-wai { color: #7a5db8; }
.wx-work-mark.kind-image { color: #1aa35b; }
.wx-work-mark.kind-custom { color: #d4842f; }
.wx-work-mark.kind-custom-propose { color: #2a9a86; }
.wx-work-mark.kind-daily { color: #c47a2c; }
.wx-work-mark.kind-leave { color: #b87a1a; }
.wx-work-mark.kind-leave-clear { color: #fa5151; }
.work-action.kind-leave-clear strong { color: #fa5151; }
.leave-clear-btn {
  border-color: #fa5151;
  background: #fa5151;
  color: #fff;
}
.leave-clear-btn:disabled {
  background: #f0a8a8;
  border-color: #f0a8a8;
  color: #fff;
}
.leave-card-foot .leave-clear-btn {
  margin-left: auto;
}
.wx-work-mark.kind-diary { color: #4f8a4e; }
.wx-work-mark.kind-inbox { color: #d94848; }
.wx-work-mark.kind-task { color: #3d6fb8; }
.task-list-tip {
  margin: 8px 16px 4px;
  font-size: 13px;
  line-height: 1.4;
}
.task-list-tip.is-alert { color: #fa5151; }
.task-list-tip.is-warn { color: #c87d2f; }
.task-status.is-new { color: #fa5151; }
.wx-work-mark.kind-done { color: #1aa35b; }
.date-origin { color: #888; }
.date-origin.is-proposed { color: #1f8f7e; }
.wx-work-main { flex: 1; min-width: 0; }
.wx-work-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wx-work.has-count .wx-work-top b { flex: none; }
.wx-work-count {
  flex: 1;
  color: #8a8a8a;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}
.wx-work-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-work-sub {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #888;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-work-flag {
  flex: none;
  padding: 0 6px;
  border-radius: 3px;
  background: #f2f2f2;
  color: #888;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}
.wx-work-flag[data-flag="未填"],
.wx-work-flag[data-flag="待完成"] { background: #fff1f0; color: #fa5151; }
.wx-work-flag[data-flag="填写中"] { background: #f1f4fa; color: #576b95; }
.wx-work-flag[data-flag="未完成"] { background: #fff6eb; color: #c87d2f; }
.wx-work-flag[data-flag="已完成"] { background: #e7f7ee; color: #07c160; }
.wx-work-flag[data-flag="新问题"] { background: #e7f7ee; color: #07c160; }
.wx-work-flag[data-flag="我发起的"] { background: #e5f6f2; color: #1f8f7e; }
.wx-work-flag[data-flag="主人安排"] { background: #fff1df; color: #c47a2c; }
.wx-work-flag[data-flag="等待确认"] { background: #fff6eb; color: #c87d2f; }
.wx-work-flag[data-flag="确认中"] { background: #f1f4fa; color: #576b95; }
.wx-work-flag[data-flag="已确认"] { background: #e7f7ee; color: #07c160; }
.date-meta-panel {
  margin: 16px 16px 28px;
  padding: 20px 18px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.date-meta-lead {
  margin: 0 0 16px;
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}
.date-meta-label {
  margin: 0 0 8px;
  color: #576b95;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.date-meta-panel input.propose-name {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 2px 10px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.45;
  background-color: transparent;
  background-image: linear-gradient(#b0b0b0, #b0b0b0);
  background-position: left bottom;
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.date-meta-panel input.propose-name:focus {
  border: none;
  border-color: transparent;
  background-image: linear-gradient(#07c160, #07c160);
  background-size: 100% 2px;
  box-shadow: none;
}
.date-meta-panel .propose-theme {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}
.date-meta-panel .propose-review-name {
  margin: 0 0 16px;
  padding: 0;
}
.date-meta-panel .propose-review-theme {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f7f7;
}
.date-meta-panel .form-error {
  margin: 0 0 12px;
}
.date-meta-panel .btn {
  width: 100%;
  margin: 4px 0 0;
}
.date-meta-panel .btn + .btn {
  margin-top: 10px;
}
.date-meta-back {
  display: inline-flex;
  margin: 4px 16px 12px;
  padding: 4px 0;
}
.propose-theme {
  width: 100%;
  min-height: 120px;
  margin: 8px 16px 16px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  width: calc(100% - 32px);
}
.propose-review-theme {
  margin: 8px 16px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f7f7;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
#agreement-editor {
  padding: 0 0 20px;
}
#agreement-editor .date-meta-panel {
  margin-left: 16px;
  margin-right: 16px;
}
#agreement-editor .date-meta-back {
  margin-left: 16px;
  margin-right: 16px;
}
.date-confirm-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 16px 32px;
  padding-top: 8px;
}
.date-confirm-btn {
  min-width: 168px;
  padding: 12px 28px;
  border-radius: 999px;
}
#screen-custom .scroll {
  padding-bottom: 8px;
}
.wx-work-go {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #c8c8c8;
  border-right: 1.5px solid #c8c8c8;
  transform: rotate(45deg);
  flex: none;
}
.field span { color: #888; font-size: 14px; }

#screen-custom,
#screen-custom .scroll { background: #ededed; }
#screen-custom .screen-body { padding: 0 0 16px; }
#screen-custom .screen-body > .dense-count {
  margin: 10px 16px 6px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
#screen-custom .topbar { background: #ededed; }
#screen-custom .letter {
  margin: 0 0 8px;
  padding: 16px;
  border-radius: 0;
  background: #fff;
  background-image: none;
  box-shadow: none;
  color: #191919;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}
#screen-custom .letter-body,
#screen-custom .letter-body p,
#screen-custom .letter-body h3,
#screen-custom .letter-body li,
#screen-custom .letter-body div,
#screen-custom .letter .rich-copy p,
#screen-custom .letter .rich-copy h3,
#screen-custom .letter .rich-copy li,
#screen-custom .letter .rich-copy div {
  color: #191919;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
#screen-custom .letter-body p,
#screen-custom .letter .rich-copy p { text-indent: 0; }
#screen-custom .letter .rich-copy h3 { font-size: 17px; }
#screen-custom .setup-card {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#screen-custom .setup-card > .block-title { margin: 12px 16px 4px; }
#screen-custom .setup-card > .muted,
#screen-custom .setup-card > .dense-count {
  margin: 0 16px 8px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
#screen-custom .custom-item {
  margin: 0;
  padding: 12px 16px 14px;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
}
#screen-custom .custom-item .dense-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
#screen-custom .custom-item strong {
  flex: 1;
  min-width: 0;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
#screen-custom .custom-item .icon-btn {
  flex: none;
  padding: 0;
  color: #888;
  font-size: 14px;
}
#screen-custom .custom-item input {
  margin-top: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 15px;
}
#screen-custom .level-picks {
  display: flex;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
}
#screen-custom .level-picks button {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  color: #191919;
  font-size: 12px;
}
#screen-custom .level-picks button + button { box-shadow: inset 0.5px 0 0 #fff; }
#screen-custom .level-picks button.active {
  background: #07c160;
  color: #fff;
}
#screen-custom .dense-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px 12px;
  background: #fff;
}
#screen-custom .dense-form input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 15px;
}
#screen-custom .pick-tabs {
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
#screen-custom .pick-tabs button,
#screen-custom .pick-tabs button.active,
#screen-custom .pick-tabs button.has-thumb {
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 15px;
  font-weight: 400;
}
#screen-custom .pick-tabs button.active {
  color: #07c160;
  font-weight: 600;
}
#screen-custom .pick-tabs button.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #07c160;
}
#screen-custom .option-card,
#screen-custom .option-card.on {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 0.5px solid #e5e5e5;
  background: #fff;
  box-shadow: none;
}
#screen-custom .option-hit {
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  cursor: pointer;
}
#screen-custom .option-hit.no-thumb {
  gap: 10px;
  min-height: 52px;
}
#screen-custom .option-hit img,
#screen-custom .option-blank {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
#screen-custom .option-hit.no-thumb img,
#screen-custom .option-hit.no-thumb .option-blank {
  display: none;
}
#screen-custom .option-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
#screen-custom .option-hit strong {
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
#screen-custom .option-hit small {
  margin: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}
#screen-custom .option-mark {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid #c8c8c8;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
}
#screen-custom .option-card.on .option-mark {
  border-color: #07c160;
  background: #07c160;
}
#screen-custom .option-card.on .option-mark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 3px auto 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
#screen-custom .thought-label {
  margin: 0 16px 6px;
  color: #888;
  font-size: 13px;
}
#screen-custom .option-note {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  min-height: 72px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 15px;
  line-height: 1.45;
}
#screen-custom .custom-pick-actions {
  display: flex;
  gap: 8px;
}
#screen-custom .custom-pick-actions.is-confirm-only {
  display: block;
}
#screen-custom .custom-pick-actions .btn { flex: 1; }
#screen-custom .custom-pick-actions.is-confirm-only .btn {
  display: block;
  width: 100%;
  flex: none;
}
#screen-custom .custom-pick-actions .btn[hidden] {
  display: none !important;
}
#screen-custom .custom-pick-actions .btn.is-receipt-done,
#screen-custom .custom-pick-actions .btn.primary.is-receipt-done:disabled {
  opacity: 1;
  border: 0;
  background: #e7f7ee;
  color: #07c160;
  font-weight: 600;
}
#screen-custom .custom-pick-actions .btn.is-on {
  background: #e7f7ee;
  color: #07c160;
}
#screen-custom .pick-edit-hint { margin: 12px 16px 0; }
#screen-custom .pick-edit-cat {
  margin: 16px 16px 0;
  color: #888;
  font-size: 13px;
  font-weight: 400;
}
#screen-custom .custom-dock {
  background: #f7f7f7;
  border-top: 0.5px solid #e5e5e5;
  padding: 8px 16px calc(8px + var(--safe-bot));
}
#screen-custom .quiz-pull {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
}
#screen-custom .quiz-pull::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.5px solid #c8c8c8;
  border-bottom: 1.5px solid #c8c8c8;
  transform: rotate(-45deg);
}
#screen-custom .quiz-pull + .quiz-pull {
  margin-top: 0;
  box-shadow: inset 0 0.5px 0 #e5e5e5;
}
#screen-custom .quiz-pull + .photo-box { margin-top: 0; }
#screen-custom .photo-box { margin: 0; }
#screen-custom .photo-grid { gap: 0; }
#screen-custom .photo-cell {
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: inset 0 0.5px 0 #e5e5e5;
}
#screen-custom .photo-frame {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 4px;
}
#screen-custom .photo-cell .option-note {
  flex: 1;
  width: auto;
  min-height: 56px;
  margin: 0;
}

#screen-home.is-moments,
#screen-home.is-moments .scroll,
#screen-home.is-moments .screen-body,
#screen-home.is-moments .topbar {
  background: #fff;
}
#screen-home.is-moments .screen-body {
  padding: 0 0 calc(18px + var(--safe-bot));
}
.moment-cover {
  position: relative;
  height: 168px;
  margin-bottom: 36px;
  background:
    radial-gradient(90% 80% at 78% 18%, rgba(7, 193, 96, 0.42), transparent 55%),
    linear-gradient(165deg, #3a3a3a 0%, #1c1c1c 58%, #163324 100%);
}
.moment-cover-user {
  position: absolute;
  right: 14px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.moment-cover-user strong {
  margin-bottom: 26px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.moment-cover-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #07c160;
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 0;
  background: #fff;
}
.moment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #07c160;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.moment-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 0.5px solid #ededed;
}
.audit-marks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.audit-mark {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
}
.admin-person-copy small .presence-stat {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
}
.presence-more {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: #f2f2f2;
  color: #576b95;
  font-size: 11px;
  line-height: 18px;
}
.activity-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 88px - var(--safe-top) - var(--safe-bot));
  padding-bottom: 28px;
  background: #ededed;
}
.activity-size {
  display: flex;
  align-items: center;
  margin: 8px 16px 0;
  color: #888;
  font-size: 12px;
}
.activity-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 16px 0;
}
.activity-metrics.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
}
.activity-metric {
  min-width: 0;
  padding: 12px 10px 10px;
  border-radius: 8px;
  background: #f7f7f7;
}
.activity-day .activity-metric { background: #f7f7f7; }
.activity-metric b {
  display: block;
  overflow: hidden;
  color: #191919;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-metric b.is-text { font-size: 16px; line-height: 1.45; }
.activity-metric span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #888;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-day {
  margin: 12px 12px 0;
  padding: 14px 14px 8px;
  border-radius: 10px;
  background: #fff;
}
.activity-day-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-day-head h3 {
  margin: 0;
  color: #191919;
  font-size: 16px;
  font-weight: 600;
}
.activity-day-head i {
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  background: #e8f8ef;
  color: #07c160;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
}
.activity-day h4 {
  margin: 16px 0 8px;
  color: #888;
  font-size: 12px;
  font-weight: 500;
}
.activity-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f0;
}
.activity-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: #07c160;
}
.activity-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #b2b2b2;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.activity-spans {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.activity-spans span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #f7f7f7;
  color: #353535;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.activity-place {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
.activity-place b {
  overflow: hidden;
  color: #191919;
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f0f0;
}
.activity-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #07c160;
}
.activity-place em {
  color: #888;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-hour { margin-top: 2px; }
.activity-hour-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #191919;
  text-align: left;
}
.activity-hour-toggle b {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.activity-hour-toggle span {
  margin-left: auto;
  color: #888;
  font-size: 12px;
}
.activity-hour-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid #b2b2b2;
  border-bottom: 1.5px solid #b2b2b2;
  transform: rotate(45deg);
}
.activity-hour.is-open .activity-hour-toggle::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}
.activity-hour .activity-log { display: none; }
.activity-hour.is-open .activity-log { display: block; padding-top: 2px; }
.activity-log {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}
.activity-log li {
  display: grid;
  grid-template-columns: 44px 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-bottom: 10px;
}
.activity-log li:last-child { padding-bottom: 0; }
.activity-log time {
  color: #576b95;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.activity-dot {
  position: relative;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #07c160;
}
.activity-log li:not(:last-child) .activity-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 1px;
  height: 18px;
  background: #e5e5e5;
}
.activity-log span {
  color: #191919;
  font-size: 13px;
  line-height: 1.45;
}
.activity-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.news-mark {
  display: inline-flex;
  align-items: center;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 3px;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  vertical-align: 1px;
}
.audit-mark.is-edit { background: #fff6e8; color: #c87d2f; }
.audit-mark.is-delete { background: #fdecec; color: #fa5151; }
.done-actions {
  display: flex;
  gap: 8px;
}
.done-actions .btn { flex: 1; }
.moment-name {
  display: block;
  color: #576b95;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.moment-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.moment-kind,
.moment-decision {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  background: #f2f2f2;
  color: #888;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.moment-kind.is-apply { background: #fff6e8; color: #c87d2f; }
.moment-decision.is-yes { background: #e7f7ee; color: #07c160; }
.moment-decision.is-no { background: #fdecec; color: #fa5151; }
.moment-decision.is-cleared { background: #eef2f8; color: #576b95; }
.leave-list-tools {
  margin: 8px 16px 12px;
}
.leave-list-tools .btn { width: 100%; }
.leave-list {
  margin: 0 16px 24px;
  display: grid;
  gap: 10px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.leave-card {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.leave-card.is-open {
  background: #fff8f0;
  box-shadow: 0 0 0 1px rgba(200, 125, 47, 0.2);
}
.leave-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.leave-card-top strong {
  font-size: 15px;
}
.leave-status {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #666;
  font-size: 11px;
  font-style: normal;
}
.leave-status.is-yes,
.leave-status.is-wait { background: #fff3e0; color: #c47a2c; }
.leave-status.is-no { background: #fdecec; color: #fa5151; }
.leave-status.is-cleared { background: #eef2f8; color: #576b95; }
.leave-card-time,
.leave-card-text {
  margin: 8px 0 0;
  color: #191919;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.leave-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.leave-card-foot time {
  color: #b2b2b2;
  font-size: 12px;
}
.moment-admin-act.is-on { color: #07c160; font-weight: 600; }
.moment-admin-act.danger.is-on { color: #fa5151; }
.moment-text {
  margin: 5px 0 0;
  color: #191919;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.moment-photo {
  display: block;
  width: 180px;
  max-width: 72%;
  max-height: 180px;
  margin-top: 8px;
  border-radius: 4px;
  object-fit: cover;
  background: #f2f2f2;
}
.moment-source {
  margin: 6px 0 0;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.moment-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-height: 28px;
  margin-top: 8px;
}
.moment-foot time {
  color: #b2b2b2;
  font-size: 13px;
}
.moment-more {
  position: relative;
  width: 32px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f3f3f3;
  flex: none;
}
.moment-more::before,
.moment-more::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #576b95;
}
.moment-more::before { left: 9px; }
.moment-more::after { right: 9px; }
.moment-more .wx-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #fa5151;
  border: 1px solid #fff;
}
.moment-comments {
  margin-top: 6px;
  padding: 6px 8px;
  background: #f7f7f7;
  border-radius: 2px;
}
.moment-comment {
  margin: 0;
  color: #191919;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}
.moment-comment + .moment-comment { margin-top: 2px; }
.moment-comment b,
.moment-comment .moment-who,
.unread-unit-msg b,
.unread-unit-msg .moment-who {
  display: inline;
  color: #1a3a8f;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.moment-compose.thread-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 8px;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* 约调单项回复：有左右 margin 时不能再 width:100%，否则发送键被列表裁切 */
.propose-review-wrap > .moment-compose.thread-compose,
#screen-custom .propose-review-wrap > .moment-compose.thread-compose,
.admin-app #progress-detail .propose-review-wrap > .moment-compose.thread-compose {
  width: auto;
  max-width: 100%;
}
.moment-compose.thread-compose .moment-reply-hold {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.moment-compose.thread-compose .moment-reply-input,
.moment-compose.thread-compose textarea.thread-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  max-height: 108px;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  outline: none;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 0.5px #e5e5e5;
}
.moment-compose.thread-compose .moment-reply-input:focus,
.moment-compose.thread-compose textarea.thread-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 0.5px #cfcfcf;
}
.moment-compose.thread-compose .btn,
.moment-compose.thread-compose .btn.small,
.moment-compose.thread-compose .btn.primary {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  flex: none;
  box-sizing: border-box;
  width: auto;
  min-width: 56px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 36px;
  white-space: nowrap;
}
.qa-fold .moment-compose {
  width: 100%;
  max-width: 100%;
}
.moment-empty,
.wx-chat-empty,
#screen-home .empty,
.admin-app .empty {
  color: #888;
  font-size: 14px;
  line-height: 1.45;
}
.moment-empty {
  padding: 28px 16px 12px;
  text-align: center;
}
.check-cal {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
}
.check-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  text-align: left;
}
.check-cal-head strong {
  color: #191919;
  font-size: 14px;
  font-weight: 500;
}
.check-cal-head strong::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid #b2b2b2;
  border-bottom: 1.5px solid #b2b2b2;
  transform: translateY(-2px) rotate(45deg);
}
.check-cal.open .check-cal-head strong::after {
  transform: translateY(2px) rotate(225deg);
}
.check-cal-head span {
  color: #07c160;
  font-size: 13px;
}
.check-cal-head span.is-wait { color: #888; }
.check-cal-grid {
  display: none;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 8px 8px;
  text-align: center;
}
.check-cal.open .check-cal-grid { display: grid; }
.check-cal-grid i {
  color: #b2b2b2;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}
.check-cal-grid b {
  height: 22px;
  margin: 0 auto;
  color: #191919;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
}
.check-cal-grid b.on,
.check-cal-grid b.today {
  width: 22px;
  border-radius: 99px;
}
.check-cal-grid b.on {
  background: #07c160;
  color: #fff;
}
.check-cal-grid b.today:not(.on) {
  box-shadow: inset 0 0 0 1px #07c160;
  color: #07c160;
}
.check-cal-grid b.future { color: #ccc; }
.daily-camera { width: 32px; height: 32px; padding: 0; }
.daily-camera svg { width: 24px; height: 24px; }
.daily-publish { min-height: 32px; padding: 0 12px; }
.daily-done {
  margin: 0 16px 8px;
  color: #07c160;
  font-size: 13px;
}
.daily-editor {
  min-height: 100%;
  padding: 8px 16px 28px;
  background: #fff;
}
.apply-type {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 10px 0;
  border-bottom: 0.5px solid #e5e5e5;
}
.apply-type input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #191919;
  font-size: 17px;
}
.apply-type span {
  flex: none;
  color: #888;
  font-size: 17px;
}
#screen-home.is-compose .topbar {
  min-height: calc(52px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 10px 12px;
  background: #f7f7f7;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}
#screen-home.is-compose #home-scroll {
  background: #fff;
}
#screen-home .topbar-side { width: auto; }
#screen-home .daily-publish,
#screen-home .btn.primary.daily-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 56px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}
#screen-home .daily-publish:disabled,
#screen-home .btn.primary.daily-publish:disabled {
  background: #f2f2f2;
  color: #c8c8c8;
  opacity: 1;
}
.daily-entries {
  margin: 8px 0 0;
  background: #fff;
}
.daily-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  text-align: left;
  box-shadow: inset 0 -0.5px 0 #f0f0f0;
}
.daily-entry strong {
  flex: none;
  color: #191919;
  font-size: 16px;
  font-weight: 400;
}
.daily-entry small {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  color: #b2b2b2;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}
.daily-entry i {
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #c8c8c8;
  border-right: 1.5px solid #c8c8c8;
  transform: rotate(45deg);
}
.daily-compose {
  min-height: 100%;
  padding: 28px 0 48px;
  background: #fff;
}
.daily-compose-text,
.daily-compose-text:focus,
.compose-cell input,
.compose-cell input:focus {
  border: 0;
  border-color: transparent;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  background-image: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.daily-compose-text {
  display: block;
  width: 100%;
  min-height: 160px;
  margin: 0;
  padding: 8px 16px 20px;
  resize: none;
  color: #191919;
  font-size: 17px;
  line-height: 1.5;
}
.daily-compose-text::placeholder { color: #c8c8c8; }
.daily-compose-photos {
  margin: 0;
  padding: 4px 16px 0;
  background: transparent;
}
.daily-compose .wx-grid,
.daily-compose .wx-grid.count-1,
.daily-compose .wx-grid.count-4,
.daily-compose .wx-grid.count-more {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0;
  gap: 6px;
}
.daily-compose .wx-shot,
.daily-compose .wx-add {
  width: 72px;
  height: 72px;
  flex: none;
  aspect-ratio: auto;
  border-radius: 2px;
  background: #f7f7f7;
}
.daily-compose .wx-add { color: transparent; font-size: 0; }
.daily-compose .wx-add::before,
.daily-compose .wx-add::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #d0d0d0;
  transform: translate(-50%, -50%);
}
.daily-compose .wx-add::before { width: 22px; height: 1px; }
.daily-compose .wx-add::after { width: 1px; height: 22px; }
.daily-compose .wx-shot-x {
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
}
.compose-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 16px;
  box-shadow: inset 0 0.5px 0 #ededed;
}
.compose-cell span {
  flex: none;
  color: #191919;
  font-size: 16px;
}
.compose-cell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #191919;
  font-size: 16px;
  text-align: right;
}
.compose-cell input::placeholder { color: #c8c8c8; }
.compose-cell em {
  flex: none;
  color: #b2b2b2;
  font-size: 16px;
  font-style: normal;
}
.compose-cell.leave-cell input[type="datetime-local"] {
  min-width: 0;
  max-width: 62%;
  color: #191919;
  font-size: 15px;
  text-align: right;
}
.leave-hint {
  margin: 10px 16px 0;
  color: #b2b2b2;
  font-size: 13px;
  line-height: 1.4;
}
.moment-leave {
  margin: 4px 0 0;
  color: #c47a2c;
  font-size: 14px;
  line-height: 1.45;
}
.daily-compose .daily-error { margin: 8px 16px 0; }
#screen-custom .thought-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 6px;
}
#screen-custom .thought-head .thought-label { margin: 0; }
#screen-custom .thought-edit {
  border: 0;
  background: transparent;
  color: #576b95;
  font-size: 14px;
  padding: 0;
}
#screen-custom .thought-preview {
  margin: 0 16px 12px;
  color: #191919;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
#screen-custom .thought-preview.is-empty { color: #b2b2b2; }
#screen-custom .thought-kept {
  margin: 0 16px 12px;
  color: #07c160;
  font-size: 13px;
}
.daily-editor textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 8px 0 12px;
  border: 0;
  resize: none;
  background: transparent;
  color: #191919;
  font-size: 17px;
  line-height: 1.5;
}
.daily-hint { margin: 14px 0 0; }
.daily-error { margin: 8px 0 0; color: #fa5151; font-size: 13px; }
.wx-grid {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.wx-grid.count-1 { width: 180px; }
.wx-grid.count-4 { width: 188px; grid-template-columns: repeat(2, 1fr); }
.wx-grid.count-more { width: min(100%, 276px); grid-template-columns: repeat(3, 1fr); }
.wx-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #f3f3f3;
}
.wx-grid.count-4 .wx-shot,
.wx-grid.count-more .wx-shot { aspect-ratio: 1; }
.wx-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-grid.count-1 .wx-shot img {
  width: 180px;
  height: auto;
  max-height: 240px;
}
.wx-add {
  color: #c8c8c8;
  background: #f7f7f7;
  font-size: 36px;
  line-height: 1;
}
.wx-shot-x {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
}
.daily-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.daily-viewer[hidden] { display: none; }
.daily-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.moment-main.is-fresh,
.qa-line.is-fresh,
.form-line.is-fresh,
.thread-fold.is-fresh,
.chat-inbox button.is-fresh,
.admin-app #progress-detail .answer-row.is-fresh,
.propose-review-item.is-fresh,
.propose-review-wrap.is-fresh .propose-review-item,
.wx-work.is-fresh {
  cursor: pointer;
}
.inbox-read-tools {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 0;
}
.inbox-read-tools .text-btn {
  color: #576b95;
  font-size: 14px;
}
.moment-fresh-tag,
.wx-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 8px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}
.qa-line { position: relative; }
.qa-line > .wx-num {
  position: absolute;
  top: 16px;
  right: 16px;
  margin-left: 0;
}
.qa-line:has(> .wx-num) { padding-right: 48px; }
.moment-comment.is-fresh,
.qa-owner.is-fresh {
  background: transparent;
}
.moment-tabs button i.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-left: 4px;
  padding: 0;
  border-radius: 99px;
  background: #fa5151;
  vertical-align: 2px;
}
.moment-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}
.moment-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.moment-tabs::-webkit-scrollbar { display: none; }
.moment-tabs button {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 15px;
}
.moment-tabs.sub button {
  min-height: 38px;
  font-size: 14px;
}
.moment-tabs button.on {
  color: #07c160;
  font-weight: 600;
}
.moment-tabs button.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #07c160;
}
#screen-home .moment-tabs {
  overflow: hidden;
}
#screen-home .moment-tabs button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
  font-size: 13px;
  white-space: nowrap;
}
#screen-home .moment-tabs button.on::after {
  left: 8px;
  right: 8px;
}

#screen-home .detail-title {
  margin: 14px 16px 4px;
  font-size: 17px;
  font-weight: 500;
}
#screen-home .dense-count,
#screen-home .mine-note,
#screen-home .form-error {
  margin-left: 16px;
  margin-right: 16px;
}
#screen-home .detail-tabs {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #fff;
}
#screen-home .cat-block,
#screen-review .cat-block {
  margin: 0 0 8px;
  background: #fff;
}
#screen-home .cat-block h3,
#screen-review .cat-block h3 {
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 13px;
  font-weight: 400;
  color: #888;
}
#screen-home .answer-row,
#screen-review .answer-row,
#progress-detail .answer-row,
#progress-detail .thread-fold {
  padding-left: 16px;
  padding-right: 16px;
}
#screen-home .mine-edit {
  padding: 0 16px 12px;
}
#screen-home .mine-actions {
  margin: 16px;
}
#screen-custom .empty {
  margin: 16px;
}
#screen-review .screen-body {
  padding-left: 0;
  padding-right: 0;
}
#screen-review .answer-row.open { background: #f7f7f7; }
#screen-review .review-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 14px;
  background: #fff;
}
#screen-review .review-picks button {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #f7f7f7;
  color: #191919;
  font-size: 14px;
}
#screen-review .review-picks button.on {
  background: #07c160;
  color: #fff;
}
.submit-choice p {
  margin: 0 0 10px;
  color: #191919;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.submit-choice-row {
  display: flex;
  gap: 8px;
}
.submit-choice-row .btn { flex: 1; }
#screen-review .stats,
#screen-review .form-error {
  margin-left: 16px;
  margin-right: 16px;
}
.admin-app #progress-detail {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.admin-app #progress-detail .detail-title,
.admin-app #progress-detail .dense-count,
.admin-app #progress-detail .detail-back,
.admin-app #progress-detail .empty,
.admin-app #progress-detail .sign-result,
.admin-app #progress-detail .detail-tabs {
  padding-left: 16px;
  padding-right: 16px;
}
body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
body textarea,
body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
body textarea:focus {
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.admin-app,
.admin-app .app,
.admin-app .screen,
.admin-app .scroll,
.admin-app .topbar,
.admin-app .screen-body {
  background: #ededed;
}
.admin-app .screen-body { padding: 0 0 calc(24px + var(--safe-bot)); }
.admin-app .topbar { padding: calc(10px + var(--safe-top)) 16px 8px; border-bottom: 0; }
.admin-app .topbar-title { font-size: 17px; font-weight: 500; }
.admin-app #logout { visibility: hidden; }
.admin-app .form-error { margin: 8px 16px; }
.admin-app .dense-count { margin: 10px 16px 6px; color: #888; font-size: 13px; }
.admin-app .detail-title { margin: 0; padding: 12px 16px 0; font-size: 17px; font-weight: 500; }
.admin-app .detail-back {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px 0;
  background: transparent;
  color: #576b95;
}
.admin-app .dense-form,
.admin-app #admin-pass {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0 16px;
  min-height: 52px;
  background: #fff;
}
.admin-app .dense-form input,
.admin-app .dense-form select,
.admin-app #admin-pass input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}
.admin-app #open-add-task,
.admin-app #open-add-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
}
.admin-app #open-add-task::after,
.admin-app #open-add-person::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #c8c8c8;
  border-right: 1.5px solid #c8c8c8;
  transform: rotate(45deg);
}
.admin-app #task-home,
.admin-app #task-list { gap: 10px; }
.admin-app #form-list,
.admin-app #agreement-list,
.admin-app #level-list,
.admin-app #sign-list,
.admin-app #admin-list,
.admin-app #date-library,
.admin-app #person-list,
.admin-app .settings-list {
  margin-top: 8px;
  background: #fff;
}
.admin-app #task-list {
  margin-top: 8px;
  background: transparent;
}
.admin-app .task-card,
.admin-app .settings-list .task-card {
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .task-card-top strong { font-weight: 400; }
.admin-app #progress-list {
  display: grid;
  gap: 10px;
  padding: 10px var(--page-x) 20px;
  max-width: 100%;
}
.admin-app #progress-list {
  background: #ededed;
  padding-bottom: 12px;
}
.admin-app .content-guide {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 0 10px;
  padding: 14px 4px 12px;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
}
.admin-app .content-guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.admin-app .content-guide-item:active { opacity: 0.72; }
.admin-app .content-guide-item .wx-work-mark {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent !important;
}
.admin-app .content-guide-item .wx-work-mark svg {
  width: 32px;
  height: 32px;
}
.admin-app .content-guide-item strong {
  max-width: 100%;
  overflow: hidden;
  color: #191919;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .roster-empty {
  margin: 28px 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
}
.admin-app .roster-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  color: #888;
  font-size: 13px;
}
.admin-app .roster-strip-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.admin-app .roster-strip > .roster-strip-link:first-of-type {
  margin-left: auto;
}
.admin-app .roster-strip-link + .roster-strip-link {
  margin-left: 14px;
}
.admin-app .roster-strip-link.is-hot {
  color: #fa5151;
  font-weight: 600;
}
.admin-app .roster-strip-link:disabled {
  color: #b2b2b2;
  cursor: default;
}
.admin-app .roster-group {
  margin: 0 0 8px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.admin-app .roster-group.is-fresh {
  box-shadow: inset 3px 0 0 #fa5151;
}
.admin-app .roster-person {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  background: #fff;
}
.admin-app .roster-person-open {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-app .roster-person-open:active {
  opacity: 0.72;
}
.admin-app .roster-person-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-app .screen.is-people-drill .roster-nav-back {
  display: none !important;
}
.admin-app .screen.is-people-drill .detail-title {
  margin-top: 4px;
}
.admin-app .roster-person-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-app .roster-person-top b {
  color: #191919;
  font-size: 17px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .roster-person-news {
  flex: none;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.admin-app .roster-person-meta {
  color: #888;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .roster-group .roster-body {
  border-top: 1px solid #e5e5e5;
  background: #f7f7f7;
}
.admin-app .roster-group .roster-row {
  background: #fff;
  margin: 0;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 #e5e5e5;
}
.admin-app .roster-group .roster-row:last-child {
  box-shadow: none;
}
.admin-app .roster-overview {
  display: none;
}
.admin-app .topbar-exit {
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-app .topbar-side {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
}
.admin-app .topbar-side .wx-back {
  justify-self: start;
}
.admin-app .ask-hub {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.admin-app .ask-hub .wx-chat-list,
.admin-app .ask-hub .wx-chat {
  flex: 1;
  min-height: 0;
}
.admin-app .ask-hub-chat {
  height: 100%;
}
.admin-app .wx-chat-session-avatar img,
.admin-app .wx-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-app .topbar-back {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.admin-app .topbar-title.is-ask-topic {
  cursor: pointer;
}
.admin-app .screen.is-ask-chat,
.admin-app .screen.is-ask-chat .scroll,
.admin-app .screen.is-ask-chat .topbar {
  background: #ededed;
}
.admin-app .screen.is-ask-chat .scroll {
  overflow: hidden;
}
.admin-app .screen.is-ask-chat .screen-body,
.admin-app .screen.is-ask-chat #panel-people,
.admin-app .screen.is-ask-chat #progress-detail,
.admin-app .screen.is-ask-chat .ask-hub {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: #ededed;
}
.admin-app .screen.is-ask-chat .tabbar,
.admin-app .screen.is-ask-chat #admin-error {
  display: none !important;
}
.admin-app .screen.is-ask-list,
.admin-app .screen.is-ask-list .scroll,
.admin-app .screen.is-ask-list .topbar,
.admin-app .screen.is-ask-list .screen-body,
.admin-app .screen.is-ask-list #panel-people,
.admin-app .screen.is-ask-list #progress-detail,
.admin-app .screen.is-ask-list .ask-hub {
  background: #fff;
}
.admin-app .screen.is-ask-list .screen-body,
.admin-app .screen.is-ask-list #panel-people,
.admin-app .screen.is-ask-list #progress-detail,
.admin-app .screen.is-ask-list .ask-hub {
  padding: 0;
  margin: 0;
}
.admin-app .roster-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  text-align: center;
}
.admin-app .roster-stat strong {
  color: #191919;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}
.admin-app .roster-stat span {
  color: #8a8a8a;
  font-size: 12px;
}
.admin-app .roster-stat.is-hot strong { color: #d94848; }
.admin-app .roster-stat.is-link {
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-app .roster-stat.is-link:active {
  transform: scale(0.98);
  opacity: 0.92;
}
.admin-app .roster-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-card.is-fresh {
  box-shadow: 0 0 0 1px rgba(250, 81, 81, 0.18), 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 10px;
}
.admin-app .roster-copy { min-width: 0; }
.admin-app .roster-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.admin-app .roster-title strong {
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .roster-news {
  flex: none;
  min-width: 18px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.wx-detail-tip {
  margin: 0;
  padding: 10px 16px 8px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
  background: #ededed;
}
.unread-detail {
  padding: 0 0 24px;
  background: #ededed;
  min-height: calc(100dvh - 88px - var(--safe-top) - var(--safe-bot));
}
.unread-stack {
  display: grid;
  gap: 0;
  margin: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.unread-unit {
  padding: 12px 16px;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -1px 0 #e5e5e5;
}
.unread-unit:last-child {
  box-shadow: none;
}
.unread-unit.is-fresh {
  background: #fff;
  box-shadow: inset 0 -1px 0 #e5e5e5;
}
.unread-unit.is-replying {
  background: #fff;
  box-shadow: inset 0 -1px 0 #e5e5e5;
}
.unread-unit-path {
  margin: 0 0 4px;
  color: #576b95;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.unread-unit-kind {
  display: none;
}
.unread-unit-section-label {
  display: none;
}
.unread-unit-topic {
  margin: 0 0 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  word-break: break-word;
}
.unread-unit-topic-line {
  margin: 0;
  color: #191919;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.unread-unit-topic-line b {
  color: #576b95;
  font-weight: 500;
}
.unread-unit-topic strong {
  display: block;
  color: #191919;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.unread-unit-topic small {
  display: block;
  margin-top: 4px;
  color: #595959;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.unread-unit-preview {
  margin: 0;
  color: #191919;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.unread-unit-msgs {
  margin-top: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f7f7f7;
}
.unread-unit-msg {
  margin: 0 0 4px;
  color: #191919;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}
.unread-unit-msg:last-child { margin-bottom: 0; }
.unread-unit-msg.is-fresh {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(250, 81, 81, 0.08);
}
.unread-unit-msg b,
.unread-unit-msg .moment-who {
  display: inline;
  color: #1a3a8f;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.unread-unit-time {
  display: block;
  margin-top: 6px;
  color: #b2b2b2;
  font-size: 11px;
}
.unread-compose.wx-chat-bar {
  margin-top: 8px;
  padding: 8px 10px calc(8px + var(--safe-bot));
  border-top: 1px solid #e5e5e5;
  background: #f7f7f7;
}
.unread-compose .wx-chat-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.admin-app .screen.is-people-drill .roster-nav-title {
  display: none !important;
}
.admin-app #progress-detail {
  background: #ededed;
  min-height: 100%;
}
.admin-app #progress-detail > .detail-title.roster-nav-title + .wx-detail-tip,
.admin-app #progress-detail > .roster-nav-back + .roster-nav-title + .wx-detail-tip {
  margin-top: 0;
}
.detail-tabs {
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tabs button {
  flex: 0 0 auto;
  gap: 4px;
  margin: 0;
  padding: 12px 12px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191919;
  font-size: 15px;
  box-shadow: none;
  position: relative;
}
.detail-tabs button.has-thumb { padding: 8px 12px 10px; }
.detail-tabs button.active {
  background: transparent;
  border-color: transparent;
  color: #07c160;
  font-weight: 500;
}
.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #07c160;
  border-radius: 1px;
}
.detail-tabs i {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e5e5e5;
  color: #888;
  font-size: 10px;
  font-weight: 600;
}
.detail-tabs button.active i {
  background: #e7f8ef;
  color: #07c160;
}
/* 任务详情：与歪歪/任务列表同圆角，分块独立卡片 */
#task-body,
#task-detail,
.admin-app #task-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}
#task-body > .task-sheet-block,
#task-body > .task-module,
#task-detail > .task-sheet-block,
#task-detail > .task-module,
.task-sheet-block,
.task-module {
  margin-top: 0;
  margin-left: var(--page-x, 16px);
  margin-right: var(--page-x, 16px);
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
  overflow: hidden;
  max-width: calc(100% - 2 * var(--page-x, 16px));
  box-sizing: border-box;
}
#task-body > .detail-title,
#task-detail > .detail-title,
#task-detail > .task-card-top,
#task-detail > .task-tags,
#task-detail > .detail-back,
#task-detail > .task-actions,
#task-detail > .task-kicker,
#task-body > .form-error,
#task-detail > .form-error {
  margin-left: var(--page-x, 16px);
  margin-right: var(--page-x, 16px);
}
#screen-tasks .task-feel-card,
.admin-app #task-detail .task-feel-card {
  border-radius: 8px;
}
.remind-page,
.activity-page {
  background: #ededed;
  min-height: 100%;
  padding-bottom: 24px;
}
.remind-page .btn.block {
  margin: 12px 0 0;
  width: 100%;
  border-radius: 0;
  min-height: 48px;
  font-size: 16px;
  font-weight: 500;
}
.unread-compose .unread-send:disabled {
  background: #e5e5e5;
  color: #b2b2b2;
}
.unread-compose .form-error {
  flex-basis: 100%;
  margin: 4px 0 0;
}
.admin-app .roster-meta { margin-top: 4px; }
.admin-app .roster-presence {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.admin-app .roster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.admin-app .roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #666;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
}
.admin-app .roster-chip svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.admin-app .roster-chip.kind-text { background: #eef2f8; color: #4d6490; }
.admin-app .roster-chip.kind-qa { background: #eaf4ff; color: #2f7fd6; }
.admin-app .roster-chip.kind-wai { background: #f3eefc; color: #7a5db8; }
.admin-app .roster-chip.kind-image { background: #e8f8ef; color: #1aa35b; }
.admin-app .roster-chip.kind-custom { background: #fff3e8; color: #d4842f; }
.admin-app .roster-chip.kind-moment { background: #fff4e8; color: #c47a2c; }
.admin-app .roster-chip.is-hot { background: #fff1f0; color: #d94848; }
.admin-app .roster-chip.is-empty { background: #f2f2f2; color: #9a9a9a; }
.admin-app .roster-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  flex: none;
}
.admin-app .roster-act {
  margin: 0;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-app .roster-act:active { opacity: 0.55; }
.admin-app .roster-body {
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}
.admin-app .roster-empty-line {
  margin: 0;
  padding: 14px 16px 16px;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.45;
}
.admin-app .roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 11px 16px 11px 18px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 -0.5px 0 rgba(0, 0, 0, 0.05);
}
.admin-app .roster-row:last-child { box-shadow: none; }
.admin-app .roster-row:active { background: #f7f7f7; }
.admin-app .roster-row.is-fresh { background: #fff; }
.admin-app .roster-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: #6f6f6f;
}
.admin-app .roster-row-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.admin-app .roster-row-icon.kind-text { color: #4d6490; }
.admin-app .roster-row-icon.kind-qa { color: #2f7fd6; }
.admin-app .roster-row-icon.kind-wai { color: #7a5db8; }
.admin-app .roster-row-icon.kind-image { color: #1aa35b; }
.admin-app .roster-row-icon.kind-custom { color: #d4842f; }
.admin-app .roster-row-main { flex: 1; min-width: 0; }
.admin-app .roster-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.admin-app .roster-row-top b {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: #191919;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.admin-app .roster-row-top b em {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #666;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}
.admin-app .roster-row.kind-text .roster-row-top b em { background: #eef2f8; color: #4d6490; }
.admin-app .roster-row.kind-qa .roster-row-top b em { background: #eaf4ff; color: #2f7fd6; }
.admin-app .roster-row.kind-wai .roster-row-top b em { background: #f3eefc; color: #7a5db8; }
.admin-app .roster-row.kind-image .roster-row-top b em { background: #e8f8ef; color: #1aa35b; }
.admin-app .roster-row.kind-custom .roster-row-top b em { background: #fff3e8; color: #d4842f; }
.admin-app .roster-row-news {
  flex: none;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fa5151;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.admin-app .roster-row-main small {
  display: block;
  margin-top: 3px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.35;
}
.admin-app .roster-meter {
  display: block;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f0f0;
}
.admin-app .roster-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #07c160;
}
.admin-app .roster-row-state {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  max-width: 72px;
  color: #8a8a8a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  text-align: right;
  white-space: normal;
}
.admin-app .roster-row-state[data-status="已提交"],
.admin-app .roster-row-state[data-status="ok"] { color: #07c160; }
.admin-app .roster-row-state[data-status="填写中"] { color: #576b95; }
.admin-app .roster-row-state[data-status="no"] { color: #fa5151; }
.admin-app .roster-row-state[data-status="proposed"],
.admin-app .roster-row-state[data-status$="发起"] { color: #1f8f7e; }
.admin-app .progress-card {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}
.admin-app .progress-head { padding: 14px 16px 4px; }
.admin-app .progress-head strong { font-size: 17px; font-weight: 500; }
.admin-app .form-line {
  margin: 0;
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #f0f0f0;
}
.admin-app .chat-row { min-height: 48px; padding: 12px 16px; }
.admin-app .module-switch,
.admin-app #content-switch {
  gap: 0;
  margin: 0;
  padding: 0 4px;
  background: #ededed;
}
.admin-app .module-switch button,
.admin-app #content-switch button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 15px;
}
.admin-app .module-switch button.active,
.admin-app #content-switch button.active {
  background: transparent;
  color: #191919;
  font-weight: 500;
  box-shadow: inset 0 -2px 0 #07c160;
}
.admin-app #content-switch.content-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0 var(--page-x) 8px;
  padding: 2px;
  border-radius: 8px;
  background: #e5e5e5;
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.admin-app #content-switch.content-tabs button {
  flex: 1 1 0;
  min-height: 26px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 26px;
  box-shadow: none;
}
.admin-app #content-switch.content-tabs button.active {
  background: #fff;
  color: #191919;
  font-weight: 500;
  box-shadow: none;
}
.admin-app .editor-card {
  margin: 8px 0 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.admin-app .person-block {
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #f0f0f0;
}
.admin-app .dense-row {
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-app .person-chips { padding: 0 16px 10px; }
.admin-app #person-editor .stack { margin-top: 8px; background: #fff; }
.admin-app #person-editor .stack input {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #f0f0f0;
}
.admin-app .task-form { margin-top: 8px; background: transparent; }
.admin-app .task-field {
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #f0f0f0;
}
.admin-app .rich-editor,
.admin-app .task-notice {
  background: #f7f7f7;
  border-radius: 4px;
}
.admin-app .rich-tools + .rich-editor {
  border-radius: 0 0 8px 8px;
}
.admin-app .task-form .btn.block { width: calc(100% - 32px); margin: 12px 16px 0; }
.admin-app #progress-detail { margin-left: 0; margin-right: 0; }
.admin-app #me-menu .wx-logout { margin-top: 8px; }
body #screen-gate .gate-lock-input,
body #screen-gate .gate-lock-input:focus {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
}
.admin-app .progress-head.admin-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
}
.admin-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  overflow: hidden;
  border-radius: 14px;
  background: #ededed;
  color: #191919;
  font-size: 20px;
  font-weight: 600;
}
.admin-face img { width: 100%; height: 100%; object-fit: cover; }
.admin-face.has-new::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fa5151;
}
.admin-person-copy { flex: 1; min-width: 0; }
.admin-person-copy strong {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #191919;
  font-size: 17px;
  font-weight: 500;
}
.admin-person-copy strong span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.presence-mark {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  color: #c8c8c8;
}
.presence-mark.is-on { color: #07c160; }
.detail-title .presence-mark {
  display: inline-block;
  vertical-align: -2px;
}
.chat-inbox { background: #fff; }
.chat-inbox button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  text-align: left;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
.chat-inbox .chat-copy { flex: 1; min-width: 0; }
.chat-inbox b,
.chat-inbox small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-inbox b { color: #191919; font-size: 16px; font-weight: 500; }
.chat-inbox small { margin-top: 3px; color: #888; font-size: 13px; }
.chat-inbox .is-fresh b { font-weight: 600; }
.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa5151;
  flex: none;
}
.admin-app .detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.admin-person-copy small {
  display: block;
  margin-top: 3px;
  color: #888;
  font-size: 13px;
}
.admin-app .form-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 10px 16px;
  text-align: left;
}
.form-line-main { flex: 1; min-width: 0; }
.form-line-main b {
  display: block;
  min-width: 0;
  overflow: visible;
  color: #191919;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.form-line-main small {
  display: block;
  margin-top: 3px;
  overflow: visible;
  color: #888;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.form-line-main .meter {
  display: block;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}
.form-line-main .meter span {
  display: block;
  height: 100%;
  background: #07c160;
}
.form-line-state {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: #888;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}
.form-line-state[data-status="已提交"],
.form-line-state[data-status="ok"] { color: #07c160; }
.form-line-state[data-status="填写中"] { color: #576b95; }
.form-line-state[data-status="no"] { color: #fa5151; }
.form-go {
  width: 7px;
  height: 7px;
  flex: none;
  border-top: 1.5px solid #c8c8c8;
  border-right: 1.5px solid #c8c8c8;
  transform: rotate(45deg);
}
.admin-app .chat-row { gap: 8px; }
.admin-app .chat-row .chat-count { margin-left: auto; }
.admin-app .admin-empty { margin: 0; padding: 0 16px 12px; }
.admin-app #progress-detail {
  background: #fff;
  min-height: calc(100dvh - 88px - var(--safe-top) - var(--safe-bot));
}
.admin-app #progress-detail .cat-block,
.admin-app #progress-detail .detail-item,
.admin-app #progress-detail .answer-row,
.admin-app #progress-detail .thread {
  background: #fff;
}
.admin-app #progress-detail .answer-row,
.admin-app #progress-detail .answer-row.clause-row {
  flex-direction: row;
  align-items: flex-start;
}
.admin-app #progress-detail .answer-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  margin-left: auto;
  max-width: none;
}
.admin-app #progress-detail .answer-side .tag {
  flex: none;
  white-space: nowrap;
}
.admin-app #progress-detail .review-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  color: #576b95;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.admin-app #progress-detail .detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  touch-action: manipulation;
  margin: 0;
  padding: 4px 8px 0;
  background: #fff;
  border-bottom: 0.5px solid #ededed;
}
.admin-app #progress-detail .detail-tabs button {
  flex: 0 0 auto;
  max-width: none;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
}
.admin-app #progress-detail .detail-tabs button span {
  overflow: visible;
  white-space: nowrap;
}
.admin-app #progress-detail .detail-tabs button.active {
  background: transparent;
  color: #191919;
  font-weight: 500;
  box-shadow: inset 0 -2px 0 #07c160;
}
.admin-app #progress-detail .detail-tabs i,
.admin-app #progress-detail .detail-tabs button.active i {
  min-width: 0;
  height: auto;
  margin-left: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #b2b2b2;
  font-size: 12px;
  font-weight: 400;
}
.admin-app #progress-detail .detail-tabs button.active i { color: #07c160; }
.admin-app #progress-detail .detail-tabs .tab-thumb {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.done-mark {
  display: block;
  width: 18px;
  height: 18px;
  color: #07c160;
}
.done-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: #07c160;
}
.admin-app #progress-detail .thread {
  gap: 8px;
  margin: 0 16px 12px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 6px;
}
/* 朋友圈式回复区：去掉灰盒内边距，避免回复框二次缩进 */
.admin-app #progress-detail .thread.moment-thread {
  gap: 0;
  margin: 0 16px 12px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.admin-app #progress-detail .thread.moment-thread .moment-comments,
.admin-app #progress-detail .thread.moment-thread .moment-compose {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}
.admin-app #progress-detail .thread-line {
  max-width: 78%;
  padding: 8px 10px;
  border: 0;
  font-size: 15px;
}
.admin-app #progress-detail .thread-line.owner {
  align-self: flex-end;
  background: #95ec69;
  color: #191919;
  border-radius: 6px 6px 2px 6px;
}
.admin-app #progress-detail .thread-line.fill {
  align-self: flex-start;
  background: #fff;
  color: #191919;
  border: 0;
  border-radius: 6px 6px 6px 2px;
}
.admin-app #progress-detail .thread-line p {
  margin: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.admin-app #progress-detail .thread-tools {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.admin-app #progress-detail .thread-tools button {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
  font-size: 12px;
}
.admin-app #progress-detail .thread-compose,
.admin-app #progress-detail .chat-compose,
.admin-app #progress-detail .review-box.thread-compose {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 2px 0 0;
  background: transparent;
  border: 0;
}
.admin-app #progress-detail .moment-compose.thread-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 8px;
}
.admin-app #progress-detail .thread-compose textarea,
.admin-app #progress-detail .review-box textarea {
  flex: 1;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
}
.admin-app #progress-detail .moment-compose.thread-compose .moment-reply-input,
.admin-app #progress-detail .moment-compose.thread-compose textarea.thread-input {
  flex: none;
  width: 100%;
  height: 36px;
  min-height: 36px;
  max-height: 108px;
  padding: 7px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px #e5e5e5;
}
.admin-app #progress-detail .thread-compose .btn {
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 4px;
}
.admin-app #progress-detail .moment-compose.thread-compose .btn,
.admin-app #progress-detail .moment-compose.thread-compose .btn.small,
.admin-app #progress-detail .moment-compose.thread-compose .btn.primary {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  line-height: 36px;
}
.admin-app #progress-detail .detail-item.qa-line {
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
}
.admin-app #progress-detail .cat-block.is-wai-cards > .detail-item.qa-line,
.admin-app #progress-detail .cat-block.is-qa-cards > .detail-item.qa-line {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #progress-detail .detail-item.qa-line.is-open {
  background: #f7f7f7;
}
.admin-app #progress-detail .detail-item.qa-line .answer-row.qa-line-row {
  display: block;
  padding: 14px 16px 12px;
  background: transparent;
  box-shadow: none;
}
.admin-app #progress-detail .detail-item.qa-line .qa-line-main {
  display: block;
  width: 100%;
  min-width: 0;
}
.admin-app #progress-detail .detail-item.qa-line .qa-line-head b {
  display: inline;
  color: #191919;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.admin-app #progress-detail .detail-item.qa-line .qa-fold {
  margin: 0 16px 12px;
  padding: 8px 0 0;
}
.admin-app #progress-detail .detail-item.qa-line .qa-fold.thread,
.admin-app #progress-detail .detail-item.qa-line .qa-fold.thread.moment-thread {
  margin: 0 16px 12px;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.admin-app #progress-detail .detail-item.qa-line .qa-fold .moment-comments {
  margin: 8px 0 0;
}
.admin-app #progress-detail .detail-item.qa-line .moment-compose,
.admin-app #progress-detail .detail-item.qa-line .qa-fold .moment-compose {
  margin: 8px 0 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.admin-app #progress-detail .detail-item.qa-line .answer-side {
  display: none;
}
/* 消息/日常卡片内回复框：与正文同宽，不再左右缩进 */
.admin-app .moment .moment-compose,
.admin-app #admin-inbox .moment-compose,
.admin-app #daily-admin .moment-compose {
  margin: 8px 0 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#screen-tasks .task-feel-card {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px #e5e5e5;
}
#screen-tasks .task-feel {
  display: block;
  width: calc(100% - 24px);
  min-height: 180px;
  margin: 12px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #f7f7f7;
  box-shadow: none;
  color: #191919;
  font-size: 17px;
  line-height: 1.65;
  field-sizing: fixed;
  overflow: auto;
  resize: none;
}
#screen-tasks .task-feel:focus {
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #07c160;
}

#screen-qa .dock .contract-nav {
  display: flex;
  justify-content: flex-end;
}
#screen-qa #qa-next {
  min-width: 132px;
  padding-left: 22px;
  padding-right: 22px;
}
#screen-qa .qa-card {
  margin-top: 16px;
  padding: 0 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
#screen-qa .qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 0;
  color: #888;
  font-size: 13px;
}
#screen-qa .qa-answer {
  display: block;
  width: calc(100% - 24px);
  min-height: 180px;
  margin: 10px 12px 0;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #f7f7f7;
  font-size: 17px;
  line-height: 1.65;
  field-sizing: fixed;
  overflow: auto;
  resize: none;
}
#screen-qa .qa-answer:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #07c160;
}
#screen-qa .q-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
}
.qa-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  background: #fff;
  color: #191919;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
#screen-qa .q-title .qa-no {
  margin-top: 5px;
  min-width: 26px;
  height: 26px;
  font-size: 14px;
}
.qa-line-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.qa-pic {
  display: inline-flex;
  align-items: center;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: #ff8f1f;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  vertical-align: 1px;
}
#screen-qa .q-title .qa-pic {
  height: 18px;
  margin-top: 7px;
  font-size: 11px;
  vertical-align: 0;
}
.qa-line-head b {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
#screen-qa .q-title b {
  flex: 1;
  min-width: 0;
  font-weight: 650;
}
.qa-no.is-new,
.qa-mark.is-new {
  border-color: #07c160;
  background: #07c160;
  color: #fff;
}
.qa-no.is-done,
.qa-mark.is-done {
  border-color: #d9d9d9;
  background: #e8e8e8;
  color: #8a8a8a;
}
.qa-mark {
  display: inline-flex;
  align-items: center;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  vertical-align: 1px;
}
#screen-qa .q-title .qa-mark {
  height: 18px;
  margin-top: 7px;
  font-size: 11px;
  vertical-align: 0;
}
.editor-item.qa-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: start;
}
.qa-edit {
  margin: 8px 0 0;
  padding: 14px 12px 12px;
  background: #fff;
}
.qa-edit-name {
  display: block;
  color: #888;
  font-size: 13px;
}
.qa-edit-name input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
}
.qa-q { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid #eee; }
.qa-q-fold {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.qa-q-fold img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: #f2f2f2;
  flex: none;
}
.qa-q-photo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.qa-q-photo > img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f2f2;
  cursor: pointer;
}
.qa-photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.qa-photo-pick {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #f7f7f7;
  color: #576b95;
  font-size: 14px;
}
.qa-photo-row span { color: #888; font-size: 13px; }
.qa-q-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qa-q-top { display: flex; align-items: center; }
.qa-q textarea,
.qa-add textarea,
.qa-add input {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.5;
}
.qa-q textarea { min-height: 96px; }
.qa-add textarea { min-height: 72px; }
.qa-add input { min-height: 44px; }
.qa-q-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.qa-tap {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f2f2f2;
  color: #191919;
  font-size: 15px;
}
.qa-tap.danger { background: #fff1f0; color: #fa5151; }
.qa-edit > .qa-tap { width: 100%; margin-top: 12px; }
.qa-tap:disabled { opacity: 0.35; }
.qa-add { display: block; margin-top: 14px; }
.qa-add .btn { width: 100%; min-height: 44px; margin-top: 8px; }
.qa-add-cat {
  margin: 8px 0 16px;
  padding: 12px;
  background: #fff;
}
.qa-line {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px 12px;
  border: 0;
  border-bottom: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wx-group-list > .qa-line:last-child {
  box-shadow: none;
}
.qa-line b {
  display: block;
  color: #191919;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}
.qa-line .qa-form-name {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 13px;
}
.qa-line .wx-work-flag { margin-top: 8px; }
.qa-line.is-open { background: #f7f7f7; }
.qa-fold {
  margin: 0;
  padding: 8px 0 0;
  border-top: 0;
}
.qa-photos {
  --qa-cell: 86px;
  display: grid;
  gap: 3px;
  width: calc(var(--qa-cell) * 3 + 6px);
  max-width: 100%;
  margin: 8px 0 0;
}
.qa-photos.count-1 { width: auto; }
.qa-photos.count-2,
.qa-photos.count-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qa-photos.count-4 {
  width: calc(var(--qa-cell) * 2 + 3px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qa-shot {
  position: relative;
  display: block;
  width: 100%;
  height: var(--qa-cell);
  min-height: var(--qa-cell);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
  appearance: none;
}
.qa-photos.count-1 .qa-shot {
  width: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  background: transparent;
}
.qa-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qa-photos.count-1 .qa-shot img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  border-radius: 4px;
}
#qa-photos { margin-left: 0; }
.qa-fold .qa-photos + .qa-result { margin-top: 10px; }
.qa-q-photo .qa-photos { margin: 8px 0 0; }
.qa-result {
  display: block;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  white-space: pre-wrap;
}
.qa-fold .qa-result { margin: 0; }
.qa-result .qa-answer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 18px;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #e7f7ee;
  color: #07c160;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}
.qa-line > .qa-actions {
  margin: 0 0 10px;
}
.qa-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}
.qa-actions button {
  flex: none;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f2;
  font-size: 12px;
  line-height: 24px;
}
.qa-actions .qa-act { color: #576b95; }
.qa-actions .qa-act-del { background: #fff1f0; color: #fa5151; }
.qa-owner {
  margin: 8px 0 0;
  color: #576b95;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.qa-owner b { font-weight: 500; }
.qa-owner.is-empty { color: #888; }
.qa-ask-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.45);
}
.qa-ask-panel {
  width: min(320px, 100%);
  max-height: min(640px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 12px;
  background: #fff;
}
.qa-ask-panel p {
  margin: 0;
  padding: 28px 20px 22px;
  color: #191919;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}
.qa-ask-panel div {
  display: flex;
  border-top: 0.5px solid #e5e5e5;
}
.qa-ask-panel button {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: #fff;
  color: #576b95;
  font-size: 17px;
}
.qa-ask-panel button + button { border-left: 0.5px solid #e5e5e5; }
.qa-ask-panel button.is-danger { color: #fa5151; }
.qa-ask-panel button.is-send { color: #07c160; }
.qa-ask-panel .qa-ask-photos {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 6px;
  justify-content: start;
  margin: 0 16px 16px;
  padding: 0;
  border-top: 0;
}
.qa-ask-panel .qa-ask-photos button {
  flex: none;
  min-height: 0;
  border: 0;
  border-left: 0;
}
.qa-ask-panel .qa-ask-add {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: #f7f7f7;
  color: transparent;
  font-size: 0;
}
.qa-ask-panel .qa-ask-add::before,
.qa-ask-panel .qa-ask-add::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #c8c8c8;
}
.qa-ask-panel .qa-ask-add::before { width: 22px; height: 1px; margin: -0.5px 0 0 -11px; }
.qa-ask-panel .qa-ask-add::after { width: 1px; height: 22px; margin: -11px 0 0 -0.5px; }
.qa-ask-panel .qa-ask-shot {
  display: block;
  position: relative;
  width: 72px;
  height: 72px;
  border-top: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
}
.qa-ask-panel .qa-ask-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qa-ask-panel .wx-shot-x {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 22px;
}
.moment-main .qa-photos,
.thread-line .qa-photos { margin-left: 0; }
.qa-switch {
  display: flex;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
}
.qa-switch button {
  position: relative;
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 16px;
}
.qa-switch button.on {
  color: #07c160;
  font-weight: 600;
}
.qa-switch button.on::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #07c160;
}
.qa-switch i.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 99px;
  background: #fa5151;
  vertical-align: 2px;
}
.qa-ask-owner {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #07c160;
  font-size: 16px;
}
.qa-ask-input {
  display: block;
  width: calc(100% - 32px);
  min-height: 96px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 16px;
  line-height: 1.5;
}
.qa-ask-panel .form-error {
  margin: -8px 16px 12px;
  text-align: center;
}
.admin-app .qa-admin-photos {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 16px 12px;
  background: #fff;
}
.admin-app .qa-admin-photos .qa-photos { margin: 0; }
.admin-app .qa-admin-q {
  display: block;
  color: #191919;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.admin-app .qa-admin-a {
  display: block;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #353535;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
}
.admin-app .qa-admin-a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 3px;
  background: #e7f7ee;
  color: #07c160;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 1px;
}
.admin-app .qa-ask-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 18px;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #fff1e7;
  color: #d97706;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}
.admin-app .moment-main > .qa-ask-mark {
  display: inline-flex;
  margin: 2px 0 6px;
}
.admin-app #progress-detail .detail-tabs i.is-new {
  color: #fa5151;
  font-weight: 600;
}
.remind-page {
  min-height: calc(100dvh - 88px - var(--safe-top) - var(--safe-bot));
  padding: 0 0 28px;
  background: #ededed;
}
.remind-page .detail-title { margin: 0 0 12px; }
.remind-page .btn.block { margin: 12px 16px 0; width: calc(100% - 32px); }
.remind-card {
  margin: 12px 16px 0;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background: #fff;
}
.remind-card strong { font-size: 16px; }
.remind-card p { margin: 6px 0 0; color: #888; font-size: 13px; line-height: 1.45; }
.remind-card .presence-more { margin: 10px 0 0; }
.remind-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.remind-card-actions .presence-more { margin: 0; }
.remind-editor { padding-bottom: 12px; }
.remind-editor h3 {
  margin: 18px 16px 8px;
  color: #888;
  font-size: 13px;
  font-weight: 500;
}
.remind-modes, .remind-window {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px;
}
.remind-modes button, .remind-window label {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #191919;
  font-size: 14px;
}
.remind-modes button { min-height: 36px; padding: 0 12px; }
.remind-modes button.is-on { background: #07c160; color: #fff; }
.remind-window label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 42%;
  flex: 1;
  padding: 8px 10px;
}
.remind-window span { color: #888; font-size: 12px; }
.remind-window input, .remind-window select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #191919;
  font-size: 15px;
}
.remind-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  background: rgba(0, 0, 0, 0.45);
}
.remind-panel {
  width: min(360px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.remind-body {
  max-height: min(420px, calc(100dvh - 160px));
  padding: 12px 14px 8px;
  overflow: auto;
}
.remind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.remind-kicker,
.remind-kind,
.remind-index,
.remind-form,
.remind-detail,
.remind-note {
  margin: 0;
}
.remind-kicker {
  flex: none;
  padding: 0 6px;
  border-radius: 3px;
  background: #e7f8ef;
  color: #07c160;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}
.remind-kind {
  color: #888;
  font-size: 13px;
  line-height: 20px;
}
.remind-target { margin-top: 8px; }
.remind-index {
  color: #191919;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.remind-form {
  margin-top: 2px;
  color: #576b95;
  font-size: 14px;
  line-height: 1.35;
}
.remind-detail {
  margin-top: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.remind-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid #ededed;
  color: #191919;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.remind-note p,
.remind-note div { margin: 0 0 6px; }
.remind-note p:last-child,
.remind-note div:last-child { margin-bottom: 0; }
.remind-note h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.remind-note ul,
.remind-note ol {
  margin: 0 0 6px;
  padding-left: 1.25em;
}
.remind-card .remind-card-note {
  margin-top: 6px;
  color: #191919;
  font-size: 15px;
  line-height: 1.55;
}
.remind-card .remind-card-note p { margin: 0 0 4px; color: inherit; font-size: inherit; }
.remind-note-field {
  display: block;
  margin: 12px 16px 0;
  padding: 8px 10px 10px;
  border-radius: 8px;
  background: #fff;
}
.remind-note-field > span { color: #888; font-size: 12px; }
.remind-editor-box {
  margin-top: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
}
.remind-editor-box .rich-tools {
  border: 0;
  border-bottom: 0.5px solid #ededed;
  border-radius: 0;
}
.remind-note-field .rich-editor {
  min-height: 72px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.remind-actions {
  display: flex;
  border-top: 0.5px solid #e5e5e5;
}
.remind-actions button {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: #576b95;
  font-size: 17px;
}
.remind-actions button + button { border-left: 0.5px solid #e5e5e5; }
.remind-actions button.is-go { color: #07c160; font-weight: 600; }
.app-confirm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 40px;
  background: rgba(0, 0, 0, 0.45);
}
.app-confirm-panel {
  width: min(300px, 100%);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.app-confirm-panel p {
  margin: 0;
  padding: 26px 18px 22px;
  color: #191919;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}
.app-confirm-actions {
  display: flex;
  border-top: 0.5px solid #e5e5e5;
}
.app-confirm-actions button {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: #fff;
  color: #576b95;
  font-size: 17px;
}
.app-confirm-actions button + button { border-left: 0.5px solid #e5e5e5; }
.app-confirm-actions button.is-ok { font-weight: 600; }
.app-confirm-panel.is-form {
  width: min(360px, 100%);
}
.app-confirm-title {
  margin: 0;
  padding: 18px 16px 0;
  color: #191919;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.app-confirm-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}
.app-confirm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8a8a8a;
  font-size: 12px;
}
.app-confirm-input,
.app-confirm-area {
  width: 100%;
  box-sizing: border-box;
  border: 0.5px solid #e5e5e5;
  border-radius: 8px;
  background: #f7f7f7;
  color: #191919;
  font: inherit;
  font-size: 15px;
}
.app-confirm-input {
  min-height: 40px;
  padding: 8px 10px;
}
.app-confirm-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a8a8a 50%), linear-gradient(135deg, #8a8a8a 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.app-confirm-info {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  color: #191919;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}
.app-confirm-area {
  min-height: 72px;
  padding: 8px 10px;
  resize: vertical;
}
.app-confirm-tip {
  margin: 0;
  padding: 0;
  color: #d94848;
  font-size: 13px;
  text-align: left;
}

/* —— 全站收紧：禁左右滑、统一侧边、卡片不贴边 —— */
html,
body,
.app,
.screen,
.column-screen,
.scroll,
.screen-body,
.form-fill {
  max-width: 100%;
  min-width: 0;
}
.screen { overflow-x: hidden; }
img,
svg,
video,
canvas {
  max-width: 100%;
}
.gate-wrap {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.topbar {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.module-switch {
  max-width: 100%;
}
.propose-note,
.propose-tabs,
.propose-extra-kinds,
.propose-extra-list,
.propose-extra-form,
.propose-review-name,
.propose-review-cat,
.propose-review-list,
.propose-review-actions,
.propose-send-bar,
.date-meta-back {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.propose-extra-form,
.propose-extra-list {
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.admin-app .propose-extra-kinds,
.admin-app .propose-extra-list,
.admin-app .propose-extra-form,
.admin-app .propose-send-bar {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
  max-width: calc(100% - 2 * var(--page-x));
  box-sizing: border-box;
}
.admin-app .propose-send-bar { justify-content: center; }
#agreement-editor .date-meta-panel,
#agreement-editor .date-meta-back {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.admin-app #date-home,
.admin-app #form-list-wrap,
.admin-app #date-library-page {
  max-width: 100%;
  min-width: 0;
}
.admin-app #date-library {
  margin-left: 0;
  margin-right: 0;
}
.admin-app .roster-card,
.admin-app .roster-overview {
  max-width: 100%;
}
.admin-app .roster-card { border-radius: 12px; }
.admin-app .roster-overview { gap: 8px; }
.admin-app .roster-stat {
  padding: 10px 8px;
  border-radius: 12px;
}
.admin-app .roster-stat strong { font-size: 20px; }
#screen-home .work-actions { box-sizing: border-box; }
.wx-group { margin-left: 0; margin-right: 0; }
.wx-cell {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
#screen-home .bind-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0 8px;
}
#screen-home .bind-page .bind-lead,
#screen-home .bind-page .bind-block > .dense-count {
  margin: 0 var(--page-x);
}
#screen-home .bind-page .bind-head {
  margin: 0 var(--page-x) 6px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
#screen-home .bind-page .bind-mine,
.admin-app #person-home .bind-mine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--page-x);
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
}
#screen-home .bind-page .bind-mine strong,
.admin-app #person-home .bind-mine strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
#screen-home .bind-page .bind-id,
.admin-app #person-home .bind-id {
  flex: none;
  color: #888;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
#screen-home .bind-page .bind-block { display: flex; flex-direction: column; gap: 6px; }
#screen-home .bind-page .bind-block[hidden] { display: none !important; }
#screen-home .bind-page .dense-form,
#screen-home .bind-page .wx-cell {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
#screen-home .bind-page .bind-list {
  display: flex;
  flex-direction: column;
  margin: 0 var(--page-x);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
#screen-home .bind-page .bind-list:empty { display: none; }
#screen-home .bind-page .person-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 6px 0 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
#screen-home .bind-page .person-line:last-child { box-shadow: none; }
#screen-home .bind-page .person-line b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screen-home .bind-page .bind-tag { flex: none; color: #07c160; font-size: 13px; }
#screen-home .bind-page .bind-tag.is-wait { color: #888; }
#screen-home .bind-page .person-edit {
  flex: none;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
}
.form-choice,
.task-card {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.moment-compose,
.daily-compose {
  max-width: 100%;
  box-sizing: border-box;
}
.thread,
.moment-thread,
.qa-fold {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.thread-line,
.moment-comments,
.moment-compose textarea,
.daily-compose textarea {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tabbar {
  max-width: 100%;
  overflow: hidden;
}
.dense-row,
.pick-row,
.plan-pick-row {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.btn.block {
  max-width: 100%;
  box-sizing: border-box;
}
#screen-home .screen-body,
#screen-custom .screen-body,
.admin-app .screen-body {
  padding-left: 0;
  padding-right: 0;
}
#screen-home .block-title,
.todo-board .block-title {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.todo-board .empty,
#screen-home .empty {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.admin-app .topbar {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.admin-app .dense-count,
.admin-app .form-error {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.admin-app .detail-title,
.admin-app .detail-back {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
  box-sizing: border-box;
}
.admin-app .dense-form,
.admin-app #admin-pass,
.admin-app .task-card,
.admin-app .settings-list .task-card,
.admin-app .form-line,
.admin-app .chat-row,
.admin-app .dense-row {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.admin-app #open-add-task,
.admin-app #open-add-person {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--page-x);
  padding-right: var(--page-x);
  box-sizing: border-box;
}
.admin-app .task-form .btn.block {
  width: calc(100% - 2 * var(--page-x));
  max-width: calc(100% - 2 * var(--page-x));
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.propose-extra-tip {
  margin-left: var(--page-x) !important;
  margin-right: var(--page-x) !important;
}
.ask-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px var(--page-x) 28px;
  box-sizing: border-box;
  background: #ededed;
}
.ask-compose-label {
  margin: 8px 0 0;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
}
.ask-compose .ask-topic-input,
.ask-compose .ask-desc-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  box-sizing: border-box;
}
.ask-compose .ask-topic-input {
  font-weight: 500;
}
.ask-compose .ask-desc-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.ask-compose .ask-topic-input::placeholder,
.ask-compose .ask-desc-input::placeholder {
  color: #b2b2b2;
  font-weight: 400;
}
.ask-compose-error {
  margin: 4px 0 0;
}
.ask-compose-send {
  margin-top: 16px;
}
.ask-topic-input {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}
.ask-topic-input::placeholder {
  color: #b2b2b2;
  font-weight: 400;
}

/* 交流：微信式会话列表 + 聊天窗 */
.wx-chat-list {
  min-height: 100%;
  background: #ededed;
}
.wx-chat-list.is-solo { background: #fff; }
.wx-chat-start {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  box-shadow: inset 0 -0.5px 0 #e5e5e5;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.wx-chat-start::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid #b2b2b2;
  border-radius: 50%;
  color: #191919;
  font-size: 20px;
  line-height: 1;
}
.wx-chat-start:active { background: #f7f7f7; }
.wx-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 72px 24px 40px;
  color: #b2b2b2;
  text-align: center;
}
.wx-chat-empty p {
  margin: 0;
  color: #888;
  font-size: 16px;
}
.wx-chat-empty span { font-size: 13px; }
.wx-chat-sessions { background: #fff; }
.wx-chat-session {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.wx-chat-session::after {
  content: "";
  position: absolute;
  left: 76px;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: #e5e5e5;
}
.wx-chat-sessions > .wx-chat-session:last-child::after { display: none; }
.wx-chat-session:active { background: #ececec; }
.wx-chat-session-avatar,
.wx-chat-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #cfcfcf;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  overflow: hidden;
  object-fit: cover;
}
.wx-chat-session-avatar.is-owner,
.wx-chat-avatar.is-owner { background: #576b95; }
.wx-chat-avatar {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 15px;
}
.wx-chat-session-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding-right: 36px;
}
.wx-chat-session-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.wx-chat-session-top b {
  overflow: hidden;
  color: #191919;
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-chat-session-top i {
  flex: none;
  color: #b2b2b2;
  font-size: 12px;
  font-style: normal;
}
.wx-chat-session-preview {
  overflow: hidden;
  color: #888;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wx-chat-session.is-unread .wx-chat-session-top b { font-weight: 600; }
.wx-chat-session-dot,
.wx-chat-session-badge {
  position: absolute;
  top: auto;
  right: 16px;
  bottom: 14px;
  flex: none;
  background: #fa5151;
  color: #fff;
}
.wx-chat-session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.wx-chat-session-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.wx-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ededed;
}
.wx-chat-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  padding: 8px 10px 12px;
  -webkit-overflow-scrolling: touch;
}
.wx-chat-more {
  display: block;
  width: max-content;
  margin: 2px auto 10px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 13px;
}
.wx-chat-unread {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 8px 14px;
  color: #b2b2b2;
  font-size: 12px;
  line-height: 1;
}
.wx-chat-unread::before,
.wx-chat-unread::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: #d6d6d6;
}
.wx-chat-jump {
  position: sticky;
  bottom: 8px;
  z-index: 2;
  display: block;
  width: max-content;
  margin: 8px 0 0 auto;
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: #576b95;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wx-chat-time {
  margin: 10px auto 12px;
  width: max-content;
  max-width: 80%;
  padding: 2px 6px;
  border-radius: 3px;
  background: #dadada;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.wx-chat-row.is-mine + .wx-chat-row.is-mine,
.wx-chat-row.is-owner + .wx-chat-row.is-owner {
  margin-top: -6px;
}
.wx-bubble-menu {
  position: fixed;
  z-index: 90;
  display: flex;
  align-items: stretch;
  max-width: calc(100vw - 16px);
  overflow: hidden;
  border-radius: 6px;
  background: #4c4c4c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.wx-bubble-menu button {
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-right: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.wx-bubble-menu button:last-child { border-right: 0; }
.wx-bubble-menu button.is-danger { color: #ffb4b4; }
.wx-bubble-menu button:active { background: rgba(255, 255, 255, 0.08); }
.wx-chat-row.is-in {
  animation: wx-chat-in .16s ease-out;
}
@keyframes wx-chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.wx-chat-pending-photo {
  display: block;
  max-width: min(52vw, 220px);
  max-height: 220px;
  border-radius: 4px;
}
.wx-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.wx-chat-row.is-mine { flex-direction: row-reverse; }
.wx-chat-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(74%, 292px);
}
.wx-chat-row.is-mine .wx-chat-stack { align-items: flex-end; }
.wx-chat-bubble {
  position: relative;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  background: #fff;
  color: #191919;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: none;
  -webkit-touch-callout: none;
}
.wx-chat-row.is-owner .wx-chat-bubble::before,
.wx-chat-row.is-mine .wx-chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
.wx-chat-row.is-owner .wx-chat-bubble::before {
  left: -10px;
  border-right-color: #fff;
}
.wx-chat-row.is-mine .wx-chat-bubble {
  background: #95ec69;
}
.wx-chat-row.is-mine .wx-chat-bubble::before {
  right: -10px;
  border-left-color: #95ec69;
}
.wx-chat-bubble.is-media {
  padding: 0;
  background: transparent !important;
  border-radius: 4px;
  overflow: hidden;
}
.wx-chat-bubble.is-media::before { display: none; }
.wx-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
}
.wx-chat-bubble .wx-chat-photos { margin: 0; }
.wx-chat-bubble p + .wx-chat-photos { margin-top: 8px; }
.wx-chat-bubble .qa-photos { --qa-cell: 96px; }
.wx-chat-bubble.is-media .qa-photos.count-1 .qa-shot img {
  max-width: min(52vw, 220px);
  max-height: 220px;
}
.wx-chat .wx-chat-bar {
  flex: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
}
.wx-chat-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.wx-chat-input {
  flex: 1;
  min-width: 0;
  max-height: 108px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
  outline: none;
  overflow-y: auto;
}
.wx-chat-tool {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin: 0 0 1px;
  padding: 0;
  border: 1.5px solid #7f7f7f;
  border-radius: 50%;
  background: transparent;
  color: #191919;
  cursor: pointer;
}
.wx-chat-tool svg {
  width: 20px;
  height: 20px;
}
.wx-chat-tool:active { opacity: 0.55; }
.wx-chat-send {
  flex: none;
  min-width: 56px;
  height: 32px;
  margin: 0 0 2px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #07c160;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.wx-chat-send:disabled {
  opacity: 0.45;
}
.wx-chat-send:active:not(:disabled) { opacity: 0.82; }
.wx-chat-quote {
  margin: 0 0 6px;
  padding: 6px 8px;
  border-left: 2px solid rgba(0, 0, 0, 0.16);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 13px;
  line-height: 1.35;
}
.wx-chat-row.is-mine .wx-chat-quote {
  background: rgba(0, 0, 0, 0.06);
}
.wx-chat-quote b {
  display: block;
  margin-bottom: 2px;
  color: #576b95;
  font-weight: 500;
}
.wx-chat-quote span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wx-chat-quote-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border-left: 2px solid #d6d6d6;
  border-radius: 2px;
  background: #fff;
}
.wx-chat-quote-bar-copy { flex: 1; min-width: 0; }
.wx-chat-quote-bar-copy b {
  display: block;
  color: #888;
  font-size: 12px;
  font-weight: 400;
}
.wx-chat-quote-bar-copy span {
  display: block;
  overflow: hidden;
  color: #888;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wx-chat-quote-x {
  flex: none;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wx-chat-plus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  padding: 18px 8px 6px;
}
.wx-chat-plus[hidden] { display: none; }
.wx-chat-plus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wx-chat-plus-item i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  color: #191919;
}
.wx-chat-plus-item svg { width: 28px; height: 28px; }
.wx-chat-draft-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.wx-chat-draft-photos .qa-ask-shot {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
}
.wx-chat-draft-photos .qa-ask-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
}
.wx-action-sheet-panel {
  width: min(100%, 420px);
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f7;
}
.wx-action-sheet-title {
  margin: 0;
  padding: 14px 16px 10px;
  color: #888;
  font-size: 13px;
  text-align: center;
}
.wx-action-sheet-panel button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.wx-action-sheet-panel button.is-danger { color: #fa5151; }
.wx-action-sheet-panel button.is-cancel {
  margin-top: 8px;
  border-top: 0;
  border-radius: 12px;
  font-weight: 600;
}
.wx-action-sheet-panel button:active { background: #ececec; }
.thread-line .wx-chat-quote { margin-bottom: 8px; }
.moment-comment .wx-chat-quote { margin: 4px 0 6px; }

#screen-home.is-ask-chat.is-keyboard,
.admin-app .screen.is-ask-chat.is-keyboard {
  position: fixed;
  z-index: 30;
  margin: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.is-keyboard .wx-chat-bar {
  padding-bottom: 7px;
}
#screen-home.is-ask-chat,
#screen-home.is-ask-chat .scroll,
#screen-home.is-ask-chat .topbar {
  background: #ededed;
}
#screen-home.is-ask-chat .scroll {
  overflow: hidden;
}
#screen-home.is-ask-chat .screen-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: #ededed;
}
#screen-home.is-ask-chat .qa-switch,
#screen-home.is-ask-chat #filler-tabs {
  display: none !important;
}
#screen-home.is-ask-list,
#screen-home.is-ask-list .scroll,
#screen-home.is-ask-list .topbar,
#screen-home.is-ask-list .screen-body {
  background: #fff;
}
#screen-home.is-ask-list .screen-body {
  padding: 0 0 calc(12px + var(--safe-bot));
}


/* 两端同步：任务列表 + 任务详情 = 歪歪同款 8px 独立卡 */
#task-body:has(> .task-card),
#task-list,
.admin-app #task-list,
#task-body:has(> .task-sheet-block),
#task-detail,
.admin-app #task-detail {
  display: flex !important;
  flex-direction: column;
  gap: 10px !important;
  background: transparent !important;
}
#task-body > .task-card,
#task-list .task-card,
.admin-app #task-list .task-card,
.admin-app .settings-list .task-card,
#task-body > .task-sheet-block,
#task-body > .task-module,
#task-detail > .task-sheet-block,
#task-detail > .task-module,
.admin-app #task-detail > .task-sheet-block,
.admin-app #task-detail > .task-module {
  margin-left: var(--page-x, 16px) !important;
  margin-right: var(--page-x, 16px) !important;
  border: 0 !important;
  border-radius: 8px !important;
  border-bottom: 0 !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) !important;
  overflow: hidden;
  max-width: calc(100% - 2 * var(--page-x, 16px));
  box-sizing: border-box;
}

/* 管理端列表：人一张圆角卡；问答详情灰底托出分类卡；我的收成一组单元格 */
.admin-app #progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px var(--page-x) 16px;
}
.admin-app .content-guide {
  margin: 0;
  border: 0;
  border-radius: 8px;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-strip {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-group {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-group.is-fresh {
  box-shadow: inset 3px 0 0 #fa5151, 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .roster-group .roster-body {
  border-top: 0.5px solid #ededed;
  background: #fff;
}
.admin-app .roster-meter { display: none; }
.admin-app .roster-row-top b em {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 400;
}
.admin-app .roster-row.kind-text .roster-row-top b em,
.admin-app .roster-row.kind-qa .roster-row-top b em,
.admin-app .roster-row.kind-wai .roster-row-top b em,
.admin-app .roster-row.kind-image .roster-row-top b em,
.admin-app .roster-row.kind-custom .roster-row-top b em {
  background: transparent;
  color: #8a8a8a;
}
.admin-app .roster-row-top b {
  font-size: 16px;
  font-weight: 400;
}
.admin-app .roster-row {
  min-height: 58px;
  padding: 10px 14px 10px 16px;
}
.admin-app .roster-row.is-fresh { background: #fff; }
.admin-app #progress-detail.is-qa-list {
  background: #ededed;
}
.admin-app #me-menu .settings-list {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  margin: 10px var(--page-x) 0 !important;
  overflow: hidden;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #me-menu .settings-list .task-card,
.admin-app #me-menu .settings-list .activity-card {
  width: 100% !important;
  max-width: none !important;
  min-height: 56px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: inset 0 -0.5px 0 #e5e5e5 !important;
}
.admin-app #me-menu .settings-list .task-card:last-child {
  box-shadow: none !important;
}
.admin-app #me-menu .settings-list .task-card:active {
  background: #ececec !important;
}
.admin-app #me-menu .settings-list .task-card-top strong {
  font-size: 17px;
  font-weight: 400;
}
.admin-app #me-menu .settings-list .task-card-top i {
  color: #b2b2b2;
  font-size: 15px;
  font-weight: 400;
}
.admin-app #me-menu .wx-logout {
  width: auto;
  margin: 10px var(--page-x) 0;
  border-radius: 8px;
}
.admin-app #admin-pass,
.admin-app #add-form,
.admin-app #add-level,
.admin-app #add-sign,
.admin-app #add-agreement,
.admin-app #add-cat {
  margin: 10px var(--page-x) 0;
  padding: 0 14px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #form-list,
.admin-app #agreement-list,
.admin-app #level-list,
.admin-app #sign-list,
.admin-app #person-list {
  margin: 10px var(--page-x) 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .unread-detail {
  background: #ededed;
}
.admin-app .unread-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px var(--page-x) 0;
  background: transparent;
  border: 0;
}
.admin-app .unread-unit,
.admin-app .unread-unit.is-fresh,
.admin-app .unread-unit.is-replying {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* 填写人设置：每人一张卡，勾选收成一组单元格 */
.admin-app #person-home {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0 8px;
}
.admin-app #person-home .bind-lead,
.admin-app #person-home .bind-block > .dense-count {
  margin: 0 var(--page-x);
}
.admin-app #person-home .bind-head {
  margin: 0 var(--page-x) 6px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
.admin-app #person-home .bind-block { display: flex; flex-direction: column; gap: 6px; }
.admin-app #person-home .bind-block[hidden] { display: none !important; }
.admin-app #person-home .dense-form,
.admin-app #person-home #copy-invite {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}
.admin-app #person-home .bind-tag {
  flex: none;
  color: #07c160;
  font-size: 13px;
  line-height: 1;
}
.admin-app #person-home .bind-tag.is-wait { color: #888; }
.admin-app #me-menu .wx-profile {
  width: 100%;
  margin: 0 0 10px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  text-align: left;
}
.admin-app #me-profile { margin: 0 var(--page-x); }
.admin-app #me-profile .profile-form { border-radius: 8px; overflow: hidden; }
.admin-app #me-profile .dense-count { margin: 10px 16px; }
.admin-app #me-profile .btn { margin: 0 16px 16px; width: auto; }
.admin-app #me-menu[hidden],
.admin-app #me-profile[hidden],
.admin-app #person-home[hidden],
.admin-app #person-editor[hidden] {
  display: none !important;
}
.admin-app #person-home #open-add-person {
  width: auto;
  margin: 0 var(--page-x);
  min-height: 48px;
  padding: 0 16px;
  justify-content: flex-start;
  border-radius: 8px;
  color: #576b95;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-home #open-add-person::before {
  content: "+";
  margin-right: 6px;
  color: #07c160;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.admin-app #person-home #open-add-person::after { content: none; }
.admin-app #person-home #person-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 var(--page-x);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-home #person-list[hidden] { display: none !important; }
.admin-app #person-home .person-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 6px 0 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #person-home .person-line:last-child { box-shadow: none; }
.admin-app #person-home .person-line b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 17px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app #person-home .person-edit {
  flex: none;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #576b95;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.admin-app #person-home .person-edit:active { opacity: 0.55; }
.admin-app #person-delete {
  width: auto;
  margin: 10px var(--page-x) 0;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #fa5151;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-delete[hidden] { display: none !important; }
.admin-app #person-editor {
  gap: 0;
  padding-bottom: 20px;
}
.admin-app #person-editor > .detail-title { display: none; }
.admin-app #person-editor > .detail-back {
  margin: 0 var(--page-x);
  padding-left: 0;
  padding-right: 0;
}
.admin-app:has(#person-editor:not([hidden])) #settings-back { display: none; }
.admin-app #person-editor .stack {
  margin: 0 var(--page-x);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-editor .stack input {
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
  font-size: 17px;
}
.admin-app #person-editor .stack input:focus {
  border: 0;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #person-editor .stack input:last-child,
.admin-app #person-editor .stack input:last-child:focus { box-shadow: none; }
.admin-app #person-editor > .dense-count,
.admin-app #person-editor .dense-count {
  margin: 14px var(--page-x) 6px;
  padding: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.45;
}
.admin-app #person-qa,
.admin-app #person-wai,
.admin-app #person-text,
.admin-app #person-contract,
.admin-app #person-custom {
  margin: 0 var(--page-x);
}
.admin-app #person-editor .pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
  font-size: 16px;
  line-height: 1.35;
}
.admin-app #person-editor .pick-row:first-of-type { border-radius: 8px 8px 0 0; }
.admin-app #person-editor .pick-row:last-child {
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-editor .pick-row:first-of-type:last-child { border-radius: 8px; }
.admin-app #person-editor .pick-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #07c160;
}
.admin-app #person-editor .pick-row span {
  flex: 1;
  min-width: 0;
  color: #191919;
}
.admin-app #person-editor .empty {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #person-editor #person-error { margin: 8px var(--page-x) 0; }
.admin-app #person-save {
  width: auto;
  margin: 16px var(--page-x) 0;
  min-height: 48px;
  border-radius: 8px;
}

/* 任务、习惯、等级/问卷列表：灰底上的圆角卡 */
.admin-app #task-home {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 16px;
}
.admin-app #task-home[hidden],
.admin-app #task-editor[hidden],
.admin-app #task-detail[hidden] {
  display: none !important;
}
.admin-app #task-home .dense-count {
  margin: 0 var(--page-x);
}
.admin-app #task-home #task-list {
  margin: 0;
}
.admin-app #task-home .empty {
  margin: 12px var(--page-x) 0;
  text-align: center;
}
.admin-app #task-home #open-add-task {
  width: auto;
  margin: 0 var(--page-x);
  min-height: 48px;
  padding: 0 16px;
  justify-content: flex-start;
  border-radius: 8px;
  background: #fff;
  color: #576b95;
  font-size: 16px;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app #task-home #open-add-task::before {
  content: "+";
  margin-right: 6px;
  color: #07c160;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.admin-app #task-home #open-add-task::after { content: none; }
.admin-app .task-status,
.admin-app .task-status.done,
.admin-app .task-status.accepted,
.admin-app .task-status.rejected {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}
.admin-app .task-status { color: #888; }
.admin-app .task-status.done,
.admin-app .task-status.accepted { color: #07c160; }
.admin-app .task-status.rejected { color: #fa5151; }
.admin-app .task-form {
  gap: 10px;
  padding: 4px 0 24px;
  background: transparent;
}
.admin-app .task-form > .detail-back {
  margin: 0 var(--page-x);
  padding-left: 0;
  padding-right: 0;
}
.admin-app .task-form > .detail-title { padding-left: var(--page-x); padding-right: var(--page-x); }
.admin-app .task-form .task-field {
  margin: 0 var(--page-x);
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .task-form .task-field > span {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}
.admin-app #task-name,
.admin-app #task-name:focus {
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
}
.admin-app #task-people {
  gap: 0;
}
.admin-app #task-people .task-pick {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #task-people .task-pick:last-child { box-shadow: none; }
.admin-app #task-people .task-pick:has(input:checked) {
  border-color: transparent;
  background: transparent;
  color: #07c160;
}
.admin-app .task-returns .task-pick {
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
}
.admin-app .task-returns .task-pick:has(input:checked) {
  border-color: transparent;
  background: #e7f7ee;
  color: #07c160;
}
.admin-app .task-form .btn.block {
  width: auto;
  min-height: 48px;
  margin: 0 var(--page-x);
  border-radius: 8px;
}
.admin-app #task-save-another {
  background: #fff;
  color: #576b95;
}
.admin-app .habits-form {
  margin: 10px var(--page-x) 24px;
  padding: 4px 0 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.admin-app .habits-form .compose-cell,
.admin-app .habits-form .habits-custom {
  margin: 0;
  padding: 12px 16px;
}
.admin-app .habits-form .btn.block {
  width: auto;
  min-height: 48px;
  margin: 8px 16px 0;
  border-radius: 8px;
}
.admin-app .base-lib-empty {
  margin: 14px 16px 8px;
  color: #888;
  font-size: 14px;
  line-height: 1.45;
}
.admin-app .base-lib-head {
  margin: 18px 16px 8px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
.admin-app .base-lib-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 16px;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app .base-lib-row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #191919;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-app .base-lib-acts {
  display: flex;
  flex: none;
  gap: 16px;
}
.admin-app .base-lib-acts .text-btn {
  padding: 8px 0;
  color: #576b95;
  font-size: 15px;
}
.admin-app .base-view-item small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}
.admin-app #base-library,
.admin-app #agreement-list { padding-bottom: 0; }
.admin-app .base-view-back { margin: 8px 16px 0; }
.admin-app .base-view-title {
  margin: 12px 16px 8px;
  color: #191919;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.admin-app .base-view-intro {
  margin: 0 0 8px;
  padding: 14px 16px;
  background: #fff;
  color: #191919;
  font-size: 15px;
  line-height: 1.55;
}
.admin-app .base-view-cat {
  margin: 8px 0 0;
  background: #fff;
}
.admin-app .base-view-cat h3 {
  margin: 0;
  padding: 14px 16px 8px;
  color: #191919;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-app .base-view-cat .hint {
  margin: 0;
  padding: 0 16px 8px;
  color: #888;
  font-size: 13px;
  line-height: 1.45;
}
.admin-app .base-view-item {
  padding: 12px 16px;
  color: #191919;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: inset 0 0.5px 0 #ededed;
}
.admin-app .base-view-item b {
  display: block;
  margin-bottom: 4px;
  color: #888;
  font-size: 12px;
  font-weight: 400;
}
.admin-app .base-view-copy {
  margin: 16px var(--page-x) 8px;
}
.admin-app #base-library .empty { margin: 12px var(--page-x); }
.admin-app #level-list .dense-row,
.admin-app #sign-list .dense-row,
.admin-app #form-list .dense-row {
  min-height: 52px;
  margin: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 -0.5px 0 #ededed;
}
.admin-app #level-list .dense-row:last-child,
.admin-app #sign-list .dense-row:last-child,
.admin-app #form-list .dense-row:last-child {
  box-shadow: none;
}
.admin-app #level-list .dense-row input,
.admin-app #sign-list .dense-row input,
.admin-app #form-list .dense-row input,
.admin-app #level-list .dense-row input:focus,
.admin-app #sign-list .dense-row input:focus,
.admin-app #form-list .dense-row input:focus {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
  font-size: 16px;
}
