.phone-content.java-preview-active > :not(.java-native-preview) {
  display: none !important;
}

.java-native-preview {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  gap: 8px;
  color: #f5f7fa;
  font-family: Roboto, Arial, sans-serif;
}

.java-native-preview.horizontal {
  flex-direction: row;
  align-items: center;
}

.java-native-preview .java-view {
  box-sizing: border-box;
  max-width: 100%;
}

.java-native-preview .java-layout {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.java-native-preview .java-layout.horizontal {
  flex-direction: row;
  align-items: center;
}

.java-native-preview .java-text,
.java-native-preview .java-button,
.java-native-preview .java-input {
  min-height: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.java-native-preview .java-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #45d8a0;
  color: #04110c;
  font-weight: 700;
  cursor: pointer;
}

.java-native-preview .java-input {
  width: 100%;
  border: 1px solid #334252;
  border-radius: 8px;
  padding: 9px 11px;
  background: #111820;
  color: #eef5fb;
}

.java-native-preview .java-image {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px dashed #3d5267;
  border-radius: 10px;
  background: linear-gradient(145deg, #14202b, #0b1118);
  color: #8fa4b8;
  font-size: 11px;
  text-align: center;
}

.java-native-preview .java-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.java-native-preview .java-switch::after {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #35d49a;
  box-shadow: inset -16px 0 #e9f4ef;
  content: "";
}

.java-native-preview .java-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #253241;
}

.java-native-preview .java-progress::after {
  display: block;
  width: 58%;
  height: 100%;
  background: #35d49a;
  content: "";
}

.java-native-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.java-preview-note {
  position: absolute;
  z-index: 8;
  right: 8px;
  bottom: 31px;
  left: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 187, 87, 0.35);
  border-radius: 7px;
  background: rgba(35, 27, 13, 0.94);
  color: #ffd48b;
  font-size: 8px;
  line-height: 1.35;
  text-align: center;
}

.java-preview-toast {
  position: absolute;
  z-index: 12;
  bottom: 48px;
  left: 50%;
  max-width: 78%;
  padding: 7px 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(25, 29, 34, 0.95);
  color: white;
  font-size: 9px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
