.dr5-af {
  max-width: 720px;
  margin: 0 auto;
}
.dr5-af__stage-wrap {
  position: relative;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}
.dr5-af__canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
}
.dr5-af__canvas:active { cursor: grabbing; }
.dr5-af__hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
}
.dr5-af__controls { margin-top: 18px; }
.dr5-af__file { display: none; }
.dr5-af__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #c7cbd1;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  cursor: pointer;
}
.dr5-af__button--primary {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}
.dr5-af__button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.dr5-af__zoom-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.dr5-af__zoom-row input { width: 100%; }
.dr5-af__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dr5-af__privacy {
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}
@media (max-width: 520px) {
  .dr5-af__button { width: 100%; }
  .dr5-af__actions { display: grid; grid-template-columns: 1fr 1fr; }
}

.dr5-af__create-own {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.dr5-af__create-own-button,
.dr5-af__guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}
.dr5-af__create-own-button {
  border: 2px solid #b00000;
  background: #d60000;
  color: #ffd700 !important;
}
.dr5-af__create-own-button:hover,
.dr5-af__create-own-button:focus {
  background: #b80000;
  color: #ffea4d !important;
  text-decoration: none !important;
}
.dr5-af__guide-button {
  border: 2px solid #0056b3;
  background: #007bff;
  color: #fff !important;
}
.dr5-af__guide-button:hover,
.dr5-af__guide-button:focus {
  background: #0056b3;
  color: #fff !important;
  text-decoration: none !important;
}
@media (max-width: 520px) {
  .dr5-af__create-own-button,
  .dr5-af__guide-button {
    width: 100%;
    box-sizing: border-box;
  }
}
