/* Review61 · AI mobile visual/interaction revision of the review60 candidate.
   Reuses review51's original ledger palette; load after existing styles.
   Presentation only: no generated data, route, entitlement or price changes.
   Dynamic mhs/mvu styles are intentionally overridden with .app scope. */
:root, body, .app {
  --deep:#0b3b2e; --accent:#14523f; --soft:#eaf0e9;
  --bg:#f7f5f0; --ink:#1d2620; --muted:#58645c; --line:#e5e1d8;
  --danger:#ac382c; --amber:#805b20; --r:12px;
  --ms-brand:#14523f; --ms-brand-deep:#0b3b2e; --ms-brand-mid:#14523f;
  --ms-brand-soft:#eaf0e9; --ms-brand-line:#c7d6c9;
  --ms-paper:#f7f5f0; --ms-paper-2:#fdfcf9; --ms-bg:#f7f5f0; --ms-surface:#fdfcf9;
  --ms-ink:#1d2620; --ms-ink-2:#58645c; --ms-ink-3:#637067; --ms-line:#e5e1d8;
  --ms-seal:#ac382c; --ms-seal-soft:#faeee9; --ms-seal-line:#e4bfb5;
  --ms-danger:#ac382c; --ms-danger-soft:#faeee9;
  --ms-r-page:12px; --ms-r-btn:10px; --ms-sh-1:none; --ms-sh-2:none;
  --ms-f11:.75rem; --ms-f12:.75rem; --ms-f13:.8125rem; --ms-f15:.9375rem;
  --ms-f17:1.125rem; --ms-f20:1.5rem; --ms-rule:1px;
}
html { font-size:16px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body { width:100%; margin:0; background:var(--bg); color:var(--ink); }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; font-size:.9375rem; line-height:1.55; }
.app {
  width:100%; max-width:none; height:100vh; height:100dvh;
  margin:0; background:var(--bg); isolation:isolate;
  display:flex; flex-direction:column; overflow:hidden;
}
.app *, .app *::before, .app *::after { box-sizing:border-box; }
.app button, .app input, .app select, .app textarea { font-family:inherit; }
.app button, .app a, .app summary { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.app :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #287a9a; outline-offset:2px; }

/* Header: 56px at the default text size; grows with enlarged text. */
.app > header.top {
  flex:none; display:flex; flex-wrap:nowrap; align-items:center; gap:8px;
  min-height:calc(56px + env(safe-area-inset-top,0px));
  padding:calc(6px + env(safe-area-inset-top,0px)) 16px 6px;
  background:var(--ms-surface); color:var(--ink); border-bottom:1px solid var(--line);
}
.app > header.top .brand {
  flex:0 0 30px; width:30px; height:30px; border:0; border-radius:9px;
  background:var(--deep); color:#fdfcf9; font-size:.75rem; letter-spacing:.02em;
}
.app > header.top .orgWrap { flex:1 1 0; min-width:0; max-width:100%; }
.app > header.top .orgSelect {
  width:100%; min-width:0; max-width:100%; min-height:44px; height:auto;
  padding:9px 24px 9px 8px; border:0; border-radius:8px;
  background:transparent; color:var(--ink); font-size:.9375rem; font-weight:650;
  white-space:normal; line-height:1.4;
}
.app > header.top .orgSelect option { background:#fff; color:var(--ink); }
.app > header.top #modeBadge { flex:none; max-width:30%; white-space:normal; font-size:.75rem; line-height:1.4; padding:4px 7px; border-radius:6px; background:#eef3f5; border:1px solid #d7e1e5; color:#40555e; }
/* MAIN owns mode assignment. Only the ordinary business badge is redundant. */
.app > header.top #modeBadge[data-mode="business"] { display:none; }
.app > header.top #modeBadge:is([data-mode="demo"],[data-mode="fixture"]) {
  background:#fff2d9; color:#754b09; border:1px solid #d9b56c; font-weight:700;
}
.app > #currentOrgFull { display:none; }

/* App fills the viewport; only content scrolls. Native nav occupies its real
   height in flex so safe areas / enlarged text never cover the last control. */
.app > .content, .app > #content {
  flex:1 1 auto; min-width:0; min-height:0; width:100%; overflow:auto;
  padding:12px 16px 24px;
  scroll-padding:12px 0 20px; overscroll-behavior:contain;
}
.app #bottom {
  position:relative; flex:0 0 auto; z-index:30; inset:auto; width:100%;
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0;
  padding:3px 8px calc(4px + env(safe-area-inset-bottom,0px));
  background:var(--ms-surface); border-top:1px solid var(--line); box-shadow:none;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.app #bottom button {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:0; min-height:52px; height:auto; gap:3px; padding:3px 0;
  color:var(--muted); font-size:.75rem; line-height:1.35; border-radius:8px;
}
.app #bottom button.active { color:var(--accent); font-weight:700; }
.app #bottom button.active::before { content:none; }
.app #bottom button .ico { display:grid; place-items:center; min-width:32px; min-height:26px; font-size:1.375rem; line-height:1; padding:0; border-radius:8px; background:transparent; }
.app #bottom button.active .ico { background:var(--soft); }
.app #bottom button[data-tab="ai"] .ico {
  width:40px; min-height:30px; border:1px solid var(--ms-brand-line);
  border-radius:10px; background:var(--soft); color:var(--accent); font-size:1.25rem;
}
.app #bottom .badge-dot { background:var(--danger); color:#fff; top:0; font-size:.6875rem; line-height:1.3; border:2px solid #fff; }

/* Typography: title 24 / section 18 / body 15 / supporting 12. */
.app .content h1 { font-size:1.5rem; line-height:1.35; letter-spacing:0; margin:0 0 8px; overflow-wrap:anywhere; }
.app .content h2 { font-size:1.125rem; line-height:1.4; letter-spacing:0; }
.app .content :is(.meta,.note,.smallprint,.eyebrow,.tag,.badge,.ui-field>span) { font-size:.75rem; line-height:1.55; }
.app .content :is(.meta,.note,.smallprint) { color:var(--muted); }
.app .content .eyebrow { letter-spacing:.03em; margin:0 0 4px; }
.app .content :is(.panel,.list,.ws,.profile,.metric,.ms-card,.ms-ledger,.mhs-g,.mvu-ws,.mvu-list,.mvu-note,.p-card) {
  background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:none;
}
.app .content .panel { padding:14px; margin-top:12px; }
.app .content .panel h2 { margin:0 0 8px; }
.app .content :is(.hero,.mvu-sum) { background:#eaf4f0; color:var(--deep); border:1px solid #d6e7df; border-radius:12px; box-shadow:none; padding:14px; }
.app .content .hero :is(.lbl,.foot,.groups) { color:#48675d; font-size:.75rem; }
.app .content .hero .foot { border-color:#d6e7df; }
.app .content :is(.amount,.hero .val) { font-size:1.5rem; line-height:1.35; letter-spacing:0; font-variant-numeric:tabular-nums; }
.app .content .status { padding:10px 12px; margin-bottom:12px; font-size:.8125rem; line-height:1.6; border:1px solid var(--line); border-radius:10px; background:#fff; }
.app .content .status.error { background:#fff1f1; color:var(--danger); border-color:#e4b9bc; }
.app .content .quality-warning { color:#754b09; background:#fff5e1; border-color:#dfbf82; }
/* Never collapse a status panel based on .panel, role or text content. */
.app .content details { min-width:0; }
.app .content summary { min-height:44px; padding:10px 0; cursor:pointer; font-size:.8125rem; line-height:1.6; }

/* Buttons use content width; wrapping is allowed when text is enlarged. */
.app .content :is(.btn,.ms-btn,.detail-head button) {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  min-width:0; max-width:100%; width:auto; padding:10px 14px;
  font-size:.9375rem; line-height:1.5; font-weight:600; white-space:normal;
  overflow-wrap:anywhere; border:1px solid var(--line); border-radius:10px;
  background:#fff; color:var(--ink); text-decoration:none; box-shadow:none;
}
.app .content :is(.btn.primary,.ms-btn-primary) { background:var(--accent); color:#fff; border:1px solid var(--accent); box-shadow:none; }
.app .content .actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px; margin:12px 0; }
.app .content .actions > :is(.btn,button,a) { flex:0 1 auto; width:auto; max-width:100%; }
.app .content .actions > .primary { order:0; }
.app .content button:disabled { cursor:default; }
.app .content :is(.btn,.mhs-q,.mhs-g,.mvu-ws):active { transform:none; box-shadow:none; filter:brightness(.97); }

/* Business lists: scannable rows, retained amounts, fields and state tags. */
.app .content .row { min-height:64px; padding:12px; border-bottom:1px solid var(--line); text-align:left; }
.app .content .row:last-child { border-bottom:0; }
.app .content .row .top { padding:0; gap:6px 10px; background:transparent; color:var(--ink); border:0; flex-wrap:wrap; }
.app .content .row strong { font-size:.9375rem; line-height:1.5; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
.app .content .row .amt { font-size:1.125rem; margin-top:4px; line-height:1.45; }
.app .content .row small { font-size:.75rem; margin-top:4px; }
.app .content .row .tag { max-width:100%; white-space:normal; flex-shrink:0; }
.app .content .ui-fields { gap:6px 12px; margin-top:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.app .content .ui-field { font-size:.9375rem; line-height:1.5; }
.app .content :is(.kv,.pr) { gap:6px 12px; padding:8px 0; font-size:.9375rem; }
.app .content :is(.kv span,.kv b,.pr span) { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.app .content .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.app .content .metric { padding:10px 12px; }
.app .content .metric .l { min-height:0; font-size:.75rem; }
.app .content .metric strong { font-size:1.125rem; margin:4px 0; }
.app .content .metric small { font-size:.75rem; }
.app .content .searchbar { display:flex; flex-wrap:wrap; gap:8px; background:transparent; border:0; padding:0; box-shadow:none; }
.app .content .searchbar input { flex:1 1 180px; min-width:0; }

/* Actual form controls remain usable at 320px, including native pickers. */
.app .content :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  min-width:0; max-width:100%; min-height:44px; font-size:max(1rem,16px);
  line-height:1.5; border:1px solid #cdd8db; border-radius:9px;
  background:#fff; color:var(--ink); padding:9px 10px;
}
.app .content :is(.form-grid,.form-grid>*,.ai-entry,.ui-field,.detail-head h1) { min-width:0; }
.app .content .form-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
.app .content :is(.form-grid input,.form-grid select,.form-grid textarea) { width:100%; }
.app .content .form-grid label { margin-bottom:5px; font-size:.9375rem; color:var(--ink); }
.app .content textarea { resize:vertical; min-height:96px; }
.app .content :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--accent); }
.app .content .detail-head { gap:8px; align-items:flex-start; }
.app .content .detail-head h1 { font-size:1.5rem; }

/* New homepage contract, plus the old mhs implementation. */
.app .content :is(.p-home,.mhs,.mvu) { width:100%; min-width:0; padding:0 0 16px; overflow-wrap:anywhere; }
.app .content :is(.p-hero,.mhs-head,.mvu-head) { margin:0 0 14px; padding:4px 0 0; background:transparent; border:0; box-shadow:none; color:var(--ink); }
.app .content .mhs-head { gap:10px; }
.app .content .mhs-ic { display:grid; place-items:center; flex:0 0 36px; width:36px; min-height:36px; font-size:1.375rem; background:var(--soft); border-radius:10px; }
.app .content :is(.p-hero,.mhs-head,.mvu-head) h1 { font-size:1.5rem; margin:0 0 4px; color:var(--ink); }
.app .content :is(.p-hero,.mhs-head,.mvu-head) p { font-size:.75rem; color:var(--muted); margin:4px 0 0; }
.app .content :is(.p-switch,.mhs-switch) { display:flex; gap:8px; max-width:100%; overflow-x:auto; padding:0 0 8px; margin-bottom:12px; scroll-snap-type:x proximity; }
.app .content :is(.p-switch a,.p-switch button,.mhs-sw) { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:9px; font-size:.8125rem; line-height:1.5; color:var(--muted); background:#fff; text-decoration:none; white-space:normal; scroll-snap-align:start; }
.app .content :is(.mhs-sw.on,.p-switch [aria-current="page"],.p-switch [aria-pressed="true"],.p-switch .on,.p-switch .active) { color:var(--deep); background:var(--soft); border-color:#bdd9cd; font-weight:700; }
.app .content :is(.p-section,.mhs-sec,.mvu-sec) { margin:20px 0 10px; color:var(--ink); font-size:1.125rem; font-weight:650; }
.app .content :is(.p-quick,.mhs-quick,.mhs-grid,.p-workspaces) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.app .content :is(.p-quick a,.p-quick button,.mhs-q,.mhs-g) { display:flex; align-items:center; justify-content:flex-start; gap:6px; min-width:0; min-height:48px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-size:.9375rem; line-height:1.5; font-weight:600; text-decoration:none; box-shadow:none; }
.app .content :is(.p-quick a,.p-quick button,.mhs-q) { background:var(--soft); color:var(--deep); border-color:#d5e5de; }
.app .content .mhs-q span { font-size:1.125rem; }
.app .content :is(.p-metrics) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:14px 0; }
.app .content .p-metrics > * { min-width:0; padding:12px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.app .content .p-metrics strong { display:block; font-size:1.5rem; color:var(--deep); font-variant-numeric:tabular-nums; }
.app .content .p-card { padding:14px; }
.app .content section.p-section, .app .content details.p-section { font-size:.9375rem; font-weight:400; }
.app .content .p-section > h2 { margin:0 0 10px; font-size:1.125rem; font-weight:650; }
.app .content .p-section h3 { margin:14px 0 8px; font-size:.9375rem; font-weight:650; }
.app .content .p-home svg { flex:none; width:20px; height:20px; vertical-align:middle; color:var(--accent); }
.app .content .p-hero h1 { display:flex; align-items:center; gap:10px; }
.app .content .p-hero h1 svg { width:28px; height:28px; }
.app .content .p-home :is(.p-scope,.p-kicker) { font-size:.75rem; font-weight:400; color:var(--muted); margin:4px 0 10px; }
.app .content details.p-switch { display:block; overflow:visible; padding:0; margin:10px 0 0; }
.app .content details.p-switch > summary { display:flex; align-items:center; gap:8px; min-height:44px; color:var(--accent); font-size:.8125rem; font-weight:600; }
.app .content .p-home a.p-card { display:flex; align-items:center; gap:10px; min-width:0; min-height:48px; text-decoration:none; color:var(--ink); font-size:.9375rem; }
.app .content .p-home a.p-card > span { flex:1; min-width:0; }
.app .content .p-home a.p-card > svg:last-child { margin-left:auto; width:16px; height:16px; }
.app .content .p-home a.p-card small { display:block; color:var(--muted); font-size:.75rem; font-weight:400; margin-top:3px; }
.app .content :is(.p-tasks,.p-functions) { display:grid; gap:8px; }
.app .content .p-workspace { min-width:0; padding:12px; }
.app .content .p-workspace-home { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:44px; text-decoration:none; color:var(--ink); }
.app .content .p-workspace-home strong { flex:1; font-size:.9375rem; }
.app .content .p-workspace-home small { flex-basis:100%; font-size:.75rem; color:var(--muted); }
.app .content .p-workspace-task, .app .content .p-full-link { display:flex; align-items:center; gap:8px; min-height:44px; margin-top:8px; font-size:.8125rem; color:var(--accent); text-decoration:none; }
.app .content .p-full > summary, .app .content .p-full .p-card > summary { color:var(--muted); font-weight:600; }
.app .content .p-full .p-card { margin:8px 0; padding:0 12px; }
.app .content .p-full .p-card[open] { padding-bottom:12px; }
.app .content .p-full p { font-size:.75rem; color:var(--muted); }
.app .content .p-empty { padding:18px 14px; border:1px dashed #cdd8db; border-radius:12px; background:#fff; color:var(--muted); font-size:.9375rem; }
.app .content :is(.mhs-guide,.mvu-note) { font-size:.75rem; line-height:1.6; word-break:normal; overflow-wrap:anywhere; padding:10px 12px; }
.app .content .mhs-all { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 0; color:var(--accent); font-size:.8125rem; }
.app .content .mvu-ws { min-height:64px; gap:10px; padding:12px; margin:0 0 8px; font-size:.9375rem; flex-wrap:wrap; }
.app .content .mvu-ws.off { opacity:1; color:var(--muted); background:#f9fafb; }
.app .content .mvu-ws small { font-size:.75rem; }
.app .content .mvu-sum { gap:10px; margin:10px 0; flex-wrap:wrap; }
.app .content .mvu-sum strong { font-size:1.625rem; }
.app .content .mvu-sum a { min-height:44px; padding:10px 12px; color:var(--deep); border:1px solid #c7ded5; background:#fff; border-radius:9px; }
.app .content .ws { min-height:88px; padding:12px; }
.app .content .ws small { font-size:.75rem; }

/* TaskBoard29: preserve all real totals, states, notes and actions. */
.app .content .tb29 { padding:12px; margin:12px 0; }
.app .content .tb29 header { margin:0 0 8px; padding:0; }
.app .content .tb29 h2 { font-size:1.125rem; line-height:1.4; margin:2px 0 8px; }
.app .content .tb29-eyebrow { margin:0; font-size:.75rem; letter-spacing:0; }
.app .content .tb29-summary { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; align-items:start; }
.app .content .tb29-summary > div { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.app .content .tb29-summary strong { flex:0 0 auto; font-size:1.625rem; line-height:1.25; font-variant-numeric:tabular-nums; }
.app .content .tb29-summary span { flex:1 1 120px; font-size:.75rem; line-height:1.6; word-break:normal; overflow-wrap:break-word; }
.app .content .tb29-summary summary { font-size:.75rem; min-height:44px; padding:10px 0; }
.app .content .tb29-summary p { font-size:.75rem; line-height:1.6; }
.app .content .tb29-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:8px 0; padding:0; }
.app .content .tb29-groups li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:6px; padding:8px; background:#f6f8f9; border:1px solid #e7ecee; border-radius:8px; font-size:.75rem; line-height:1.5; word-break:normal; }
.app .content .tb29-groups li span { min-width:0; overflow-wrap:break-word; }
.app .content .tb29-groups li strong { font-size:.9375rem; font-variant-numeric:tabular-nums; }
.app .content .tb29-bar { height:3px; }
.app .content .tb29 :is(.note,.tb29-next) { font-size:.75rem; line-height:1.6; margin:8px 0; }
.app .content .tb29 .actions { margin:8px 0 0; gap:6px; }
.app .content .tb29 .actions .btn { font-size:.8125rem; padding:10px; }
.app .content .tb29-flow { gap:4px 14px; margin:8px 0; font-size:.75rem; }

/* Existing demo details get compact spacing; closed/open behavior is native.
   MAIN must put this class on its ready-only details, never error/unknown/posting. */
.app .content details.demo-ready-details { margin:12px 0; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:.75rem; }
.app .content details.demo-ready-details > summary { font-weight:600; color:var(--muted); }
.app .content details.demo-ready-details[open] { padding-bottom:12px; }
.app .content .d34-start { border:1px solid var(--line); border-radius:12px; }
.app .content .d34-start h1 { font-size:1.5rem; }
.app .content .d34-primary { min-height:48px; width:auto; }
.app .content .d34-purpose { margin-bottom:12px; font-size:.9375rem; }
.app .content .d34-prep { margin:10px 0; font-size:.75rem; }
.app .content :is(.me22-link,.profile) { box-shadow:none; border:1px solid var(--line); border-radius:12px; }
.app .content .me22-link { min-height:76px; padding:12px; }
.app .content .me22-link strong { font-size:.9375rem; }
.app .content .me22-link small { font-size:.75rem; }

@media (max-width:359px) {
  .app > header.top { padding-left:12px; padding-right:12px; gap:6px; }
  .app > .content, .app > #content { padding-left:12px; padding-right:12px; }
  .app .content :is(.p-quick,.mhs-quick,.mhs-grid,.p-workspaces,.ui-fields,.me22-grid,.d34-tasks) { grid-template-columns:minmax(0,1fr); }
  .app .content .tb29-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  .app *, .app *::before, .app *::after { scroll-behavior:auto; transition:none; }
}

/* Main visual review: task and actual list above repeated navigation/scaffolding. */
.app #content > .p-module-back { float:right; margin:0 0 4px 8px!important; padding:8px; font-size:.75rem; color:var(--muted); background:transparent; border-color:transparent; }
.app #content > .eyebrow { padding-top:6px; }
.app #content > nav.actions[aria-label="工作台模块"] { clear:both; display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); gap:6px; margin:8px 0; }
.app #content > nav.actions[aria-label="工作台模块"] .btn { min-width:0; min-height:44px; padding:6px; font-size:.75rem; }
.app #content > div.actions { display:inline-flex; vertical-align:middle; margin:4px 8px 8px 0; }
.app .content .tb29 h2 { font-size:.9375rem; margin:0 0 4px; }
.app .content .tb29-summary { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; margin:0; }
.app .content .tb29-summary > div { flex:1 1 140px; }
.app .content .tb29-summary > details { flex:0 0 auto; }
.app .content .tb29-summary > details[open] { flex:1 1 100%; }
.app .content .tb29-groups { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:6px 0; }
.app .content .tb29-groups li { grid-template-columns:minmax(0,1fr); gap:2px; }
.app .content .tb29-groups li strong { font-size:1rem; }
.app .content .tb29 .actions { gap:6px; margin:6px 0 0; }
.app .content .tb29 .actions .btn { font-size:.75rem; padding:6px 8px; }

/* Remove duplicate organization text; retain actual selected organization in the header. */
.app .content .p-hero > .p-kicker { display:none; }
@media(min-width:360px){.app .content .p-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}}
.app .content .p-metrics .p-card { padding:12px; }
.app .content .p-metrics .p-card > span { font-size:.75rem; }


/* Review61: warm ledger surfaces, a single ink hero, compact real records.
   No decorative chart, generated number, success indicator or content injection. */
.app .content :is(.panel,.list,.ws,.profile,.metric,.p-card,.mvu-ws,.mvu-list) {
  background:var(--ms-surface); border-color:var(--line); border-radius:12px;
}
.app .content .panel { padding:12px; margin-top:10px; }
.app .content .actions { margin-top:8px; margin-bottom:8px; }
.app .content :is(.btn,.ms-btn) { padding:9px 12px; }
.app .content :is(.btn.primary,.ms-btn-primary) { background:var(--deep); border-color:var(--deep); color:#fffdf8; }
.app .content .row { min-height:60px; padding:10px 12px; }
.app .content .row .top { align-items:baseline; }
.app .content .row .amt { color:var(--deep); }
.app .content .row .tag { font-size:.75rem; font-weight:600; }
.app .content .tag.overdue { color:var(--danger); background:var(--ms-seal-soft); border-color:var(--ms-seal-line); }
.app .content :is(.status.error,[role="alert"]) { overflow-wrap:anywhere; }
.app .content .status.error { border-color:var(--ms-seal-line); background:var(--ms-seal-soft); }
.app .content .quality-warning { background:#fff5df; color:#705116; border-color:#d9bf84; }
.app .content .searchbar { margin:8px 0; }
.app .content .searchbar .count { font-size:.75rem; white-space:normal; }
.app .content :is(.grid,.me22-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.app .content :is(.pr,.kv) { padding:6px 0; font-size:.8125rem; line-height:1.55; }
.app .content :is(.ui-fields,.ui-field) { line-height:1.45; }
.app .content .ui-fields { gap:6px 12px; margin-top:6px; }

/* Home's ink header carries identity; task links stay light and legible. */
.app .content .p-hero {
  padding:14px; margin-bottom:14px; border:1px solid var(--deep);
  border-radius:12px; background:var(--deep); color:#fffdf8;
}
.app .content .p-hero h1 { color:#fffdf8; font-size:1.5rem; line-height:1.35; }
.app .content .p-hero h1 svg { width:24px; height:24px; color:#d8e7d9; }
.app .content .p-hero > p { color:#d5dfd5; font-size:.75rem; }
.app .content .p-home { padding-bottom:0; }
.app .content .p-section { margin:14px 0 10px; }
.app .content .p-section > h2 { margin:0 0 8px; }
.app .content .p-home :is(.p-scope,.p-kicker) { margin-bottom:6px; }
.app .content .p-quick { gap:8px; }
.app .content .p-home .p-quick a.p-card {
  min-height:52px; gap:8px; padding:10px;
  background:#edf2e9; border-color:#d7dfd0; color:var(--deep);
}
.app .content .p-quick .p-card strong { font-weight:650; }
.app .content .p-home .p-quick a.p-card small { color:#56634f; }
.app .content .p-metrics { margin:8px 0 10px; gap:6px; }
.app .content .p-metrics .p-card { padding:10px; border-radius:10px; }
.app .content .p-metrics strong { font-size:1.625rem; line-height:1.25; margin-top:4px; }
.app .content .p-tasks { gap:6px; }
.app .content .p-tasks a.p-card { min-height:56px; padding:10px 12px; }
.app .content .p-workspace { padding:10px; }
.app .content .p-workspace-home { gap:6px; }
.app .content .p-workspace-task { margin-top:4px; border-top:1px solid var(--line); }
.app .content .p-empty { margin:8px 0; padding:12px; font-size:.8125rem; background:var(--ms-surface); border-color:#d4cdbd; }
.app .content details.p-switch { width:100%; min-width:0; max-width:100%; }
.app .content details.p-switch > summary { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; color:var(--accent); }
.app .content .p-hero details.p-switch > summary { color:#f2e9d6; }
.app .content .p-hero details.p-switch > summary svg { color:#f2e9d6; }
.app .content details.p-switch > .p-workspaces { width:100%; min-width:0; max-width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:4px; }
.app .content details.p-switch .p-card { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.app .content details.p-switch a[aria-current="page"] { border-color:#9bb398; background:#eaf0e9; color:var(--deep); }
.app .content .p-full { margin-top:12px; border-top:1px solid var(--line); padding-top:4px; }

/* Old native industry homes remain real entry points, not another mock. */
.app .content .mwh { --mwh-accent:var(--accent); --mwh-soft:var(--soft); --mwh-line:var(--line); --mwh-ink:var(--ink); padding-bottom:0; }
.app .content .mwh-hero { padding:12px; border:1px solid var(--line); background:var(--ms-surface); border-radius:12px; }
.app .content .mwh .mwh-hero h1 { font-size:1.5rem; margin-bottom:4px; }
.app .content .mwh-org { font-size:.75rem; color:var(--muted); }
.app .content .mwh .mwh-status { padding:8px 0; font-size:.75rem; line-height:1.5; }
.app .content .mwh h2 { font-size:1.125rem; }
.app .content .mwh .mwh-section { margin:12px 0; }
.app .content .mwh .mwh-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.app .content .mwh .mwh-entry { min-height:80px; padding:10px; gap:6px; background:var(--ms-surface); border:1px solid var(--line); border-radius:10px; }
.app .content .mwh .mwh-primary { background:var(--soft); border-color:var(--ms-brand-line); }
.app .content .mwh .mwh-entry em { font-size:.75rem; }
.app .content .mwh .mwh-note { font-size:.75rem; line-height:1.55; }
.app .content .mwh .mwh-path { gap:0; }
.app .content .mwh .mwh-path li { padding:5px 0; font-size:.8125rem; }
.app .content .mwh .mwh-todos { background:var(--ms-surface); border-color:var(--line); }
.app .content .mvu-ws { padding:10px 12px; min-height:56px; margin-bottom:6px; }
.app .content .mvu-ws.off { background:#f2efe7; }
.app .content .mhs :is(.mhs-q,.mhs-sw.on) { background:var(--soft); color:var(--deep); border-color:var(--ms-brand-line); }
.app .content .mhs .mhs-g { background:var(--ms-surface); border-color:var(--line); }
.app .content :is(.hero,.mvu-sum) { background:var(--soft); border-color:var(--ms-brand-line); }
.app .content .hero :is(.lbl,.foot,.groups) { color:#4d634e; }
.app .content .hero .foot { border-color:var(--ms-brand-line); }

/* Real task-board counts stay secondary to the module's task and list.
   All source notes, unknown states and help targets remain reachable. */
.app .content .tb29 { padding:10px 12px; margin:8px 0; border-color:#d9ded2; }
.app .content .tb29 header { margin:0 0 2px; }
.app .content .tb29 h2 { margin:0; color:var(--deep); font-size:.9375rem; line-height:1.4; }
.app .content .tb29-summary { gap:0 8px; }
.app .content .tb29-summary > div { gap:6px; flex-basis:132px; }
.app .content .tb29-summary strong { font-size:1.625rem; color:var(--deep); }
.app .content .tb29-summary span { flex-basis:108px; font-size:.75rem; line-height:1.5; }
.app .content .tb29-summary > details { min-width:0; max-width:100%; }
.app .content .tb29-summary summary { padding:10px 0; color:var(--muted); }
.app .content .tb29-groups { gap:6px; margin:4px 0; }
.app .content .tb29-groups li { padding:6px 8px; border:0; background:#f0f1e9; border-radius:7px; font-size:.75rem; }
.app .content .tb29-groups li strong { font-size:1.125rem; color:var(--ink); }
.app .content .tb29-bar { height:3px; margin-top:2px; background:#dfe5d9; }
.app .content .tb29-bar i { background:#66876a; }
.app .content .tb29 :is(.note,.tb29-next) { margin:6px 0; }
.app .content .tb29 .actions { margin:4px 0 0; }
.app .content .tb29 .actions .btn { font-size:.75rem; padding:8px; background:transparent; }
.app .content .tb29 .actions .btn.primary { background:var(--deep); }
.app .content .tb29[data-ai-workboard] > p { margin:6px 0; font-size:.8125rem; }
.app #content > nav.actions[aria-label="工作台模块"] { padding:0 0 6px; border-bottom:1px solid var(--line); }
.app #content > nav.actions[aria-label="工作台模块"] a[aria-current="page"] { color:var(--deep); background:var(--soft); border-color:var(--ms-brand-line); font-weight:700; }

/* m60 hooks can lay out only values actually supplied by the renderer.
   Neutral count styling is deliberate: a number is not a success status. */
.app .content .m60-brief { margin:0 0 10px; padding:10px 12px; background:#edeedf; border:1px solid #dcdcc8; border-radius:10px; display:grid; gap:3px; }
.app .content .m60-kicker { margin:0; color:var(--muted); font-size:.75rem; font-weight:600; letter-spacing:.02em; }
.app .content .m60-brief strong { font-size:1.125rem; color:var(--deep); line-height:1.4; }
.app .content .m60-brief span { color:var(--muted); font-size:.75rem; line-height:1.5; }
.app .content .m60-dashboard { margin:0 0 10px; padding:12px; background:var(--ms-surface); border:1px solid var(--line); border-radius:12px; }
.app .content .m60-dashboard-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 10px; }
.app .content .m60-dashboard-head > div { flex:1 1 170px; min-width:0; }
.app .content .m60-dashboard-head h2 { margin:2px 0 3px; font-size:1.125rem; color:var(--deep); line-height:1.4; }
.app .content .m60-dashboard-head p { margin:0; color:var(--muted); font-size:.75rem; }
.app .content .m60-count { min-width:0; max-width:100%; padding:4px 7px; border:1px solid var(--line); border-radius:6px; background:#f2efe7; color:#556050; font-size:.75rem; font-weight:600; overflow-wrap:anywhere; }
.app .content .m60-dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }
.app .content .m60-dashboard-grid > div { min-width:0; padding:0; background:transparent; border:0; display:grid; align-content:start; gap:3px; }
.app .content .m60-dashboard-grid small { font-size:.75rem; color:var(--muted); }
.app .content .m60-dashboard-grid strong { font-size:1.5rem; line-height:1.3; color:var(--deep); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.app .content .m60-dashboard-grid span { font-size:.75rem; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.app .content .m60-source { margin:8px 0 0; color:var(--muted); font-size:.75rem; line-height:1.5; }
.app .content details:is(.mobile-demo-ready,.demo-ready-details) { margin:10px 0; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--ms-surface); font-size:.75rem; }
.app .content details:is(.mobile-demo-ready,.demo-ready-details)[open] { padding-bottom:10px; }
.app .content details:is(.mobile-demo-ready,.demo-ready-details) > summary { color:var(--muted); font-size:.8125rem; }

@media (max-width:359px) {
  .app .content .p-hero { padding:12px; }
  .app .content details.p-switch > .p-workspaces { grid-template-columns:minmax(0,1fr); }
  .app .content :is(.p-quick,.mhs-quick) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app .content .p-home .p-quick a.p-card { flex-wrap:wrap; padding:10px 8px; }
  .app .content .p-home .p-quick a.p-card > span { flex:1 1 76px; }
  .app .content .p-home .p-quick a.p-card > svg:last-child { margin-left:0; }
  .app .content .p-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app .content .tb29-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app .content .tb29-summary > details { flex:1 1 100%; }
  .app .content .m60-dashboard-grid { gap:8px; }
}
/* Container thresholds follow enlarged text as well as a narrow viewport. */
.app .content .p-home { container-type:inline-size; }
@container (max-width:18rem) {
  .app .content .p-quick, .app .content .p-workspaces, .app .content .p-metrics { grid-template-columns:minmax(0,1fr); }
}
