:root{color-scheme:light;font-family:Inter,Segoe UI,system-ui,sans-serif;color:#172438;background:#f3f6fa;font-synthesis:none;--ink: #172438;--muted: #52637a;--line: #dce4ef;--blue: #2458bf;--charge: #2469d4;--payment: #157958;--adjustment: #96601e;--ar: #7251ae;--legacy: #157a8b;--new: #4c56c7}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4b75dc;outline-offset:3px}[hidden]{display:none!important}p,h1,h2,h3{margin:0}svg{flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line)}.header-inner{max-width:1580px;height:100%;margin:auto;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:19px;font-weight:760;letter-spacing:-.045em;display:flex;align-items:center;gap:11px;white-space:nowrap;line-height:1.15}.brand-3d{color:var(--blue)}.brand small{display:block;margin-top:4px;font-size:.68rem;font-weight:620;letter-spacing:.025em;color:var(--muted)}.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:#2457be;box-shadow:0 3px 7px #1b51af25}.header-actions{display:flex;align-items:center;gap:13px}.data-label{display:inline-flex;align-items:center;gap:7px;border-radius:24px;padding:6px 10px;color:#455b72;background:#eff4fa;font-size:.76rem;font-weight:650;white-space:nowrap}.data-label i,.view-status i{width:6px;height:6px;border-radius:50%;background:#168365}.help-button{display:flex;align-items:center;gap:7px;color:#304359;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 11px;font-size:.82rem;font-weight:650}.help-button:hover,.icon-btn:hover:not(:disabled){background:#eef3fb;border-color:#c4d5f0}main{max-width:1580px;margin:0 auto;padding:27px 34px 0}.page-head{display:flex;align-items:end;justify-content:space-between;gap:17px;margin-bottom:21px}h1{font-size:clamp(2rem,3.3vw,2.5rem);font-weight:770;letter-spacing:-.054em;line-height:1.07}.page-head p{color:var(--muted);margin-top:8px;line-height:1.4}.segmented{display:flex;background:#e8eef6;border:1px solid #dce5f0;border-radius:10px;padding:4px;gap:3px}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border-radius:7px;border:1px solid transparent;background:none;color:#4b5f78;font-weight:660;font-size:.84rem;white-space:nowrap}.segmented button[aria-pressed=true]{color:#184aa9;background:#fff;border-color:#d9e4f4;box-shadow:0 1px 2px #3d568913}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px #253d6210;min-width:0}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.kpi{padding:12px 15px;min-height:110px}.kpi-top{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#4a5e76;font-size:.87rem;font-weight:660;white-space:nowrap}.kpi strong{display:block;font-size:clamp(1.45rem,2.55vw,2rem);line-height:1.08;font-weight:760;letter-spacing:-.045em;font-variant-numeric:tabular-nums;margin:0 0 6px}.kpi-foot{color:var(--muted);font-size:.75rem;line-height:1.3;min-height:15px;display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px}.kpi-icon{display:grid;width:32px;height:30px;place-items:center;border-radius:8px}.charge{--tone: var(--charge);--tint: #e9f1ff}.payment{--tone: var(--payment);--tint: #e5f6ef}.adjustment{--tone: var(--adjustment);--tint: #fff1d9}.ar{--tone: var(--ar);--tint: #f0e9fc}.encounter{--tone: #3c6177;--tint: #e9f2f7}.kpi-icon,.kpi-delta{background:var(--tint);color:var(--tone)}.kpi-delta{font-weight:720;padding:1px 4px;border-radius:4px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,25.2%);gap:15px}h2{font-size:1.02rem;font-weight:750;line-height:1.24;letter-spacing:-.018em}.world-card{overflow:hidden;display:flex;flex-direction:column}.world-header,.inspector-header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;gap:12px}.world-header p,.inspector-header p,.timeline-head p,.aging-head p{color:var(--muted);font-size:.82rem;line-height:1.35;margin-top:4px}.world-actions,.player-buttons{display:flex;gap:6px;align-items:center}.icon-btn{display:inline-grid;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;place-items:center;color:#435873;background:#fff;padding:0}.world{height:clamp(315px,30vw,465px);position:relative;overflow:hidden;isolation:isolate;color:#d5e3f5;background:#081422}.scene{position:relative;width:100%;height:100%}.scene canvas{display:block}.view-status,.view-hint,.legend{position:absolute;z-index:2;pointer-events:none}.view-status{top:12px;left:13px;display:flex;gap:7px;align-items:center;border:1px solid #687d994f;border-radius:7px;padding:5px 8px;color:#dceaff;background:#091624dc;font-size:.72rem;font-weight:640}.view-status i{background:#72e3b6;box-shadow:0 0 6px #72e3b660}.view-toolbar{position:absolute;right:13px;top:12px;z-index:3;display:grid;gap:4px}.view-toolbar .icon-btn{width:30px;height:30px;color:#d4e4f7;background:#091624dc;border-color:#687d9970}.view-toolbar .icon-btn:hover{background:#233855!important}.view-hint{bottom:13px;left:13px;display:flex;align-items:center;gap:6px;font-size:.7rem;color:#aec0d7}.legend{bottom:11px;right:12px;display:flex;gap:11px;border:1px solid #526c9066;border-radius:6px;padding:6px 8px;font-size:.69rem;font-weight:640;background:#0a1625ed}.legend span,.aging-key span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.swatch,.aging-key i,.age-values i{width:7px;height:7px;border-radius:2px;display:inline-block}.swatch.charge{background:#64a6ff}.swatch.payment{background:#7ee3b8}.swatch.adjustment{background:#ffba63}.swatch.ar{background:#b99bf7}.world-filters{display:flex;min-height:54px;padding:9px 13px;align-items:center;flex-wrap:wrap;gap:8px 12px}.filter-set{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.system-chip{display:inline-flex;align-items:center;gap:5px;color:#405674;font-size:.79rem;font-weight:680;white-space:nowrap;padding:5px 3px}.system-chip+.system-chip{margin-left:4px}.system-chip input{margin:0 1px 0 0;accent-color:#275ec7}.system-chip i{height:7px;width:7px;border-radius:2px;background:var(--new)}.system-chip.legacy i{background:var(--legacy)}.categories{border-left:1px solid var(--line);padding-left:11px}.filter-button{padding:5px 9px;font-size:.76rem;font-weight:650;border:1px solid #dbe4ef;border-radius:6px;background:#fff;color:#52637a}.filter-button[aria-pressed=true]{background:#eef4ff;border-color:#d6e3fa;color:#2456a6}.select-wrap{display:inline-flex;position:relative;align-items:center;min-width:0}.world-filters .select-wrap{margin-left:auto}.select-wrap>svg{position:absolute;right:8px;pointer-events:none;color:#536a84}.select-wrap select{width:100%;appearance:none;color:#324962;background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 25px 6px 8px;font-size:.8rem;font-weight:630}.inspector{display:flex;flex-direction:column;overflow:hidden}.card-icon{width:34px;height:34px;display:grid;place-items:center;color:#2c5fbf;background:#edf4ff;border-radius:8px;flex-shrink:0}.sim-controls{padding:0 14px 12px}.player-buttons{display:grid;grid-template-columns:36px minmax(80px,1fr) 36px 36px;gap:7px}.player-buttons .icon-btn{width:36px;height:37px}.play-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;border:1px solid #2457bd;background:#2457bd;color:#fff;font-size:.88rem;font-weight:710;min-height:37px}.play-button:hover{background:#1b479e}.control-settings{margin-top:11px;display:flex;gap:9px}.field{display:grid;gap:5px;flex:1;min-width:0;font-size:.76rem;font-weight:670;color:#465b75}.field input,.field select{height:34px}.field input{min-width:0;width:100%;background:#fff;padding:4px 6px;border-radius:7px;color:#324962;border:1px solid var(--line)}.field.speed{flex:0 0 65px}.inspector-tabs{display:flex;justify-content:space-between;padding:0 11px;gap:3px;border-block:1px solid var(--line);background:#f8faff}.inspector-tabs button{color:#53667d;padding:9px 5px 8px;font-size:.77rem;border:0;border-bottom:2px solid transparent;background:transparent;font-weight:650}.inspector-tabs button[aria-pressed=true]{color:#214ea3;border-bottom-color:#2e62ce}.inspector-content{padding:13px 14px;overflow-y:auto;flex:1;max-height:clamp(230px,23vw,355px)}.inspector-content h3{font-size:1.02rem;margin-top:8px;line-height:1.24;letter-spacing:-.018em}.inspector-content p{margin-top:7px;color:#50627a;line-height:1.46;font-size:.87rem}.event-type{display:inline-flex;gap:6px;align-items:center;color:var(--tone, #345680);background:var(--tint, #eaf1fb);font-size:.72rem;font-weight:720;border-radius:6px;padding:4px 7px}.event-type i,.log-dot{width:7px;height:7px;border-radius:50%;background:var(--tone, #426daa);flex-shrink:0}.event-facts{display:grid;gap:4px;grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 0}.event-facts div{min-width:0;padding:4px 5px;background:#f4f7fc;border-radius:5px}.event-facts dt{color:#556983;font-size:.72rem}.event-facts dd{margin:1px 0 0;color:#25384e;font-size:.77rem;font-weight:680}.detail-summary{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px;margin-top:10px;border:1px solid #e8def9;border-radius:7px;color:#64449d;background:#f6f0ff;font-size:.78rem}.detail-summary strong{white-space:nowrap;font-variant-numeric:tabular-nums}.text-button{border:0;padding:8px 0 0;background:none;color:#2458b7;font-weight:670;font-size:.78rem}.event-log{margin:0;padding:0;list-style:none}.event-log button,.station-list button{display:flex;width:100%;align-items:center;gap:8px;border:0;padding:7px 6px;background:#fff;color:#324962;text-align:left;border-radius:5px;font-size:.8rem}.event-log button:hover,.station-list button:hover,.event-log [aria-current]{background:#edf3ff;color:#254a97}.event-log button span:nth-child(2){flex:1}.event-log small{display:block;color:#596d87;font-size:.72rem}.station-list button{justify-content:space-between}.timeline-card{margin-top:15px;padding:13px 16px 10px}.timeline-head,.aging-head{display:flex;gap:12px;align-items:center;justify-content:space-between}.timeline-count{white-space:nowrap;color:#365b96;background:#eef4ff;border-radius:6px;padding:5px 8px;font-size:.76rem;font-weight:680;font-variant-numeric:tabular-nums}.timeline-range{display:grid;align-items:center;height:25px;position:relative;margin-top:8px}.timeline-rail{position:absolute;inset:auto 8px;height:5px;border-radius:8px;background:#e3eaf4}.timeline-fill{height:100%;border-radius:inherit;background:#4d79d8}#timeline{position:relative;width:100%;margin:0;height:20px;appearance:none;background:transparent;cursor:pointer}#timeline::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border:2px solid white;border-radius:50%;background:#2d60c8;box-shadow:0 0 0 1px #2b5dbc,0 2px 4px #1735653d}#timeline::-moz-range-thumb{width:12px;height:12px;border:2px solid white;border-radius:50%;background:#2d60c8;box-shadow:0 0 0 1px #2b5dbc}.go-live-marker{width:9px;height:9px;transform:translate(-50%,-50%) rotate(45deg);position:absolute;top:50%;z-index:2;background:#d08126;border:1px solid #fff;border-radius:2px;padding:0}.go-live-marker:after{content:"";position:absolute;inset:-7px}.timeline-labels{display:flex;justify-content:space-between;align-items:center;color:#556983;font-size:.74rem;font-weight:620}.cutover-label{border:0;background:#fff4e4;color:#8b531e;padding:2px 6px;border-radius:4px;font-size:.73rem;font-weight:690}.aging-card{margin-top:15px;padding:15px 16px 12px}.aging-key{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:#4e637c;font-size:.76rem;font-weight:630}.aging-key .legacy,.age-values .legacy,.age-meter .legacy{background:#208b9e}.aging-key .new,.age-values .new,.age-meter .new{background:#6367d6}.payer-tag{background:#f0f3f9;border-radius:5px;padding:4px 6px}.aging-grid{margin-top:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.age-bucket{background:#f9fbff;border:1px solid #e0e7f2;border-top:2px solid var(--bucket);border-radius:8px;color:var(--ink);padding:8px 9px;text-align:left;min-width:0;display:flex;flex-direction:column;gap:5px}.age-bucket:hover{background:#edf3fc;border-inline-color:#bed1ee}.age-0{--bucket: #5798df}.age-1{--bucket: #518bcd}.age-2{--bucket: #9288d1}.age-3{--bucket: #b376b4}.age-4{--bucket: #b9658d}.age-caption{font-size:.76rem;color:#52637a;font-weight:660}.age-bucket strong{font-size:1.06rem;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.age-meter{display:flex;background:#e6edf6;height:5px;border-radius:6px;overflow:hidden}.age-meter i{transition:width .35s ease}.age-values{display:flex;flex-wrap:wrap;gap:3px 7px;color:#516780;font-size:.73rem;font-weight:640}.age-values span{display:flex;align-items:center;gap:4px}.filter-empty{grid-column:1 / -1;padding:15px;background:#f4f7fc;color:#516780;border-radius:8px}.aging-foot{margin-top:11px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#526780;font-size:.75rem}.aging-foot span{display:flex;gap:6px;align-items:center}.aging-foot button{color:#2558b0;font-weight:690;border:0;padding:3px 0;background:transparent;white-space:nowrap}footer{padding:17px 0;display:flex;justify-content:space-between;gap:8px;font-size:.76rem;color:#596b83}.world-card.expanded{position:fixed;inset:9px;z-index:20;box-shadow:0 0 0 12px #0d1829}.world-card.expanded .world{flex:1;height:auto;min-height:0}.scene-expanded{overflow:hidden}dialog{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:18px;max-width:min(670px,calc(100% - 28px));width:100%;max-height:88vh;box-shadow:0 20px 70px #09162547}dialog::backdrop{background:#142438a5}.dialog-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.dialog-head h2{font-size:1.24rem}#dialog-body{margin-top:10px;color:#435873;font-size:.92rem;line-height:1.5}.help-list{padding-left:22px;margin:10px 0;display:grid;gap:6px}.keyboard-note{margin-top:12px;background:#eff5fc;border-radius:7px;padding:8px}.table-wrap{margin-top:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.84rem;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:6px 8px;border-bottom:1px solid #e1e9f5;white-space:nowrap}thead,.total-row{background:#edf4fd;color:#2b4b79;font-weight:710}@media(max-width:1060px){main,.header-inner{padding-inline:22px}.workbench{grid-template-columns:minmax(0,1fr) 278px;gap:12px}.view-hint{display:none}.world-filters{gap:7px}.categories{padding-left:7px}.system-chip+.system-chip{margin-left:0}.kpi-top{white-space:normal}}@media(max-width:820px){.workbench{grid-template-columns:minmax(0,1fr)}.world{height:clamp(310px,49vw,450px)}.inspector-content{min-height:155px;max-height:300px}.inspector-tabs{justify-content:flex-start;gap:12px}.sim-controls{display:flex;align-items:end;gap:14px}.player-buttons{width:min(45%,290px)}.control-settings{flex:1}.field.speed{flex-basis:72px}.event-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr))}.view-hint{display:flex}}@media(max-width:600px){.topbar{height:59px}.header-inner,main{padding-inline:12px}.brand-mark{width:36px;height:36px;border-radius:9px}.header-actions{gap:7px}.help-button{padding:7px}.help-button span{display:none}main{padding-top:19px}.page-head{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:13px}.page-head p{font-size:.91rem}.scenario-tabs button{flex:1;padding-inline:5px;font-size:.79rem}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.kpi{padding:9px 10px;min-height:93px}.kpi-top{font-size:.77rem}.kpi-icon{width:26px;height:25px}.kpi-icon svg{width:15px}.kpi-foot{font-size:.7rem}.world-header{padding:10px}.world-header p{font-size:.75rem}.world{height:max(290px,75vw);max-height:430px}.world-card.expanded .world{max-height:none}.world-actions{gap:3px}.world-actions .icon-btn{width:30px;height:30px}.legend{left:50%;right:auto;transform:translate(-50%)}.view-hint{display:none}.world-filters{padding-inline:9px;gap:3px 7px}.world-filters .select-wrap{margin-left:0}.system-chip{font-size:.74rem}.filter-button{padding-inline:6px}.sim-controls{flex-wrap:wrap;gap:6px}.player-buttons,.control-settings{width:100%}.timeline-card,.aging-card{padding-inline:10px;margin-top:12px}.aging-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.aging-head,.aging-foot{align-items:flex-start;flex-direction:column}.aging-head{gap:7px}.aging-foot{gap:5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}.system-chip strong{font-size:.71rem;color:#536983;font-variant-numeric:tabular-nums}
