*, *::before, *::after {
  box-sizing: border-box;
}



.pxvw__wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.pxvw__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 28px 0;
}

.pxvw__fields {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.pxvw__field {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.pxvw__field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.pxvw__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pxvw__input {
  width: 100%;
  padding: 11px 44px 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -moz-appearance: textfield;
  font-family: inherit;
}

.pxvw__input::-webkit-outer-spin-button,
.pxvw__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pxvw__input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.pxvw__unit {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9ca3af;
  pointer-events: none;
  user-select: none;
}

.pxvw__divider {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
  color: #d1d5db;
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
}

.pxvw__presets {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pxvw__presets-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  flex-shrink: 0;
}

.pxvw__presets-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pxvw__preset-btn {
  padding: 5px 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
  outline: none;
  line-height: 1.4;
  font-family: inherit;
}

.pxvw__preset-btn:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}

.pxvw__preset-btn--active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.pxvw__controls-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pxvw__control-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pxvw__control-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pxvw__toggle-group {
  display: flex;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.pxvw__toggle-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  outline: none;
  border-right: 1.5px solid #e5e7eb;
  line-height: 1.4;
  white-space: nowrap;
  font-family: inherit;
}

.pxvw__toggle-btn:last-child {
  border-right: none;
}

.pxvw__toggle-btn:hover {
  background: #eff6ff;
  color: #2563eb;
}

.pxvw__toggle-btn--active {
  background: #3b82f6;
  color: #fff;
}

.pxvw__toggle-btn--active:hover {
  background: #2563eb;
  color: #fff;
}

.pxvw__toggle-btn--wide {
  padding-left: 16px;
  padding-right: 16px;
}

.pxvw__result-card {
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px 24px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.pxvw__result-card.pxvw__has-value {
  background: #eff6ff;
  border-color: #93c5fd;
}

.pxvw__result-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pxvw__result-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
}

.pxvw__result-value {
  font-size: 32px;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.1;
  word-break: break-all;
  transition: color 0.2s, font-size 0.15s;
}

.pxvw__result-value--property {
  font-size: 18px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 600;
  padding-top: 4px;
}

.pxvw__result-value.pxvw__empty {
  color: #93c5fd;
  font-size: 24px;
}

.pxvw__copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  font-family: inherit;
}

.pxvw__copy-btn:hover {
  background: #2563eb;
}

.pxvw__copy-btn:active {
  transform: scale(0.96);
}

.pxvw__copy-btn:disabled {
  background: #bfdbfe;
  cursor: default;
}

.pxvw__copy-btn.pxvw__copied {
  background: #16a34a;
}

.pxvw__copy-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.pxvw__formula {
  margin-top: 16px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.pxvw__formula code {
  font-family: 'Fira Code', 'Courier New', monospace;
  color: #6b7280;
  font-size: 11px;
}

.pxvw__reset-btn {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #d1d5db;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
  outline: none;
  font-family: inherit;
}

.pxvw__reset-btn:hover {
  color: #6b7280;
}
