.cys-sg-link-row { margin: .6rem 0 1rem; }
.cys-sg-link { text-decoration: underline; text-underline-offset: 4px; font-size: .95rem; }
html.cys-sg-open { overflow: hidden; }
.cys-sg-dialog:not([open]) { display: none; }
.cys-sg-dialog {
  box-sizing: border-box; width: min(880px, calc(100% - 24px));
  max-width: none; max-height: 88vh; max-height: 88dvh;
  margin: auto; padding: 24px; border: 0; border-radius: 14px;
  color: #252525; background: #fff; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 16px 64px #0004; text-align: start;
}
.cys-sg-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.cys-sg-dialog__header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cys-sg-dialog__header h2 { flex: 1; margin: 0; font-size: clamp(1.15rem, 3vw, 1.6rem); }
.cys-sg-dialog button { font-family: inherit; letter-spacing: normal; text-transform: none; }
.cys-sg-dialog .cys-sg-dialog__close {
  flex: 0 0 44px; width: 44px; min-height: 44px; line-height: 1;
  padding: 0; margin: 0; border: 0; border-radius: 50%; background: #f2f2f2;
  color: #222; font-size: 28px; cursor: pointer;
}
.cys-sg__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cys-sg__toolbar p { margin: 0; font-weight: 600; }
.cys-sg__units { display: flex; gap: 8px; }
.cys-sg .cys-sg__units button {
  min-width: 54px; min-height: 44px; margin: 0; padding: 8px 16px;
  border: 1px solid #ddd; border-radius: 24px; background: #f5f5f5;
  color: #222; font-size: 14px; line-height: 1.4; cursor: pointer;
}
.cys-sg .cys-sg__units button[aria-pressed="true"] { color: #fff; background: #202020; border-color: #202020; }
.cys-sg__scroll { overflow-x: auto; margin: 16px 0; }
.cys-sg .cys-sg__table { width: 100%; min-width: 420px; border-collapse: collapse; margin: 0; table-layout: fixed; }
.cys-sg__table caption { text-align: start; padding-bottom: 8px; font-weight: 600; }
.cys-sg .cys-sg__table th, .cys-sg .cys-sg__table td {
  padding: 12px 8px; border: 0; text-align: center;
  color: #30343d; font-size: 15px; letter-spacing: normal; text-transform: none;
}
.cys-sg__table thead, .cys-sg__table tbody tr:nth-child(even) { background: #f3f4f5; }
.cys-sg__table small { font-size: 12px; }
.cys-sg__note { font-size: 13px; line-height: 1.6; color: #555; }
.cys-sg h3 { margin-top: 20px; font-size: 1.1rem; }
.cys-sg__measurements { border-top: 10px solid #f5f5f5; margin-top: 24px; padding-top: 4px; }
.cys-sg__measurements h3 { font-weight: 700; color: #191919; }
/* Show the supplied diagram region without changing the original screenshot. */
.cys-sg__measurement-illustration { position: relative; aspect-ratio: 1180 / 820; overflow: hidden; margin: 12px 0 20px; background: #fff; }
.cys-sg .cys-sg__measurement-illustration img {
  position: absolute; inset: auto; left: 0; top: -9.7561%;
  width: 100%; max-width: none; height: auto; display: block; margin: 0;
}
.cys-sg .cys-sg__measurement-steps { list-style: none; padding: 0; margin: 0; }
.cys-sg .cys-sg__measurement-steps li { list-style: none; margin: 0 0 20px; padding: 0; }
.cys-sg__measurement-steps h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 7px; font-size: 16px; line-height: 1.5; font-weight: 700; color: #191919; text-transform: none; letter-spacing: normal; }
.cys-sg__step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 21px; height: 21px; border-radius: 50%; background: #000; color: #fff; font-size: 15px; line-height: 1; }
.cys-sg__measurement-steps p { margin: 0; color: #727272; font-size: 15px; line-height: 1.65; }
.cys-sg-link:focus-visible, .cys-sg-dialog button:focus-visible, .cys-sg__scroll:focus-visible { outline: 3px solid #176cbd; outline-offset: 3px; }
@media (max-width: 480px) {
  .cys-sg-dialog { padding: 16px; width: calc(100% - 16px); max-height: 92vh; max-height: 92dvh; }
  .cys-sg-dialog__header { gap: 8px; }
  .cys-sg__toolbar { align-items: flex-start; }
}
