.remote-access { border-bottom: 1px solid var(--line); }
.remote-access .section-intro > p { max-width: 43em; }
.remote-panel {
  --cable-input: #e99a69;
  --cable-video: #b8c6d0;
  border: 1px solid #41413e;
  border-radius: 7px;
  background: #101314;
  overflow: clip;
}
.remote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
}
.remote-head h3 { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; letter-spacing: -.025em; }
.remote-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid #414446;
  border-radius: 5px;
  background: #0b0d0e;
}
.remote-switch label { position: relative; display: block; cursor: pointer; }
.remote-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.remote-switch label > span {
  display: block;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #bfc2c4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.remote-switch input:checked + span { color: #ffbe8d; border-color: #795238; background: #34271d; }
.remote-switch input:focus-visible + span { outline: 2px solid var(--orange-hover); outline-offset: 2px; }
.remote-map {
  display: grid;
  grid-template-columns: minmax(96px, .9fr) minmax(86px, .8fr) minmax(0, 5.45fr);
  align-items: stretch;
  padding: clamp(22px, 3vw, 42px) clamp(15px, 2.5vw, 38px);
  background: radial-gradient(circle at 74% 62%, #87542119, transparent 46%), radial-gradient(#3b414167 1px, transparent 1px), #0d1011;
  background-size: auto, 14px 14px, auto;
}
.remote-domain {
  position: relative;
  min-width: 0;
  border: 1px solid #43494a;
  border-radius: 7px;
  background: #15191ae8;
}
.remote-domain h4 { margin: 0; padding: 11px 14px 0; color: #cdcfcf; font-size: 11px; font-weight: 550; line-height: 1.5; }
.remote-domain.abc-side { display: grid; grid-template-rows: auto 1fr; }
.abc-side .remote-device { align-self: center; padding: 5px 5px 14px; }
.remote-domain.customer-side { border-color: #5b4838; }
.customer-side h4 { color: #e4bd9e; }
.remote-local {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(40px, .6fr) minmax(52px, .85fr) minmax(94px, 1.22fr) minmax(64px, .95fr);
  align-items: center;
  min-height: 135px;
  gap: clamp(2px, .5vw, 8px);
  padding: 5px 12px 9px;
}
.remote-device { display: grid; justify-items: center; align-content: center; min-width: 0; text-align: center; }
.remote-device svg {
  box-sizing: content-box;
  width: 25px;
  height: 25px;
  padding: 10px;
  border: 1px solid #535a5c;
  border-radius: 8px;
  background: linear-gradient(145deg,#292e30,#171b1c);
  color: #d8dede;
  stroke-width: 1.5;
}
.remote-device b { margin-top: 5px; font-size: clamp(11px, 1.02vw, 14px); font-weight: 600; line-height: 1.55; }
.remote-device.kvm { position: relative; }
.remote-device.kvm svg { color: #ffb37c; border-color: #ae7348; background: linear-gradient(145deg, #483222, #252018); }
.remote-device.kvm small { position: absolute; top: calc(100% + 3px); font: 550 10px/1.4 var(--mono); color: #f9aa71; white-space: nowrap; }
.remote-uplink, .ip-link, .kvm-cables { min-width: 0; align-self: center; text-align: center; }
.remote-uplink { display: grid; gap: 6px; }
.remote-uplink span, .remote-uplink small, .ip-link span, .kvm-cables span { font-size: clamp(10px,.84vw,12px); line-height: 1.55; color: #c7cbcc; }
.remote-uplink small { color: #aeb4b6; }
.ip-link { display: grid; gap: 6px; }
.remote-uplink i, .ip-link i, .kvm-cables i {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  border-top: 1px solid currentColor;
  color: #939fa0;
}
.remote-uplink i { border-top-style: dashed; }
.kvm-cables { display: grid; gap: 9px; }
.kvm-cables > div { display: grid; gap: 5px; }
.kvm-cables .input-line i { color: var(--cable-input); }
.kvm-cables .video-line i { color: var(--cable-video); }
.kvm-cables i::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.kvm-cables .video-line i::after { right: auto; left: 0; transform: rotate(-135deg); }
.remote-readout { padding: 13px clamp(16px, 2vw, 28px); border-top: 1px solid var(--line); background: #15191a; }
.remote-readout p { line-height: 1.85; font-size: 13px; color: #dadee0; }
.remote-panel .kvm-off, .remote-panel .when-idle { display: none; }
.remote-panel:has(#remote-idle:checked) :is(.kvm-on,.when-working) { display: none; }
.remote-panel:has(#remote-idle:checked) :is(.kvm-off,.when-idle) { display: block; }
.remote-panel:has(#remote-idle:checked) .kvm svg { background: #191c1c; border-color: #5c6060; color: #979e9e; }
.remote-panel:has(#remote-idle:checked) .kvm-off { color: #c5cbcc; }
.remote-panel:has(#remote-idle:checked) :is(.ip-link,.kvm-cables) i { color: #747b7c; border-top-style: dashed; }
.remote-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 62px); margin: 25px 0; }
.remote-notes h3 { margin-bottom: 6px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; }
.remote-notes p { color: var(--muted); line-height: 1.9; font-size: 14px; }
.remote-file { text-decoration-thickness: 1px; }

@media (max-width: 950px) {
  .remote-map { grid-template-columns: minmax(0, 1fr); justify-items: stretch; padding: 20px; }
  .remote-domain.abc-side { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
  .remote-domain.abc-side h4 { padding: 0; }
  .abc-side .remote-device { display: flex; align-items: center; gap: 8px; padding: 0; }
  .abc-side .remote-device svg { width: 18px; height: 18px; padding: 6px; border-radius: 5px; }
  .abc-side .remote-device b { margin: 0; }
  .remote-uplink { align-self: auto; justify-self: center; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
  .remote-uplink span { text-align: right; }
  .remote-uplink small { text-align: left; }
  .remote-uplink i { height: 35px; width: 0; border: none; border-left: 1px dashed currentColor; }
}

@media (max-width: 600px) {
  .remote-head { flex-wrap: wrap; padding: 12px; gap: 7px 10px; }
  .remote-switch label > span { padding: 6px 8px; font-size: 11px; }
  .remote-map { padding: 13px; }
  .customer-side h4 { padding: 10px 13px 0; }
  .remote-local { grid-template-columns: 1fr; gap: 4px; padding: 12px 13px 16px; }
  .remote-local .remote-device {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    min-height: 37px;
  }
  .remote-local .remote-device svg { width: 18px; height: 18px; padding: 7px; border-radius: 5px; }
  .remote-local .remote-device b { margin-top: 0; font-size: 12px; }
  .remote-local .kvm small { position: static; }
  .ip-link { justify-self: center; display: flex; align-items: center; position: relative; height: 30px; }
  .ip-link i { height: 24px; width: 0; border: none; border-left: 1px solid currentColor; }
  .ip-link span { position: absolute; left: 8px; white-space: nowrap; }
  .kvm-cables { justify-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
  .kvm-cables > div { align-items: center; display: flex; gap: 6px; }
  .kvm-cables .input-line { justify-content: flex-end; }
  .kvm-cables .video-line { justify-content: flex-start; }
  .kvm-cables span { max-width: 9em; text-align: left; }
  .kvm-cables i { flex: none; height: 40px; width: 0; border: none; border-left: 1px solid currentColor; }
  .kvm-cables i::after { right: auto; top: auto; bottom: 0; left: -4px; transform: rotate(135deg); }
  .kvm-cables .video-line i::after { left: -4px; top: 0; bottom: auto; transform: rotate(-45deg); }
  .remote-panel:has(#remote-idle:checked) :is(.ip-link,.kvm-cables) i { border-top: none; border-left-style: dashed; }
  .remote-readout { padding: 11px 13px; }
  .remote-readout p { font-size: 12px; }
  .remote-notes { grid-template-columns: 1fr; gap: 16px; margin-block: 20px; }
  .remote-notes p { font-size: 13px; }
}

.remote-guide { margin: 0 0 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.remote-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 17px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.remote-guide summary::-webkit-details-marker { display: none; }
.remote-guide summary .ic { color: var(--orange); }
.remote-guide[open] summary .ic { transform: rotate(45deg); }
.remote-pages { border-top: 1px solid var(--line); padding: 0 clamp(8px,2vw,28px) 22px; }
.remote-pages figure { max-width: 880px; margin: 18px auto 0; }
.remote-pages figcaption { margin: 0 0 5px; font-size: 12px; color: var(--muted); }
.remote-pages a { display: block; cursor: zoom-in; }
.remote-pages img { display: block; width: 100%; height: auto; }
