/* 源诚物业 · 管家端 H5（微信绿 #07c160 · iOS 壳，对齐老板端交互） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { font-size: 16px; height: 100%; overscroll-behavior: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f2f3f7; color: #1c1c1e;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  height: 100%; width: 100%; overflow: hidden;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
input, textarea, select { -webkit-user-select: text; user-select: text; font-family: inherit; }
b { font-weight: 600; }
.muted { color: #86868b; font-size: 12px; font-weight: 600; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; touch-action: manipulation; }
body.modal-open #appMain, body.modal-open .auth-view { overflow: hidden; }

/* ----- Login ----- */
.auth-view { height: 100%; display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #f2f3f7; padding: 0 28px; }
.auth-scroll { margin: auto; width: 100%; max-width: 400px; padding: 52px 0 40px; }
.auth-logo { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 22px; background: #07c160; overflow: hidden; box-shadow: 0 8px 24px rgba(7,193,96,.28); }
.auth-title { text-align: center; font-size: 23px; font-weight: 700; letter-spacing: -.2px; }
.auth-sub { text-align: center; font-size: 13.5px; color: #86868b; margin-top: 5px; }
.auth-role { text-align: center; font-size: 11.5px; color: #b5b5ba; margin-top: 2px; }
.auth-src { text-align: center; font-size: 12.5px; color: #86868b; margin: 30px 0 14px; }
.auth-tip { text-align: center; font-size: 12px; color: #aeaeb2; margin-top: 22px; line-height: 1.55; }

.field { position: relative; margin-bottom: 12px; }
.field.flex { flex: 1; margin-bottom: 0; }
.field input {
  width: 100%; height: 48px; border: none; outline: none; border-radius: 12px;
  background: #efeff1; padding: 0 14px; font-size: 16px; color: #1c1c1e;
  -webkit-appearance: none; appearance: none; transition: background .15s, box-shadow .15s;
}
.field input:focus { background: #fff; box-shadow: 0 0 0 1.5px #07c160; }
.eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #b5b5ba; }
.eye.on { color: #07c160; }
.eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.captcha-line { display: flex; gap: 10px; margin-bottom: 12px; }
.captcha-chip { width: 104px; height: 48px; flex-shrink: 0; border-radius: 12px; background: rgba(7,193,96,.09); color: #069a4d; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-primary {
  width: 100%; height: 50px; border-radius: 12px; margin-top: 10px;
  background: #07c160; color: #fff; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(7,193,96,.28); transition: transform .12s, opacity .12s;
}
.btn-primary:active { transform: scale(.98); opacity: .92; }
.btn-primary[disabled] { background: rgba(7,193,96,.55); box-shadow: none; }
.spin { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-primary.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ----- App shell ----- */
#view-app { height: 100%; display: flex; flex-direction: column; background: #f2f3f7; }
.top-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: rgba(242,243,247,.92);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: .5px solid rgba(60,60,67,.08); z-index: 20;
}
.top-project { text-align: left; min-width: 0; flex: 1; }
.tp-row { display: flex; align-items: center; gap: 4px; }
.tp-row b { font-size: 17px; font-weight: 700; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-count { font-size: 11px; color: #86868b; font-weight: 600; }
.tp-chev { width: 14px; height: 14px; stroke: #c7c7cc; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.top-chip { display: block; margin-top: 2px; font-size: 11px; color: #aeaeb2; font-weight: 600; }
.top-me { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-user { font-size: 13px; font-weight: 600; color: #3a3a3c; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-quit { font-size: 13px; font-weight: 600; color: #07c160; padding: 6px 4px; }

#appMain {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: 10px 14px calc(78px + env(safe-area-inset-bottom, 0px));
}
.page { animation: fade .2s ease; }
@keyframes fade { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: #fff; border-radius: 14px; padding: 14px 14px 12px;
  margin-bottom: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card.err-card b { display: block; margin-bottom: 6px; }
.err-retry { margin-top: 10px; color: #07c160; font-weight: 600; font-size: 14px; padding: 8px 0; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat {
  background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .12s;
}
.stat:active { transform: scale(.97); }
.stat b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: #1c1c1e; letter-spacing: -.3px; }
.stat span { font-size: 11px; color: #86868b; font-weight: 600; }
.stat.warn b { color: #ff9500; }
.stat.bad b { color: #fa5151; }
.stat.ok b { color: #07c160; }

/* Search + chips */
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 0 12px; height: 40px; margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02); position: relative;
}
.search-box svg { width: 16px; height: 16px; color: #c7c7cc; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent; font-size: 15px; height: 100%;
  -webkit-appearance: none; appearance: none; min-width: 0;
}
.search-clear {
  width: 22px; height: 22px; border-radius: 50%; background: #e5e5ea; color: #fff;
  font-size: 14px; line-height: 22px; text-align: center; flex-shrink: 0; font-weight: 700;
}
.chips-sticky {
  position: sticky; top: -10px; z-index: 5; background: linear-gradient(#f2f3f7 70%, rgba(242,243,247,0));
  padding-bottom: 6px; margin: 0 -2px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px;
  background: #fff; color: #3a3a3c; font-size: 13px; font-weight: 600;
  border: .5px solid rgba(60,60,67,.12); transition: background .15s, color .15s, transform .1s;
}
.chip:active { transform: scale(.96); }
.chip.on { background: #07c160; color: #fff; border-color: #07c160; box-shadow: 0 4px 10px rgba(7,193,96,.25); }

/* Matter cards */
.m-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px;
  transition: transform .12s; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.m-card:active { transform: scale(.985); }
.m-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.m-title { font-size: 16px; font-weight: 700; line-height: 1.35; flex: 1; letter-spacing: -.2px; }
.m-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(7,193,96,.12); color: #069a4d;
}
.m-badge.pending { background: rgba(255,149,0,.14); color: #c77700; }
.m-badge.processing, .m-badge.verifying { background: rgba(16,174,255,.14); color: #0a8fd0; }
.m-badge.closed { background: rgba(142,142,147,.14); color: #636366; }
.m-badge.voided { background: rgba(250,81,81,.12); color: #fa5151; }
.m-badge.overdue { background: rgba(250,81,81,.12); color: #fa5151; }
.m-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: #86868b; font-weight: 600; }
.m-meta b { color: #3a3a3c; font-weight: 600; }
.m-cat { margin-top: 6px; font-size: 12px; color: #aeaeb2; font-weight: 600; }
.m-prog { margin-top: 10px; height: 4px; border-radius: 99px; background: #ededee; overflow: hidden; }
.m-prog > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d372, #07c160); width: 0; transition: width .35s ease; }
.m-prog.overdue > i { background: linear-gradient(90deg, #ff8a80, #fa5151); }
.m-prog.pending > i { background: linear-gradient(90deg, #ffcc66, #ff9500); }

/* Detail */
.detail-nav {
  display: flex; align-items: center; gap: 8px; margin: -2px 0 10px;
  position: sticky; top: -10px; z-index: 6;
  background: linear-gradient(#f2f3f7 80%, rgba(242,243,247,0));
  padding: 4px 0 8px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 2px; color: #07c160; font-weight: 700; font-size: 16px;
  padding: 6px 4px 6px 0; min-height: 36px;
}
.back-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.detail-nav .dn-title { flex: 1; font-size: 15px; font-weight: 700; color: #1c1c1e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero { margin-bottom: 10px; }
.detail-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 8px 0 6px; letter-spacing: -.3px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: .5px solid rgba(60,60,67,.08); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: #86868b; font-weight: 600; flex-shrink: 0; }
.detail-row b { text-align: right; font-weight: 600; word-break: break-all; }
.detail-body { margin-top: 8px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; color: #3a3a3c; }
.detail-phone { color: #07c160; text-decoration: none; font-weight: 700; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.ops .btn, .btn-block {
  height: 44px; border-radius: 12px; font-size: 15px; font-weight: 700;
  background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .12s, opacity .12s; box-shadow: 0 4px 12px rgba(7,193,96,.2);
}
.ops .btn:active, .btn-block:active { transform: scale(.97); opacity: .92; }
.ops .btn.ghost, .btn-block.ghost { background: rgba(7,193,96,.1); color: #069a4d; box-shadow: none; }
.ops .btn.amber { background: #ff9500; box-shadow: 0 4px 12px rgba(255,149,0,.25); }
.ops .btn.blue { background: #10aeff; box-shadow: 0 4px 12px rgba(16,174,255,.25); }
.prog-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.prog-row .btn { height: 40px; font-size: 13px; box-shadow: none; }

.log-item { padding: 10px 0; border-bottom: .5px solid rgba(60,60,67,.08); font-size: 13px; }
.log-item:last-child { border-bottom: none; }
.log-item .at { color: #aeaeb2; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.log-item .act { font-weight: 700; color: #1c1c1e; }
.log-item .note { color: #636366; margin-top: 2px; }

/* Arrears / ledger */
.ar-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ar-sum .card { margin-bottom: 0; }
.ar-sum .card b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; margin-top: 4px; }
.ar-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: .5px solid rgba(60,60,67,.08); }
.ar-row:last-child { border-bottom: none; }
.ar-row.tap { cursor: pointer; margin: 0 -6px; padding: 12px 6px; border-radius: 10px; transition: background .12s; }
.ar-row.tap:active { background: #f7f8fa; }
.ar-row .room { font-weight: 700; font-size: 15px; }
.ar-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; color: #fa5151; flex-shrink: 0; }
.ar-chev { width: 14px; height: 14px; color: #c7c7cc; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tag-bad { display: inline-block; font-size: 10px; font-weight: 700; color: #fa5151; background: rgba(250,81,81,.1); border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.tag-ok { display: inline-block; font-size: 10px; font-weight: 700; color: #069a4d; background: rgba(7,193,96,.1); border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }

/* Me */
.me-hero {
  background: #fff; border-radius: 16px; padding: 22px 16px 18px; text-align: center; margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(145deg, #22d372, #06ad56); color: #fff;
  font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(6,173,86,.25);
}
.me-hero b { display: block; font-size: 18px; margin-top: 12px; }
.me-hero span { display: block; font-size: 13px; color: #86868b; margin-top: 4px; }
.me-card .line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: .5px solid rgba(60,60,67,.08); font-size: 14px; }
.me-card .line:last-child { border-bottom: none; }
.me-card .line span { color: #86868b; font-weight: 600; }
.pf-quit {
  display: block; width: 100%; margin-top: 8px; height: 48px;
  border-radius: 13px; background: #fff1f0; color: #fa5151;
  font-size: 15px; font-weight: 700; transition: .15s;
  box-shadow: inset 0 0 0 .5px rgba(250,81,81,.18);
}
.pf-quit:active { transform: scale(.98); }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: .5px solid rgba(60,60,67,.12);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #8e8e93; text-decoration: none; font-size: 10px; font-weight: 600; padding: 2px 0;
  transition: color .15s, transform .1s;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: #07c160; }
.tab:active { opacity: .7; transform: scale(.94); }
.tab .badge-dot {
  position: absolute; top: 0; right: calc(50% - 14px);
  width: 8px; height: 8px; border-radius: 50%; background: #fa5151; border: 1.5px solid #fff;
}
.tab { position: relative; }

.boss-foot { text-align: center; padding: 18px 8px 8px; }
.boss-slogan { font-size: 12px; color: #aeaeb2; font-weight: 600; margin-bottom: 8px; }
.beian-inline { font-size: 10px; color: #c7c7cc; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.beian-inline a { color: #c7c7cc; text-decoration: none; }

/* Toast (iOS soft capsule) */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 5px 16px rgba(0,0,0,.12), inset 0 0 0 .5px rgba(0,0,0,.06);
  max-width: 86vw; animation: toastIn .32s cubic-bezier(.34,1.3,.5,1);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(14px); } }
.toast.ok { background: #f0faf2; color: #1e6b34; }
.toast.bad { background: #fff1f0; color: #b3261e; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Sheet + alert */
.sheet-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.32);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .24s ease;
}
.sheet-mask.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 520px; max-height: 78vh; background: #fff;
  border-radius: 22px 22px 0 0; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 -8px 44px rgba(0,0,0,.14);
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,.24,1);
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sh-grab { width: 36px; height: 5px; border-radius: 3px; background: #e1e1e2; margin: 8px auto 2px; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 8px; flex-shrink: 0; }
.sheet-head b { font-size: 16px; font-weight: 700; }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; background: #f2f3f7; color: #86868b; font-size: 14px; font-weight: 700; }
.sheet-body { overflow-y: auto; padding: 4px 14px 10px; -webkit-overflow-scrolling: touch; }
.sheet-opt {
  display: block; width: 100%; text-align: left; background: #f7f8fa; border-radius: 12px;
  padding: 14px; margin-bottom: 8px; font-size: 15px; font-weight: 600; transition: background .12s;
}
.sheet-opt:active { background: #ededee; }
.sheet-opt small { display: block; margin-top: 4px; color: #86868b; font-size: 12px; font-weight: 600; }
.sheet-field { margin-bottom: 10px; }
.sheet-field label { display: block; font-size: 12px; color: #86868b; font-weight: 600; margin-bottom: 6px; }
.sheet-field input, .sheet-field select, .sheet-field textarea {
  width: 100%; border: none; outline: none; border-radius: 12px; background: #f2f3f7;
  padding: 12px 14px; font-size: 15px; -webkit-appearance: none; appearance: none;
}
.sheet-field textarea { min-height: 80px; resize: vertical; }
.sheet-field input:focus, .sheet-field select:focus, .sheet-field textarea:focus {
  box-shadow: 0 0 0 1.5px #07c160; background: #fff;
}

.ios-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.ios-alert {
  width: 100%; max-width: 290px; background: rgba(255,255,255,.96);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: alertIn .22s cubic-bezier(.2, 1.1, .4, 1);
}
@keyframes alertIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
.ia-body { padding: 22px 20px 20px; text-align: center; }
.ia-body b { display: block; font-size: 16px; color: #1c1c1e; font-weight: 700; }
.ia-body p { margin-top: 7px; font-size: 13.5px; color: #515154; line-height: 1.5; }
.ia-btns { display: flex; border-top: .5px solid rgba(60,60,67,.18); }
.ia-btn { flex: 1; height: 46px; font-size: 17px; font-weight: 600; color: #07c160; }
.ia-btn.danger { color: #fa5151; font-weight: 700; }
.ia-btn + .ia-btn { border-left: .5px solid rgba(60,60,67,.18); }
.ia-btn:active { background: rgba(0,0,0,.04); }

/* Pull refresh */
.pull-tip {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%;
  transform: translate(-50%, 0); z-index: 40;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 99px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0,0,0,.1); border: .5px solid rgba(0,0,0,.05);
  font-size: 12.5px; color: #86868b; white-space: nowrap;
  transition: opacity .2s ease; pointer-events: none; opacity: 0;
}
.pull-tip.show { opacity: 1; }
.pull-spin {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #e5e5e8; border-top-color: #86868b;
}
.pull-tip.ready .pull-spin { border-top-color: #07c160; }
.pull-tip.ready { color: #07c160; font-weight: 600; }
.pull-tip.loading .pull-spin { animation: rotate .7s linear infinite; border-top-color: #07c160; }

.loadbox { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(7,193,96,.2); border-top-color: #07c160; animation: spin .7s linear infinite; }
.empty { text-align: center; padding: 48px 20px; color: #aeaeb2; font-size: 14px; font-weight: 600; line-height: 1.55; }
.empty .muted { display: block; margin-top: 6px; font-weight: 600; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f7 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s ease infinite; border-radius: 10px; height: 72px; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sec-title { font-size: 13px; font-weight: 700; color: #86868b; margin: 4px 2px 8px; letter-spacing: .2px; }

/* ===== v4: 首页 / FAB / 楼栋 / 范围 / 催缴 / 附件 ===== */
.page-home { padding-bottom: 8px; }
.home-hero {
  background: linear-gradient(160deg, #07c160 0%, #06ad56 55%, #059a4d 100%);
  border-radius: 18px; padding: 16px 16px 14px; color: #fff; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(7,193,96,.28);
}
.home-hero .hh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-hero .hh-greet { font-size: 13px; opacity: .9; font-weight: 600; }
.home-hero .hh-name { font-size: 20px; font-weight: 800; margin-top: 2px; letter-spacing: .2px; }
.home-hero .hh-scope {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); border-radius: 99px; padding: 5px 10px;
  font-size: 12px; font-weight: 600;
}
.home-hero .hh-scope button {
  background: rgba(255,255,255,.95); color: #069a4d; border-radius: 99px;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
}
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.home-stats button {
  background: rgba(255,255,255,.16); border-radius: 12px; padding: 10px 4px; color: #fff; text-align: center;
}
.home-stats button:active { background: rgba(255,255,255,.28); }
.home-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 800; }
.home-stats span { display: block; font-size: 11px; opacity: .9; margin-top: 2px; font-weight: 600; }
.home-sec { margin-bottom: 12px; }
.home-sec .sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 4px 8px; font-size: 13px; font-weight: 700; color: #86868b;
}
.home-sec .sec-head a { color: #07c160; font-size: 12px; font-weight: 700; text-decoration: none; }
.home-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 4px;
  border-bottom: .5px solid rgba(60,60,67,.1); text-decoration: none; color: inherit;
}
.home-item:last-child { border-bottom: none; }
.home-item:active { opacity: .7; }
.home-item .hi-body { flex: 1; min-width: 0; }
.home-item .hi-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-item .hi-meta { font-size: 12px; color: #86868b; margin-top: 3px; font-weight: 600; }
.home-item .hi-amt { font-size: 15px; font-weight: 800; color: #fa5151; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.home-quick button, .home-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 14px; padding: 12px 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); text-decoration: none; color: #1c1c1e;
  font-size: 12px; font-weight: 700;
}
.home-quick button:active, .home-quick a:active { transform: scale(.97); opacity: .9; }
.home-quick .hq-ico {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(7,193,96,.12); color: #07c160;
}
.home-quick .hq-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-quick .hq-ico.warn { background: rgba(250,81,81,.12); color: #fa5151; }
.home-quick .hq-ico.amber { background: rgba(255,149,0,.14); color: #f90; }
.home-quick .hq-ico.blue { background: rgba(10,132,255,.12); color: #0a84ff; }

.fab {
  position: fixed; right: 18px; bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(160deg, #07c160, #059a4d); color: #fff;
  box-shadow: 0 8px 24px rgba(7,193,96,.4); z-index: 50;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 300; line-height: 1;
}
.fab:active { transform: scale(.94); }
.fab[hidden] { display: none !important; }
.fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

.bld-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bld-chips::-webkit-scrollbar { display: none; }
.bld-chips .chip {
  flex-shrink: 0; padding: 6px 12px; border-radius: 99px;
  background: #fff; font-size: 12.5px; font-weight: 700; color: #515154;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); border: .5px solid rgba(0,0,0,.04);
}
.bld-chips .chip.on { background: #07c160; color: #fff; border-color: transparent; }

.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 14px; }
.scope-grid label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #f2f3f7; border-radius: 12px; padding: 12px 8px; font-size: 13px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
}
.scope-grid label.on { background: rgba(7,193,96,.12); border-color: #07c160; color: #069a4d; }
.scope-grid input { display: none; }
.scope-all {
  display: flex; align-items: center; justify-content: space-between;
  background: #f2f3f7; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  font-size: 14px; font-weight: 700;
}
.scope-all.on { background: rgba(7,193,96,.12); color: #069a4d; }

.urge-row { display: flex; gap: 8px; margin-top: 12px; }
.urge-row a, .urge-row button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.urge-row .u-call { background: #07c160; color: #fff; }
.urge-row .u-sms { background: rgba(10,132,255,.12); color: #0a84ff; }
.urge-row .u-copy { background: #f2f3f7; color: #515154; }
.urge-row a:active, .urge-row button:active { opacity: .85; transform: scale(.98); }
.sms-preview {
  background: #f7f8fa; border-radius: 12px; padding: 12px; margin-top: 10px;
  font-size: 13px; line-height: 1.55; color: #515154; font-weight: 600;
}

.attach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.attach-grid a, .attach-grid .att {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f2f3f7;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.attach-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-grid .att-file { font-size: 11px; font-weight: 700; color: #86868b; padding: 8px; text-align: center; word-break: break-all; }
.attach-add {
  border: 1.5px dashed #c7c7cc; background: #fafafa !important; color: #86868b;
  flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700;
}
.attach-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.ar-actions { display: flex; gap: 6px; margin-left: 8px; }
.ar-actions a {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(7,193,96,.12); color: #07c160; text-decoration: none; flex-shrink: 0;
}
.ar-actions a.sms { background: rgba(10,132,255,.12); color: #0a84ff; }
.ar-actions a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.create-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.create-photos .cp {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #eee;
}
.create-photos .cp-add {
  width: 64px; height: 64px; border-radius: 10px; border: 1.5px dashed #c7c7cc;
  display: flex; align-items: center; justify-content: center; color: #aeaeb2; font-size: 28px;
  position: relative; background: #fafafa;
}
.create-photos .cp-add input { position: absolute; inset: 0; opacity: 0; }

.tab .badge-dot {
  position: absolute; top: 6px; right: calc(50% - 18px);
  width: 8px; height: 8px; border-radius: 50%; background: #fa5151;
  box-shadow: 0 0 0 2px #f2f3f7;
}
.tab { position: relative; }

/* ===== v6: Liquid Glass / iOS26+ controls ===== */
:root {
  --yc-green: #07c160;
  --yc-green-deep: #059a4d;
  --yc-green-mid: #06ad56;
  --yc-green-soft: rgba(7,193,96,.14);
  --yc-blue: #0a84ff;
  --yc-red: #ff3b30;
  --yc-orange: #ff9f0a;
  --yc-label: #1c1c1e;
  --yc-secondary: #8e8e93;
  --yc-fill: rgba(120,120,128,.12);
  --yc-fill-strong: rgba(120,120,128,.2);
  --yc-sep: rgba(60,60,67,.12);
  --yc-glass: rgba(255,255,255,.68);
  --yc-glass-thick: rgba(255,255,255,.82);
  --yc-radius-btn: 16px;
  --yc-radius-chip: 980px;
  --yc-radius-card: 18px;
  --yc-spring: cubic-bezier(.2,.9,.25,1.15);
  --yc-ease: cubic-bezier(.32,.72,.24,1);
}

button, a.tab, a.m-card, .sheet-opt, .stat, .home-quick a, .home-quick button,
.urge-row a, .urge-row button, .ar-actions a, .captcha-chip, .top-quit, .top-user,
.back-link, .err-retry, .fab, .scope-grid label, .scope-all, .chip, .ops .btn, .btn-block,
.ia-btn, .sheet-x, .eye, .search-clear, .home-stats button, .home-hero .hh-scope button,
.pf-quit, .attach-add, .create-photos .cp-add {
  -webkit-touch-callout: none;
}

/* Primary CTA — liquid fill + soft glow */
.btn-primary {
  width: 100% !important; height: 52px !important; min-height: 52px !important;
  border-radius: var(--yc-radius-btn) !important; margin-top: 12px;
  background: linear-gradient(180deg, #22d372 0%, #07c160 48%, #06ad56 100%) !important;
  color: #fff !important; font-size: 17px !important; font-weight: 650 !important;
  letter-spacing: .15px;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -0.5px 0 rgba(0,0,0,.08),
    0 8px 22px rgba(7,193,96,.3),
    0 2px 6px rgba(7,193,96,.16) !important;
  transition: transform .18s var(--yc-spring), opacity .15s, box-shadow .2s, filter .15s !important;
}
.btn-primary:active, .btn-primary.is-pressing {
  transform: scale(.972) !important; opacity: .94; filter: brightness(.97);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 3px 10px rgba(7,193,96,.22) !important;
}
.btn-primary[disabled] {
  background: linear-gradient(180deg, #8adfaf, #5bc88a) !important;
  box-shadow: none !important; opacity: .72; transform: none !important;
}

/* Block / ops buttons */
.ops .btn, .btn-block {
  height: 48px !important; min-height: 48px !important;
  border-radius: var(--yc-radius-btn) !important;
  font-size: 16px !important; font-weight: 650 !important;
  background: linear-gradient(180deg, #22d372 0%, #07c160 50%, #06ad56 100%) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 6px 16px rgba(7,193,96,.24) !important;
  transition: transform .16s var(--yc-spring), opacity .14s, filter .15s !important;
}
.ops .btn:active, .ops .btn.is-pressing,
.btn-block:active, .btn-block.is-pressing {
  transform: scale(.97) !important; opacity: .93; filter: brightness(.97);
}
.ops .btn.ghost, .btn-block.ghost {
  background: rgba(7,193,96,.12) !important;
  color: #069a4d !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.18) !important;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ops .btn.amber {
  background: linear-gradient(180deg, #ffb340, #ff9f0a) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px rgba(255,159,10,.28) !important;
}
.ops .btn.blue {
  background: linear-gradient(180deg, #409cff, #0a84ff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px rgba(10,132,255,.28) !important;
}
.prog-row .btn {
  height: 44px !important; min-height: 44px !important;
  font-size: 13.5px !important; border-radius: 14px !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.16), 0 1px 0 rgba(255,255,255,.4) inset !important;
  background: rgba(7,193,96,.1) !important; color: #069a4d !important;
}

/* Captcha + eye */
.captcha-chip {
  height: 48px !important; min-height: 48px !important; border-radius: 14px !important;
  background: rgba(7,193,96,.1) !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.16);
}
.captcha-chip:active, .captcha-chip.is-pressing { transform: scale(.96); }
.eye {
  width: 44px !important; height: 44px !important; border-radius: 50% !important;
}
.eye:active, .eye.is-pressing { transform: translateY(-50%) scale(.9); background: var(--yc-fill); }
.field input {
  height: 50px !important; border-radius: 14px !important;
  background: rgba(120,120,128,.1) !important;
}
.field input:focus {
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(7,193,96,.35) !important;
}

/* Chips — taller tap, soft glass */
.chip, .bld-chips .chip {
  height: 34px !important; min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: var(--yc-radius-chip) !important;
  background: rgba(255,255,255,.78) !important;
  color: #3a3a3c !important;
  font-size: 13.5px !important; font-weight: 650 !important;
  border: .5px solid rgba(255,255,255,.7) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), inset 0 0 0 .5px rgba(60,60,67,.08) !important;
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.chip:active, .chip.is-pressing, .bld-chips .chip:active {
  transform: scale(.95) !important;
}
.chip.on, .bld-chips .chip.on {
  background: linear-gradient(180deg, #22d372, #07c160) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 4px 12px rgba(7,193,96,.28) !important;
}

/* Enlarge chip hit area with padding wrapper feel */
.chips .chip, .bld-chips .chip {
  margin: 2px 0;
  min-height: 36px !important;
  height: 36px !important;
}

/* FAB — floating glass orb */
.fab {
  width: 58px !important; height: 58px !important;
  border-radius: 50% !important;
  background:
    linear-gradient(160deg, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(160deg, #22d372, #059a4d) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 28px rgba(7,193,96,.42),
    0 2px 6px rgba(0,0,0,.08) !important;
  transition: transform .18s var(--yc-spring), box-shadow .2s !important;
}
.fab:active, .fab.is-pressing {
  transform: scale(.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(7,193,96,.32) !important;
}

/* Tab bar — thicker liquid glass */
.tabbar {
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: saturate(200%) blur(28px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(28px) !important;
  border-top: .5px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 -8px 32px rgba(0,0,0,.04);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
}
.tab {
  min-height: 48px; padding: 6px 0 4px !important;
  border-radius: 14px; gap: 3px !important;
  font-size: 10.5px !important; font-weight: 650 !important;
  color: #8e8e93 !important;
}
.tab svg { width: 25px !important; height: 25px !important; stroke-width: 1.75; }
.tab.on {
  color: var(--yc-green) !important;
  background: rgba(7,193,96,.1);
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.12);
}
.tab:active, .tab.is-pressing { transform: scale(.92); opacity: .85; }

/* Top bar glass */
.top-bar {
  background: rgba(242,243,247,.72) !important;
  backdrop-filter: saturate(200%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(24px) !important;
  border-bottom: .5px solid rgba(255,255,255,.5) !important;
}
.top-project { min-height: 44px; padding: 2px 0; }
.top-project:active { opacity: .7; }
.top-user {
  min-height: 44px; min-width: 44px; padding: 10px 8px;
  border-radius: 12px; font-size: 13.5px !important;
}
.top-user:active, .top-user.is-pressing { background: var(--yc-fill); }
.top-quit {
  min-height: 36px; padding: 8px 12px !important;
  border-radius: 980px;
  background: rgba(7,193,96,.12);
  color: #069a4d !important; font-weight: 700 !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.14);
}
.top-quit:active, .top-quit.is-pressing { transform: scale(.94); background: rgba(7,193,96,.2); }

/* Back + nav */
.back-link {
  min-height: 44px !important; padding: 8px 8px 8px 0 !important;
  border-radius: 12px;
}
.back-link:active, .back-link.is-pressing { opacity: .55; transform: scale(.97); }

/* Cards + list press */
.card, .m-card, .me-hero {
  border-radius: var(--yc-radius-card) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 3px rgba(0,0,0,.03) !important;
}
.m-card:active, .m-card.is-pressing { transform: scale(.98) !important; }
.stat {
  border-radius: 16px !important; min-height: 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(0,0,0,.03) !important;
}
.stat:active, .stat.is-pressing { transform: scale(.96) !important; }
.ar-row.tap {
  min-height: 52px; border-radius: 14px !important;
  margin: 0 -8px; padding: 12px 8px !important;
}
.ar-row.tap:active { background: var(--yc-fill) !important; }

/* Sheet — frosted liquid */
.sheet-mask { background: rgba(0,0,0,.28) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet {
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: saturate(180%) blur(40px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(40px) !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -12px 48px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.7) !important;
  border-top: .5px solid rgba(255,255,255,.65);
}
.sh-grab {
  width: 40px !important; height: 5px !important; border-radius: 3px !important;
  background: rgba(60,60,67,.18) !important; margin: 10px auto 4px !important;
}
.sheet-x {
  width: 36px !important; height: 36px !important; min-width: 36px;
  border-radius: 50% !important;
  background: var(--yc-fill-strong) !important;
  color: #636366 !important;
  font-size: 13px !important;
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet-x:active, .sheet-x.is-pressing { transform: scale(.9); background: rgba(120,120,128,.28) !important; }
.sheet-opt {
  min-height: 52px; border-radius: 16px !important;
  padding: 14px 16px !important; margin-bottom: 8px !important;
  background: rgba(120,120,128,.08) !important;
  font-size: 16px !important; font-weight: 600 !important;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
}
.sheet-opt:active, .sheet-opt.is-pressing {
  background: rgba(120,120,128,.16) !important; transform: scale(.985);
}
.sheet-field input, .sheet-field select, .sheet-field textarea {
  min-height: 48px; border-radius: 14px !important;
  background: rgba(120,120,128,.1) !important; font-size: 16px !important;
  padding: 13px 14px !important;
}
.sheet-field input:focus, .sheet-field select:focus, .sheet-field textarea:focus {
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(7,193,96,.32) !important;
}

/* Alert — glass capsule */
.ios-mask {
  background: rgba(0,0,0,.28) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
}
.ios-alert {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.28), inset 0 0 0 .5px rgba(255,255,255,.6) !important;
  border: .5px solid rgba(255,255,255,.5);
}
.ia-btn {
  height: 48px !important; min-height: 48px !important;
  font-size: 17px !important; font-weight: 600 !important;
  color: var(--yc-green) !important;
}
.ia-btn.danger { color: var(--yc-red) !important; font-weight: 700 !important; }
.ia-btn:active, .ia-btn.is-pressing { background: rgba(120,120,128,.12) !important; }

/* Scope multi-select — large targets */
.scope-all {
  min-height: 52px; border-radius: 16px !important; padding: 14px 16px !important;
  background: rgba(120,120,128,.1) !important;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
}
.scope-all.on {
  background: rgba(7,193,96,.14) !important; color: #069a4d !important;
  box-shadow: inset 0 0 0 1.5px #07c160 !important;
}
.scope-all:active, .scope-all.is-pressing { transform: scale(.98); }
.scope-grid { gap: 10px !important; }
.scope-grid label {
  min-height: 48px; border-radius: 14px !important; padding: 14px 8px !important;
  background: rgba(120,120,128,.1) !important;
  font-size: 14px !important;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
  transition: transform .16s var(--yc-spring), background .15s, box-shadow .15s, color .15s;
}
.scope-grid label.on {
  background: rgba(7,193,96,.14) !important;
  border-color: transparent !important;
  color: #069a4d !important;
  box-shadow: inset 0 0 0 1.5px #07c160 !important;
}
.scope-grid label:active { transform: scale(.96); }

/* Urge call / SMS / copy */
.urge-row { gap: 10px !important; }
.urge-row a, .urge-row button {
  height: 48px !important; min-height: 48px !important;
  border-radius: 14px !important; font-size: 15px !important; font-weight: 700 !important;
}
.urge-row .u-call {
  background: linear-gradient(180deg, #22d372, #07c160) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px rgba(7,193,96,.28);
}
.urge-row .u-sms {
  background: rgba(10,132,255,.12) !important; color: var(--yc-blue) !important;
  box-shadow: inset 0 0 0 .5px rgba(10,132,255,.18);
}
.urge-row .u-copy {
  background: rgba(120,120,128,.12) !important; color: #3a3a3c !important;
}
.urge-row a:active, .urge-row button:active,
.urge-row a.is-pressing, .urge-row button.is-pressing {
  transform: scale(.96) !important; opacity: .9;
}

/* Arrears action circles — ≥44pt */
.ar-actions a {
  width: 40px !important; height: 40px !important; min-width: 40px; min-height: 40px;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.14);
}
.ar-actions a.sms { box-shadow: inset 0 0 0 .5px rgba(10,132,255,.16); }
.ar-actions a:active, .ar-actions a.is-pressing { transform: scale(.9); }

/* Home quick + hero */
.home-hero { border-radius: 22px !important; }
.home-hero .hh-scope button {
  min-height: 28px; padding: 4px 10px !important; border-radius: 980px !important;
}
.home-hero .hh-scope button:active { transform: scale(.94); }
.home-stats button {
  border-radius: 14px !important; min-height: 56px;
  background: rgba(255,255,255,.18) !important;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
}
.home-stats button:active, .home-stats button.is-pressing {
  background: rgba(255,255,255,.3) !important; transform: scale(.96);
}
.home-quick button, .home-quick a {
  border-radius: 16px !important; min-height: 76px; padding: 14px 6px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 3px rgba(0,0,0,.04) !important;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.home-quick button:active, .home-quick a:active,
.home-quick button.is-pressing, .home-quick a.is-pressing {
  transform: scale(.96) !important;
}
.home-quick .hq-ico {
  width: 40px !important; height: 40px !important; border-radius: 12px !important;
}

/* Me quit — destructive soft */
.pf-quit {
  height: 52px !important; min-height: 52px !important;
  border-radius: var(--yc-radius-btn) !important;
  background: rgba(255,59,48,.1) !important;
  color: var(--yc-red) !important;
  box-shadow: inset 0 0 0 .5px rgba(255,59,48,.2) !important;
}
.pf-quit:active, .pf-quit.is-pressing {
  transform: scale(.975) !important; background: rgba(255,59,48,.16) !important;
}

/* Attach / photo add */
.attach-add, .create-photos .cp-add {
  border-radius: 14px !important;
  border: 1.5px dashed rgba(120,120,128,.35) !important;
  background: rgba(120,120,128,.06) !important;
}
.attach-add:active, .create-photos .cp-add:active { background: rgba(120,120,128,.12) !important; transform: scale(.97); }
.attach-grid a, .attach-grid .att { border-radius: 14px !important; }
.create-photos .cp { border-radius: 12px !important; }

/* Search clear */
.search-box {
  height: 44px !important; border-radius: 14px !important;
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06), 0 1px 2px rgba(0,0,0,.03) !important;
}
.search-clear {
  width: 28px !important; height: 28px !important; min-width: 28px;
  border-radius: 50% !important; line-height: 28px !important;
  background: rgba(120,120,128,.35) !important;
}
.search-clear:active { transform: scale(.9); }

/* Toast glass */
.toast {
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: .5px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 28px rgba(0,0,0,.12), inset 0 0 0 .5px rgba(0,0,0,.04) !important;
}
.toast.ok { background: rgba(232,250,236,.9) !important; color: #1e6b34 !important; }
.toast.bad { background: rgba(255,236,234,.92) !important; color: #b3261e !important; }

/* Pull tip glass */
.pull-tip {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: .5px solid rgba(255,255,255,.6) !important;
}

/* Err retry */
.err-retry {
  min-height: 44px; padding: 10px 12px !important;
  border-radius: 12px; display: inline-flex; align-items: center;
}
.err-retry:active { background: rgba(7,193,96,.1); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* v7 offline + load more */
.offline-banner {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 9999; max-width: 92vw; padding: 8px 14px; border-radius: 999px;
  background: rgba(60,60,67,.88); color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.offline-banner[hidden] { display: none !important; }
.load-more { margin-top: 8px; }


/* v8: SLA / 查户转事项 / 回访 */
.m-badge.soon { background: rgba(255,149,0,.14); color: #c93400; }
.m-card.sla-overdue { box-shadow: inset 3px 0 0 #fa5151; }
.btn.danger, .ops .btn.danger { background: #fa5151; color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-row .chip { font-size: 12px; padding: 6px 10px; }
.ledger-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 999px; border: none;
  background: rgba(0,122,255,.12); color: #007aff;
  font-size: 12px; font-weight: 600; text-decoration: none;
}
.mini-btn.warn { background: rgba(250,81,81,.12); color: #fa5151; }


/* ===== Steward v9 · 服务范围选择器（搜索 / 分区 / 大行 / 粘性确认） ===== */
.sheet.scope-sheet {
  max-height: 92vh !important;
}
.sheet.scope-sheet .sheet-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0 !important;
}
.scope-picker {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: calc(92vh - 64px);
}
.scope-hint {
  margin: 0 0 12px;
  line-height: 1.45;
  font-size: 13px;
}
.scope-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(120,120,128,.12);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.scope-seg-btn {
  height: 40px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  color: #3a3a3c;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s, color .15s, transform .16s var(--yc-spring, cubic-bezier(.32,.72,.24,1));
}
.scope-seg-btn.on {
  background: #fff;
  color: #07c160;
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04);
}
.scope-seg-btn:active { transform: scale(.97); }
.scope-seg-n {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(7,193,96,.12);
  color: #069a4d;
}
.scope-list-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.scope-search-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.scope-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #8e8e93; pointer-events: none;
}
.scope-search {
  width: 100%; height: 42px; border-radius: 12px;
  border: none; background: rgba(120,120,128,.12);
  padding: 0 36px 0 36px; font-size: 16px; font-weight: 600;
  color: #1c1c1e; outline: none;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
}
.scope-search:focus {
  background: rgba(120,120,128,.16);
  box-shadow: inset 0 0 0 1.5px rgba(7,193,96,.45);
}
.scope-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(120,120,128,.28); color: #fff; font-size: 11px; font-weight: 700;
}
.scope-tools {
  display: flex; gap: 8px; flex-shrink: 0; margin-bottom: 8px; flex-wrap: wrap;
}
.scope-tool {
  height: 32px; padding: 0 12px; border-radius: 99px;
  background: rgba(120,120,128,.12); color: #3a3a3c;
  font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
}
.scope-tool.accent { background: rgba(7,193,96,.12); color: #069a4d; }
.scope-tool:active { transform: scale(.96); opacity: .85; }
.scope-groups {
  flex: 1; min-height: 120px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.scope-group { margin-bottom: 10px; }
.scope-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px 8px; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.88));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scope-group-head span {
  font-size: 13px; font-weight: 800; color: #86868b; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.scope-group-head small {
  font-size: 11px; font-weight: 700; color: #aeaeb2;
  background: rgba(120,120,128,.12); padding: 1px 7px; border-radius: 99px;
}
.scope-group-toggle {
  font-size: 13px; font-weight: 700; color: #07c160; padding: 4px 8px;
}
.scope-rows {
  display: flex; flex-direction: column; gap: 6px;
}
.scope-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 12px 14px; border-radius: 14px;
  background: rgba(120,120,128,.1);
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
  transition: transform .16s var(--yc-spring, cubic-bezier(.32,.72,.24,1)), background .15s, box-shadow .15s, color .15s;
  text-align: left; width: 100%;
}
.scope-row-name { font-size: 16px; font-weight: 700; color: #1c1c1e; }
.scope-check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(60,60,67,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: transparent;
  flex-shrink: 0; background: #fff;
}
.scope-row.on {
  background: rgba(7,193,96,.14);
  box-shadow: inset 0 0 0 1.5px #07c160;
}
.scope-row.on .scope-row-name { color: #069a4d; }
.scope-row.on .scope-check {
  background: #07c160; border-color: #07c160; color: #fff;
}
.scope-row:active { transform: scale(.98); }
.scope-bar {
  flex-shrink: 0;
  margin: 8px -14px 0;
  padding: 12px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid rgba(60,60,67,.12);
  box-shadow: 0 -8px 24px rgba(0,0,0,.04);
}
.scope-bar-meta { margin-bottom: 10px; }
.scope-bar-meta b {
  display: block; font-size: 17px; font-weight: 800; color: #1c1c1e;
}
.scope-bar-meta small {
  display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #86868b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scope-save {
  height: 50px !important; border-radius: 14px !important;
  font-size: 17px !important; font-weight: 700 !important;
}
.scope-cancel { margin-top: 8px; height: 44px !important; border-radius: 14px !important; }

/* hide legacy grid when unused */

/* ===== Steward v10 · 全页 UI / 按钮 / 元素统一抛光（Liquid Glass 延续） ===== */
:root {
  --yc-space-1: 4px;
  --yc-space-2: 8px;
  --yc-space-3: 12px;
  --yc-space-4: 16px;
  --yc-space-5: 20px;
  --yc-text-title: 20px;
  --yc-text-body: 15px;
  --yc-text-caption: 12.5px;
  --yc-hairline: rgba(60,60,67,.1);
  --yc-card-pad: 16px;
  --yc-page-gap: 12px;
}

/* Page rhythm */
#appMain {
  padding: 12px 16px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}
.page { animation: pageIn .28s var(--yc-ease) !important; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.sec-title {
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #6c6c70 !important;
  letter-spacing: .01em;
  margin: 6px 4px 10px !important;
  text-transform: none;
}
.card {
  padding: var(--yc-card-pad) !important;
  margin-bottom: var(--yc-page-gap) !important;
}
.muted { letter-spacing: .01em; }

/* ----- Login: iOS grouped form ----- */
.auth-view {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(7,193,96,.16), transparent 55%),
    #f2f3f7 !important;
  padding: 0 24px !important;
}
.auth-scroll { padding: 48px 0 48px !important; }
.auth-logo {
  width: 92px !important; height: 92px !important;
  border-radius: 24px !important;
  box-shadow:
    0 12px 32px rgba(7,193,96,.32),
    inset 0 1px 0 rgba(255,255,255,.35) !important;
}
.auth-title { font-size: 24px !important; letter-spacing: -.35px !important; }
.auth-sub { font-size: 14px !important; margin-top: 6px !important; }
.auth-scroll .auth-role {
  display: table;
  margin: 10px auto 0 !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7,193,96,.1);
  color: #069a4d !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: center !important;
}
.auth-src { margin: 22px 0 12px !important; }
.auth-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  padding: 16px 14px 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.85) inset,
    0 8px 28px rgba(0,0,0,.05),
    inset 0 0 0 .5px rgba(60,60,67,.06);
  margin-bottom: 4px;
}
.auth-card .field { margin-bottom: 10px; }
.auth-card .field:last-of-type { margin-bottom: 0; }
.auth-card .captcha-line { margin-bottom: 0; }
.auth-card .btn-primary { margin-top: 14px !important; }
.auth-tip { margin-top: 18px !important; max-width: 32em; margin-left: auto; margin-right: auto; }

/* ----- Empty states ----- */
.empty, .empty-state {
  text-align: center;
  padding: 40px 24px !important;
  color: #8e8e93;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,.55);
  border-radius: 20px;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.06);
  margin-bottom: 10px;
}
.empty-state .empty-ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,193,96,.1); color: #07c160;
  margin-bottom: 4px;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.14);
}
.empty-state .empty-ico svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.empty-state .empty-ico.warn { background: rgba(255,149,0,.12); color: #ff9f0a; box-shadow: inset 0 0 0 .5px rgba(255,149,0,.18); }
.empty-state .empty-ico.neutral { background: rgba(120,120,128,.1); color: #8e8e93; box-shadow: inset 0 0 0 .5px rgba(60,60,67,.08); }
.empty-state b {
  display: block; font-size: 16px; font-weight: 750; color: #3a3a3c;
}
.empty-state .muted, .empty .muted {
  display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #aeaeb2;
}
.empty-state .empty-cta {
  margin-top: 10px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(7,193,96,.12); color: #069a4d;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.16);
}
.empty-state .empty-cta:active { transform: scale(.96); }

/* ----- Skeleton ----- */
.skeleton {
  height: 80px !important; border-radius: 16px !important; margin-bottom: 12px !important;
  background: linear-gradient(90deg, #ebebef 20%, #f5f5f7 45%, #ebebef 70%) !important;
  background-size: 220% 100% !important;
}

/* ----- Top bar / quit ----- */
.top-bar { padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px !important; }
.top-chip {
  display: inline-flex !important; align-items: center;
  margin-top: 3px !important; padding: 2px 8px;
  border-radius: 999px; background: rgba(120,120,128,.1);
  font-size: 10.5px !important; color: #6c6c70 !important;
}

/* ----- Matter list ----- */
.chips-sticky {
  top: -12px !important;
  background: linear-gradient(#f2f3f7 65%, rgba(242,243,247,0)) !important;
  padding: 2px 0 8px !important; margin: 0 -4px !important;
}
.chips { gap: 8px !important; padding: 2px 4px 6px !important; }
.m-card {
  padding: 15px 16px !important;
  margin-bottom: 10px !important;
  border-radius: 18px !important;
}
.m-title { font-size: 16.5px !important; letter-spacing: -.25px !important; }
.m-badge {
  border-radius: 8px !important; padding: 4px 9px !important;
  font-size: 11px !important; letter-spacing: .02em;
}
.m-meta { gap: 6px 14px !important; margin-top: 10px !important; }
.m-prog { margin-top: 12px !important; height: 5px !important; }
.stat-row { gap: 10px !important; margin-bottom: 12px !important; }
.stat { padding: 14px 8px !important; }

/* ----- Detail ----- */
.detail-nav {
  margin: -4px 0 12px !important;
  padding: 2px 0 10px !important;
  background: linear-gradient(#f2f3f7 75%, rgba(242,243,247,0)) !important;
}
.detail-hero { padding-bottom: 4px; }
.detail-title { font-size: 22px !important; margin: 10px 0 8px !important; }
.detail-row {
  padding: 13px 0 !important;
  font-size: 15px !important;
  border-bottom-color: var(--yc-hairline) !important;
}
.ops { gap: 10px !important; margin: 14px 0 6px !important; }
.prog-row { gap: 8px !important; margin: 10px 0 !important; }
.log-item { padding: 12px 0 !important; }
.log-item .act { font-size: 14px; }

/* ----- Arrears / Ledger ----- */
.ar-sum { gap: 10px !important; margin-bottom: 12px !important; }
.ar-sum .card { padding: 14px 16px !important; }
.ar-sum .card b { font-size: 26px !important; margin-top: 6px !important; }
.ar-row {
  padding: 14px 0 !important;
  border-bottom-color: var(--yc-hairline) !important;
  gap: 12px !important;
}
.ar-row.tap {
  min-height: 56px !important;
  margin: 0 -10px !important;
  padding: 14px 10px !important;
  border-radius: 14px !important;
}
.ar-row .room { font-size: 15.5px !important; }
.ar-row .amt { font-size: 16px !important; letter-spacing: -.3px; }
.tag-bad, .tag-ok {
  padding: 3px 8px !important; font-size: 10.5px !important;
  border-radius: 999px !important; margin-left: 8px !important;
}
.ledger-hero {
  background: rgba(255,255,255,.78);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 1px 3px rgba(0,0,0,.03);
}
.ledger-hero .lh-title { font-size: 15px; font-weight: 750; color: #1c1c1e; margin-bottom: 4px; }
.ledger-hero .lh-sub { font-size: 12.5px; color: #8e8e93; font-weight: 600; margin-bottom: 12px; line-height: 1.45; }

/* Mini action pills — Liquid Glass */
.mini-btn, .ledger-actions .mini-btn {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important; font-weight: 700 !important;
  background: rgba(7,193,96,.12) !important;
  color: #069a4d !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.16);
  transition: transform .16s var(--yc-spring), background .15s, opacity .12s;
  text-decoration: none !important;
}
.mini-btn.warn, .ledger-actions .mini-btn.warn {
  background: rgba(255,59,48,.1) !important;
  color: #ff3b30 !important;
  box-shadow: inset 0 0 0 .5px rgba(255,59,48,.18) !important;
}
.mini-btn.blue {
  background: rgba(10,132,255,.12) !important;
  color: #0a84ff !important;
  box-shadow: inset 0 0 0 .5px rgba(10,132,255,.16) !important;
}
.mini-btn:active, .mini-btn.is-pressing {
  transform: scale(.95); opacity: .88;
}
.ledger-actions { gap: 8px !important; margin-top: 10px !important; }

/* ----- Home ----- */
.home-hero {
  padding: 18px 16px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 22px !important;
}
.home-hero .hh-name { font-size: 22px !important; letter-spacing: -.2px; }
.home-stats { gap: 8px !important; margin-top: 16px !important; }
.home-quick { gap: 10px !important; margin-bottom: 14px !important; }
.home-sec { margin-bottom: 14px !important; }
.home-sec .sec-head {
  margin: 4px 6px 10px !important;
  font-size: 13.5px !important;
}
.home-sec .card { padding: 4px 12px !important; }
.home-item {
  padding: 14px 4px !important;
  border-bottom-color: var(--yc-hairline) !important;
  border-radius: 10px;
  margin: 0 -4px; padding-left: 8px !important; padding-right: 8px !important;
}
.home-item:active { background: rgba(120,120,128,.08); opacity: 1 !important; }

/* ----- Me: Settings list ----- */
.me-hero {
  padding: 26px 16px 22px !important;
  margin-bottom: 14px !important;
  border-radius: 22px !important;
}
.me-avatar {
  width: 72px !important; height: 72px !important;
  font-size: 26px !important;
  box-shadow:
    0 8px 20px rgba(6,173,86,.28),
    inset 0 1px 0 rgba(255,255,255,.35) !important;
}
.me-hero b { font-size: 20px !important; margin-top: 14px !important; letter-spacing: -.2px; }
.me-hero span { font-size: 13.5px !important; }
.me-card {
  padding: 4px 16px !important;
  border-radius: 18px !important;
  overflow: hidden;
}
.me-card .line {
  padding: 15px 0 !important;
  font-size: 15px !important;
  border-bottom-color: var(--yc-hairline) !important;
  align-items: center;
  min-height: 52px;
}
.me-card .line b {
  font-weight: 650; color: #1c1c1e; text-align: right;
  max-width: 58%; overflow: hidden; text-overflow: ellipsis;
}
.me-card .line span { color: #6c6c70 !important; }
.me-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.me-hint {
  text-align: center; margin: 16px 8px 12px;
  font-size: 12.5px; line-height: 1.55; color: #aeaeb2; font-weight: 600;
}

/* ----- FAB ----- */
.fab {
  right: 16px !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ----- Tab bar ----- */
.tabbar {
  padding: 2px 4px calc(2px + env(safe-area-inset-bottom, 0px)) !important;
}
.tab {
  min-height: 50px !important;
  border-radius: 16px !important;
}
.tab.on {
  background: rgba(7,193,96,.12) !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.14) !important;
}
.tab .badge-dot {
  top: 4px !important;
  right: calc(50% - 16px) !important;
  width: 9px !important; height: 9px !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.95) !important;
}

/* ----- Sheet / alert polish ----- */
.sheet-head { padding: 8px 16px 10px !important; }
.sheet-head b { font-size: 17px !important; letter-spacing: -.2px; }
.sheet-body { padding: 4px 16px 12px !important; }
.sheet-field label {
  font-size: 12.5px !important; color: #6c6c70 !important;
  margin-bottom: 7px !important; letter-spacing: .01em;
}
.sheet-opt { margin-bottom: 10px !important; }
.ios-alert { max-width: 300px !important; }
.ia-body { padding: 24px 22px 18px !important; }
.ia-body b { font-size: 17px !important; }
.ia-body p { font-size: 14px !important; color: #636366 !important; margin-top: 8px !important; }

/* ----- Load more ----- */
.load-more, .btn-block.ghost.load-more {
  margin-top: 12px !important;
  height: 46px !important; min-height: 46px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  background: rgba(120,120,128,.1) !important;
  color: #3a3a3c !important;
  box-shadow: inset 0 0 0 .5px rgba(60,60,67,.08) !important;
}
.load-more:active { transform: scale(.97); }
.list-foot {
  text-align: center; padding: 14px 0 6px;
  font-size: 12.5px; font-weight: 650; color: #aeaeb2;
}

/* ----- Scope picker extras ----- */
.scope-seg { border-radius: 16px !important; padding: 5px !important; gap: 6px !important; }
.scope-seg-btn { height: 42px !important; border-radius: 12px !important; }
.scope-tool {
  height: 34px !important; padding: 0 14px !important;
  font-size: 13.5px !important;
}
.scope-row { min-height: 54px !important; border-radius: 16px !important; }
.scope-bar {
  margin: 10px -16px 0 !important;
  padding: 14px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ----- Danger / SLA buttons ----- */
.ops .btn.danger, .btn.danger {
  background: linear-gradient(180deg, #ff6b63, #ff3b30) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px rgba(255,59,48,.28) !important;
}

/* ----- Search ----- */
.search-box {
  height: 46px !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
  padding: 0 14px !important;
}
.search-box input { font-size: 16px !important; }

/* ----- Attach ----- */
.attach-grid { gap: 10px !important; margin-top: 10px !important; }
.create-photos { gap: 10px !important; }

/* ----- Boss foot ----- */
.boss-foot { padding: 22px 8px 12px !important; }
.boss-slogan { font-size: 12.5px !important; margin-bottom: 10px !important; }

/* ----- Urge sheet hero ----- */
.urge-hero {
  text-align: center; padding: 6px 0 12px;
}
.urge-hero .uh-room { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.urge-hero .uh-meta { margin-top: 4px; font-size: 13px; color: #8e8e93; font-weight: 600; }
.urge-hero .uh-amt {
  margin-top: 12px; font-size: 32px; font-weight: 800;
  color: #ff3b30; font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.urge-hero .uh-days { margin-top: 4px; font-size: 12.5px; color: #aeaeb2; font-weight: 650; }

/* ----- Err card ----- */
.err-card {
  text-align: center; padding: 28px 20px !important;
}
.err-card b { font-size: 17px; margin-bottom: 8px !important; }
.err-card p { color: #8e8e93; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.err-retry {
  margin-top: 14px !important;
  background: rgba(7,193,96,.12) !important;
  color: #069a4d !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 .5px rgba(7,193,96,.16);
}

/* Press targets newly covered */
.scope-row, .scope-seg-btn, .scope-tool, .scope-group-toggle,
.mini-btn, .empty-cta, .load-more {
  -webkit-touch-callout: none;
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none !important; }
}
