/* Financial Pulse: one low-profile Overview entry, one accessible responsive dialog. */
.moos-pulse-card{display:flex;align-items:center;gap:18px;justify-content:space-between;border:1px solid var(--line,#dce3f0);background:var(--sur,#fff);border-radius:18px;padding:20px 22px;margin:18px 0;color:var(--ink,inherit)}
.moos-pulse-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.moos-pulse-copy strong{font-size:1.12rem}.pulse-eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.1em;color:var(--a,#296ec0);text-transform:uppercase}
.pulse-muted{font-size:.88rem;color:var(--mut,#617087);line-height:1.55}.moos-pulse-card button,.pulse-primary{background:var(--a,#296ec0);border:1px solid var(--a,#296ec0);color:white;border-radius:10px;font-weight:700;padding:11px 16px;cursor:pointer;white-space:normal}
.moos-pulse-dialog{position:fixed;inset:0;margin:auto;width:min(630px,calc(100vw - 28px));height:min(720px,calc(100dvh - 28px));max-width:none;max-height:none;padding:0;border:1px solid var(--line,#dce3f0);border-radius:19px;background:var(--sur,#fff);color:var(--ink,inherit);box-shadow:0 28px 90px rgba(5,24,53,.22);overflow:hidden}
.moos-pulse-dialog::backdrop{background:rgba(8,21,43,.55)}
.moos-pulse-shell{height:100%;display:flex;flex-direction:column;min-height:0}.pulse-head{display:flex;align-items:start;gap:15px;justify-content:space-between;padding:22px 24px 12px}.pulse-head h2{font-size:1.45rem;margin:0 0 5px}.pulse-head p{margin:0}
.pulse-x{font-size:1.4rem;background:transparent;color:inherit;border:1px solid var(--line,#dde3ee);border-radius:9px;width:38px;height:38px;cursor:pointer}
.pulse-tabs{display:flex;gap:4px;overflow-x:auto;padding:7px 20px 10px;border-bottom:1px solid var(--line,#dde3ee)}.pulse-tab{padding:10px 11px;border:0;background:transparent;color:var(--mut,#617087);white-space:nowrap;border-radius:9px;cursor:pointer;font-weight:650;font-size:.88rem}.pulse-tab.active{color:var(--a,#296ec0);background:rgba(49,113,198,.12)}
.pulse-scroll{padding:18px 24px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.pulse-scroll h3{margin:3px 0 12px;font-size:1.15rem}.pulse-scroll h4{margin:15px 0 5px}.pulse-scroll label{display:block;font-weight:700;margin:12px 0 6px}
.pulse-scroll input[type=number]{display:block;width:100%;padding:13px;border:1px solid var(--line,#cbd5e1);border-radius:9px;background:var(--sur,#fff);color:inherit;font:inherit}.pulse-scroll input[readonly]{opacity:.7}.pulse-step{color:var(--a,#296ec0);font-size:.85rem;font-weight:800;margin-bottom:9px}
.pulse-footer{border-top:1px solid var(--line,#dde3ee);padding:12px 24px;display:flex;justify-content:end;gap:9px;background:var(--sur,#fff);flex-shrink:0}.pulse-secondary{background:transparent;border:1px solid var(--line,#ccd5e2);color:inherit;border-radius:10px;padding:11px 15px;font-weight:700;cursor:pointer}
.pulse-review-summary{display:grid;gap:2px;margin:16px 0;background:color-mix(in srgb,var(--a) 5%,var(--sur,#fff));border-radius:11px;overflow:hidden}.pulse-review-summary>div{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line,#dce3f0)}.pulse-review-summary>div:last-child{border-bottom:0}
.pulse-error{color:#c0343e;font-size:.86rem;font-weight:650;margin:8px 0 0}.pulse-quality-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line,#e0e6f0);padding:13px 0}.pulse-quality-row>div{display:flex;flex-direction:column;gap:4px}.pulse-quality-row>div>span{color:var(--mut,#617087);font-size:.76rem}.pulse-status{font-size:.76rem;font-weight:700;white-space:nowrap;border-radius:30px;background:color-mix(in srgb,var(--a) 9%,var(--sur,#fff));padding:5px 9px}.pulse-confirmed{color:#18804a}.pulse-review{color:#b46a14}.pulse-missing{color:#b22d3b}
.pulse-goal{border:1px solid var(--line,#dce3f0);border-radius:12px;padding:13px 15px;margin:13px 0}.pulse-goal h4{margin:0 0 6px}.pulse-goal p{margin:7px 0}.pulse-goal small{display:block;margin:6px 0 11px;color:var(--mut,#617087)}.pulse-goal a,.pulse-scroll>a{font-weight:700;color:var(--a,#296ec0)}.pulse-goal progress{appearance:none;width:100%;height:10px;border:0;border-radius:10px;background:#dbe6f2}.pulse-goal progress::-webkit-progress-bar{background:#dbe6f2;border-radius:10px}.pulse-goal progress::-webkit-progress-value{background:#357bc7;border-radius:10px}.pulse-goal progress::-moz-progress-bar{background:#357bc7;border-radius:10px}
.pulse-diff{border-bottom:1px solid var(--line,#dde3ee);padding:10px 0;line-height:1.5}.pulse-success{text-align:center;padding:30px 10px}.pulse-success>span{color:#15803d;font-size:2.4rem}.pulse-graph{margin:15px 0;background:color-mix(in srgb,var(--a) 5%,var(--sur,#fff));padding:15px;border-radius:12px}.pulse-graph svg{display:block;width:100%;height:170px}.pulse-graph svg path{fill:none;stroke:#347ccc;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.pulse-graph-caption{display:flex;justify-content:space-between;font-size:.78rem;color:var(--mut,#617087);margin-top:7px}
.moos-pulse-card button:focus-visible,.moos-pulse-dialog button:focus-visible,.moos-pulse-dialog input:focus-visible{outline:3px solid #368be8;outline-offset:2px}
@media(max-width:640px){.moos-pulse-card{padding:16px;align-items:flex-start;flex-direction:column;gap:13px}.moos-pulse-card button{width:100%}.moos-pulse-dialog{inset:0;width:100vw;height:100dvh;border:0;border-radius:0}.pulse-head{padding:17px 16px 9px}.pulse-tabs{padding:6px 10px 10px}.pulse-scroll{padding:16px}.pulse-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.pulse-primary,.pulse-secondary{flex:1}.pulse-quality-row{gap:8px}}

.pulse-goal-select{width:100%;font:inherit;min-height:45px;border-radius:9px;border:1px solid var(--line);background:var(--sur);color:var(--ink);padding:8px 10px}
.moos-pulse-card[hidden]{display:none!important}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .moos-pulse-card button,:root:not([data-theme="light"]) .pulse-primary{color:#092b37}}
:root[data-theme="dark"] .moos-pulse-card button,:root[data-theme="dark"] .pulse-primary{color:#092b37}

/* v22: keep controls visible with on-screen keyboards and zoom; improve tap targets. */
.pulse-tabs{scrollbar-width:thin;scroll-padding-inline:14px}
.pulse-tab,.pulse-x{min-height:44px;min-width:44px}
.pulse-footer{flex-wrap:wrap;min-width:0}
.pulse-footer button{min-height:44px;white-space:normal}
.pulse-scroll{overflow-wrap:break-word}
.pulse-quality-row{min-width:0}
.pulse-quality-row>*{min-width:0}
@media(max-width:420px){
  .moos-pulse-dialog{height:100dvh;max-height:100dvh}
  .pulse-footer button{flex:1 1 130px}
  .pulse-quality-row{flex-wrap:wrap}
  .pulse-scroll{padding:14px}
}
@media(prefers-reduced-motion:reduce){.moos-pulse-dialog *{scroll-behavior:auto}}
