.epson-i3200-ink {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  padding: 12px;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
  margin: 24px 0;
}

.epson-i3200-ink *,
.epson-i3200-ink *::before,
.epson-i3200-ink *::after {
  box-sizing: border-box;
}

.epson-i3200-ink .container {
  max-width: 480px;
  margin: 0 auto;
}

.epson-i3200-ink h2.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.epson-i3200-ink .subtitle {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.4;
}

.epson-i3200-ink .section-title {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-align: center;
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.epson-i3200-ink .ports-section {
  background: linear-gradient(180deg, #111118 0%, #0d0d14 100%);
  border: 1px solid #1e1e2e;
  border-radius: 14px;
  padding: 16px 12px;
  margin-bottom: 12px;
}

.epson-i3200-ink .head-body {
  background: #151520;
  border: 1.5px solid #2a2a3e;
  border-radius: 10px;
  padding: 14px 8px;
  position: relative;
}

.epson-i3200-ink .head-body::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed #2a2a3e;
  border-radius: 6px;
  pointer-events: none;
}

.epson-i3200-ink .ports-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 4px;
}

.epson-i3200-ink .port {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.epson-i3200-ink .port:active {
  transform: scale(0.95);
}

.epson-i3200-ink .port-needle {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  margin-bottom: 4px;
  position: relative;
}

.epson-i3200-ink .port-needle::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}

.epson-i3200-ink .port-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}

.epson-i3200-ink .port-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  animation: epson-i3200-pulse 2s ease-in-out infinite;
}

.epson-i3200-ink .port-label {
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  color: inherit;
}

.epson-i3200-ink .port-rows {
  font-size: 9px;
  opacity: 0.7;
  margin-top: 2px;
}

.epson-i3200-ink .port[data-port="1"] .port-needle,
.epson-i3200-ink .port[data-port="1"] .port-circle {
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.epson-i3200-ink .port[data-port="1"] .port-needle::after {
  border-bottom-color: #ff6b6b;
}
.epson-i3200-ink .port[data-port="1"] .port-dot {
  background: #ff6b6b;
}

.epson-i3200-ink .port[data-port="2"] .port-needle,
.epson-i3200-ink .port[data-port="2"] .port-circle {
  border-color: #51cf66;
  color: #51cf66;
}
.epson-i3200-ink .port[data-port="2"] .port-needle::after {
  border-bottom-color: #51cf66;
}
.epson-i3200-ink .port[data-port="2"] .port-dot {
  background: #51cf66;
  animation-delay: 0.5s;
}

.epson-i3200-ink .port[data-port="3"] .port-needle,
.epson-i3200-ink .port[data-port="3"] .port-circle {
  border-color: #339af0;
  color: #339af0;
}
.epson-i3200-ink .port[data-port="3"] .port-needle::after {
  border-bottom-color: #339af0;
}
.epson-i3200-ink .port[data-port="3"] .port-dot {
  background: #339af0;
  animation-delay: 1s;
}

.epson-i3200-ink .port[data-port="4"] .port-needle,
.epson-i3200-ink .port[data-port="4"] .port-circle {
  border-color: #cc5de8;
  color: #cc5de8;
}
.epson-i3200-ink .port[data-port="4"] .port-needle::after {
  border-bottom-color: #cc5de8;
}
.epson-i3200-ink .port[data-port="4"] .port-dot {
  background: #cc5de8;
  animation-delay: 1.5s;
}

@keyframes epson-i3200-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.epson-i3200-ink .connections-wrap {
  position: relative;
  height: 60px;
  margin: -6px 0;
  overflow: hidden;
}

.epson-i3200-ink .connections-wrap svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.epson-i3200-ink .conn-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.15;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.epson-i3200-ink .conn-path.active {
  opacity: 0.9;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 4px currentColor);
  stroke-dasharray: 6 4;
  animation: epson-i3200-flow 0.6s linear infinite;
}

@keyframes epson-i3200-flow {
  0% {
    stroke-dashoffset: 20;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.epson-i3200-ink .rows-section {
  background: linear-gradient(180deg, #111118 0%, #0d0d14 100%);
  border: 1px solid #1e1e2e;
  border-radius: 14px;
  padding: 16px 10px;
}

.epson-i3200-ink .head-front {
  background: #151520;
  border: 1.5px solid #2a2a3e;
  border-radius: 10px;
  padding: 12px 6px;
  position: relative;
}

.epson-i3200-ink .head-front::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px dashed #2a2a3e;
  border-radius: 6px;
  pointer-events: none;
}

.epson-i3200-ink .mount-holes {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 6px;
}

.epson-i3200-ink .mount-holes.mount-holes-bottom {
  margin-top: 6px;
  margin-bottom: 0;
}

.epson-i3200-ink .mount-hole {
  width: 10px;
  height: 10px;
  border: 1.5px solid #3a3a50;
  border-radius: 50%;
}

.epson-i3200-ink .rows-grid {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 4px;
}

.epson-i3200-ink .row-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  touch-action: manipulation;
  position: relative;
}

.epson-i3200-ink .row-block:active {
  transform: scale(0.95);
}

.epson-i3200-ink .row-label-top {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  min-height: 14px;
}

.epson-i3200-ink .row-strip {
  width: 28px;
  height: 140px;
  border-radius: 4px;
  border: 1.5px solid;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.epson-i3200-ink .row-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.08) 10px,
    rgba(255, 255, 255, 0.08) 11px
  );
}

.epson-i3200-ink .row-nozzles {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.epson-i3200-ink .nozzle {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.epson-i3200-ink .row-label-bottom {
  font-size: 9px;
  margin-top: 4px;
  opacity: 0.7;
  min-height: 12px;
  color: #ccc;
}

.epson-i3200-ink .chip-divider {
  width: 1px;
  height: 140px;
  background: repeating-linear-gradient(
    0deg,
    #3a3a50,
    #3a3a50 4px,
    transparent 4px,
    transparent 8px
  );
  margin: 18px 1px 0;
  align-self: center;
}

.epson-i3200-ink .row-block[data-port="1"] .row-strip {
  border-color: #ff6b6b;
  box-shadow: inset 0 0 12px rgba(255, 107, 107, 0.08);
}
.epson-i3200-ink .row-block[data-port="1"] .row-label-top {
  color: #ff6b6b;
}
.epson-i3200-ink .row-block[data-port="2"] .row-strip {
  border-color: #51cf66;
  box-shadow: inset 0 0 12px rgba(81, 207, 102, 0.08);
}
.epson-i3200-ink .row-block[data-port="2"] .row-label-top {
  color: #51cf66;
}
.epson-i3200-ink .row-block[data-port="3"] .row-strip {
  border-color: #339af0;
  box-shadow: inset 0 0 12px rgba(51, 154, 240, 0.08);
}
.epson-i3200-ink .row-block[data-port="3"] .row-label-top {
  color: #339af0;
}
.epson-i3200-ink .row-block[data-port="4"] .row-strip {
  border-color: #cc5de8;
  box-shadow: inset 0 0 12px rgba(204, 93, 232, 0.08);
}
.epson-i3200-ink .row-block[data-port="4"] .row-label-top {
  color: #cc5de8;
}

.epson-i3200-ink .port.highlighted .port-circle {
  box-shadow: 0 0 16px currentColor;
  background: rgba(255, 255, 255, 0.05);
}
.epson-i3200-ink .port.dimmed,
.epson-i3200-ink .row-block.dimmed {
  opacity: 0.25;
}
.epson-i3200-ink .row-block.highlighted .row-strip {
  box-shadow: inset 0 0 20px currentColor, 0 0 12px currentColor;
  background: rgba(255, 255, 255, 0.05);
}

.epson-i3200-ink .legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.epson-i3200-ink .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #151520;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #ccc;
}

.epson-i3200-ink .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.epson-i3200-ink .legend-text {
  line-height: 1.3;
}

.epson-i3200-ink .legend-port {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.epson-i3200-ink .info-box {
  background: #151520;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}

.epson-i3200-ink .info-box strong {
  color: #ccc;
  font-weight: 600;
}

.epson-i3200-ink .info-box ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.epson-i3200-ink .info-box li {
  margin-bottom: 3px;
}

.epson-i3200-ink .badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
}

.epson-i3200-ink .badge-red {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}
.epson-i3200-ink .badge-green {
  background: rgba(81, 207, 102, 0.15);
  color: #51cf66;
}
.epson-i3200-ink .badge-blue {
  background: rgba(51, 154, 240, 0.15);
  color: #339af0;
}
.epson-i3200-ink .badge-purple {
  background: rgba(204, 93, 232, 0.15);
  color: #cc5de8;
}

@media (max-width: 420px) {
  .epson-i3200-ink .row-strip {
    width: 24px;
    height: 120px;
  }
  .epson-i3200-ink .chip-divider {
    height: 120px;
  }
  .epson-i3200-ink .port-circle {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}
