/* 白色工作界面；业务状态和组件显隐仍由原页面管理。 */
.login-wrap, .app { background: var(--paper); }
.yb-hd { min-height: 60px; padding: 12px 16px; }
.yb-hd .yb-brand { font-size: 17px; letter-spacing: 0; }
.yb-hd .wx-menu { min-height: 32px; }
.quote-tabbar { box-shadow: 0 -1px 8px rgba(28,36,48,.03); }
.quote-tab { transition: color .15s, background .15s; }
.card { border-radius: 12px; box-shadow: 0 1px 2px rgba(28,36,48,.03); }
.btn { border-radius: 8px; min-height: 36px; }
.field input, .field select, .field textarea {
  border-color: #d6dde3; background: #fff; border-radius: 8px;
}
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.wx-compose { background: var(--sheet); }
.wx-new { background: var(--cyan); }
.wx-new:hover { background: var(--cyan-ink); }
.wx-session:hover { background: var(--paper-2); }
.wx-session.on { background: var(--cyan-soft); }
.yunbang-toolbar { background: var(--sheet); flex-wrap: wrap; }
.yunbang-shell { border-color: var(--line); box-shadow: none; }
.page, .card, .field { min-width: 0; }
.page h2, .page h3, .muted { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .yb-hd { padding: 10px 12px; gap: 6px; }
  .yb-hd-main { flex-wrap: wrap; gap: 6px; }
  .yb-hd .yb-brand { font-size: 15px; }
  .quote-tabbar { padding-left: 6px; padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-tab { transition: none; }
}

/* Android / ?client=app：销售端安全区与触控 */
html.app-client body {
  padding-top: env(safe-area-inset-top);
}
html.app-client .yb-hd {
  padding-top: calc(12px + env(safe-area-inset-top));
}
html.app-client .quote-tab {
  min-height: 48px;
}
html.app-client .login-card .btn,
html.app-client .wx-new,
html.app-client .btn.primary {
  min-height: 44px;
}
html.app-client .win-lock,
html.app-client #win-lock {
  display: none !important;
}

/* APP 在线升级提示 */
.app-update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(28, 36, 48, 0.1);
  background: var(--sheet);
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.12);
}
.app-update-banner-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.app-update-banner-main strong {
  font-size: 14px;
  color: var(--ink);
}
.app-update-banner-main span {
  font-size: 12px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.app-update-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.app-update-banner .btn {
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}
@media (max-width: 400px) {
  .app-update-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .app-update-banner-actions {
    justify-content: flex-end;
  }
}
