/* Mobile-first */
.insta-styles-wrapper {
  max-width: 820px;
  margin: 16px auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.insta-topbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.insta-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.insta-switch input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.insta-hint {
  font-size: 12px;
  opacity: 0.8;
}

#insta-input {
	width: 96%;
	padding: 2%;
	font-size: 20px;
	line-height: 1.4;
	border: 5px solid #6d44be;
	border-radius: 10px;
	outline: none;
	min-height: initial;
	font-family: sans-serif;
	color: #878787;
}

#insta-input:focus {
	border-color: #c22d8a;
}

.insta-actions {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 4px;
}

#insta-clear {
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

#insta-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insta-style-item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.insta-style-item:focus {
  outline: 2px solid rgba(0,0,0,0.08);
}

.style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.style-name {
  font-weight: 700;
  font-size: 12px;
  opacity: 0.85;
}

.style-text {
  font-size: 17px;
  line-height: 1.35;
  word-break: break-word;
}

.copy-btn {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.copy-btn:active,
.insta-style-item:active {
  transform: scale(0.995);
}

.insta-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

.insta-toast.show {
  opacity: 1;
}

/* Desktop improvements */
@media (min-width: 768px) {
  .insta-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .style-name { font-size: 12px; }
  .style-text { font-size: 18px; }
}

.style-text.circled {
	font-weight:700;
}
