:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172a42;
  background: #f5f7fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dbe1e9;
  background: white;
  color: #223750;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 550;
}
button:hover {
  background: #edf0f7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #5148a3;
  color: white;
  border-color: #5148a3;
}
.primary:hover {
  background: #443b91;
}
aside {
  width: 218px;
  background: #13283f;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 20px;
  color: #dce3f0;
}
.brand {
  color: white;
  text-decoration: none;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.4px;
}
.brand span {
  display: block;
  color: #bbb6f2;
  font-size: 17px;
  letter-spacing: 3px;
  margin-top: 6px;
}
.tag {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9caec6;
  margin-top: 28px;
}
nav {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}
nav button {
  background: transparent;
  border: 0;
  text-align: left;
  color: #b8c8de;
  padding: 14px 10px;
  font-size: 13px;
}
nav button.active,
nav button:hover {
  background: #2b3a58;
  color: white;
}
.aside-bottom {
  position: absolute;
  bottom: 26px;
  font-size: 11px;
}
.aside-bottom p {
  color: #8fa5bf;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ad4c2;
  margin-right: 7px;
}
main {
  margin-left: 218px;
  padding: 30px 38px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dde3eb;
  padding-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: #7b8495;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 8px 0 0;
}
h2 {
  letter-spacing: -0.7px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.welcome {
  padding: 70px 24px;
}
.welcome h2 {
  font-size: 43px;
  line-height: 1.2;
  margin: 20px 0;
}
.welcome p {
  color: #708096;
  font-size: 15px;
  line-height: 1.8;
}
.preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 45px 0;
  flex-wrap: wrap;
}
.preview span,
.preview strong {
  padding: 24px 18px;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  background: white;
  font-size: 13px;
}
.preview strong {
  background: #5148a3;
  color: white;
  padding: 36px 18px;
}
i {
  color: #a8b4c4;
  font-style: normal;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  padding: 25px 0;
  flex-wrap: wrap;
}
label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #6d7a8e;
}
select {
  background: white;
  border: 1px solid #dbe1e9;
  border-radius: 8px;
  color: #23374e;
  padding: 11px 28px 11px 10px;
  width: 100%;
  min-width: 180px;
}
.scenario-select {
  flex: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading p,
.savebar p {
  font-size: 13px;
  color: #718094;
  line-height: 1.7;
}
#mapping-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mapping-card {
  background: white;
  padding: 22px;
  border: 1px solid #e0e5ed;
  border-radius: 12px;
}
.mapping-card h3 {
  margin: 0 0 18px;
}
.mapping-card label {
  margin: 14px 0;
}
.mapping-card select {
  min-width: 0;
}
.savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
#message {
  padding: 15px;
  background: #fff2d6;
  border: 1px solid #efd8a5;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 13px;
  white-space: pre-line;
}
.empty {
  padding: 80px 20px;
  text-align: center;
  color: #7a889c;
}
.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
}
.scenario-head h2 {
  font-size: 27px;
  margin: 8px 0;
}
.scenario-head p {
  font-size: 12px;
  color: #718094;
}
.key {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7165b6;
}
.pill {
  border-radius: 25px;
  padding: 8px 12px;
  background: #eae7f7;
  font-size: 11px;
  color: #65579e;
}
.stats {
  display: flex;
  gap: 32px;
  margin: 20px 0 30px;
  color: #7d8b9b;
  font-size: 12px;
}
.stats b {
  color: #253b56;
  font-size: 23px;
  margin-right: 7px;
}
.canvas {
  overflow: auto;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: white;
  padding: 26px 22px;
}
.bowtie {
  min-width: 900px;
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 24px;
  align-items: center;
}
.wing {
  display: grid;
  gap: 20px;
}
.wing-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8894a4;
  display: flex;
  justify-content: space-around;
  margin-bottom: 4px;
}
.path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  position: relative;
}
.path:before {
  content: "";
  position: absolute;
  height: 2px;
  background: #cdd7e5;
  left: 10%;
  right: -24px;
  top: 50%;
  z-index: 0;
}
.right .path:before {
  left: -24px;
  right: 10%;
}
.node,
.barriers {
  position: relative;
  z-index: 1;
}
.node {
  background: #f0f5fb;
  border: 1px solid #d7e3f1;
  border-left: 3px solid #6e98c4;
  border-radius: 7px;
  padding: 16px 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.right .node {
  background: #fff5ed;
  border-color: #f4ddc9;
  border-left-color: #d99b6a;
}
.node small {
  display: block;
  color: #8794a7;
  font-size: 9px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.barriers {
  display: grid;
  gap: 8px;
}
.barrier {
  background: #f5faf8;
  border: 1px solid #d9e9e0;
  border-radius: 6px;
  padding: 12px 10px;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.barrier:before {
  content: "▥";
  color: #609d83;
  margin-right: 6px;
}
.path-status {
  font-size: 9px;
  color: #7a8798;
}
.escalation {
  font-size: 10px;
  color: #9c7037;
  background: #fff7e9;
  padding: 8px;
  border-radius: 5px;
  white-space: pre-line;
}
.center {
  text-align: center;
  position: relative;
}
.hazard {
  font-size: 11px;
  color: #887343;
  padding: 12px;
  border: 1px solid #e9dfc7;
  background: #fffbef;
  border-radius: 8px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.hazard small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.event {
  background: #5148a3;
  border: 7px solid #eeeafa;
  border-radius: 50%;
  width: 180px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: white;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.event small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d7d0ff;
  margin-bottom: 12px;
}
.legend {
  font-size: 11px;
  color: #8591a3;
  margin-top: 24px;
}
.source-links {
  display: flex;
  gap: 15px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.source-links a {
  color: #6254a9;
  font-size: 11px;
}
footer {
  font-size: 10px;
  color: #92a0b0;
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  aside {
    width: 160px;
    padding: 24px 12px;
  }
  main {
    margin-left: 160px;
    padding: 24px 18px;
  }
  #mapping-cards {
    grid-template-columns: 1fr;
  }
  .welcome h2 {
    font-size: 32px;
  }
  .header-actions {
    gap: 8px;
  }
  #identity {
    display: none;
  }
}

.bowtie {
  position: relative;
}
.connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.wing,
.center {
  position: relative;
  z-index: 1;
}
.path:before {
  right: 0;
}
.right .path:before {
  left: 0;
}

.mapping-help {
  font-size: 11px;
  line-height: 1.6;
  color: #76849b;
}
.barrier a,
.hazard a {
  color: inherit;
  text-decoration: none;
}
.barrier a:hover,
.hazard a:hover {
  text-decoration: underline;
}
.barrier .path-status {
  margin-top: 4px;
}
.barrier .escalation {
  margin-top: 8px;
}
.node > a {
  display: block;
  font-size: 9px;
  color: #6e85a0;
  margin-top: 8px;
}
.barrier:before {
  display: none;
}

/* Presentation controls and reusable field bands. */
input {
  font: inherit;
  color: inherit;
  min-width: 0;
}
input[type="text"] {
  width: 100%;
  border: 1px solid #dbe1e9;
  border-radius: 7px;
  padding: 10px;
  background: white;
}
input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border: 1px solid #dbe1e9;
  border-radius: 7px;
  background: white;
  cursor: pointer;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5148a3;
}
#mapping-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.extra-editor {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #f8fafc;
}
.extra-editor-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.extra-editor-head strong {
  margin-right: auto;
  font-size: 12px;
}
.extra-editor button {
  padding: 7px 9px;
  font-size: 11px;
}
.colour-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.colour-rule label {
  margin: 0;
}
.branding-editor {
  margin-top: 24px;
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  padding: 24px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.logo-preview {
  display: block;
  max-height: 70px;
  max-width: 240px;
  margin: 16px 0;
  object-fit: contain;
}
.diagram-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 4px solid var(--diagram-accent);
  padding-top: 20px;
  margin-top: 10px;
}
.diagram-brand img {
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}
.diagram-brand strong {
  display: block;
  font-size: 20px;
  color: var(--diagram-accent);
}
.diagram-brand span {
  display: block;
  font-size: 11px;
  color: #6d7a8e;
  margin-top: 4px;
}
.extra-bands:empty {
  display: none;
}
.extra-bands {
  display: grid;
  gap: 0;
  margin-top: 7px;
  text-align: left;
}
.extra-band {
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 16%, transparent);
  padding: 6px 10px;
}
.extra-label {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.4px;
  font-weight: 650;
  opacity: 0.8;
  margin-bottom: 2px;
}
.extra-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.extra-value {
  display: block;
  flex: 1 1 100%;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.single-value .extra-value {
  padding: 0;
  border-radius: 0;
  line-height: 1.35;
}
.barrier:has(> .extra-bands:not(:empty)) {
  padding-bottom: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, currentColor 28%, transparent) !important;
}
.barrier > .extra-bands {
  margin-inline: -10px;
}
.barrier > .effectiveness:last-child {
  padding-bottom: 8px;
}
.node small,
.hazard small,
.event small,
.barrier .path-status,
.node > a {
  color: inherit;
  opacity: 0.78;
}
.node > a {
  opacity: 1;
}
.node,
.barrier,
.hazard {
  box-shadow: 0 1px 2px #172a420a;
}
.event {
  border-color: color-mix(in srgb, var(--diagram-accent) 15%, white) !important;
}
.center > .extra-bands {
  background: var(--center-extras, #f5f7fa);
  padding: 10px;
  border-radius: 10px;
  color: #172a42;
}
.path:before {
  background: var(--connector);
}
.canvas .legend,
.canvas .wing-title {
  color: inherit;
  opacity: 0.75;
}
@media (max-width: 1000px) {
  #mapping-cards {
    grid-template-columns: 1fr;
  }
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Optional incident evidence keeps the standard diagram unchanged. */
.incident-enable {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.incident-enable input {
  width: 18px;
  height: 18px;
}
.incident-source {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #f9fafc;
}
.incident-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.incident-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}
.incident-toolbar label {
  min-width: 230px;
  flex: 1;
}
.incident-panel:not([hidden]) {
  background: #fff;
  border: 1px solid #dce3ee;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 13px;
}
.incident-summary {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid;
  border-radius: 4px;
  background: #f8fafc;
}
.incident-summary a {
  margin-left: 20px;
  color: #5148a3;
}
.incident-note {
  color: #8b5312;
}
.incident-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.incident-legend span {
  border-left: 4px solid;
  padding: 3px 8px;
}
.incident-involved {
  outline: 3px solid var(--evidence-colour);
  outline-offset: 3px;
}
.incident-unlinked {
  opacity: 0.6;
}
.evidence-badge {
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: 0.02em;
}
.effectiveness {
  border-top: 1px solid #bdc8d5;
  margin-top: 12px;
  padding-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 11px;
}
.effectiveness small {
  font-size: 10px;
}
.effectiveness-bar {
  height: 7px;
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  background: #e3e8ef;
}
@media (max-width: 1000px) {
  .incident-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .incident-fields {
    grid-template-columns: 1fr;
  }
}

/* A bounded, zoomable canvas; all connections use measured box edges. */
.path::before,
.right .path::before {
  display: none;
}
.canvas {
  padding: 0;
  overflow: hidden;
}
.diagram-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #dce3ed;
  background: #f8fafc;
  flex-wrap: wrap;
}
.diagram-tools button {
  padding: 7px 12px;
}
.diagram-tools input[type="range"] {
  width: 130px;
  accent-color: #5148a3;
}
.diagram-tools output {
  min-width: 46px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #23374e;
}
.diagram-navigation-hint {
  font-size: 11px;
  color: #67768a;
  margin-left: auto;
}
.diagram-viewport {
  height: 70vh;
  min-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  background: inherit;
}
.diagram-viewport:focus-visible {
  outline: 2px solid #5148a3;
  outline-offset: -2px;
}
.diagram-stage {
  position: relative;
  margin: 12px auto;
  overflow: hidden;
}
.diagram-stage > .bowtie {
  width: 1500px;
  min-width: 1500px;
  padding: 12px;
  box-sizing: border-box;
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
  grid-template-columns: 1fr 220px 1fr;
  gap: 48px;
}
.diagram-stage .path {
  gap: 40px;
}
.diagram-stage .barriers {
  gap: 18px;
}
.canvas > .legend {
  padding: 12px 18px;
  margin: 0;
  border-top: 1px solid #e2e7ef;
}

/* Print is a separate, measured document, never a screenshot of the viewport. */
.print-report {
  display: none;
  color: #172a42;
  font-family: Inter, Arial, sans-serif;
}
.preparing-report .print-report {
  display: block;
  position: absolute;
  left: -20000px;
  top: 0;
  width: 1496px;
}
.print-page {
  overflow: hidden;
  width: 1496px;
  height: 1028px;
  padding: 0;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}
.print-heading {
  border-top: 5px solid var(--diagram-accent, #5148a3);
  padding-top: 14px;
  flex: none;
}
.print-heading .diagram-brand {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}
.print-heading .diagram-brand img {
  max-height: 42px;
}
.print-heading .diagram-brand strong {
  font-size: 18px;
}
.print-heading .diagram-brand span {
  font-size: 11px;
}
.print-kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: #66748b;
}
.print-heading h1 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.25;
}
.print-body {
  flex: 1;
  min-height: 0;
}
.print-body > p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
}
.print-body .incident-summary {
  padding: 12px 16px;
  margin: 0 0 12px;
  font-size: 12px;
}
.print-body .incident-summary h4 {
  margin: 0 0 8px;
}
.print-body .incident-summary p {
  margin: 5px 0;
}
.print-body .incident-legend {
  margin: 0 0 12px;
  font-size: 12px;
}
.print-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 0;
  border-top: 1px solid #d9e1eb;
  font-size: 11px;
  color: #637188;
  flex: none;
}
.print-diagram-area {
  overflow: hidden;
  position: relative;
  border: 1px solid #dce3ed;
  border-radius: 10px;
}
.print-report .print-bowtie {
  position: absolute;
  width: 1470px;
  min-width: 1470px;
  padding: 16px;
  grid-template-columns: 1fr 210px 1fr;
  gap: 50px;
  transform-origin: top left;
}
.print-bowtie .path {
  gap: 34px;
}
.print-bowtie .wing {
  gap: 26px;
}
.print-bowtie .barriers {
  gap: 16px;
}
.print-bowtie .node,
.print-bowtie .barrier {
  font-size: 14px;
  line-height: 1.4;
  padding: 12px;
}
.print-bowtie .event {
  width: 200px;
  min-height: 200px;
  margin: auto;
  font-size: 15px;
}
.print-bowtie .hazard {
  font-size: 13px;
  margin-bottom: 16px;
}
.print-bowtie .wing-title {
  font-size: 11px;
}
.print-ref {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.print-bowtie .incident-unlinked {
  opacity: 0.65;
}
.print-caption {
  font-size: 11px !important;
  color: #637188;
  margin-top: 12px !important;
}
.print-preview > aside,
.print-preview > main {
  display: none;
}
.print-preview {
  background: #e7ebf1;
}
.print-preview .print-report {
  display: block;
  padding: 100px 24px 32px;
  overflow: auto;
}
.print-preview .print-page {
  zoom: var(--preview-scale, 1);
  margin: 0 auto 28px;
  box-shadow: 0 5px 24px #172a4220;
  padding: 0;
  outline: 24px solid white;
}
.print-preview-tools {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #dce3ed;
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  align-items: center;
}
.print-preview-tools > div {
  margin-right: auto;
}
.print-preview-tools strong,
.print-preview-tools span {
  display: block;
}
.print-preview-tools span {
  font-size: 12px;
  color: #637188;
  margin-top: 4px;
}
@media print {
  @page {
    size: A3 landscape;
    margin: 12mm;
  }
  html,
  body {
    background: white;
    margin: 0 !important;
    padding: 0 !important;
    width: 1496px;
  }
  body > :not(.print-report) {
    display: none !important;
  }
  body .print-report {
    display: block;
    position: static;
    width: 1496px;
    padding: 0;
    overflow: visible;
  }
  body .print-report .print-page {
    zoom: 1;
    margin: 0;
    box-shadow: none;
    outline: none;
    break-after: page;
    break-inside: avoid;
  }
  body .print-report .print-page:last-child {
    break-after: auto;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.print-bowtie .effectiveness {
  font-size: 11px;
  margin-top: 8px;
}
/* Full-detail diagram print sizing, independent of interactive zoom. */
.print-page {
  width: var(--paper-width, 2154px);
  height: var(--paper-height, 1496px);
}
.preparing-report .print-report {
  width: var(--paper-width, 2154px);
}
.print-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.print-overview .print-diagram-area {
  flex: 1;
  min-height: 0;
}
.print-overview > *:not(.print-diagram-area) {
  flex: none;
  margin: 0;
}
.print-bowtie .extra-bands {
  gap: 0;
  margin-top: 7px;
}
.print-bowtie .extra-band {
  display: block;
  padding: 5px 12px;
}
.print-bowtie .extra-label {
  font-size: 10px;
  padding-top: 0;
}
.print-bowtie .extra-value {
  font-size: 12px;
  padding: 5px 7px;
  line-height: 1.35;
}
.print-bowtie .single-value .extra-value {
  padding: 0;
}
.print-bowtie .barrier > .extra-bands {
  margin-inline: -12px;
}
.print-bowtie .path-status {
  font-size: 11px;
  margin-top: 6px;
}
.print-bowtie .center > .extra-bands .extra-band {
  display: block;
}
.print-preview-tools select {
  width: auto;
}
@media print {
  html,
  body {
    width: auto;
  }
  body .print-report {
    width: var(--paper-width, 2154px);
  }
}
.share-dialog {
  width: min(680px, 90vw);
  max-height: 85vh;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  padding: 26px;
  color: #172a42;
  overflow: auto;
}
.share-dialog::backdrop {
  background: #172a4277;
}
.share-dialog > button {
  float: right;
}
.share-dialog form,
.shared-gate form {
  display: grid;
  gap: 16px;
}
.share-dialog label,
.shared-gate label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.share-dialog p {
  font-size: 13px;
  line-height: 1.6;
}
.share-dialog .share-check {
  display: flex;
  align-items: center;
}
.share-check input {
  width: auto;
}
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e2e7ef;
}
.share-row small {
  display: block;
  color: #67768a;
  margin-top: 5px;
}
.shared-gate {
  max-width: 500px;
  margin: 80px auto;
  padding: 32px;
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 16px;
}
.shared-view aside,
.shared-view #connect,
.shared-view #logout,
.shared-view #share,
.shared-view #mapping,
.shared-view .toolbar > :not(#print) {
  display: none !important;
}
.shared-view main {
  margin-left: 0;
}
