.mae { max-width: 760px; }

.mae-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.mae-label { font-size: 13px; font-weight: 700; color: #27331f; }
.mae-label code { font-size: 12px; }

.mae-file-input {
  font-size: 13px; color: #27331f; padding: 9px 11px; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; width: fit-content;
}
.mae-file-input:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.mae-hint { margin: 0 0 16px; font-size: 12.5px; color: #5b6b56; }

.mae-error {
  padding: 10px 12px; background: #fdecea; border: 1px solid #e0a29a; border-radius: 6px;
  color: #7a2e22; font-size: 13.5px; font-weight: 700; margin-bottom: 16px;
}

.mae-result-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }

.mae-canvas {
  border: 1px solid #d9e0d4; border-radius: 6px; background: #fff;
  width: 256px; height: 256px; image-rendering: pixelated; flex: 0 0 auto;
}

.mae-side { display: flex; flex-direction: column; gap: 14px; flex: 1 1 260px; min-width: 220px; }

.mae-btn {
  display: inline-block; padding: 10px 16px; font-size: 14px; font-weight: 700;
  background: #19616a; color: #fff; border: 1px solid #19616a; border-radius: 6px;
  cursor: pointer; text-decoration: none; width: fit-content;
}
.mae-btn:hover { opacity: .92; }

.mae-summary { display: flex; flex-direction: column; gap: 8px; }
.mae-stat {
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.mae-stat span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #5b6b56; }
.mae-stat strong { font-size: 15px; color: #19616a; word-break: break-word; }

.mae-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

@media (max-width: 640px) {
  .mae-result-row { flex-direction: column; }
  .mae-canvas { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
