/* MS CONNECTED SYSTEM EXPLORER — scoped custom vector and HTML graphic */
.ms-system-explorer {
  --system-violet: var(--ms-violet-ink, #6a2e93);
  --system-teal: var(--ms-teal-ink, #006c70);
  --system-lime: var(--ms-lime-ink, #486311);
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 23px;
  border: 1px solid var(--line, #d8ddd3);
  border-radius: 12px;
  background: #fffef9;
  color: var(--ink, #20372d);
  box-shadow: 0 14px 45px #183f310b;
}
.ms-system-explorer * { box-sizing: border-box; }
.ms-system-heading { max-width: 560px; }
.ms-system-eyebrow {
  display: block;
  margin-bottom: 8px;
  font: 650 11px/1.4 var(--sans, 'Segoe UI', Arial, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #647167);
}
.ms-system-heading h2 { font-size: 27px; line-height: 1.1; letter-spacing: -.035em; }
.ms-system-heading p { margin: 9px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted, #647167); }
.ms-system-task-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 19px 0 21px; }
.ms-system-task-buttons[hidden] { display: none !important; }
.ms-system-task-button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line, #d8ddd3);
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #20372d);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  transition: background .18s, border-color .18s;
}
.ms-system-task-button:hover { background: var(--paper, #f7f5ef); border-color: #9cae9f; }
.ms-system-task-button[aria-pressed="true"] { background: var(--green, #183f31); border-color: var(--green, #183f31); color: #fff; }
.ms-system-task-button:focus-visible, .ms-system-module:focus-visible { outline: 3px solid var(--system-violet); outline-offset: 4px; }
.ms-system-board { min-width: 0; }
.ms-system-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, .78fr) minmax(0, 1fr);
  grid-template-rows: repeat(5, minmax(64px, auto));
  column-gap: 16px;
  row-gap: 10px;
  position: relative;
  min-width: 0;
}
.ms-system-wires { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -1; overflow: visible; }
.ms-system-halo { fill: #edf1e783; }
.ms-system-wire { stroke: #d6ded1; stroke-width: 1.3; vector-effect: non-scaling-stroke; transition: stroke .2s, stroke-width .2s; }
.ms-system-wire[data-system-highlight="true"] { stroke: var(--system-accent); stroke-width: 2; }
.ms-system-explorer [data-system-accent] { --system-accent: var(--module-ink); --system-soft: var(--module-soft); }
.ms-system-module {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 0;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #dce2d8;
  border-color: color-mix(in srgb, var(--module-accent) 25%, var(--line));
  border-radius: 6px;
  background: var(--paper);
  background: color-mix(in srgb, var(--system-soft) 25%, var(--paper));
  text-decoration: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.ms-system-module:hover { border-color: var(--system-accent); border-color: color-mix(in srgb, var(--system-accent) 55%, var(--line)); box-shadow: 0 3px 8px #183f3110; }
.ms-system-module[data-system-highlight="true"] { border-color: var(--system-accent); border-color: color-mix(in srgb, var(--system-accent) 55%, var(--line)); background: color-mix(in srgb, var(--system-soft) 50%, var(--paper)); }
.ms-system-symbol { display: grid; place-items: center; flex: 0 0 22px; color: var(--system-accent); }
.ms-system-icon { display: block; width: 21px; height: 21px; flex-shrink: 0; }
.ms-system-module-copy { min-width: 0; }
.ms-system-module strong { display: block; font: 600 12px/1.25 var(--sans, 'Segoe UI', Arial, sans-serif); letter-spacing: -.015em; overflow-wrap: normal; }
.ms-system-module small { display: block; margin-top: 3px; color: #58645c; font-size: 11px; line-height: 1.3; }
.ms-system-module-chevron { margin-left: auto; font-size: 16px; line-height: 1; color: #7c877e; }
.ms-system-shared {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  grid-column: 2;
  grid-row: 2 / 5;
  padding: 16px 8px;
  border: 1px solid #b7c8ad;
  border-radius: 10px;
  background: #f4f7ee;
  text-align: center;
  box-shadow: 0 5px 18px #183f310b;
}
.ms-system-shared > .ms-system-icon { width: 26px; height: 26px; color: var(--green, #183f31); margin-bottom: 8px; }
.ms-system-shared-kicker { margin-bottom: 5px; font-size: 11px; line-height: 1.3; color: var(--muted, #647167); }
.ms-system-shared > strong { font: 500 16px/1.1 var(--serif, Georgia, serif); letter-spacing: -.025em; }
.ms-system-records { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; max-width: 120px; margin-top: 12px; }
.ms-system-records span { padding: 2px 3px; border: 1px solid #d7e0cd; border-radius: 3px; font-size: 11px; line-height: 1.4; background: #fffef985; }
.ms-system-task-detail { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line, #d8ddd3); }
.ms-system-task-panel[hidden] { display: none !important; }
.ms-system-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.ms-system-stage { display: flex; flex-direction: column; position: relative; gap: 5px; min-width: 0; }
.ms-system-stage-number { font-size: 11px; font-weight: 600; line-height: 1; color: var(--system-teal); }
.ms-system-stage-content { display: block; }
.ms-system-stage-owner { display: block; color: var(--muted, #647167); font-size: 11px; line-height: 1.4; }
.ms-system-stage-content strong { display: block; margin: 4px 0 5px; font-size: 12px; line-height: 1.35; letter-spacing: -.01em; }
.ms-system-stage-module { display: block; color: var(--muted, #647167); font-size: 11px; line-height: 1.4; }
.ms-system-stage-arrow { position: absolute; top: -4px; right: 2px; width: 14px; height: 14px; color: #9dae9d; }
.ms-system-task-note { margin: 15px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted, #647167); }
.ms-system-illustrative-note { margin: 18px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted, #647167); }
.ms-system-explore-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted, #647167); }
.ms-system-explore-hint .ms-system-icon { height: 15px; width: 15px; }
.ms-system-explorer--wide { padding: 32px; }
.ms-system-explorer--wide .ms-system-heading h2 { font-size: 36px; }
.ms-system-explorer--wide .ms-system-heading p { font-size: 14px; }
.ms-system-explorer--wide .ms-system-task-buttons { display: flex; flex-wrap: wrap; margin: 22px 0 27px; }
.ms-system-explorer--wide .ms-system-task-button { padding: 9px 15px; font-size: 12px; }
.ms-system-explorer--wide .ms-system-board { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .85fr); gap: 35px; align-items: center; }
.ms-system-explorer--wide .ms-system-map { grid-template-columns: minmax(0, 1fr) minmax(110px, .78fr) minmax(0, 1fr); }
.ms-system-explorer--wide .ms-system-module { padding: 10px; }
.ms-system-explorer--wide .ms-system-module strong { font-size: 13px; }
.ms-system-explorer--wide .ms-system-module small { font-size: 11px; }
.ms-system-explorer--wide .ms-system-task-detail { margin: 0; padding: 0 0 0 27px; border-top: 0; border-left: 1px solid var(--line, #d8ddd3); }
.ms-system-explorer--wide .ms-system-stages { grid-template-columns: 1fr; gap: 23px; }
.ms-system-explorer--wide .ms-system-stage { flex-direction: row; gap: 11px; }
.ms-system-explorer--wide .ms-system-stage-number { margin-top: 3px; }
.ms-system-explorer--wide .ms-system-stage-owner { font-size: 11px; }
.ms-system-explorer--wide .ms-system-stage-content strong { font-size: 15px; margin-top: 5px; }
.ms-system-explorer--wide .ms-system-stage-module { font-size: 11px; }
.ms-system-explorer--wide .ms-system-stage-arrow { top: auto; bottom: -18px; left: 32px; transform: rotate(90deg); }
.ms-system-explorer--wide .ms-system-task-note { margin-top: 22px; font-size: 11px; }
.ms-system-explorer--wide .ms-system-explore-hint { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line, #d8ddd3); font-size: 11px; }
@media (max-width: 1080px) {
  .ms-system-explorer--wide .ms-system-board { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ms-system-explorer--wide .ms-system-map { max-width: 720px; width: 100%; margin: auto; }
  .ms-system-explorer--wide .ms-system-task-detail { margin-top: 26px; padding: 21px 0 0; border-left: 0; border-top: 1px solid var(--line, #d8ddd3); }
  .ms-system-explorer--wide .ms-system-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .ms-system-explorer--wide .ms-system-stage { flex-direction: column; gap: 7px; }
  .ms-system-explorer--wide .ms-system-stage-arrow { top: 0; left: auto; right: 5px; bottom: auto; transform: none; }
}
@media (max-width: 600px) {
  .ms-system-explorer { padding: 17px 13px; border-radius: 9px; }
  .ms-system-heading h2, .ms-system-explorer--wide .ms-system-heading h2 { font-size: 25px; }
  .ms-system-task-buttons, .ms-system-explorer--wide .ms-system-task-buttons { margin: 16px 0 19px; gap: 5px; }
  .ms-system-task-button, .ms-system-explorer--wide .ms-system-task-button { padding: 8px 10px; font-size: 11px; }
  .ms-system-explorer--wide .ms-system-task-buttons { display: grid; }
  .ms-system-map, .ms-system-explorer--wide .ms-system-map { column-gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .ms-system-wires { display: none; }
  .ms-system-module, .ms-system-explorer--wide .ms-system-module { grid-row: auto !important; grid-column: auto !important; padding: 10px 8px; gap: 8px; min-height: 70px; }
  .ms-system-module strong, .ms-system-explorer--wide .ms-system-module strong { font-size: 13px; }
  .ms-system-module small, .ms-system-explorer--wide .ms-system-module small { font-size: 11px; }
  .ms-system-module-chevron { display: none; }
  .ms-system-shared { display: grid; grid-column: 1 / -1; grid-row: auto; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 14px; text-align: left; justify-items: start; }
  .ms-system-shared > .ms-system-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; width: 28px; height: 28px; align-self: center; }
  .ms-system-shared-kicker { grid-column: 2; margin: 0; }
  .ms-system-shared > strong { grid-column: 2; font-size: 21px; }
  .ms-system-shared > strong br { display: none; }
  .ms-system-records { grid-column: 1 / -1; max-width: none; justify-content: flex-start; margin-top: 9px; gap: 5px; }
  .ms-system-records span { padding: 3px 7px; }
  .ms-system-stages, .ms-system-explorer--wide .ms-system-stages { grid-template-columns: 1fr; gap: 21px; }
  .ms-system-stage, .ms-system-explorer--wide .ms-system-stage { flex-direction: row; gap: 11px; }
  .ms-system-stage-number { margin-top: 3px; }
  .ms-system-stage-content strong, .ms-system-explorer--wide .ms-system-stage-content strong { font-size: 14px; }
  .ms-system-stage-arrow, .ms-system-explorer--wide .ms-system-stage-arrow { top: auto; right: auto; bottom: -17px; left: 29px; transform: rotate(90deg); }
  .ms-system-task-note, .ms-system-explorer--wide .ms-system-task-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-system-task-button, .ms-system-module, .ms-system-wire { transition: none; }
}
@media print {
  .ms-system-explorer { box-shadow: none; break-inside: avoid; }
  .ms-system-task-buttons { display: none; }
}
/* END MS CONNECTED SYSTEM EXPLORER */
