.email-device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.email-device-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: #fff;
}

.email-device-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.65rem;
}

.email-device-tabs button.is-active {
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
}

.email-device-bar [data-email-device-note] {
  color: rgba(100, 116, 139, 0.92);
  font-size: 0.76rem;
  line-height: 1.3;
  text-align: right;
}

.email-builder-shell [data-email-responsive-stage="1"] {
  display: flex;
  justify-content: center;
  min-height: 260px;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    rgba(226, 232, 240, 0.36),
    rgba(226, 232, 240, 0.36) 8px,
    rgba(248, 250, 252, 0.9) 8px,
    rgba(248, 250, 252, 0.9) 16px
  );
}

.email-builder-shell [data-email-responsive-stage="1"] .rich-editor {
  width: min(100%, 680px);
  min-height: 220px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
}

.email-builder-shell .rich-editor a[data-email-button="1"] {
  cursor: pointer;
  outline: 1px dashed rgba(37, 99, 235, 0.36);
  outline-offset: 3px;
}

.email-builder-shell .rich-editor a[data-email-button-selected="1"] {
  outline: 2px solid rgba(37, 99, 235, 0.88);
  outline-offset: 4px;
}

.email-button-panel .builder-help {
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.82rem;
  line-height: 1.35;
}

.email-builder-shell[data-email-device="mobile"] [data-email-responsive-stage="1"] .rich-editor {
  width: 390px;
  max-width: 100%;
}

@media (max-width: 720px) {
  .email-device-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .email-device-bar [data-email-device-note] {
    text-align: left;
  }

  .email-device-tabs {
    width: 100%;
  }

  .email-device-tabs button {
    flex: 1;
  }
}
