/* Ajyal North Star — live/read-only workspace bridge.
   CSP-safe external stylesheet; no inline style injection. */
.ns-session-indicator{
  display:inline-flex;align-items:center;gap:8px;padding:7px 10px;
  border:1px solid var(--ajyal-line,#d9e1e7);border-radius:999px;background:var(--ajyal-surface,#fff);
  font-size:12px;color:var(--ajyal-muted,#465d6f);
}
.ns-session-indicator[data-state="live"]{border-color:#b8d8c1;background:#f2fbf4;color:#1f6230}
.ns-session-indicator[data-state="missing"]{border-color:#ead4a4;background:#fff9ed;color:#76531b}
.ns-session-indicator a,.ns-session-indicator button{
  border:0;background:transparent;color:inherit;font:inherit;font-weight:800;
  cursor:pointer;text-decoration:none;padding:0;
}
.ns-role-context{font-size:11px;color:var(--ajyal-muted,#6c7c88);margin-top:4px;line-height:1.55}
.ns-live-readonly{font-weight:800}

.ns-live-panel{
  margin:12px 0 18px;padding:14px 16px;border:1px solid var(--ajyal-line,#cfdbe3);
  border-radius:var(--ajyal-radius-card,12px);background:var(--ajyal-surface-alt,#f8fbfd);
}
.ns-live-panel[data-state="live"]{border-color:#b8d8c1;background:#f3fbf5}
.ns-live-panel[data-state="error"],.ns-live-panel[data-state="signed-out"]{border-color:#ead4a4;background:#fff9ed}
.ns-live-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.ns-live-head strong{font-size:14px}.ns-live-head span{font-size:12px}
.ns-live-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:10px}
.ns-live-row{padding:9px 10px;border:1px solid var(--ajyal-line,#dde6ec);border-radius:9px;background:var(--ajyal-surface,#fff)}
.ns-live-row b,.ns-live-row small{display:block}
.ns-live-row small{margin-top:4px;color:var(--ajyal-muted,#687985)}
.ns-live-note{font-size:12px;color:var(--ajyal-muted,#687985);margin:8px 0 0}

.ns-myday-status{
  padding:12px 16px;margin:12px 0 20px;border:1px solid #e8c980;
  border-radius:10px;background:#fff8e8;color:#704e14;line-height:1.7;
}
.ns-myday-status.is-live{
  background:#f2fbf4;border-color:#b8d8c1;color:#1f6230;
}
@media (max-width:760px){
  .ns-live-head{align-items:flex-start;flex-direction:column}
  .ns-live-rows{grid-template-columns:1fr}
  .ns-session-indicator{max-width:100%;white-space:normal}
}
/* Deep read-only workspace bindings */
.ns-deep-read{margin:0 0 18px;padding:14px;border:1px solid var(--ajyal-line,#cfdbe3);border-radius:var(--ajyal-radius-card,12px);background:var(--ajyal-surface-alt,#f8fbfd)}
.ns-deep-read[data-state="live"]{border-color:#b8d8c1;background:#f3fbf5}
.ns-deep-read[data-state="denied"],.ns-deep-read[data-state="signed-out"],.ns-deep-read[data-state="error"]{border-color:#ead4a4;background:#fff9ed}
.ns-deep-read-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.ns-deep-read-head .eyebrow{margin:0 0 3px}.ns-deep-read-head h3{margin:0}.ns-deep-read-state{font-size:12px;font-weight:800}
.ns-deep-read-split{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(280px,1.4fr);gap:12px}
.ns-deep-read-list,.ns-deep-read-mini-list{display:grid;gap:7px;max-height:430px;overflow:auto}
.ns-deep-read-list-wide{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));max-height:520px}
.ns-deep-read-row{display:block;width:100%;text-align:right;border:1px solid var(--ajyal-line,#dbe4ea);border-radius:9px;background:var(--ajyal-surface,#fff);padding:9px 10px;color:inherit;cursor:pointer}
.ns-deep-read-row strong,.ns-deep-read-row small{display:block}.ns-deep-read-row small{margin-top:3px;color:var(--ajyal-muted,#697a86)}
.ns-deep-read-detail{border:1px solid var(--ajyal-line,#dbe4ea);border-radius:9px;background:var(--ajyal-surface,#fff);padding:12px;min-height:120px}
.ns-deep-read-detail h4,.ns-deep-read-detail h5{margin:0 0 10px}
.ns-deep-read-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0 0 12px}
.ns-deep-read-facts>div{padding:8px;border:1px solid var(--ajyal-line,#e2e9ee);border-radius:8px}.ns-deep-read-facts dt{font-size:11px;color:var(--ajyal-muted,#71818c)}.ns-deep-read-facts dd{margin:4px 0 0;font-weight:800}
.ns-deep-read-empty,.ns-deep-read-error,.ns-deep-read-loading{padding:12px;border:1px dashed var(--ajyal-line-strong,#ccd8df);border-radius:9px;background:var(--ajyal-surface,#fff)}
.ns-deep-read-empty p{margin:5px 0 0;color:var(--ajyal-muted,#697a86)}.ns-deep-read-login{font-weight:800}
@media(max-width:760px){.ns-deep-read-split{grid-template-columns:1fr}.ns-deep-read-list{max-height:300px}.ns-deep-read-head{flex-direction:column}.ns-deep-read-facts{grid-template-columns:1fr}}

/* Operational presentation: examples are visible only after explicit disclosure. */
[hidden]{display:none!important}
body[data-module-presentation="operational"] .top-actions .quick-action{display:none}
.ns-operational-intro{margin-bottom:18px}
.ns-project-status{margin:22px 0 0;padding:18px;border:1px solid var(--line);border-radius:var(--ajyal-radius-card,12px);background:var(--surface)}
.ns-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ns-project-grid article{border-inline-start:3px solid var(--gold);padding-inline-start:12px}
.ns-project-grid p{color:var(--muted);line-height:1.8;margin:6px 0 0}
.ns-release-hold{padding:5px 10px;border:1px solid #ead4a4;border-radius:999px;background:#fff9ed;color:#76531b;font-size:12px;white-space:nowrap}
.state-surface{padding:18px 12px;background:var(--surface);border-bottom:1px solid var(--line);line-height:1.7}
.state-surface p{color:var(--muted);margin:6px 0 0}
.ns-source-health{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ns-source-chip{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted)}
.inspector-actions a{display:grid;place-items:center;padding:8px;border:1px solid var(--line);border-radius:7px;color:var(--blue)}
@media(max-width:900px){
  .ns-project-grid{grid-template-columns:1fr}
  .ns-project-status>.section-head{align-items:flex-start;flex-direction:column}
  .ns-project-status{padding:14px}
  body:has(.ns-session-indicator) .topbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  body:has(.ns-session-indicator) .context-title{padding-inline-end:44px;min-height:30px}
  body:has(.ns-session-indicator) .top-actions{position:static;flex-wrap:wrap;gap:8px}
  body:has(.ns-session-indicator) .global-search{width:100%}
  .ns-session-indicator{min-height:36px}
}
/* Delegated Microsoft link (sidebar footer, workspace-shell.js) */
.ns-ms-link{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:12px;line-height:1.5}
.ns-ms-link[data-state="connected"] .ns-ms-status{color:#1f6230;font-weight:700}
.ns-ms-link[data-state="disconnected"] .ns-ms-status{color:#76531b}
.ns-ms-link a,.ns-ms-link button{font:inherit;font-weight:700;border:1px solid currentColor;border-radius:999px;padding:2px 10px;background:transparent;color:inherit;cursor:pointer;text-decoration:none}
