/* NS Viewport Studio — Page 01 / Section 1A Service Notice v1.3
   Enterprise rule: silent when healthy; visible only for customer-impacting states.
   Layout rule: notice remains in normal document flow. No persistent header offset is reserved. */

.ns-topbar[hidden]{display:none!important}
.ns-topbar{position:relative;z-index:120;border-bottom:1px solid var(--color-border-default);background:var(--color-canvas-subtle);box-shadow:0 10px 28px rgba(0,0,0,.16)}
.ns-topbar[data-state="degraded"]{border-bottom-color:color-mix(in srgb,var(--color-warning) 42%,var(--color-border-default));background:color-mix(in srgb,var(--color-canvas-subtle) 94%,var(--color-warning-soft))}
.ns-topbar[data-state="maintenance"]{border-bottom-color:color-mix(in srgb,var(--color-info) 42%,var(--color-border-default));background:color-mix(in srgb,var(--color-canvas-subtle) 94%,var(--color-info-soft))}
.ns-topbar[data-state="incident"]{border-bottom-color:color-mix(in srgb,var(--color-danger) 46%,var(--color-border-default));background:color-mix(in srgb,var(--color-canvas-subtle) 94%,var(--color-danger-soft))}
.ns-topbar-inner{position:relative;min-height:3.25rem;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding-block:.45rem}
.ns-topbar-summary{min-width:0;display:flex;align-items:center;gap:.55rem;color:var(--color-text-primary)}
.ns-topbar-status-dot{flex:none;width:.55rem;height:.55rem;border-radius:50%;background:var(--color-warning);box-shadow:0 0 0 .22rem var(--color-warning-soft)}
.ns-topbar[data-state="maintenance"] .ns-topbar-status-dot{background:var(--color-info);box-shadow:0 0 0 .22rem var(--color-info-soft)}
.ns-topbar[data-state="incident"] .ns-topbar-status-dot{background:var(--color-danger);box-shadow:0 0 0 .22rem var(--color-danger-soft)}
.ns-topbar-status-label{flex:none;font-size:.78rem;font-weight:820;letter-spacing:-.01em}
.ns-topbar-announcement-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-secondary);font-size:.75rem;font-weight:560}
.ns-topbar-announcement-message[hidden]{display:none}
.ns-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:.35rem}
.ns-topbar-announcement-link,.ns-topbar-status{min-height:2.5rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border-radius:.65rem;font-size:.72rem;font-weight:760;white-space:nowrap}
.ns-topbar-announcement-link{padding:.45rem .65rem;color:var(--color-text-link);text-decoration:none}.ns-topbar-announcement-link:hover{text-decoration:underline;text-underline-offset:.18em}.ns-topbar-announcement-link[hidden]{display:none}
.ns-topbar-status{padding:.45rem .65rem;border:1px solid var(--color-border-default);background:color-mix(in srgb,var(--color-surface-raised) 72%,transparent);color:var(--color-text-primary);transition:background var(--duration-fast),border-color var(--duration-fast)}
.ns-topbar-status:hover,.ns-topbar-status[aria-expanded="true"]{background:var(--color-surface-hover);border-color:var(--color-border-strong)}
.ns-topbar-chevron{width:.78rem;height:.78rem;fill:none;stroke:currentColor;stroke-width:2;transition:transform var(--duration-fast)}
.ns-topbar-status[aria-expanded="true"] .ns-topbar-chevron{transform:rotate(180deg)}

.ns-topbar-panel{position:absolute;right:0;top:calc(100% + .5rem);z-index:140;width:min(27rem,calc(100vw - 2rem));padding:.85rem;border:1px solid var(--color-border-default);border-radius:1rem;background:var(--color-surface-overlay);box-shadow:var(--shadow-lg)}
.ns-topbar-panel[hidden]{display:none}
.ns-topbar-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.1rem .1rem .65rem}
.ns-topbar-panel-head strong{display:block;font-size:.9rem}.ns-topbar-panel-head small{display:block;margin-top:.18rem;color:var(--color-text-muted);font-size:.71rem;line-height:1.45}
.ns-topbar-panel-close{flex:none;width:2.5rem;height:2.5rem;display:grid;place-items:center;border:1px solid transparent;border-radius:.65rem;color:var(--color-text-secondary)}
.ns-topbar-panel-close:hover{border-color:var(--color-border-default);background:var(--color-surface-hover);color:var(--color-text-primary)}
.ns-topbar-panel-close svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2}
.ns-topbar-components{display:grid;gap:.32rem;padding:.2rem 0}
.ns-topbar-component{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.8rem;min-height:2.65rem;padding:.55rem .65rem;border-radius:.65rem;background:color-mix(in srgb,var(--color-surface-raised) 70%,transparent)}
.ns-topbar-component span{font-size:.75rem;color:var(--color-text-secondary)}.ns-topbar-component strong{font-size:.68rem;font-weight:780;color:var(--color-text-muted)}
.ns-topbar-component[data-state="operational"] strong{color:var(--color-success)}.ns-topbar-component[data-state="degraded"] strong{color:var(--color-warning)}
.ns-topbar-panel-announcement{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.6rem;margin-top:.45rem;padding:.7rem;border:1px solid var(--color-border-subtle);border-radius:.7rem;background:var(--color-surface-inset)}
.ns-topbar-panel-announcement[hidden]{display:none}
.ns-topbar-panel-announcement-badge{padding:.2rem .4rem;border-radius:.35rem;background:var(--color-info-soft);color:var(--color-info);font-size:.6rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.ns-topbar-panel-announcement[data-kind="maintenance"] .ns-topbar-panel-announcement-badge{background:var(--color-warning-soft);color:var(--color-warning)}
.ns-topbar-panel-announcement[data-kind="incident"] .ns-topbar-panel-announcement-badge{background:var(--color-danger-soft);color:var(--color-danger)}
.ns-topbar-panel-announcement strong{min-width:0;color:var(--color-text-secondary);font-size:.72rem;font-weight:680;line-height:1.45}
.ns-topbar-panel-announcement a{color:var(--color-text-link);font-size:.68rem;font-weight:760;text-decoration:none;white-space:nowrap}.ns-topbar-panel-announcement a:hover{text-decoration:underline;text-underline-offset:.18em}
.ns-topbar-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:.45rem;padding:.7rem .1rem .05rem;border-top:1px solid var(--color-border-subtle);color:var(--color-text-faint);font-size:.66rem}
.ns-topbar-status-link{color:var(--color-text-link);font-weight:730}.ns-topbar-status-link[hidden]{display:none}.ns-topbar-status-link:hover{text-decoration:underline}

@media (max-width:720px){
  .ns-topbar-inner{min-height:3.55rem;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;padding-block:.5rem}
  .ns-topbar-summary{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.5rem;row-gap:.08rem}
  .ns-topbar-status-dot{grid-row:1/3;align-self:center}
  .ns-topbar-status-label{font-size:.76rem}
  .ns-topbar-announcement-message{display:block!important;max-width:none;font-size:.68rem;line-height:1.35;white-space:nowrap}
  .ns-topbar-announcement-link{display:none!important}
  .ns-topbar-status{min-width:2.75rem;min-height:2.75rem;padding:.45rem .55rem}
  .ns-topbar-status>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .ns-topbar-chevron{width:.9rem;height:.9rem}
  .ns-topbar-panel{position:fixed;left:.5rem;right:.5rem;top:auto;bottom:max(.5rem,env(safe-area-inset-bottom));width:auto;max-height:min(78dvh,42rem);overflow:auto;overscroll-behavior:contain;border-radius:1.1rem;padding:.9rem}
  .ns-topbar-panel::before{content:"";display:block;width:2.5rem;height:.24rem;margin:-.25rem auto .7rem;border-radius:999px;background:var(--color-border-strong)}
  .ns-topbar-panel-announcement{grid-template-columns:auto minmax(0,1fr)}
  .ns-topbar-panel-announcement a{grid-column:2;justify-self:start}
}
@media (max-width:380px){
  .ns-topbar-inner{gap:.35rem}
  .ns-topbar-status-label{font-size:.72rem}
  .ns-topbar-announcement-message{font-size:.64rem}
}
@media (prefers-reduced-motion:reduce){.ns-topbar-chevron{transition:none}}
@media (forced-colors:active){.ns-topbar-status-dot{outline:1px solid CanvasText}.ns-topbar,.ns-topbar-panel{border-color:CanvasText}}

/* R6 defensive landing cleanup: an older cached theme runtime must not leave a
   floating preference control on Page 01. A proper theme placement belongs to
   the later header/preferences step. */
body.landing-page > .ns-theme-control{display:none!important}
