/* V595 Live Operations. V594 YPN tokens; approved HUD geometry. */
.live-ops-trigger{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--signal-wash);color:var(--ink);cursor:pointer}
.live-ops-trigger svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
.live-ops-trigger::after{content:"";position:absolute;right:7px;top:7px;width:5px;height:5px;border-radius:50%;background:var(--leaf)}
.live-ops-dialog{--picker-title-size:18px;--picker-input-size:11px;--picker-label-size:9px;--picker-button-size:11px;width:min(1240px,calc(100% - 40px));max-width:calc(100% - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d9d5ca;border-radius:24px;background:#f5f3ec;color:var(--ink);box-shadow:0 32px 100px #17171440;font:11px/1.5 "Segoe UI Variable","Segoe UI",Arial,sans-serif}
.live-ops-dialog[open]{display:flex;flex-direction:column}
.live-ops-dialog::backdrop{background:#231f2080;backdrop-filter:blur(4px)}
.live-ops-dialog *, .live-ops-dialog *::before,.live-ops-dialog *::after{box-sizing:border-box}
.live-ops-dialog .picker-dialog-head{padding:18px 22px;background:linear-gradient(110deg,#fffdf6,#fff);gap:14px}
.ops-title{display:flex;align-items:center;gap:13px;min-width:0;flex:1 1 0}
.ops-title>div:last-child{min-width:0;overflow-wrap:anywhere}
.ops-radar{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:1px solid #e3bd3b;border-radius:14px;background:#fff1b9;color:#3e3825}
.ops-radar svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.3}
.ops-eyebrow{margin:0 0 3px;color:var(--signal-deep);font-size:9px;font-weight:800;letter-spacing:.12em}
.live-ops-dialog .picker-dialog-head h2{font-size:18px;line-height:1.35;font-weight:700;letter-spacing:-.02em}
.ops-subtitle{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.ops-head-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.live-ops-dialog .ops-head-actions .ops-popout{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:122px;width:auto;padding:0 12px;border:1px solid var(--line);border-radius:10px;white-space:nowrap;font-family:inherit;font-size:11px;font-weight:700;line-height:1.3;text-decoration:none;color:inherit}
.live-ops-dialog .picker-dialog-head{cursor:grab;touch-action:none;user-select:none}
.live-ops-dialog.is-dragging .picker-dialog-head{cursor:grabbing}
.live-ops-dialog.is-positioned{position:fixed;margin:0;right:auto;bottom:auto}
.ops-drag-hint{font-size:9px;color:var(--muted);margin:4px 0 0}
body[data-demo-detached="yes"] .app-shell{display:none}
body[data-demo-detached="yes"] .ops-popout{display:none}
body[data-demo-detached="yes"] .live-ops-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px)}
.ops-chip{display:inline-flex;align-items:center;gap:7px;width:fit-content;border:1px solid #e7d18a;border-radius:99px;padding:5px 9px;background:#fff4ce;color:#725800;font-size:9px;font-weight:700;white-space:nowrap}
.ops-chip i,.ops-status i{width:6px;height:6px;display:inline-block;flex-shrink:0;border-radius:50%;background:var(--leaf)}
.live-ops-dialog .picker-dialog-body{display:block;padding:0;min-height:0;overflow:auto;background-image:radial-gradient(#99917c15 .6px,transparent .6px);background-size:19px 19px}
.ops-statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 22px;background:#282624;color:#e5dfd2;font-size:9px;flex-wrap:wrap}
.ops-statusbar strong{color:#ffce39;letter-spacing:.08em;font-size:9px}
.ops-statusbar span{display:inline-flex;gap:8px;align-items:center}
.ops-statusbar i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ffc000}
.ops-dashboard{padding:18px 22px 20px;display:grid;gap:15px}
.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.ops-metric{position:relative;min-width:0;border:1px solid #dedbd0;border-radius:16px;padding:13px 15px;background:#fffef9;overflow:hidden}
.ops-metric:first-child{background:linear-gradient(135deg,#fff3bb,#fffdf6);border-color:#e7cc6f}
.ops-metric>span{display:block;color:var(--muted);font-size:9px;font-weight:600}
.ops-metric strong{display:block;font-size:30px;font-weight:650;line-height:1;letter-spacing:-.04em;margin:9px 0 6px}
.ops-metric small{font-size:9px;color:var(--muted)}
.ops-metric .ops-spark{position:absolute;right:15px;bottom:17px;display:flex;align-items:flex-end;gap:3px;height:26px;opacity:.7}
.ops-spark b{display:block;width:4px;background:var(--leaf);border-radius:2px;height:var(--h)}
.ops-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:15px;align-items:start}
.ops-panel{min-width:0;overflow:hidden;border:1px solid #dfdbd1;border-radius:18px;background:#fffefaf2}
.ops-panel .surface-head{min-height:0;padding:13px 15px;gap:9px;background:#fffefa}
.ops-panel .surface-head h3{font-size:15px;line-height:1.35;margin:0;font-weight:700;letter-spacing:-.02em}
.ops-panel .surface-head p{font-size:10px}
.ops-caption{color:var(--muted);font-size:9px;white-space:nowrap}
.ops-filterbar{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.ops-filterbar input{min-width:120px;flex:1 1 145px;width:100%;height:44px;border:1px solid #dedacf;border-radius:10px;background:#fff;padding:0 11px;font-family:inherit;font-size:11px;line-height:1.5;color:var(--ink)}
.ops-filterbar select{width:auto;min-width:125px;min-height:44px;padding:0 28px 0 10px;border:1px solid #dedacf;border-radius:10px;background:#fff;font:inherit}
.ops-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 14px}
.ops-person{min-width:0;padding:12px;border:1px solid #e5e1d6;border-radius:13px;background:linear-gradient(140deg,#fff,#faf8f1);position:relative}
.ops-person[data-status="away"]{background:#fbf8ef}
.ops-person[data-status="offline"]{background:#f6f5f1}
.ops-person-top{display:flex;gap:9px;align-items:center;min-width:0}
.ops-avatar{width:34px;height:34px;display:grid;place-items:center;border:1px solid #d0e2d7;border-radius:50%;background:#e5eee8;color:#27634d;font-size:11px;font-weight:700;flex-shrink:0}
.ops-person-copy{min-width:0;flex:1}
.ops-person-name{display:block;font-size:11px;font-weight:700;overflow-wrap:anywhere;line-height:1.4}
.ops-person-role{display:block;color:var(--muted);font-size:9px;overflow-wrap:anywhere}
.ops-status{display:inline-flex;gap:4px;align-items:center;font-size:9px;font-weight:700;color:#277154;white-space:nowrap}
.ops-status.away{color:#947000}.ops-status.away i{background:#c49a24}.ops-status.offline{color:#817c72}.ops-status.offline i{background:#9b978c}
.ops-section{display:flex;justify-content:space-between;gap:9px;padding:10px 0 8px;margin-top:9px;border-top:1px solid #e7e2d7;font-size:10px;min-width:0}
.ops-section strong{font-weight:600;overflow-wrap:anywhere}.ops-section span{color:var(--muted);font-size:9px;flex-shrink:0}
.ops-person-bottom{display:flex;justify-content:space-between;align-items:center;gap:7px;color:var(--muted);font-size:9px;flex-wrap:wrap}
.ops-country{display:inline-flex;gap:5px;align-items:center}.ops-country svg{width:18px;height:12px;border-radius:2px;border:1px solid #231f2020;flex-shrink:0}
.ops-issue{display:block;padding:6px 8px;margin-top:9px;border:1px solid #eacb97;background:#fff2dd;color:#8b5a1c;border-radius:7px;font-size:9px;line-height:1.4}
.ops-empty{padding:24px 14px;color:var(--muted);grid-column:1/-1;text-align:center;font-size:11px}
.ops-map{padding:0 15px 14px}.ops-map-head{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted);padding:5px 0 8px;border-top:1px solid var(--line)}
.ops-distribution{display:flex;gap:3px;height:5px;border-radius:9px;overflow:hidden}.ops-distribution span{background:var(--leaf);flex:var(--weight);min-width:3px}.ops-distribution span:nth-child(2){background:#ffc000}.ops-distribution span:nth-child(3){background:#9c947c}.ops-distribution span:nth-child(4){background:#a9c6b8}
.ops-legend{display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:8px;font-size:9px;color:var(--muted)}
.ops-side{display:grid;gap:13px;min-width:0}
.ops-timeline{padding:2px 15px 12px;list-style:none;margin:0}
.ops-event{position:relative;display:grid;grid-template-columns:23px minmax(0,1fr);gap:8px;padding:11px 0;border-bottom:1px solid #ece7dc}
.ops-event:last-child{border-bottom:0}.ops-event-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#e6efe8;color:#287155;font-size:11px;font-weight:700}
.ops-event[data-tone="warning"] .ops-event-icon{background:#fff0cd;color:#926900}
.ops-event-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.ops-event strong{font-size:10px;font-weight:700;overflow-wrap:anywhere}.ops-event time{font-size:9px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.ops-event p{font-size:10px;line-height:1.5;margin:3px 0;color:var(--ink)}.ops-event small{font-size:9px;color:var(--muted)}
.ops-privacy{border:1px dashed #d2cbb8;border-radius:13px;padding:12px 14px;background:#efede430}
.ops-privacy strong{font-size:10px;display:block;margin-bottom:4px}.ops-privacy p{margin:0;font-size:9px;line-height:1.65;color:var(--muted)}
.ops-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 22px;background:#fffdf6;border-top:1px solid #e4decf;flex-shrink:0}
.ops-footer p{font-size:9px;line-height:1.6;color:var(--muted);margin:0;flex:1 1 250px}.ops-footer p strong{color:var(--ink)}
.ops-footer button,.live-ops-dialog .secondary-action,.live-ops-dialog .primary-action{min-height:44px;font-family:inherit;font-size:11px;font-weight:800;line-height:normal}
.ops-footer-actions{display:flex;gap:8px;flex-wrap:wrap}.ops-footer .secondary-action{background:#fff;border:1px solid #ddd8ca;border-radius:10px;color:var(--ink);padding:0 12px}
.ops-footer .primary-action{border:1px solid #ffc000;background:#ffc000;border-radius:10px;padding:0 14px;color:#231f20}
.live-ops-dialog :focus-visible,.live-ops-trigger:focus-visible{outline:3px solid #277154;outline-offset:3px}
.ops-toast{font-size:9px;color:var(--leaf);min-height:15px}
.ops-review-home{padding:24px;max-width:950px}.ops-review-home h1{font-size:24px}.ops-review-home p{font-size:11px}.ops-review-home .primary-action{min-height:44px;font-size:11px}
@media(max-width:900px){.ops-columns{grid-template-columns:minmax(0,1fr)}.ops-side{grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr)}.ops-privacy{align-self:start}}
@media(max-width:600px){
 .live-ops-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}
 .live-ops-dialog .picker-dialog-head{padding:13px 12px;align-items:flex-start}.ops-title{gap:8px}.ops-radar{width:38px;height:38px;border-radius:11px}.ops-radar svg{width:25px;height:25px}
 .ops-subtitle{font-size:10px}.ops-head-actions{gap:6px}.ops-head-actions>.ops-chip{display:none}
 .live-ops-dialog .ops-head-actions .ops-popout{font-size:0;padding:0;min-width:44px;max-width:44px;width:44px}
 .ops-head-actions .ops-popout::before{content:'↗';font-size:16px}
 .live-ops-dialog .picker-dialog-head{cursor:default;touch-action:auto;user-select:auto}.ops-drag-hint{display:none}
 .ops-statusbar{padding:9px 12px;font-size:9px}.ops-statusbar strong{font-size:9px}
 .ops-dashboard{padding:12px;gap:12px}.ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-metric{padding:11px 12px;border-radius:13px}.ops-metric strong{font-size:24px}
 .ops-columns,.ops-side,.ops-people{grid-template-columns:minmax(0,1fr)}.ops-people{padding:10px;gap:9px}.ops-person{padding:11px}
 .ops-filterbar{padding:10px;display:grid;grid-template-columns:minmax(0,1fr)}.ops-filterbar input,.ops-filterbar select{width:100%;font-size:16px}
 .ops-footer{padding:11px 12px;padding-bottom:max(11px,env(safe-area-inset-bottom));gap:8px}.ops-footer p{flex-basis:100%}.ops-footer-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.ops-footer button{width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce){.live-ops-dialog *{scroll-behavior:auto;animation:none;transition:none}}

.ops-monitoring-notice{font:inherit;font-size:10px;line-height:1.5;color:inherit;opacity:.8;margin:12px 16px}.ops-avatar{position:relative;overflow:hidden}.ops-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
